c++: deleted after first declaration [PR101106]
[official-gcc.git] / c++tools / configure
bloba288f7abe5da8290538e2ec59eefbd4d022a0855
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
174 esac
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; }
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 :
190 else
191 exitcode=1; echo positional parameters were not saved.
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
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
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
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
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
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
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
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
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 ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
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/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
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"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
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 ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
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 ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
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 ()
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
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
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
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
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
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/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
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
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 '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
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; }
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
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;;
510 ECHO_N='-n';;
511 esac
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
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'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
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
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
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'"
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'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
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`
566 # Initializations.
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=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="c++tools"
586 ac_unique_file="server.cc"
587 # Factoring default headers for most tests.
588 ac_includes_default="\
589 #include <stdio.h>
590 #ifdef HAVE_SYS_TYPES_H
591 # include <sys/types.h>
592 #endif
593 #ifdef HAVE_SYS_STAT_H
594 # include <sys/stat.h>
595 #endif
596 #ifdef STDC_HEADERS
597 # include <stdlib.h>
598 # include <stddef.h>
599 #else
600 # ifdef HAVE_STDLIB_H
601 # include <stdlib.h>
602 # endif
603 #endif
604 #ifdef HAVE_STRING_H
605 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
606 # include <memory.h>
607 # endif
608 # include <string.h>
609 #endif
610 #ifdef HAVE_STRINGS_H
611 # include <strings.h>
612 #endif
613 #ifdef HAVE_INTTYPES_H
614 # include <inttypes.h>
615 #endif
616 #ifdef HAVE_STDINT_H
617 # include <stdint.h>
618 #endif
619 #ifdef HAVE_UNISTD_H
620 # include <unistd.h>
621 #endif"
623 ac_subst_vars='LTLIBOBJS
624 LIBOBJS
625 NETLIBS
626 get_gcc_base_ver
627 EGREP
628 GREP
630 ac_ct_CC
631 CFLAGS
633 PIEFLAG
634 MAINTAINER
635 CXX_AUX_TOOLS
636 AUTOHEADER
637 AUTOCONF
638 OBJEXT
639 EXEEXT
640 ac_ct_CXX
641 CPPFLAGS
642 LDFLAGS
643 CXXFLAGS
645 INSTALL_DATA
646 INSTALL_SCRIPT
647 INSTALL_PROGRAM
648 target_os
649 target_vendor
650 target_cpu
651 target
652 host_os
653 host_vendor
654 host_cpu
655 host
656 target_noncanonical
657 build_os
658 build_vendor
659 build_cpu
660 build
661 target_alias
662 host_alias
663 build_alias
664 LIBS
665 ECHO_T
666 ECHO_N
667 ECHO_C
668 DEFS
669 mandir
670 localedir
671 libdir
672 psdir
673 pdfdir
674 dvidir
675 htmldir
676 infodir
677 docdir
678 oldincludedir
679 includedir
680 localstatedir
681 sharedstatedir
682 sysconfdir
683 datadir
684 datarootdir
685 libexecdir
686 sbindir
687 bindir
688 program_transform_name
689 prefix
690 exec_prefix
691 PACKAGE_URL
692 PACKAGE_BUGREPORT
693 PACKAGE_STRING
694 PACKAGE_VERSION
695 PACKAGE_TARNAME
696 PACKAGE_NAME
697 PATH_SEPARATOR
698 SHELL'
699 ac_subst_files=''
700 ac_user_opts='
701 enable_option_checking
702 enable_c___tools
703 enable_maintainer_mode
704 enable_default_pie
705 with_gcc_major_version_only
707 ac_precious_vars='build_alias
708 host_alias
709 target_alias
711 CXXFLAGS
712 LDFLAGS
713 LIBS
714 CPPFLAGS
717 CFLAGS
718 CPP'
721 # Initialize some variables set by options.
722 ac_init_help=
723 ac_init_version=false
724 ac_unrecognized_opts=
725 ac_unrecognized_sep=
726 # The variables have the same names as the options, with
727 # dashes changed to underlines.
728 cache_file=/dev/null
729 exec_prefix=NONE
730 no_create=
731 no_recursion=
732 prefix=NONE
733 program_prefix=NONE
734 program_suffix=NONE
735 program_transform_name=s,x,x,
736 silent=
737 site=
738 srcdir=
739 verbose=
740 x_includes=NONE
741 x_libraries=NONE
743 # Installation directory options.
744 # These are left unexpanded so users can "make install exec_prefix=/foo"
745 # and all the variables that are supposed to be based on exec_prefix
746 # by default will actually change.
747 # Use braces instead of parens because sh, perl, etc. also accept them.
748 # (The list follows the same order as the GNU Coding Standards.)
749 bindir='${exec_prefix}/bin'
750 sbindir='${exec_prefix}/sbin'
751 libexecdir='${exec_prefix}/libexec'
752 datarootdir='${prefix}/share'
753 datadir='${datarootdir}'
754 sysconfdir='${prefix}/etc'
755 sharedstatedir='${prefix}/com'
756 localstatedir='${prefix}/var'
757 includedir='${prefix}/include'
758 oldincludedir='/usr/include'
759 docdir='${datarootdir}/doc/${PACKAGE}'
760 infodir='${datarootdir}/info'
761 htmldir='${docdir}'
762 dvidir='${docdir}'
763 pdfdir='${docdir}'
764 psdir='${docdir}'
765 libdir='${exec_prefix}/lib'
766 localedir='${datarootdir}/locale'
767 mandir='${datarootdir}/man'
769 ac_prev=
770 ac_dashdash=
771 for ac_option
773 # If the previous option needs an argument, assign it.
774 if test -n "$ac_prev"; then
775 eval $ac_prev=\$ac_option
776 ac_prev=
777 continue
780 case $ac_option in
781 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 *=) ac_optarg= ;;
783 *) ac_optarg=yes ;;
784 esac
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
790 ac_dashdash=yes ;;
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
793 ac_prev=bindir ;;
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795 bindir=$ac_optarg ;;
797 -build | --build | --buil | --bui | --bu)
798 ac_prev=build_alias ;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias=$ac_optarg ;;
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev=cache_file ;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file=$ac_optarg ;;
809 --config-cache | -C)
810 cache_file=config.cache ;;
812 -datadir | --datadir | --datadi | --datad)
813 ac_prev=datadir ;;
814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
815 datadir=$ac_optarg ;;
817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev=datarootdir ;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir=$ac_optarg ;;
824 -disable-* | --disable-*)
825 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828 as_fn_error $? "invalid feature name: $ac_useropt"
829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
833 "enable_$ac_useropt"
834 "*) ;;
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';;
837 esac
838 eval enable_$ac_useropt=no ;;
840 -docdir | --docdir | --docdi | --doc | --do)
841 ac_prev=docdir ;;
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 docdir=$ac_optarg ;;
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846 ac_prev=dvidir ;;
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 dvidir=$ac_optarg ;;
850 -enable-* | --enable-*)
851 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854 as_fn_error $? "invalid feature name: $ac_useropt"
855 ac_useropt_orig=$ac_useropt
856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
859 "enable_$ac_useropt"
860 "*) ;;
861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862 ac_unrecognized_sep=', ';;
863 esac
864 eval enable_$ac_useropt=\$ac_optarg ;;
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1054 -with-* | --with-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid package name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "with_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval with_$ac_useropt=\$ac_optarg ;;
1070 -without-* | --without-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "with_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=no ;;
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1104 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1105 Try \`$0 --help' for more information"
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 case $ac_envvar in #(
1112 '' | [0-9]* | *[!_$as_cr_alnum]* )
1113 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1114 esac
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1126 esac
1127 done
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 as_fn_error $? "missing argument to $ac_option"
1134 if test -n "$ac_unrecognized_opts"; then
1135 case $enable_option_checking in
1136 no) ;;
1137 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1138 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139 esac
1142 # Check all directory arguments for consistency.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val=\$$ac_var
1149 # Remove trailing slashes.
1150 case $ac_val in
1151 */ )
1152 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153 eval $ac_var=\$ac_val;;
1154 esac
1155 # Be sure to have absolute directory names.
1156 case $ac_val in
1157 [\\/$]* | ?:[\\/]* ) continue;;
1158 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1159 esac
1160 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1161 done
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1166 build=$build_alias
1167 host=$host_alias
1168 target=$target_alias
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
1174 elif test "x$build_alias" != "x$host_alias"; then
1175 cross_compiling=yes
1179 ac_tool_prefix=
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182 test "$silent" = yes && exec 6>/dev/null
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 as_fn_error $? "working directory cannot be determined"
1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190 as_fn_error $? "pwd does not report name of working directory"
1193 # Find the source files, if location was not specified.
1194 if test -z "$srcdir"; then
1195 ac_srcdir_defaulted=yes
1196 # Try the directory containing this script, then the parent directory.
1197 ac_confdir=`$as_dirname -- "$as_myself" ||
1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202 $as_echo X"$as_myself" |
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204 s//\1/
1207 /^X\(\/\/\)[^/].*/{
1208 s//\1/
1211 /^X\(\/\/\)$/{
1212 s//\1/
1215 /^X\(\/\).*/{
1216 s//\1/
1219 s/.*/./; q'`
1220 srcdir=$ac_confdir
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 srcdir=..
1224 else
1225 ac_srcdir_defaulted=no
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1229 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1231 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 ac_abs_confdir=`(
1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures this package to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking ...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1314 cat <<\_ACEOF
1316 System types:
1317 --build=BUILD configure for building on BUILD [guessed]
1318 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1319 --target=TARGET configure for building compilers for TARGET [HOST]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1325 cat <<\_ACEOF
1327 Optional Features:
1328 --disable-option-checking ignore unrecognized --enable/--with options
1329 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1330 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1331 --enable-c++-tools build auxiliary c++ tools
1332 --enable-maintainer-mode
1333 enable maintainer mode. Add rules to rebuild
1334 configurey bits
1335 --enable-default-pie enable Position Independent Executable as default
1337 Optional Packages:
1338 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1339 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1340 --with-gcc-major-version-only
1341 use only GCC major number in filesystem paths
1343 Some influential environment variables:
1344 CXX C++ compiler command
1345 CXXFLAGS C++ compiler flags
1346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1347 nonstandard directory <lib dir>
1348 LIBS libraries to pass to the linker, e.g. -l<library>
1349 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1350 you have headers in a nonstandard directory <include dir>
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 CPP C preprocessor
1355 Use these variables to override the choices made by `configure' or to help
1356 it to find libraries and programs with nonstandard names/locations.
1358 Report bugs to the package provider.
1359 _ACEOF
1360 ac_status=$?
1363 if test "$ac_init_help" = "recursive"; then
1364 # If there are subdirs, report their specific --help.
1365 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1366 test -d "$ac_dir" ||
1367 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1368 continue
1369 ac_builddir=.
1371 case "$ac_dir" in
1372 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1375 # A ".." for each directory in $ac_dir_suffix.
1376 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1377 case $ac_top_builddir_sub in
1378 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1380 esac ;;
1381 esac
1382 ac_abs_top_builddir=$ac_pwd
1383 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1384 # for backward compatibility:
1385 ac_top_builddir=$ac_top_build_prefix
1387 case $srcdir in
1388 .) # We are building in place.
1389 ac_srcdir=.
1390 ac_top_srcdir=$ac_top_builddir_sub
1391 ac_abs_top_srcdir=$ac_pwd ;;
1392 [\\/]* | ?:[\\/]* ) # Absolute name.
1393 ac_srcdir=$srcdir$ac_dir_suffix;
1394 ac_top_srcdir=$srcdir
1395 ac_abs_top_srcdir=$srcdir ;;
1396 *) # Relative name.
1397 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1398 ac_top_srcdir=$ac_top_build_prefix$srcdir
1399 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1400 esac
1401 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1403 cd "$ac_dir" || { ac_status=$?; continue; }
1404 # Check for guested configure.
1405 if test -f "$ac_srcdir/configure.gnu"; then
1406 echo &&
1407 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1408 elif test -f "$ac_srcdir/configure"; then
1409 echo &&
1410 $SHELL "$ac_srcdir/configure" --help=recursive
1411 else
1412 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1413 fi || ac_status=$?
1414 cd "$ac_pwd" || { ac_status=$?; break; }
1415 done
1418 test -n "$ac_init_help" && exit $ac_status
1419 if $ac_init_version; then
1420 cat <<\_ACEOF
1421 configure
1422 generated by GNU Autoconf 2.69
1424 Copyright (C) 2012 Free Software Foundation, Inc.
1425 This configure script is free software; the Free Software Foundation
1426 gives unlimited permission to copy, distribute and modify it.
1427 _ACEOF
1428 exit
1431 ## ------------------------ ##
1432 ## Autoconf initialization. ##
1433 ## ------------------------ ##
1435 # ac_fn_cxx_try_compile LINENO
1436 # ----------------------------
1437 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1438 ac_fn_cxx_try_compile ()
1440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1441 rm -f conftest.$ac_objext
1442 if { { ac_try="$ac_compile"
1443 case "(($ac_try" in
1444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1445 *) ac_try_echo=$ac_try;;
1446 esac
1447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1448 $as_echo "$ac_try_echo"; } >&5
1449 (eval "$ac_compile") 2>conftest.err
1450 ac_status=$?
1451 if test -s conftest.err; then
1452 grep -v '^ *+' conftest.err >conftest.er1
1453 cat conftest.er1 >&5
1454 mv -f conftest.er1 conftest.err
1456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1457 test $ac_status = 0; } && {
1458 test -z "$ac_cxx_werror_flag" ||
1459 test ! -s conftest.err
1460 } && test -s conftest.$ac_objext; then :
1461 ac_retval=0
1462 else
1463 $as_echo "$as_me: failed program was:" >&5
1464 sed 's/^/| /' conftest.$ac_ext >&5
1466 ac_retval=1
1468 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1469 as_fn_set_status $ac_retval
1471 } # ac_fn_cxx_try_compile
1473 # ac_fn_c_try_compile LINENO
1474 # --------------------------
1475 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1476 ac_fn_c_try_compile ()
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 rm -f conftest.$ac_objext
1480 if { { ac_try="$ac_compile"
1481 case "(($ac_try" in
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1484 esac
1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486 $as_echo "$ac_try_echo"; } >&5
1487 (eval "$ac_compile") 2>conftest.err
1488 ac_status=$?
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } && {
1496 test -z "$ac_c_werror_flag" ||
1497 test ! -s conftest.err
1498 } && test -s conftest.$ac_objext; then :
1499 ac_retval=0
1500 else
1501 $as_echo "$as_me: failed program was:" >&5
1502 sed 's/^/| /' conftest.$ac_ext >&5
1504 ac_retval=1
1506 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1507 as_fn_set_status $ac_retval
1509 } # ac_fn_c_try_compile
1511 # ac_fn_c_try_cpp LINENO
1512 # ----------------------
1513 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_cpp ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 if { { ac_try="$ac_cpp conftest.$ac_ext"
1518 case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } > conftest.i && {
1533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 }; then :
1536 ac_retval=0
1537 else
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1541 ac_retval=1
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1546 } # ac_fn_c_try_cpp
1548 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1549 # -------------------------------------------------------
1550 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1551 # the include files in INCLUDES and setting the cache variable VAR
1552 # accordingly.
1553 ac_fn_c_check_header_mongrel ()
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 if eval \${$3+:} false; then :
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1558 $as_echo_n "checking for $2... " >&6; }
1559 if eval \${$3+:} false; then :
1560 $as_echo_n "(cached) " >&6
1562 eval ac_res=\$$3
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564 $as_echo "$ac_res" >&6; }
1565 else
1566 # Is the header compilable?
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1568 $as_echo_n "checking $2 usability... " >&6; }
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1572 #include <$2>
1573 _ACEOF
1574 if ac_fn_c_try_compile "$LINENO"; then :
1575 ac_header_compiler=yes
1576 else
1577 ac_header_compiler=no
1579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1581 $as_echo "$ac_header_compiler" >&6; }
1583 # Is the header present?
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1585 $as_echo_n "checking $2 presence... " >&6; }
1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1587 /* end confdefs.h. */
1588 #include <$2>
1589 _ACEOF
1590 if ac_fn_c_try_cpp "$LINENO"; then :
1591 ac_header_preproc=yes
1592 else
1593 ac_header_preproc=no
1595 rm -f conftest.err conftest.i conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1597 $as_echo "$ac_header_preproc" >&6; }
1599 # So? What about this header?
1600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1601 yes:no: )
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1603 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1605 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1607 no:yes:* )
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1609 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1611 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1613 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1615 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1617 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1619 esac
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 $as_echo_n "checking for $2... " >&6; }
1622 if eval \${$3+:} false; then :
1623 $as_echo_n "(cached) " >&6
1624 else
1625 eval "$3=\$ac_header_compiler"
1627 eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 $as_echo "$ac_res" >&6; }
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 } # ac_fn_c_check_header_mongrel
1635 # ac_fn_c_try_run LINENO
1636 # ----------------------
1637 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1638 # that executables *can* be run.
1639 ac_fn_c_try_run ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 if { { ac_try="$ac_link"
1643 case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646 esac
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_link") 2>&5
1650 ac_status=$?
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1653 { { case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_try") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; }; }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: program exited with status $ac_status" >&5
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1669 ac_retval=$ac_status
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1675 } # ac_fn_c_try_run
1677 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1678 # -------------------------------------------------------
1679 # Tests whether HEADER exists and can be compiled using the include files in
1680 # INCLUDES, setting the cache variable VAR accordingly.
1681 ac_fn_c_check_header_compile ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if eval \${$3+:} false; then :
1687 $as_echo_n "(cached) " >&6
1688 else
1689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690 /* end confdefs.h. */
1692 #include <$2>
1693 _ACEOF
1694 if ac_fn_c_try_compile "$LINENO"; then :
1695 eval "$3=yes"
1696 else
1697 eval "$3=no"
1699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 eval ac_res=\$$3
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703 $as_echo "$ac_res" >&6; }
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 } # ac_fn_c_check_header_compile
1708 # ac_fn_c_try_link LINENO
1709 # -----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded.
1711 ac_fn_c_try_link ()
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 rm -f conftest.$ac_objext conftest$ac_exeext
1715 if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && {
1731 test -z "$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 } && test -s conftest$ac_exeext && {
1734 test "$cross_compiling" = yes ||
1735 test -x conftest$ac_exeext
1736 }; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=1
1744 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1745 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1746 # interfere with the next link command; also delete a directory that is
1747 # left behind by Apple's compiler. We do this before executing the actions.
1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_c_try_link
1753 cat >config.log <<_ACEOF
1754 This file contains any messages produced by compilers while
1755 running configure, to aid debugging if configure makes a mistake.
1757 It was created by $as_me, which was
1758 generated by GNU Autoconf 2.69. Invocation command line was
1760 $ $0 $@
1762 _ACEOF
1763 exec 5>>config.log
1765 cat <<_ASUNAME
1766 ## --------- ##
1767 ## Platform. ##
1768 ## --------- ##
1770 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1771 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1772 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1773 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1774 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1776 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1777 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1779 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1780 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1781 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1782 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1783 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1784 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1785 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1787 _ASUNAME
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 $as_echo "PATH: $as_dir"
1795 done
1796 IFS=$as_save_IFS
1798 } >&5
1800 cat >&5 <<_ACEOF
1803 ## ----------- ##
1804 ## Core tests. ##
1805 ## ----------- ##
1807 _ACEOF
1810 # Keep a trace of the command line.
1811 # Strip out --no-create and --no-recursion so they do not pile up.
1812 # Strip out --silent because we don't want to record it for future runs.
1813 # Also quote any args containing shell meta-characters.
1814 # Make two passes to allow for proper duplicate-argument suppression.
1815 ac_configure_args=
1816 ac_configure_args0=
1817 ac_configure_args1=
1818 ac_must_keep_next=false
1819 for ac_pass in 1 2
1821 for ac_arg
1823 case $ac_arg in
1824 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1826 | -silent | --silent | --silen | --sile | --sil)
1827 continue ;;
1828 *\'*)
1829 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1830 esac
1831 case $ac_pass in
1832 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1834 as_fn_append ac_configure_args1 " '$ac_arg'"
1835 if test $ac_must_keep_next = true; then
1836 ac_must_keep_next=false # Got value, back to normal.
1837 else
1838 case $ac_arg in
1839 *=* | --config-cache | -C | -disable-* | --disable-* \
1840 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1841 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1842 | -with-* | --with-* | -without-* | --without-* | --x)
1843 case "$ac_configure_args0 " in
1844 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1845 esac
1847 -* ) ac_must_keep_next=true ;;
1848 esac
1850 as_fn_append ac_configure_args " '$ac_arg'"
1852 esac
1853 done
1854 done
1855 { ac_configure_args0=; unset ac_configure_args0;}
1856 { ac_configure_args1=; unset ac_configure_args1;}
1858 # When interrupted or exit'd, cleanup temporary files, and complete
1859 # config.log. We remove comments because anyway the quotes in there
1860 # would cause problems or look ugly.
1861 # WARNING: Use '\'' to represent an apostrophe within the trap.
1862 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1863 trap 'exit_status=$?
1864 # Save into config.log some information that might help in debugging.
1866 echo
1868 $as_echo "## ---------------- ##
1869 ## Cache variables. ##
1870 ## ---------------- ##"
1871 echo
1872 # The following way of writing the cache mishandles newlines in values,
1874 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1875 eval ac_val=\$$ac_var
1876 case $ac_val in #(
1877 *${as_nl}*)
1878 case $ac_var in #(
1879 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1880 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1881 esac
1882 case $ac_var in #(
1883 _ | IFS | as_nl) ;; #(
1884 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1885 *) { eval $ac_var=; unset $ac_var;} ;;
1886 esac ;;
1887 esac
1888 done
1889 (set) 2>&1 |
1890 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1891 *${as_nl}ac_space=\ *)
1892 sed -n \
1893 "s/'\''/'\''\\\\'\'''\''/g;
1894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1895 ;; #(
1897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1899 esac |
1900 sort
1902 echo
1904 $as_echo "## ----------------- ##
1905 ## Output variables. ##
1906 ## ----------------- ##"
1907 echo
1908 for ac_var in $ac_subst_vars
1910 eval ac_val=\$$ac_var
1911 case $ac_val in
1912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1913 esac
1914 $as_echo "$ac_var='\''$ac_val'\''"
1915 done | sort
1916 echo
1918 if test -n "$ac_subst_files"; then
1919 $as_echo "## ------------------- ##
1920 ## File substitutions. ##
1921 ## ------------------- ##"
1922 echo
1923 for ac_var in $ac_subst_files
1925 eval ac_val=\$$ac_var
1926 case $ac_val in
1927 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928 esac
1929 $as_echo "$ac_var='\''$ac_val'\''"
1930 done | sort
1931 echo
1934 if test -s confdefs.h; then
1935 $as_echo "## ----------- ##
1936 ## confdefs.h. ##
1937 ## ----------- ##"
1938 echo
1939 cat confdefs.h
1940 echo
1942 test "$ac_signal" != 0 &&
1943 $as_echo "$as_me: caught signal $ac_signal"
1944 $as_echo "$as_me: exit $exit_status"
1945 } >&5
1946 rm -f core *.core core.conftest.* &&
1947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1948 exit $exit_status
1950 for ac_signal in 1 2 13 15; do
1951 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1952 done
1953 ac_signal=0
1955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1956 rm -f -r conftest* confdefs.h
1958 $as_echo "/* confdefs.h */" > confdefs.h
1960 # Predefined preprocessor variables.
1962 cat >>confdefs.h <<_ACEOF
1963 #define PACKAGE_NAME "$PACKAGE_NAME"
1964 _ACEOF
1966 cat >>confdefs.h <<_ACEOF
1967 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1968 _ACEOF
1970 cat >>confdefs.h <<_ACEOF
1971 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1972 _ACEOF
1974 cat >>confdefs.h <<_ACEOF
1975 #define PACKAGE_STRING "$PACKAGE_STRING"
1976 _ACEOF
1978 cat >>confdefs.h <<_ACEOF
1979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1980 _ACEOF
1982 cat >>confdefs.h <<_ACEOF
1983 #define PACKAGE_URL "$PACKAGE_URL"
1984 _ACEOF
1987 # Let the site file select an alternate cache file if it wants to.
1988 # Prefer an explicitly selected file to automatically selected ones.
1989 ac_site_file1=NONE
1990 ac_site_file2=NONE
1991 if test -n "$CONFIG_SITE"; then
1992 # We do not want a PATH search for config.site.
1993 case $CONFIG_SITE in #((
1994 -*) ac_site_file1=./$CONFIG_SITE;;
1995 */*) ac_site_file1=$CONFIG_SITE;;
1996 *) ac_site_file1=./$CONFIG_SITE;;
1997 esac
1998 elif test "x$prefix" != xNONE; then
1999 ac_site_file1=$prefix/share/config.site
2000 ac_site_file2=$prefix/etc/config.site
2001 else
2002 ac_site_file1=$ac_default_prefix/share/config.site
2003 ac_site_file2=$ac_default_prefix/etc/config.site
2005 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2007 test "x$ac_site_file" = xNONE && continue
2008 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2010 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2011 sed 's/^/| /' "$ac_site_file" >&5
2012 . "$ac_site_file" \
2013 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2015 as_fn_error $? "failed to load site script $ac_site_file
2016 See \`config.log' for more details" "$LINENO" 5; }
2018 done
2020 if test -r "$cache_file"; then
2021 # Some versions of bash will fail to source /dev/null (special files
2022 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2023 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2025 $as_echo "$as_me: loading cache $cache_file" >&6;}
2026 case $cache_file in
2027 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2028 *) . "./$cache_file";;
2029 esac
2031 else
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2033 $as_echo "$as_me: creating cache $cache_file" >&6;}
2034 >$cache_file
2037 # Check that the precious variables saved in the cache have kept the same
2038 # value.
2039 ac_cache_corrupted=false
2040 for ac_var in $ac_precious_vars; do
2041 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2042 eval ac_new_set=\$ac_env_${ac_var}_set
2043 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2044 eval ac_new_val=\$ac_env_${ac_var}_value
2045 case $ac_old_set,$ac_new_set in
2046 set,)
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2048 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2049 ac_cache_corrupted=: ;;
2050 ,set)
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2052 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2053 ac_cache_corrupted=: ;;
2054 ,);;
2056 if test "x$ac_old_val" != "x$ac_new_val"; then
2057 # differences in whitespace do not lead to failure.
2058 ac_old_val_w=`echo x $ac_old_val`
2059 ac_new_val_w=`echo x $ac_new_val`
2060 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2062 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2063 ac_cache_corrupted=:
2064 else
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2066 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2067 eval $ac_var=\$ac_old_val
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2070 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2072 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2073 fi;;
2074 esac
2075 # Pass precious variables to config.status.
2076 if test "$ac_new_set" = set; then
2077 case $ac_new_val in
2078 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2079 *) ac_arg=$ac_var=$ac_new_val ;;
2080 esac
2081 case " $ac_configure_args " in
2082 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2083 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2084 esac
2086 done
2087 if $ac_cache_corrupted; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2091 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2092 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2094 ## -------------------- ##
2095 ## Main body of script. ##
2096 ## -------------------- ##
2098 ac_ext=c
2099 ac_cpp='$CPP $CPPFLAGS'
2100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108 # Determine the noncanonical names used for directories.
2109 ac_aux_dir=
2110 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2111 if test -f "$ac_dir/install-sh"; then
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/install-sh -c"
2114 break
2115 elif test -f "$ac_dir/install.sh"; then
2116 ac_aux_dir=$ac_dir
2117 ac_install_sh="$ac_aux_dir/install.sh -c"
2118 break
2119 elif test -f "$ac_dir/shtool"; then
2120 ac_aux_dir=$ac_dir
2121 ac_install_sh="$ac_aux_dir/shtool install -c"
2122 break
2124 done
2125 if test -z "$ac_aux_dir"; then
2126 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2129 # These three variables are undocumented and unsupported,
2130 # and are intended to be withdrawn in a future Autoconf release.
2131 # They can cause serious problems if a builder's source tree is in a directory
2132 # whose full name contains unusual characters.
2133 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2134 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2135 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2138 # Make sure we can run config.sub.
2139 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2140 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2143 $as_echo_n "checking build system type... " >&6; }
2144 if ${ac_cv_build+:} false; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 ac_build_alias=$build_alias
2148 test "x$ac_build_alias" = x &&
2149 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2150 test "x$ac_build_alias" = x &&
2151 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2152 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2153 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2157 $as_echo "$ac_cv_build" >&6; }
2158 case $ac_cv_build in
2159 *-*-*) ;;
2160 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2161 esac
2162 build=$ac_cv_build
2163 ac_save_IFS=$IFS; IFS='-'
2164 set x $ac_cv_build
2165 shift
2166 build_cpu=$1
2167 build_vendor=$2
2168 shift; shift
2169 # Remember, the first character of IFS is used to create $*,
2170 # except with old shells:
2171 build_os=$*
2172 IFS=$ac_save_IFS
2173 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2176 case ${build_alias} in
2177 "") build_noncanonical=${build} ;;
2178 *) build_noncanonical=${build_alias} ;;
2179 esac
2181 case ${host_alias} in
2182 "") host_noncanonical=${build_noncanonical} ;;
2183 *) host_noncanonical=${host_alias} ;;
2184 esac
2186 case ${target_alias} in
2187 "") target_noncanonical=${host_noncanonical} ;;
2188 *) target_noncanonical=${target_alias} ;;
2189 esac
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2195 $as_echo_n "checking host system type... " >&6; }
2196 if ${ac_cv_host+:} false; then :
2197 $as_echo_n "(cached) " >&6
2198 else
2199 if test "x$host_alias" = x; then
2200 ac_cv_host=$ac_cv_build
2201 else
2202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2208 $as_echo "$ac_cv_host" >&6; }
2209 case $ac_cv_host in
2210 *-*-*) ;;
2211 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2212 esac
2213 host=$ac_cv_host
2214 ac_save_IFS=$IFS; IFS='-'
2215 set x $ac_cv_host
2216 shift
2217 host_cpu=$1
2218 host_vendor=$2
2219 shift; shift
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2222 host_os=$*
2223 IFS=$ac_save_IFS
2224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2228 $as_echo_n "checking target system type... " >&6; }
2229 if ${ac_cv_target+:} false; then :
2230 $as_echo_n "(cached) " >&6
2231 else
2232 if test "x$target_alias" = x; then
2233 ac_cv_target=$ac_cv_host
2234 else
2235 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2236 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2241 $as_echo "$ac_cv_target" >&6; }
2242 case $ac_cv_target in
2243 *-*-*) ;;
2244 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2245 esac
2246 target=$ac_cv_target
2247 ac_save_IFS=$IFS; IFS='-'
2248 set x $ac_cv_target
2249 shift
2250 target_cpu=$1
2251 target_vendor=$2
2252 shift; shift
2253 # Remember, the first character of IFS is used to create $*,
2254 # except with old shells:
2255 target_os=$*
2256 IFS=$ac_save_IFS
2257 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2260 # The aliases save the names the user supplied, while $host etc.
2261 # will get canonicalized.
2262 test -n "$target_alias" &&
2263 test "$program_prefix$program_suffix$program_transform_name" = \
2264 NONENONEs,x,x, &&
2265 program_prefix=${target_alias}-
2267 # Find a good install program. We prefer a C program (faster),
2268 # so one script is as good as another. But avoid the broken or
2269 # incompatible versions:
2270 # SysV /etc/install, /usr/sbin/install
2271 # SunOS /usr/etc/install
2272 # IRIX /sbin/install
2273 # AIX /bin/install
2274 # AmigaOS /C/install, which installs bootblocks on floppy discs
2275 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2276 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2277 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2278 # OS/2's system install, which has a completely different semantic
2279 # ./install, which can be erroneously created by make from ./install.sh.
2280 # Reject install programs that cannot install multiple files.
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2282 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2283 if test -z "$INSTALL"; then
2284 if ${ac_cv_path_install+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 # Account for people who put trailing slashes in PATH elements.
2293 case $as_dir/ in #((
2294 ./ | .// | /[cC]/* | \
2295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2296 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2297 /usr/ucb/* ) ;;
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2301 # by default.
2302 for ac_prog in ginstall scoinst install; do
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2305 if test $ac_prog = install &&
2306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2307 # AIX install. It has an incompatible calling convention.
2309 elif test $ac_prog = install &&
2310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # program-specific install script used by HP pwplus--don't use.
2313 else
2314 rm -rf conftest.one conftest.two conftest.dir
2315 echo one > conftest.one
2316 echo two > conftest.two
2317 mkdir conftest.dir
2318 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2319 test -s conftest.one && test -s conftest.two &&
2320 test -s conftest.dir/conftest.one &&
2321 test -s conftest.dir/conftest.two
2322 then
2323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2324 break 3
2328 done
2329 done
2331 esac
2333 done
2334 IFS=$as_save_IFS
2336 rm -rf conftest.one conftest.two conftest.dir
2339 if test "${ac_cv_path_install+set}" = set; then
2340 INSTALL=$ac_cv_path_install
2341 else
2342 # As a last resort, use the slow shell script. Don't cache a
2343 # value for INSTALL within a source directory, because that will
2344 # break other packages using the cache if that directory is
2345 # removed, or if the value is a relative name.
2346 INSTALL=$ac_install_sh
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2350 $as_echo "$INSTALL" >&6; }
2352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353 # It thinks the first close brace ends the variable substitution.
2354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2363 ac_ext=cpp
2364 ac_cpp='$CXXCPP $CPPFLAGS'
2365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2368 if test -z "$CXX"; then
2369 if test -n "$CCC"; then
2370 CXX=$CCC
2371 else
2372 if test -n "$ac_tool_prefix"; then
2373 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2375 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378 $as_echo_n "checking for $ac_word... " >&6; }
2379 if ${ac_cv_prog_CXX+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 if test -n "$CXX"; then
2383 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2392 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2394 break 2
2396 done
2397 done
2398 IFS=$as_save_IFS
2402 CXX=$ac_cv_prog_CXX
2403 if test -n "$CXX"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2405 $as_echo "$CXX" >&6; }
2406 else
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408 $as_echo "no" >&6; }
2412 test -n "$CXX" && break
2413 done
2415 if test -z "$CXX"; then
2416 ac_ct_CXX=$CXX
2417 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2419 # Extract the first word of "$ac_prog", so it can be a program name with args.
2420 set dummy $ac_prog; ac_word=$2
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2422 $as_echo_n "checking for $ac_word... " >&6; }
2423 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2424 $as_echo_n "(cached) " >&6
2425 else
2426 if test -n "$ac_ct_CXX"; then
2427 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2432 IFS=$as_save_IFS
2433 test -z "$as_dir" && as_dir=.
2434 for ac_exec_ext in '' $ac_executable_extensions; do
2435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436 ac_cv_prog_ac_ct_CXX="$ac_prog"
2437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 break 2
2440 done
2441 done
2442 IFS=$as_save_IFS
2446 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2447 if test -n "$ac_ct_CXX"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2449 $as_echo "$ac_ct_CXX" >&6; }
2450 else
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2456 test -n "$ac_ct_CXX" && break
2457 done
2459 if test "x$ac_ct_CXX" = x; then
2460 CXX="g++"
2461 else
2462 case $cross_compiling:$ac_tool_warned in
2463 yes:)
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2466 ac_tool_warned=yes ;;
2467 esac
2468 CXX=$ac_ct_CXX
2474 # Provide some information about the compiler.
2475 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2476 set X $ac_compile
2477 ac_compiler=$2
2478 for ac_option in --version -v -V -qversion; do
2479 { { ac_try="$ac_compiler $ac_option >&5"
2480 case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483 esac
2484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2485 $as_echo "$ac_try_echo"; } >&5
2486 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2487 ac_status=$?
2488 if test -s conftest.err; then
2489 sed '10a\
2490 ... rest of stderr output deleted ...
2491 10q' conftest.err >conftest.er1
2492 cat conftest.er1 >&5
2494 rm -f conftest.er1 conftest.err
2495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; }
2497 done
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2503 main ()
2507 return 0;
2509 _ACEOF
2510 ac_clean_files_save=$ac_clean_files
2511 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2512 # Try to create an executable without -o first, disregard a.out.
2513 # It will help us diagnose broken compilers, and finding out an intuition
2514 # of exeext.
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2516 $as_echo_n "checking whether the C++ compiler works... " >&6; }
2517 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2519 # The possible output files:
2520 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2522 ac_rmfiles=
2523 for ac_file in $ac_files
2525 case $ac_file in
2526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2527 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2528 esac
2529 done
2530 rm -f $ac_rmfiles
2532 if { { ac_try="$ac_link_default"
2533 case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2536 esac
2537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2538 $as_echo "$ac_try_echo"; } >&5
2539 (eval "$ac_link_default") 2>&5
2540 ac_status=$?
2541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2542 test $ac_status = 0; }; then :
2543 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2544 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2545 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2546 # so that the user can short-circuit this test for compilers unknown to
2547 # Autoconf.
2548 for ac_file in $ac_files ''
2550 test -f "$ac_file" || continue
2551 case $ac_file in
2552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2554 [ab].out )
2555 # We found the default executable, but exeext='' is most
2556 # certainly right.
2557 break;;
2558 *.* )
2559 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2560 then :; else
2561 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2563 # We set ac_cv_exeext here because the later test for it is not
2564 # safe: cross compilers may not add the suffix if given an `-o'
2565 # argument, so we may need to know it at that point already.
2566 # Even if this section looks crufty: it has the advantage of
2567 # actually working.
2568 break;;
2570 break;;
2571 esac
2572 done
2573 test "$ac_cv_exeext" = no && ac_cv_exeext=
2575 else
2576 ac_file=''
2578 if test -z "$ac_file"; then :
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2581 $as_echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 as_fn_error 77 "C++ compiler cannot create executables
2587 See \`config.log' for more details" "$LINENO" 5; }
2588 else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590 $as_echo "yes" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2593 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2595 $as_echo "$ac_file" >&6; }
2596 ac_exeext=$ac_cv_exeext
2598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2599 ac_clean_files=$ac_clean_files_save
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2601 $as_echo_n "checking for suffix of executables... " >&6; }
2602 if { { ac_try="$ac_link"
2603 case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606 esac
2607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2608 $as_echo "$ac_try_echo"; } >&5
2609 (eval "$ac_link") 2>&5
2610 ac_status=$?
2611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2612 test $ac_status = 0; }; then :
2613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2614 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2615 # work properly (i.e., refer to `conftest.exe'), while it won't with
2616 # `rm'.
2617 for ac_file in conftest.exe conftest conftest.*; do
2618 test -f "$ac_file" || continue
2619 case $ac_file in
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2622 break;;
2623 * ) break;;
2624 esac
2625 done
2626 else
2627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2630 See \`config.log' for more details" "$LINENO" 5; }
2632 rm -f conftest conftest$ac_cv_exeext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2634 $as_echo "$ac_cv_exeext" >&6; }
2636 rm -f conftest.$ac_ext
2637 EXEEXT=$ac_cv_exeext
2638 ac_exeext=$EXEEXT
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2641 #include <stdio.h>
2643 main ()
2645 FILE *f = fopen ("conftest.out", "w");
2646 return ferror (f) || fclose (f) != 0;
2649 return 0;
2651 _ACEOF
2652 ac_clean_files="$ac_clean_files conftest.out"
2653 # Check that the compiler produces executables we can run. If not, either
2654 # the compiler is broken, or we cross compile.
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2656 $as_echo_n "checking whether we are cross compiling... " >&6; }
2657 if test "$cross_compiling" != yes; then
2658 { { ac_try="$ac_link"
2659 case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662 esac
2663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664 $as_echo "$ac_try_echo"; } >&5
2665 (eval "$ac_link") 2>&5
2666 ac_status=$?
2667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2668 test $ac_status = 0; }
2669 if { ac_try='./conftest$ac_cv_exeext'
2670 { { case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676 (eval "$ac_try") 2>&5
2677 ac_status=$?
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679 test $ac_status = 0; }; }; then
2680 cross_compiling=no
2681 else
2682 if test "$cross_compiling" = maybe; then
2683 cross_compiling=yes
2684 else
2685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2687 as_fn_error $? "cannot run C++ compiled programs.
2688 If you meant to cross compile, use \`--host'.
2689 See \`config.log' for more details" "$LINENO" 5; }
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2694 $as_echo "$cross_compiling" >&6; }
2696 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2697 ac_clean_files=$ac_clean_files_save
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2699 $as_echo_n "checking for suffix of object files... " >&6; }
2700 if ${ac_cv_objext+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702 else
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2707 main ()
2711 return 0;
2713 _ACEOF
2714 rm -f conftest.o conftest.obj
2715 if { { ac_try="$ac_compile"
2716 case "(($ac_try" in
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2719 esac
2720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721 $as_echo "$ac_try_echo"; } >&5
2722 (eval "$ac_compile") 2>&5
2723 ac_status=$?
2724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2725 test $ac_status = 0; }; then :
2726 for ac_file in conftest.o conftest.obj conftest.*; do
2727 test -f "$ac_file" || continue;
2728 case $ac_file in
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2730 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2731 break;;
2732 esac
2733 done
2734 else
2735 $as_echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 as_fn_error $? "cannot compute suffix of object files: cannot compile
2741 See \`config.log' for more details" "$LINENO" 5; }
2743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2746 $as_echo "$ac_cv_objext" >&6; }
2747 OBJEXT=$ac_cv_objext
2748 ac_objext=$OBJEXT
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2750 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2751 if ${ac_cv_cxx_compiler_gnu+:} false; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2758 main ()
2760 #ifndef __GNUC__
2761 choke me
2762 #endif
2765 return 0;
2767 _ACEOF
2768 if ac_fn_cxx_try_compile "$LINENO"; then :
2769 ac_compiler_gnu=yes
2770 else
2771 ac_compiler_gnu=no
2773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2778 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2779 if test $ac_compiler_gnu = yes; then
2780 GXX=yes
2781 else
2782 GXX=
2784 ac_test_CXXFLAGS=${CXXFLAGS+set}
2785 ac_save_CXXFLAGS=$CXXFLAGS
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
2787 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
2788 if ${ac_cv_prog_cxx_g+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2792 ac_cxx_werror_flag=yes
2793 ac_cv_prog_cxx_g=no
2794 CXXFLAGS="-g"
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2799 main ()
2803 return 0;
2805 _ACEOF
2806 if ac_fn_cxx_try_compile "$LINENO"; then :
2807 ac_cv_prog_cxx_g=yes
2808 else
2809 CXXFLAGS=""
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2814 main ()
2818 return 0;
2820 _ACEOF
2821 if ac_fn_cxx_try_compile "$LINENO"; then :
2823 else
2824 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2825 CXXFLAGS="-g"
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h. */
2830 main ()
2834 return 0;
2836 _ACEOF
2837 if ac_fn_cxx_try_compile "$LINENO"; then :
2838 ac_cv_prog_cxx_g=yes
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2848 $as_echo "$ac_cv_prog_cxx_g" >&6; }
2849 if test "$ac_test_CXXFLAGS" = set; then
2850 CXXFLAGS=$ac_save_CXXFLAGS
2851 elif test $ac_cv_prog_cxx_g = yes; then
2852 if test "$GXX" = yes; then
2853 CXXFLAGS="-g -O2"
2854 else
2855 CXXFLAGS="-g"
2857 else
2858 if test "$GXX" = yes; then
2859 CXXFLAGS="-O2"
2860 else
2861 CXXFLAGS=
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
2871 for ac_prog in autoconf
2873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2874 set dummy $ac_prog; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_AUTOCONF+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$AUTOCONF"; then
2881 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_AUTOCONF="$ac_prog"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2894 done
2895 done
2896 IFS=$as_save_IFS
2900 AUTOCONF=$ac_cv_prog_AUTOCONF
2901 if test -n "$AUTOCONF"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
2903 $as_echo "$AUTOCONF" >&6; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2910 test -n "$AUTOCONF" && break
2911 done
2912 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
2914 for ac_prog in autoheader
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_AUTOHEADER+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922 else
2923 if test -n "$AUTOHEADER"; then
2924 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_AUTOHEADER="$ac_prog"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2937 done
2938 done
2939 IFS=$as_save_IFS
2943 AUTOHEADER=$ac_cv_prog_AUTOHEADER
2944 if test -n "$AUTOHEADER"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
2946 $as_echo "$AUTOHEADER" >&6; }
2947 else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2953 test -n "$AUTOHEADER" && break
2954 done
2955 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build C++ tools" >&5
2959 $as_echo_n "checking whether to build C++ tools... " >&6; }
2960 # Check whether --enable-c++-tools was given.
2961 if test "${enable_c___tools+set}" = set; then :
2962 enableval=$enable_c___tools; cxx_aux_tools=$enableval
2963 else
2964 cxx_aux_tools=yes
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx_aux_tools" >&5
2969 $as_echo "$cxx_aux_tools" >&6; }
2970 CXX_AUX_TOOLS="$cxx_aux_tools"
2973 # Check whether --enable-maintainer-mode was given.
2974 if test "${enable_maintainer_mode+set}" = set; then :
2975 enableval=$enable_maintainer_mode;
2976 else
2977 enable_maintainer_mode=no
2980 case "$enable_maintainer_mode" in
2981 yes) maintainer_mode=yes ;;
2982 no) maintainer_mode=no ;;
2983 *) as_fn_error $? "unknown maintainer mode $enable_maintainer_mode" "$LINENO" 5 ;;
2984 esac
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maintainer-mode" >&5
2986 $as_echo_n "checking maintainer-mode... " >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
2988 $as_echo "$maintainer_mode" >&6; }
2989 test "$maintainer_mode" = yes && MAINTAINER=yes
2992 # Check whether --enable-default-pie was given.
2993 # Check whether --enable-default-pie was given.
2994 if test "${enable_default_pie+set}" = set; then :
2995 enableval=$enable_default_pie; PIEFLAG=-fPIE
2996 else
2997 PIEFLAG=
3002 # Check if O_CLOEXEC is defined by fcntl
3003 ac_ext=c
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3010 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012 $as_echo_n "checking for $ac_word... " >&6; }
3013 if ${ac_cv_prog_CC+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015 else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018 else
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3030 done
3031 done
3032 IFS=$as_save_IFS
3036 CC=$ac_cv_prog_CC
3037 if test -n "$CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039 $as_echo "$CC" >&6; }
3040 else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042 $as_echo "no" >&6; }
3047 if test -z "$ac_cv_prog_CC"; then
3048 ac_ct_CC=$CC
3049 # Extract the first word of "gcc", so it can be a program name with args.
3050 set dummy gcc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 if test -n "$ac_ct_CC"; then
3057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3058 else
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 for as_dir in $PATH
3062 IFS=$as_save_IFS
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_ac_ct_CC="gcc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 break 2
3070 done
3071 done
3072 IFS=$as_save_IFS
3076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3077 if test -n "$ac_ct_CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3079 $as_echo "$ac_ct_CC" >&6; }
3080 else
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3085 if test "x$ac_ct_CC" = x; then
3086 CC=""
3087 else
3088 case $cross_compiling:$ac_tool_warned in
3089 yes:)
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3092 ac_tool_warned=yes ;;
3093 esac
3094 CC=$ac_ct_CC
3096 else
3097 CC="$ac_cv_prog_CC"
3100 if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}cc; ac_word=$2
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; }
3106 if ${ac_cv_prog_CC+:} false; then :
3107 $as_echo_n "(cached) " >&6
3108 else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3119 ac_cv_prog_CC="${ac_tool_prefix}cc"
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2
3123 done
3124 done
3125 IFS=$as_save_IFS
3129 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3133 else
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3141 if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_CC+:} false; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else
3152 ac_prog_rejected=no
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes
3162 continue
3164 ac_cv_prog_CC="cc"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3168 done
3169 done
3170 IFS=$as_save_IFS
3172 if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it.
3174 set dummy $ac_cv_prog_CC
3175 shift
3176 if test $# != 0; then
3177 # We chose a different compiler from the bogus one.
3178 # However, it has the same basename, so the bogon will be chosen
3179 # first if we set CC to just the basename; use the full file name.
3180 shift
3181 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3186 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3197 if test -z "$CC"; then
3198 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl.exe
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3222 done
3223 done
3224 IFS=$as_save_IFS
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$CC" && break
3239 done
3241 if test -z "$CC"; then
3242 ac_ct_CC=$CC
3243 for ac_prog in cl.exe
3245 # Extract the first word of "$ac_prog", so it can be a program name with args.
3246 set dummy $ac_prog; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_ac_ct_CC="$ac_prog"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3266 done
3267 done
3268 IFS=$as_save_IFS
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3282 test -n "$ac_ct_CC" && break
3283 done
3285 if test "x$ac_ct_CC" = x; then
3286 CC=""
3287 else
3288 case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 ac_tool_warned=yes ;;
3293 esac
3294 CC=$ac_ct_CC
3301 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "no acceptable C compiler found in \$PATH
3304 See \`config.log' for more details" "$LINENO" 5; }
3306 # Provide some information about the compiler.
3307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3308 set X $ac_compile
3309 ac_compiler=$2
3310 for ac_option in --version -v -V -qversion; do
3311 { { ac_try="$ac_compiler $ac_option >&5"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3319 ac_status=$?
3320 if test -s conftest.err; then
3321 sed '10a\
3322 ... rest of stderr output deleted ...
3323 10q' conftest.err >conftest.er1
3324 cat conftest.er1 >&5
3326 rm -f conftest.er1 conftest.err
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3329 done
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3332 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3333 if ${ac_cv_c_compiler_gnu+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3340 main ()
3342 #ifndef __GNUC__
3343 choke me
3344 #endif
3347 return 0;
3349 _ACEOF
3350 if ac_fn_c_try_compile "$LINENO"; then :
3351 ac_compiler_gnu=yes
3352 else
3353 ac_compiler_gnu=no
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3360 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3361 if test $ac_compiler_gnu = yes; then
3362 GCC=yes
3363 else
3364 GCC=
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3369 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3370 if ${ac_cv_prog_cc_g+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 ac_save_c_werror_flag=$ac_c_werror_flag
3374 ac_c_werror_flag=yes
3375 ac_cv_prog_cc_g=no
3376 CFLAGS="-g"
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3381 main ()
3385 return 0;
3387 _ACEOF
3388 if ac_fn_c_try_compile "$LINENO"; then :
3389 ac_cv_prog_cc_g=yes
3390 else
3391 CFLAGS=""
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3396 main ()
3400 return 0;
3402 _ACEOF
3403 if ac_fn_c_try_compile "$LINENO"; then :
3405 else
3406 ac_c_werror_flag=$ac_save_c_werror_flag
3407 CFLAGS="-g"
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3412 main ()
3416 return 0;
3418 _ACEOF
3419 if ac_fn_c_try_compile "$LINENO"; then :
3420 ac_cv_prog_cc_g=yes
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_c_werror_flag=$ac_save_c_werror_flag
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3430 $as_echo "$ac_cv_prog_cc_g" >&6; }
3431 if test "$ac_test_CFLAGS" = set; then
3432 CFLAGS=$ac_save_CFLAGS
3433 elif test $ac_cv_prog_cc_g = yes; then
3434 if test "$GCC" = yes; then
3435 CFLAGS="-g -O2"
3436 else
3437 CFLAGS="-g"
3439 else
3440 if test "$GCC" = yes; then
3441 CFLAGS="-O2"
3442 else
3443 CFLAGS=
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3447 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3448 if ${ac_cv_prog_cc_c89+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 ac_cv_prog_cc_c89=no
3452 ac_save_CC=$CC
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455 #include <stdarg.h>
3456 #include <stdio.h>
3457 struct stat;
3458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3459 struct buf { int x; };
3460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461 static char *e (p, i)
3462 char **p;
3463 int i;
3465 return p[i];
3467 static char *f (char * (*g) (char **, int), char **p, ...)
3469 char *s;
3470 va_list v;
3471 va_start (v,p);
3472 s = g (p, va_arg (v,int));
3473 va_end (v);
3474 return s;
3477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3478 function prototypes and stuff, but not '\xHH' hex character constants.
3479 These don't provoke an error unfortunately, instead are silently treated
3480 as 'x'. The following induces an error, until -std is added to get
3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3482 array size at least. It's necessary to write '\x00'==0 to get something
3483 that's true only with -std. */
3484 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3486 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487 inside strings and character constants. */
3488 #define FOO(x) 'x'
3489 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3491 int test (int i, double x);
3492 struct s1 {int (*f) (int a);};
3493 struct s2 {int (*f) (double a);};
3494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495 int argc;
3496 char **argv;
3498 main ()
3500 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 return 0;
3504 _ACEOF
3505 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3508 CC="$ac_save_CC $ac_arg"
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_cv_prog_cc_c89=$ac_arg
3512 rm -f core conftest.err conftest.$ac_objext
3513 test "x$ac_cv_prog_cc_c89" != "xno" && break
3514 done
3515 rm -f conftest.$ac_ext
3516 CC=$ac_save_CC
3519 # AC_CACHE_VAL
3520 case "x$ac_cv_prog_cc_c89" in
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3523 $as_echo "none needed" >&6; } ;;
3524 xno)
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3526 $as_echo "unsupported" >&6; } ;;
3528 CC="$CC $ac_cv_prog_cc_c89"
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3530 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3531 esac
3532 if test "x$ac_cv_prog_cc_c89" != xno; then :
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
3544 $as_echo_n "checking for O_CLOEXEC... " >&6; }
3545 if ${ac_cv_o_cloexec+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3552 #include <fcntl.h>
3554 main ()
3557 return open ("/dev/null", O_RDONLY | O_CLOEXEC);
3559 return 0;
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_cv_o_cloexec=yes
3564 else
3565 ac_cv_o_cloexec=no
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_o_cloexec" >&5
3570 $as_echo "$ac_cv_o_cloexec" >&6; }
3571 if test $ac_cv_o_cloexec = yes; then
3573 $as_echo "#define HOST_HAS_O_CLOEXEC 1" >>confdefs.h
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3583 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3584 # On Suns, sometimes $CPP names a directory.
3585 if test -n "$CPP" && test -d "$CPP"; then
3586 CPP=
3588 if test -z "$CPP"; then
3589 if ${ac_cv_prog_CPP+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 # Double quotes because CPP needs to be expanded
3593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3595 ac_preproc_ok=false
3596 for ac_c_preproc_warn_flag in '' yes
3598 # Use a header file that comes with gcc, so configuring glibc
3599 # with a fresh cross-compiler works.
3600 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3601 # <limits.h> exists even on freestanding compilers.
3602 # On the NeXT, cc -E runs the code through the compiler's parser,
3603 # not just through cpp. "Syntax error" is here to catch this case.
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 #ifdef __STDC__
3607 # include <limits.h>
3608 #else
3609 # include <assert.h>
3610 #endif
3611 Syntax error
3612 _ACEOF
3613 if ac_fn_c_try_cpp "$LINENO"; then :
3615 else
3616 # Broken: fails on valid input.
3617 continue
3619 rm -f conftest.err conftest.i conftest.$ac_ext
3621 # OK, works on sane cases. Now check whether nonexistent headers
3622 # can be detected and how.
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <ac_nonexistent.h>
3626 _ACEOF
3627 if ac_fn_c_try_cpp "$LINENO"; then :
3628 # Broken: success on invalid input.
3629 continue
3630 else
3631 # Passes both tests.
3632 ac_preproc_ok=:
3633 break
3635 rm -f conftest.err conftest.i conftest.$ac_ext
3637 done
3638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639 rm -f conftest.i conftest.err conftest.$ac_ext
3640 if $ac_preproc_ok; then :
3641 break
3644 done
3645 ac_cv_prog_CPP=$CPP
3648 CPP=$ac_cv_prog_CPP
3649 else
3650 ac_cv_prog_CPP=$CPP
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3653 $as_echo "$CPP" >&6; }
3654 ac_preproc_ok=false
3655 for ac_c_preproc_warn_flag in '' yes
3657 # Use a header file that comes with gcc, so configuring glibc
3658 # with a fresh cross-compiler works.
3659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3660 # <limits.h> exists even on freestanding compilers.
3661 # On the NeXT, cc -E runs the code through the compiler's parser,
3662 # not just through cpp. "Syntax error" is here to catch this case.
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665 #ifdef __STDC__
3666 # include <limits.h>
3667 #else
3668 # include <assert.h>
3669 #endif
3670 Syntax error
3671 _ACEOF
3672 if ac_fn_c_try_cpp "$LINENO"; then :
3674 else
3675 # Broken: fails on valid input.
3676 continue
3678 rm -f conftest.err conftest.i conftest.$ac_ext
3680 # OK, works on sane cases. Now check whether nonexistent headers
3681 # can be detected and how.
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684 #include <ac_nonexistent.h>
3685 _ACEOF
3686 if ac_fn_c_try_cpp "$LINENO"; then :
3687 # Broken: success on invalid input.
3688 continue
3689 else
3690 # Passes both tests.
3691 ac_preproc_ok=:
3692 break
3694 rm -f conftest.err conftest.i conftest.$ac_ext
3696 done
3697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3698 rm -f conftest.i conftest.err conftest.$ac_ext
3699 if $ac_preproc_ok; then :
3701 else
3702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3704 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3705 See \`config.log' for more details" "$LINENO" 5; }
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3716 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3717 if ${ac_cv_path_GREP+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 if test -z "$GREP"; then
3721 ac_path_GREP_found=false
3722 # Loop through the user's path and test for each of PROGNAME-LIST
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_prog in grep ggrep; do
3729 for ac_exec_ext in '' $ac_executable_extensions; do
3730 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3731 as_fn_executable_p "$ac_path_GREP" || continue
3732 # Check for GNU ac_path_GREP and select it if it is found.
3733 # Check for GNU $ac_path_GREP
3734 case `"$ac_path_GREP" --version 2>&1` in
3735 *GNU*)
3736 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3738 ac_count=0
3739 $as_echo_n 0123456789 >"conftest.in"
3740 while :
3742 cat "conftest.in" "conftest.in" >"conftest.tmp"
3743 mv "conftest.tmp" "conftest.in"
3744 cp "conftest.in" "conftest.nl"
3745 $as_echo 'GREP' >> "conftest.nl"
3746 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3748 as_fn_arith $ac_count + 1 && ac_count=$as_val
3749 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3750 # Best one so far, save it but keep looking for a better one
3751 ac_cv_path_GREP="$ac_path_GREP"
3752 ac_path_GREP_max=$ac_count
3754 # 10*(2^10) chars as input seems more than enough
3755 test $ac_count -gt 10 && break
3756 done
3757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3758 esac
3760 $ac_path_GREP_found && break 3
3761 done
3762 done
3763 done
3764 IFS=$as_save_IFS
3765 if test -z "$ac_cv_path_GREP"; then
3766 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3768 else
3769 ac_cv_path_GREP=$GREP
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3774 $as_echo "$ac_cv_path_GREP" >&6; }
3775 GREP="$ac_cv_path_GREP"
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3779 $as_echo_n "checking for egrep... " >&6; }
3780 if ${ac_cv_path_EGREP+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3784 then ac_cv_path_EGREP="$GREP -E"
3785 else
3786 if test -z "$EGREP"; then
3787 ac_path_EGREP_found=false
3788 # Loop through the user's path and test for each of PROGNAME-LIST
3789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_prog in egrep; do
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3797 as_fn_executable_p "$ac_path_EGREP" || continue
3798 # Check for GNU ac_path_EGREP and select it if it is found.
3799 # Check for GNU $ac_path_EGREP
3800 case `"$ac_path_EGREP" --version 2>&1` in
3801 *GNU*)
3802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3804 ac_count=0
3805 $as_echo_n 0123456789 >"conftest.in"
3806 while :
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
3811 $as_echo 'EGREP' >> "conftest.nl"
3812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814 as_fn_arith $ac_count + 1 && ac_count=$as_val
3815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_EGREP="$ac_path_EGREP"
3818 ac_path_EGREP_max=$ac_count
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3822 done
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3824 esac
3826 $ac_path_EGREP_found && break 3
3827 done
3828 done
3829 done
3830 IFS=$as_save_IFS
3831 if test -z "$ac_cv_path_EGREP"; then
3832 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3834 else
3835 ac_cv_path_EGREP=$EGREP
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3841 $as_echo "$ac_cv_path_EGREP" >&6; }
3842 EGREP="$ac_cv_path_EGREP"
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3846 $as_echo_n "checking for ANSI C header files... " >&6; }
3847 if ${ac_cv_header_stdc+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852 #include <stdlib.h>
3853 #include <stdarg.h>
3854 #include <string.h>
3855 #include <float.h>
3858 main ()
3862 return 0;
3864 _ACEOF
3865 if ac_fn_c_try_compile "$LINENO"; then :
3866 ac_cv_header_stdc=yes
3867 else
3868 ac_cv_header_stdc=no
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3872 if test $ac_cv_header_stdc = yes; then
3873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #include <string.h>
3878 _ACEOF
3879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3880 $EGREP "memchr" >/dev/null 2>&1; then :
3882 else
3883 ac_cv_header_stdc=no
3885 rm -f conftest*
3889 if test $ac_cv_header_stdc = yes; then
3890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3893 #include <stdlib.h>
3895 _ACEOF
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897 $EGREP "free" >/dev/null 2>&1; then :
3899 else
3900 ac_cv_header_stdc=no
3902 rm -f conftest*
3906 if test $ac_cv_header_stdc = yes; then
3907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3908 if test "$cross_compiling" = yes; then :
3910 else
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913 #include <ctype.h>
3914 #include <stdlib.h>
3915 #if ((' ' & 0x0FF) == 0x020)
3916 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3917 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3918 #else
3919 # define ISLOWER(c) \
3920 (('a' <= (c) && (c) <= 'i') \
3921 || ('j' <= (c) && (c) <= 'r') \
3922 || ('s' <= (c) && (c) <= 'z'))
3923 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3924 #endif
3926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3928 main ()
3930 int i;
3931 for (i = 0; i < 256; i++)
3932 if (XOR (islower (i), ISLOWER (i))
3933 || toupper (i) != TOUPPER (i))
3934 return 2;
3935 return 0;
3937 _ACEOF
3938 if ac_fn_c_try_run "$LINENO"; then :
3940 else
3941 ac_cv_header_stdc=no
3943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3944 conftest.$ac_objext conftest.beam conftest.$ac_ext
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3950 $as_echo "$ac_cv_header_stdc" >&6; }
3951 if test $ac_cv_header_stdc = yes; then
3953 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3957 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3958 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3959 inttypes.h stdint.h unistd.h
3960 do :
3961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3962 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3964 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3965 cat >>confdefs.h <<_ACEOF
3966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3967 _ACEOF
3971 done
3974 for ac_header in sys/mman.h
3975 do :
3976 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
3977 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
3978 cat >>confdefs.h <<_ACEOF
3979 #define HAVE_SYS_MMAN_H 1
3980 _ACEOF
3984 done
3987 # C++ Modules would like some networking features to provide the mapping
3988 # server. You can still use modules without them though.
3989 # The following network-related checks could probably do with some
3990 # Windows and other non-linux defenses and checking.
3992 # Local socket connectivity wants AF_UNIX networking
3993 # Check for AF_UNIX networking
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_UNIX" >&5
3995 $as_echo_n "checking for AF_UNIX... " >&6; }
3996 if ${ac_cv_af_unix+:} false; then :
3997 $as_echo_n "(cached) " >&6
3998 else
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4003 #include <sys/types.h>
4004 #include <sys/socket.h>
4005 #include <sys/un.h>
4006 #include <netinet/in.h>
4008 main ()
4011 sockaddr_un un;
4012 un.sun_family = AF_UNSPEC;
4013 int fd = socket (AF_UNIX, SOCK_STREAM, 0);
4014 connect (fd, (sockaddr *)&un, sizeof (un));
4016 return 0;
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_af_unix=yes
4021 else
4022 ac_cv_af_unix=no
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_unix" >&5
4027 $as_echo "$ac_cv_af_unix" >&6; }
4028 if test $ac_cv_af_unix = yes; then
4030 $as_echo "#define HAVE_AF_UNIX 1" >>confdefs.h
4034 # Remote socket connectivity wants AF_INET6 networking
4035 # Check for AF_INET6 networking
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AF_INET6" >&5
4037 $as_echo_n "checking for AF_INET6... " >&6; }
4038 if ${ac_cv_af_inet6+:} false; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4045 #include <sys/types.h>
4046 #include <sys/socket.h>
4047 #include <netinet/in.h>
4048 #include <netdb.h>
4050 main ()
4053 sockaddr_in6 in6;
4054 in6.sin6_family = AF_UNSPEC;
4055 struct addrinfo *addrs = 0;
4056 struct addrinfo hints;
4057 hints.ai_flags = 0;
4058 hints.ai_family = AF_INET6;
4059 hints.ai_socktype = SOCK_STREAM;
4060 hints.ai_protocol = 0;
4061 hints.ai_canonname = 0;
4062 hints.ai_addr = 0;
4063 hints.ai_next = 0;
4064 int e = getaddrinfo ("localhost", 0, &hints, &addrs);
4065 const char *str = gai_strerror (e);
4066 freeaddrinfo (addrs);
4067 int fd = socket (AF_INET6, SOCK_STREAM, 0);
4068 connect (fd, (sockaddr *)&in6, sizeof (in6));
4070 return 0;
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"; then :
4074 ac_cv_af_inet6=yes
4075 else
4076 ac_cv_af_inet6=no
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_af_inet6" >&5
4081 $as_echo "$ac_cv_af_inet6" >&6; }
4082 if test $ac_cv_af_inet6 = yes; then
4084 $as_echo "#define HAVE_AF_INET6 1" >>confdefs.h
4088 # Efficient server response wants epoll
4089 # Check for epoll_create, epoll_ctl, epoll_pwait
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5
4091 $as_echo_n "checking for epoll... " >&6; }
4092 if ${ac_cv_epoll+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4099 #include <sys/epoll.h>
4101 main ()
4104 int fd = epoll_create (1);
4105 epoll_event ev;
4106 ev.events = EPOLLIN;
4107 ev.data.fd = 0;
4108 epoll_ctl (fd, EPOLL_CTL_ADD, 0, &ev);
4109 epoll_pwait (fd, 0, 0, -1, 0);
4111 return 0;
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115 ac_cv_epoll=yes
4116 else
4117 ac_cv_epoll=no
4119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_epoll" >&5
4122 $as_echo "$ac_cv_epoll" >&6; }
4123 if test $ac_cv_epoll = yes; then
4125 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
4129 # If we can't use epoll, try pselect.
4130 # Check for pselect
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pselect" >&5
4132 $as_echo_n "checking for pselect... " >&6; }
4133 if ${ac_cv_pselect+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4140 #include <sys/select.h>
4142 main ()
4145 pselect (0, 0, 0, 0, 0, 0);
4147 return 0;
4149 _ACEOF
4150 if ac_fn_c_try_compile "$LINENO"; then :
4151 ac_cv_pselect=yes
4152 else
4153 ac_cv_pselect=no
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pselect" >&5
4158 $as_echo "$ac_cv_pselect" >&6; }
4159 if test $ac_cv_pselect = yes; then
4161 $as_echo "#define HAVE_PSELECT 1" >>confdefs.h
4165 # And failing that, use good old select.
4166 # If we can't even use this, the server is serialized.
4167 # Check for select
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
4169 $as_echo_n "checking for select... " >&6; }
4170 if ${ac_cv_select+:} false; then :
4171 $as_echo_n "(cached) " >&6
4172 else
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4177 #include <sys/select.h>
4179 main ()
4182 select (0, 0, 0, 0, 0);
4184 return 0;
4186 _ACEOF
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_cv_select=yes
4189 else
4190 ac_cv_select=no
4192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_select" >&5
4195 $as_echo "$ac_cv_select" >&6; }
4196 if test $ac_cv_select = yes; then
4198 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
4202 # Avoid some fnctl calls by using accept4, when available.
4203 # Check for accept4
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5
4205 $as_echo_n "checking for accept4... " >&6; }
4206 if ${ac_cv_accept4+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4213 #include <sys/socket.h>
4215 main ()
4218 int err = accept4 (1, 0, 0, SOCK_NONBLOCK);
4220 return 0;
4222 _ACEOF
4223 if ac_fn_c_try_compile "$LINENO"; then :
4224 ac_cv_accept4=yes
4225 else
4226 ac_cv_accept4=no
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5
4231 $as_echo "$ac_cv_accept4" >&6; }
4232 if test $ac_cv_accept4 = yes; then
4234 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
4238 # For better server messages, look for a way to stringize network addresses
4239 # Check for inet_ntop
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop" >&5
4241 $as_echo_n "checking for inet_ntop... " >&6; }
4242 if ${ac_cv_inet_ntop+:} false; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4249 #include <arpa/inet.h>
4250 #include <netinet/in.h>
4252 main ()
4255 sockaddr_in6 in6;
4256 char buf[INET6_ADDRSTRLEN];
4257 const char *str = inet_ntop (AF_INET6, &in6, buf, sizeof (buf));
4259 return 0;
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_inet_ntop=yes
4264 else
4265 ac_cv_inet_ntop=no
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_inet_ntop" >&5
4270 $as_echo "$ac_cv_inet_ntop" >&6; }
4271 if test $ac_cv_inet_ntop = yes; then
4273 $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
4277 # Determine what GCC version number to use in filesystem paths.
4279 get_gcc_base_ver="cat"
4281 # Check whether --with-gcc-major-version-only was given.
4282 if test "${with_gcc_major_version_only+set}" = set; then :
4283 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
4284 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
4292 # Solaris needs libsocket and libnsl for socket functions before 11.4.
4293 # libcody uses those.
4294 save_LIBS="$LIBS"
4295 LIBS=
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4298 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4299 if ${ac_cv_search_gethostbyname+:} false; then :
4300 $as_echo_n "(cached) " >&6
4301 else
4302 ac_func_search_save_LIBS=$LIBS
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4306 /* Override any GCC internal prototype to avoid an error.
4307 Use char because int might match the return type of a GCC
4308 builtin and then its argument prototype would still apply. */
4309 #ifdef __cplusplus
4310 extern "C"
4311 #endif
4312 char gethostbyname ();
4314 main ()
4316 return gethostbyname ();
4318 return 0;
4320 _ACEOF
4321 for ac_lib in '' nsl; do
4322 if test -z "$ac_lib"; then
4323 ac_res="none required"
4324 else
4325 ac_res=-l$ac_lib
4326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4328 if ac_fn_c_try_link "$LINENO"; then :
4329 ac_cv_search_gethostbyname=$ac_res
4331 rm -f core conftest.err conftest.$ac_objext \
4332 conftest$ac_exeext
4333 if ${ac_cv_search_gethostbyname+:} false; then :
4334 break
4336 done
4337 if ${ac_cv_search_gethostbyname+:} false; then :
4339 else
4340 ac_cv_search_gethostbyname=no
4342 rm conftest.$ac_ext
4343 LIBS=$ac_func_search_save_LIBS
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4346 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4347 ac_res=$ac_cv_search_gethostbyname
4348 if test "$ac_res" != no; then :
4349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4354 $as_echo_n "checking for library containing socket... " >&6; }
4355 if ${ac_cv_search_socket+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 ac_func_search_save_LIBS=$LIBS
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4362 /* Override any GCC internal prototype to avoid an error.
4363 Use char because int might match the return type of a GCC
4364 builtin and then its argument prototype would still apply. */
4365 #ifdef __cplusplus
4366 extern "C"
4367 #endif
4368 char socket ();
4370 main ()
4372 return socket ();
4374 return 0;
4376 _ACEOF
4377 for ac_lib in '' socket; do
4378 if test -z "$ac_lib"; then
4379 ac_res="none required"
4380 else
4381 ac_res=-l$ac_lib
4382 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4384 if ac_fn_c_try_link "$LINENO"; then :
4385 ac_cv_search_socket=$ac_res
4387 rm -f core conftest.err conftest.$ac_objext \
4388 conftest$ac_exeext
4389 if ${ac_cv_search_socket+:} false; then :
4390 break
4392 done
4393 if ${ac_cv_search_socket+:} false; then :
4395 else
4396 ac_cv_search_socket=no
4398 rm conftest.$ac_ext
4399 LIBS=$ac_func_search_save_LIBS
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4402 $as_echo "$ac_cv_search_socket" >&6; }
4403 ac_res=$ac_cv_search_socket
4404 if test "$ac_res" != no; then :
4405 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4407 else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4410 $as_echo_n "checking for socket in -lsocket... " >&6; }
4411 if ${ac_cv_lib_socket_socket+:} false; then :
4412 $as_echo_n "(cached) " >&6
4413 else
4414 ac_check_lib_save_LIBS=$LIBS
4415 LIBS="-lsocket -lnsl $LIBS"
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4419 /* Override any GCC internal prototype to avoid an error.
4420 Use char because int might match the return type of a GCC
4421 builtin and then its argument prototype would still apply. */
4422 #ifdef __cplusplus
4423 extern "C"
4424 #endif
4425 char socket ();
4427 main ()
4429 return socket ();
4431 return 0;
4433 _ACEOF
4434 if ac_fn_c_try_link "$LINENO"; then :
4435 ac_cv_lib_socket_socket=yes
4436 else
4437 ac_cv_lib_socket_socket=no
4439 rm -f core conftest.err conftest.$ac_objext \
4440 conftest$ac_exeext conftest.$ac_ext
4441 LIBS=$ac_check_lib_save_LIBS
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4444 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4445 if test "x$ac_cv_lib_socket_socket" = xyes; then :
4446 LIBS="-lsocket -lnsl $LIBS"
4452 NETLIBS="$LIBS"
4453 LIBS="$save_LIBS"
4456 ac_config_headers="$ac_config_headers config.h"
4458 ac_config_files="$ac_config_files Makefile"
4461 cat >confcache <<\_ACEOF
4462 # This file is a shell script that caches the results of configure
4463 # tests run on this system so they can be shared between configure
4464 # scripts and configure runs, see configure's option --config-cache.
4465 # It is not useful on other systems. If it contains results you don't
4466 # want to keep, you may remove or edit it.
4468 # config.status only pays attention to the cache file if you give it
4469 # the --recheck option to rerun configure.
4471 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4472 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4473 # following values.
4475 _ACEOF
4477 # The following way of writing the cache mishandles newlines in values,
4478 # but we know of no workaround that is simple, portable, and efficient.
4479 # So, we kill variables containing newlines.
4480 # Ultrix sh set writes to stderr and can't be redirected directly,
4481 # and sets the high bit in the cache file unless we assign to the vars.
4483 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4484 eval ac_val=\$$ac_var
4485 case $ac_val in #(
4486 *${as_nl}*)
4487 case $ac_var in #(
4488 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4489 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4490 esac
4491 case $ac_var in #(
4492 _ | IFS | as_nl) ;; #(
4493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4494 *) { eval $ac_var=; unset $ac_var;} ;;
4495 esac ;;
4496 esac
4497 done
4499 (set) 2>&1 |
4500 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4501 *${as_nl}ac_space=\ *)
4502 # `set' does not quote correctly, so add quotes: double-quote
4503 # substitution turns \\\\ into \\, and sed turns \\ into \.
4504 sed -n \
4505 "s/'/'\\\\''/g;
4506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4507 ;; #(
4509 # `set' quotes correctly as required by POSIX, so do not add quotes.
4510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4512 esac |
4513 sort
4515 sed '
4516 /^ac_cv_env_/b end
4517 t clear
4518 :clear
4519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4520 t end
4521 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4522 :end' >>confcache
4523 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4524 if test -w "$cache_file"; then
4525 if test "x$cache_file" != "x/dev/null"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4527 $as_echo "$as_me: updating cache $cache_file" >&6;}
4528 if test ! -f "$cache_file" || test -h "$cache_file"; then
4529 cat confcache >"$cache_file"
4530 else
4531 case $cache_file in #(
4532 */* | ?:*)
4533 mv -f confcache "$cache_file"$$ &&
4534 mv -f "$cache_file"$$ "$cache_file" ;; #(
4536 mv -f confcache "$cache_file" ;;
4537 esac
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4542 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4545 rm -f confcache
4547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4548 # Let make expand exec_prefix.
4549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4551 DEFS=-DHAVE_CONFIG_H
4553 ac_libobjs=
4554 ac_ltlibobjs=
4556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4557 # 1. Remove the extension, and $U if already installed.
4558 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4559 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4560 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4561 # will be set to the directory where LIBOBJS objects are built.
4562 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4563 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4564 done
4565 LIBOBJS=$ac_libobjs
4567 LTLIBOBJS=$ac_ltlibobjs
4571 : "${CONFIG_STATUS=./config.status}"
4572 ac_write_fail=0
4573 ac_clean_files_save=$ac_clean_files
4574 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4576 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4577 as_write_fail=0
4578 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4579 #! $SHELL
4580 # Generated by $as_me.
4581 # Run this file to recreate the current configuration.
4582 # Compiler output produced by configure, useful for debugging
4583 # configure, is in config.log if it exists.
4585 debug=false
4586 ac_cs_recheck=false
4587 ac_cs_silent=false
4589 SHELL=\${CONFIG_SHELL-$SHELL}
4590 export SHELL
4591 _ASEOF
4592 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4593 ## -------------------- ##
4594 ## M4sh Initialization. ##
4595 ## -------------------- ##
4597 # Be more Bourne compatible
4598 DUALCASE=1; export DUALCASE # for MKS sh
4599 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4600 emulate sh
4601 NULLCMD=:
4602 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4603 # is contrary to our usage. Disable this feature.
4604 alias -g '${1+"$@"}'='"$@"'
4605 setopt NO_GLOB_SUBST
4606 else
4607 case `(set -o) 2>/dev/null` in #(
4608 *posix*) :
4609 set -o posix ;; #(
4610 *) :
4612 esac
4616 as_nl='
4618 export as_nl
4619 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4620 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4621 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4623 # Prefer a ksh shell builtin over an external printf program on Solaris,
4624 # but without wasting forks for bash or zsh.
4625 if test -z "$BASH_VERSION$ZSH_VERSION" \
4626 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4627 as_echo='print -r --'
4628 as_echo_n='print -rn --'
4629 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4630 as_echo='printf %s\n'
4631 as_echo_n='printf %s'
4632 else
4633 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4634 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4635 as_echo_n='/usr/ucb/echo -n'
4636 else
4637 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4638 as_echo_n_body='eval
4639 arg=$1;
4640 case $arg in #(
4641 *"$as_nl"*)
4642 expr "X$arg" : "X\\(.*\\)$as_nl";
4643 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4644 esac;
4645 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4647 export as_echo_n_body
4648 as_echo_n='sh -c $as_echo_n_body as_echo'
4650 export as_echo_body
4651 as_echo='sh -c $as_echo_body as_echo'
4654 # The user is always right.
4655 if test "${PATH_SEPARATOR+set}" != set; then
4656 PATH_SEPARATOR=:
4657 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4658 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4659 PATH_SEPARATOR=';'
4664 # IFS
4665 # We need space, tab and new line, in precisely that order. Quoting is
4666 # there to prevent editors from complaining about space-tab.
4667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4668 # splitting by setting IFS to empty value.)
4669 IFS=" "" $as_nl"
4671 # Find who we are. Look in the path if we contain no directory separator.
4672 as_myself=
4673 case $0 in #((
4674 *[\\/]* ) as_myself=$0 ;;
4675 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4681 done
4682 IFS=$as_save_IFS
4685 esac
4686 # We did not find ourselves, most probably we were run as `sh COMMAND'
4687 # in which case we are not to be found in the path.
4688 if test "x$as_myself" = x; then
4689 as_myself=$0
4691 if test ! -f "$as_myself"; then
4692 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4693 exit 1
4696 # Unset variables that we do not need and which cause bugs (e.g. in
4697 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4698 # suppresses any "Segmentation fault" message there. '((' could
4699 # trigger a bug in pdksh 5.2.14.
4700 for as_var in BASH_ENV ENV MAIL MAILPATH
4701 do eval test x\${$as_var+set} = xset \
4702 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4703 done
4704 PS1='$ '
4705 PS2='> '
4706 PS4='+ '
4708 # NLS nuisances.
4709 LC_ALL=C
4710 export LC_ALL
4711 LANGUAGE=C
4712 export LANGUAGE
4714 # CDPATH.
4715 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4718 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4719 # ----------------------------------------
4720 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4721 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4722 # script with STATUS, using 1 if that was 0.
4723 as_fn_error ()
4725 as_status=$1; test $as_status -eq 0 && as_status=1
4726 if test "$4"; then
4727 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4728 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4730 $as_echo "$as_me: error: $2" >&2
4731 as_fn_exit $as_status
4732 } # as_fn_error
4735 # as_fn_set_status STATUS
4736 # -----------------------
4737 # Set $? to STATUS, without forking.
4738 as_fn_set_status ()
4740 return $1
4741 } # as_fn_set_status
4743 # as_fn_exit STATUS
4744 # -----------------
4745 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4746 as_fn_exit ()
4748 set +e
4749 as_fn_set_status $1
4750 exit $1
4751 } # as_fn_exit
4753 # as_fn_unset VAR
4754 # ---------------
4755 # Portably unset VAR.
4756 as_fn_unset ()
4758 { eval $1=; unset $1;}
4760 as_unset=as_fn_unset
4761 # as_fn_append VAR VALUE
4762 # ----------------------
4763 # Append the text in VALUE to the end of the definition contained in VAR. Take
4764 # advantage of any shell optimizations that allow amortized linear growth over
4765 # repeated appends, instead of the typical quadratic growth present in naive
4766 # implementations.
4767 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4768 eval 'as_fn_append ()
4770 eval $1+=\$2
4772 else
4773 as_fn_append ()
4775 eval $1=\$$1\$2
4777 fi # as_fn_append
4779 # as_fn_arith ARG...
4780 # ------------------
4781 # Perform arithmetic evaluation on the ARGs, and store the result in the
4782 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4783 # must be portable across $(()) and expr.
4784 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4785 eval 'as_fn_arith ()
4787 as_val=$(( $* ))
4789 else
4790 as_fn_arith ()
4792 as_val=`expr "$@" || test $? -eq 1`
4794 fi # as_fn_arith
4797 if expr a : '\(a\)' >/dev/null 2>&1 &&
4798 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4799 as_expr=expr
4800 else
4801 as_expr=false
4804 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4805 as_basename=basename
4806 else
4807 as_basename=false
4810 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4811 as_dirname=dirname
4812 else
4813 as_dirname=false
4816 as_me=`$as_basename -- "$0" ||
4817 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4818 X"$0" : 'X\(//\)$' \| \
4819 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4820 $as_echo X/"$0" |
4821 sed '/^.*\/\([^/][^/]*\)\/*$/{
4822 s//\1/
4825 /^X\/\(\/\/\)$/{
4826 s//\1/
4829 /^X\/\(\/\).*/{
4830 s//\1/
4833 s/.*/./; q'`
4835 # Avoid depending upon Character Ranges.
4836 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4837 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4838 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4839 as_cr_digits='0123456789'
4840 as_cr_alnum=$as_cr_Letters$as_cr_digits
4842 ECHO_C= ECHO_N= ECHO_T=
4843 case `echo -n x` in #(((((
4844 -n*)
4845 case `echo 'xy\c'` in
4846 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4847 xy) ECHO_C='\c';;
4848 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4849 ECHO_T=' ';;
4850 esac;;
4852 ECHO_N='-n';;
4853 esac
4855 rm -f conf$$ conf$$.exe conf$$.file
4856 if test -d conf$$.dir; then
4857 rm -f conf$$.dir/conf$$.file
4858 else
4859 rm -f conf$$.dir
4860 mkdir conf$$.dir 2>/dev/null
4862 if (echo >conf$$.file) 2>/dev/null; then
4863 if ln -s conf$$.file conf$$ 2>/dev/null; then
4864 as_ln_s='ln -s'
4865 # ... but there are two gotchas:
4866 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4867 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4868 # In both cases, we have to default to `cp -pR'.
4869 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4870 as_ln_s='cp -pR'
4871 elif ln conf$$.file conf$$ 2>/dev/null; then
4872 as_ln_s=ln
4873 else
4874 as_ln_s='cp -pR'
4876 else
4877 as_ln_s='cp -pR'
4879 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4880 rmdir conf$$.dir 2>/dev/null
4883 # as_fn_mkdir_p
4884 # -------------
4885 # Create "$as_dir" as a directory, including parents if necessary.
4886 as_fn_mkdir_p ()
4889 case $as_dir in #(
4890 -*) as_dir=./$as_dir;;
4891 esac
4892 test -d "$as_dir" || eval $as_mkdir_p || {
4893 as_dirs=
4894 while :; do
4895 case $as_dir in #(
4896 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4897 *) as_qdir=$as_dir;;
4898 esac
4899 as_dirs="'$as_qdir' $as_dirs"
4900 as_dir=`$as_dirname -- "$as_dir" ||
4901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4902 X"$as_dir" : 'X\(//\)[^/]' \| \
4903 X"$as_dir" : 'X\(//\)$' \| \
4904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4905 $as_echo X"$as_dir" |
4906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4907 s//\1/
4910 /^X\(\/\/\)[^/].*/{
4911 s//\1/
4914 /^X\(\/\/\)$/{
4915 s//\1/
4918 /^X\(\/\).*/{
4919 s//\1/
4922 s/.*/./; q'`
4923 test -d "$as_dir" && break
4924 done
4925 test -z "$as_dirs" || eval "mkdir $as_dirs"
4926 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4929 } # as_fn_mkdir_p
4930 if mkdir -p . 2>/dev/null; then
4931 as_mkdir_p='mkdir -p "$as_dir"'
4932 else
4933 test -d ./-p && rmdir ./-p
4934 as_mkdir_p=false
4938 # as_fn_executable_p FILE
4939 # -----------------------
4940 # Test if FILE is an executable regular file.
4941 as_fn_executable_p ()
4943 test -f "$1" && test -x "$1"
4944 } # as_fn_executable_p
4945 as_test_x='test -x'
4946 as_executable_p=as_fn_executable_p
4948 # Sed expression to map a string onto a valid CPP name.
4949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4951 # Sed expression to map a string onto a valid variable name.
4952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4955 exec 6>&1
4956 ## ----------------------------------- ##
4957 ## Main body of $CONFIG_STATUS script. ##
4958 ## ----------------------------------- ##
4959 _ASEOF
4960 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4963 # Save the log message, to keep $0 and so on meaningful, and to
4964 # report actual input values of CONFIG_FILES etc. instead of their
4965 # values after options handling.
4966 ac_log="
4967 This file was extended by $as_me, which was
4968 generated by GNU Autoconf 2.69. Invocation command line was
4970 CONFIG_FILES = $CONFIG_FILES
4971 CONFIG_HEADERS = $CONFIG_HEADERS
4972 CONFIG_LINKS = $CONFIG_LINKS
4973 CONFIG_COMMANDS = $CONFIG_COMMANDS
4974 $ $0 $@
4976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4979 _ACEOF
4981 case $ac_config_files in *"
4982 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4983 esac
4985 case $ac_config_headers in *"
4986 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4987 esac
4990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4991 # Files that config.status was made for.
4992 config_files="$ac_config_files"
4993 config_headers="$ac_config_headers"
4995 _ACEOF
4997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4998 ac_cs_usage="\
4999 \`$as_me' instantiates files and other configuration actions
5000 from templates according to the current configuration. Unless the files
5001 and actions are specified as TAGs, all are instantiated by default.
5003 Usage: $0 [OPTION]... [TAG]...
5005 -h, --help print this help, then exit
5006 -V, --version print version number and configuration settings, then exit
5007 --config print configuration, then exit
5008 -q, --quiet, --silent
5009 do not print progress messages
5010 -d, --debug don't remove temporary files
5011 --recheck update $as_me by reconfiguring in the same conditions
5012 --file=FILE[:TEMPLATE]
5013 instantiate the configuration file FILE
5014 --header=FILE[:TEMPLATE]
5015 instantiate the configuration header FILE
5017 Configuration files:
5018 $config_files
5020 Configuration headers:
5021 $config_headers
5023 Report bugs to the package provider."
5025 _ACEOF
5026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5027 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5028 ac_cs_version="\\
5029 config.status
5030 configured by $0, generated by GNU Autoconf 2.69,
5031 with options \\"\$ac_cs_config\\"
5033 Copyright (C) 2012 Free Software Foundation, Inc.
5034 This config.status script is free software; the Free Software Foundation
5035 gives unlimited permission to copy, distribute and modify it."
5037 ac_pwd='$ac_pwd'
5038 srcdir='$srcdir'
5039 INSTALL='$INSTALL'
5040 test -n "\$AWK" || AWK=awk
5041 _ACEOF
5043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5044 # The default lists apply if the user does not specify any file.
5045 ac_need_defaults=:
5046 while test $# != 0
5048 case $1 in
5049 --*=?*)
5050 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5051 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5052 ac_shift=:
5054 --*=)
5055 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5056 ac_optarg=
5057 ac_shift=:
5060 ac_option=$1
5061 ac_optarg=$2
5062 ac_shift=shift
5064 esac
5066 case $ac_option in
5067 # Handling of the options.
5068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5069 ac_cs_recheck=: ;;
5070 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5071 $as_echo "$ac_cs_version"; exit ;;
5072 --config | --confi | --conf | --con | --co | --c )
5073 $as_echo "$ac_cs_config"; exit ;;
5074 --debug | --debu | --deb | --de | --d | -d )
5075 debug=: ;;
5076 --file | --fil | --fi | --f )
5077 $ac_shift
5078 case $ac_optarg in
5079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5080 '') as_fn_error $? "missing file argument" ;;
5081 esac
5082 as_fn_append CONFIG_FILES " '$ac_optarg'"
5083 ac_need_defaults=false;;
5084 --header | --heade | --head | --hea )
5085 $ac_shift
5086 case $ac_optarg in
5087 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5088 esac
5089 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5090 ac_need_defaults=false;;
5091 --he | --h)
5092 # Conflict between --help and --header
5093 as_fn_error $? "ambiguous option: \`$1'
5094 Try \`$0 --help' for more information.";;
5095 --help | --hel | -h )
5096 $as_echo "$ac_cs_usage"; exit ;;
5097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5098 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5099 ac_cs_silent=: ;;
5101 # This is an error.
5102 -*) as_fn_error $? "unrecognized option: \`$1'
5103 Try \`$0 --help' for more information." ;;
5105 *) as_fn_append ac_config_targets " $1"
5106 ac_need_defaults=false ;;
5108 esac
5109 shift
5110 done
5112 ac_configure_extra_args=
5114 if $ac_cs_silent; then
5115 exec 6>/dev/null
5116 ac_configure_extra_args="$ac_configure_extra_args --silent"
5119 _ACEOF
5120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5121 if \$ac_cs_recheck; then
5122 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5123 shift
5124 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5125 CONFIG_SHELL='$SHELL'
5126 export CONFIG_SHELL
5127 exec "\$@"
5130 _ACEOF
5131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5132 exec 5>>config.log
5134 echo
5135 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5136 ## Running $as_me. ##
5137 _ASBOX
5138 $as_echo "$ac_log"
5139 } >&5
5141 _ACEOF
5142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5143 _ACEOF
5145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5147 # Handling of arguments.
5148 for ac_config_target in $ac_config_targets
5150 case $ac_config_target in
5151 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5152 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5154 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5155 esac
5156 done
5159 # If the user did not use the arguments to specify the items to instantiate,
5160 # then the envvar interface is used. Set only those that are not.
5161 # We use the long form for the default assignment because of an extremely
5162 # bizarre bug on SunOS 4.1.3.
5163 if $ac_need_defaults; then
5164 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5165 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5168 # Have a temporary directory for convenience. Make it in the build tree
5169 # simply because there is no reason against having it here, and in addition,
5170 # creating and moving files from /tmp can sometimes cause problems.
5171 # Hook for its removal unless debugging.
5172 # Note that there is a small window in which the directory will not be cleaned:
5173 # after its creation but before its name has been assigned to `$tmp'.
5174 $debug ||
5176 tmp= ac_tmp=
5177 trap 'exit_status=$?
5178 : "${ac_tmp:=$tmp}"
5179 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5181 trap 'as_fn_exit 1' 1 2 13 15
5183 # Create a (secure) tmp directory for tmp files.
5186 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5187 test -d "$tmp"
5188 } ||
5190 tmp=./conf$$-$RANDOM
5191 (umask 077 && mkdir "$tmp")
5192 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5193 ac_tmp=$tmp
5195 # Set up the scripts for CONFIG_FILES section.
5196 # No need to generate them if there are no CONFIG_FILES.
5197 # This happens for instance with `./config.status config.h'.
5198 if test -n "$CONFIG_FILES"; then
5201 ac_cr=`echo X | tr X '\015'`
5202 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5203 # But we know of no other shell where ac_cr would be empty at this
5204 # point, so we can use a bashism as a fallback.
5205 if test "x$ac_cr" = x; then
5206 eval ac_cr=\$\'\\r\'
5208 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5210 ac_cs_awk_cr='\\r'
5211 else
5212 ac_cs_awk_cr=$ac_cr
5215 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5216 _ACEOF
5220 echo "cat >conf$$subs.awk <<_ACEOF" &&
5221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5222 echo "_ACEOF"
5223 } >conf$$subs.sh ||
5224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5225 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5226 ac_delim='%!_!# '
5227 for ac_last_try in false false false false false :; do
5228 . ./conf$$subs.sh ||
5229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5232 if test $ac_delim_n = $ac_delim_num; then
5233 break
5234 elif $ac_last_try; then
5235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5236 else
5237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5239 done
5240 rm -f conf$$subs.sh
5242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5243 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5244 _ACEOF
5245 sed -n '
5247 s/^/S["/; s/!.*/"]=/
5250 s/^[^!]*!//
5251 :repl
5252 t repl
5253 s/'"$ac_delim"'$//
5254 t delim
5257 s/\(.\{148\}\)..*/\1/
5258 t more1
5259 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5262 b repl
5263 :more1
5264 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5267 s/.\{148\}//
5268 t nl
5269 :delim
5271 s/\(.\{148\}\)..*/\1/
5272 t more2
5273 s/["\\]/\\&/g; s/^/"/; s/$/"/
5276 :more2
5277 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5280 s/.\{148\}//
5281 t delim
5282 ' <conf$$subs.awk | sed '
5283 /^[^""]/{
5285 s/\n//
5287 ' >>$CONFIG_STATUS || ac_write_fail=1
5288 rm -f conf$$subs.awk
5289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5290 _ACAWK
5291 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5292 for (key in S) S_is_set[key] = 1
5293 FS = "\a"
5297 line = $ 0
5298 nfields = split(line, field, "@")
5299 substed = 0
5300 len = length(field[1])
5301 for (i = 2; i < nfields; i++) {
5302 key = field[i]
5303 keylen = length(key)
5304 if (S_is_set[key]) {
5305 value = S[key]
5306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5307 len += length(value) + length(field[++i])
5308 substed = 1
5309 } else
5310 len += 1 + keylen
5313 print line
5316 _ACAWK
5317 _ACEOF
5318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5319 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5321 else
5323 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5325 _ACEOF
5327 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5328 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5329 # trailing colons and then remove the whole line if VPATH becomes empty
5330 # (actually we leave an empty line to preserve line numbers).
5331 if test "x$srcdir" = x.; then
5332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5334 s///
5335 s/^/:/
5336 s/[ ]*$/:/
5337 s/:\$(srcdir):/:/g
5338 s/:\${srcdir}:/:/g
5339 s/:@srcdir@:/:/g
5340 s/^:*//
5341 s/:*$//
5343 s/\(=[ ]*\).*/\1/
5345 s/\n//
5346 s/^[^=]*=[ ]*$//
5350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5351 fi # test -n "$CONFIG_FILES"
5353 # Set up the scripts for CONFIG_HEADERS section.
5354 # No need to generate them if there are no CONFIG_HEADERS.
5355 # This happens for instance with `./config.status Makefile'.
5356 if test -n "$CONFIG_HEADERS"; then
5357 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
5358 BEGIN {
5359 _ACEOF
5361 # Transform confdefs.h into an awk script `defines.awk', embedded as
5362 # here-document in config.status, that substitutes the proper values into
5363 # config.h.in to produce config.h.
5365 # Create a delimiter string that does not exist in confdefs.h, to ease
5366 # handling of long lines.
5367 ac_delim='%!_!# '
5368 for ac_last_try in false false :; do
5369 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5370 if test -z "$ac_tt"; then
5371 break
5372 elif $ac_last_try; then
5373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
5374 else
5375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5377 done
5379 # For the awk script, D is an array of macro values keyed by name,
5380 # likewise P contains macro parameters if any. Preserve backslash
5381 # newline sequences.
5383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5384 sed -n '
5385 s/.\{148\}/&'"$ac_delim"'/g
5386 t rset
5387 :rset
5388 s/^[ ]*#[ ]*define[ ][ ]*/ /
5389 t def
5391 :def
5392 s/\\$//
5393 t bsnl
5394 s/["\\]/\\&/g
5395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5396 D["\1"]=" \3"/p
5397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5399 :bsnl
5400 s/["\\]/\\&/g
5401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5402 D["\1"]=" \3\\\\\\n"\\/p
5403 t cont
5404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5405 t cont
5407 :cont
5409 s/.\{148\}/&'"$ac_delim"'/g
5410 t clear
5411 :clear
5412 s/\\$//
5413 t bsnlc
5414 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5416 :bsnlc
5417 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5418 b cont
5419 ' <confdefs.h | sed '
5420 s/'"$ac_delim"'/"\\\
5421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5424 for (key in D) D_is_set[key] = 1
5425 FS = "\a"
5427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5428 line = \$ 0
5429 split(line, arg, " ")
5430 if (arg[1] == "#") {
5431 defundef = arg[2]
5432 mac1 = arg[3]
5433 } else {
5434 defundef = substr(arg[1], 2)
5435 mac1 = arg[2]
5437 split(mac1, mac2, "(") #)
5438 macro = mac2[1]
5439 prefix = substr(line, 1, index(line, defundef) - 1)
5440 if (D_is_set[macro]) {
5441 # Preserve the white space surrounding the "#".
5442 print prefix "define", macro P[macro] D[macro]
5443 next
5444 } else {
5445 # Replace #undef with comments. This is necessary, for example,
5446 # in the case of _POSIX_SOURCE, which is predefined and required
5447 # on some systems where configure will not decide to define it.
5448 if (defundef == "undef") {
5449 print "/*", prefix defundef, macro, "*/"
5450 next
5454 { print }
5455 _ACAWK
5456 _ACEOF
5457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
5459 fi # test -n "$CONFIG_HEADERS"
5462 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
5463 shift
5464 for ac_tag
5466 case $ac_tag in
5467 :[FHLC]) ac_mode=$ac_tag; continue;;
5468 esac
5469 case $ac_mode$ac_tag in
5470 :[FHL]*:*);;
5471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5472 :[FH]-) ac_tag=-:-;;
5473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5474 esac
5475 ac_save_IFS=$IFS
5476 IFS=:
5477 set x $ac_tag
5478 IFS=$ac_save_IFS
5479 shift
5480 ac_file=$1
5481 shift
5483 case $ac_mode in
5484 :L) ac_source=$1;;
5485 :[FH])
5486 ac_file_inputs=
5487 for ac_f
5489 case $ac_f in
5490 -) ac_f="$ac_tmp/stdin";;
5491 *) # Look for the file first in the build tree, then in the source tree
5492 # (if the path is not absolute). The absolute path cannot be DOS-style,
5493 # because $ac_f cannot contain `:'.
5494 test -f "$ac_f" ||
5495 case $ac_f in
5496 [\\/$]*) false;;
5497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5498 esac ||
5499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5500 esac
5501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5502 as_fn_append ac_file_inputs " '$ac_f'"
5503 done
5505 # Let's still pretend it is `configure' which instantiates (i.e., don't
5506 # use $as_me), people would be surprised to read:
5507 # /* config.h. Generated by config.status. */
5508 configure_input='Generated from '`
5509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5510 `' by configure.'
5511 if test x"$ac_file" != x-; then
5512 configure_input="$ac_file. $configure_input"
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5514 $as_echo "$as_me: creating $ac_file" >&6;}
5516 # Neutralize special characters interpreted by sed in replacement strings.
5517 case $configure_input in #(
5518 *\&* | *\|* | *\\* )
5519 ac_sed_conf_input=`$as_echo "$configure_input" |
5520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5521 *) ac_sed_conf_input=$configure_input;;
5522 esac
5524 case $ac_tag in
5525 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5527 esac
5529 esac
5531 ac_dir=`$as_dirname -- "$ac_file" ||
5532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5533 X"$ac_file" : 'X\(//\)[^/]' \| \
5534 X"$ac_file" : 'X\(//\)$' \| \
5535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5536 $as_echo X"$ac_file" |
5537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5538 s//\1/
5541 /^X\(\/\/\)[^/].*/{
5542 s//\1/
5545 /^X\(\/\/\)$/{
5546 s//\1/
5549 /^X\(\/\).*/{
5550 s//\1/
5553 s/.*/./; q'`
5554 as_dir="$ac_dir"; as_fn_mkdir_p
5555 ac_builddir=.
5557 case "$ac_dir" in
5558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5561 # A ".." for each directory in $ac_dir_suffix.
5562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5563 case $ac_top_builddir_sub in
5564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5566 esac ;;
5567 esac
5568 ac_abs_top_builddir=$ac_pwd
5569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5570 # for backward compatibility:
5571 ac_top_builddir=$ac_top_build_prefix
5573 case $srcdir in
5574 .) # We are building in place.
5575 ac_srcdir=.
5576 ac_top_srcdir=$ac_top_builddir_sub
5577 ac_abs_top_srcdir=$ac_pwd ;;
5578 [\\/]* | ?:[\\/]* ) # Absolute name.
5579 ac_srcdir=$srcdir$ac_dir_suffix;
5580 ac_top_srcdir=$srcdir
5581 ac_abs_top_srcdir=$srcdir ;;
5582 *) # Relative name.
5583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5584 ac_top_srcdir=$ac_top_build_prefix$srcdir
5585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5586 esac
5587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5590 case $ac_mode in
5593 # CONFIG_FILE
5596 case $INSTALL in
5597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5599 esac
5600 _ACEOF
5602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5603 # If the template does not know about datarootdir, expand it.
5604 # FIXME: This hack should be removed a few years after 2.60.
5605 ac_datarootdir_hack=; ac_datarootdir_seen=
5606 ac_sed_dataroot='
5607 /datarootdir/ {
5611 /@datadir@/p
5612 /@docdir@/p
5613 /@infodir@/p
5614 /@localedir@/p
5615 /@mandir@/p'
5616 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5617 *datarootdir*) ac_datarootdir_seen=yes;;
5618 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5620 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5621 _ACEOF
5622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5623 ac_datarootdir_hack='
5624 s&@datadir@&$datadir&g
5625 s&@docdir@&$docdir&g
5626 s&@infodir@&$infodir&g
5627 s&@localedir@&$localedir&g
5628 s&@mandir@&$mandir&g
5629 s&\\\${datarootdir}&$datarootdir&g' ;;
5630 esac
5631 _ACEOF
5633 # Neutralize VPATH when `$srcdir' = `.'.
5634 # Shell code in configure.ac might set extrasub.
5635 # FIXME: do we really want to maintain this feature?
5636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5637 ac_sed_extra="$ac_vpsub
5638 $extrasub
5639 _ACEOF
5640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5643 s|@configure_input@|$ac_sed_conf_input|;t t
5644 s&@top_builddir@&$ac_top_builddir_sub&;t t
5645 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5646 s&@srcdir@&$ac_srcdir&;t t
5647 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5648 s&@top_srcdir@&$ac_top_srcdir&;t t
5649 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5650 s&@builddir@&$ac_builddir&;t t
5651 s&@abs_builddir@&$ac_abs_builddir&;t t
5652 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5653 s&@INSTALL@&$ac_INSTALL&;t t
5654 $ac_datarootdir_hack
5656 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5657 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5659 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5660 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5661 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5662 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5664 which seems to be undefined. Please make sure it is defined" >&5
5665 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5666 which seems to be undefined. Please make sure it is defined" >&2;}
5668 rm -f "$ac_tmp/stdin"
5669 case $ac_file in
5670 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5671 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5672 esac \
5673 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5677 # CONFIG_HEADER
5679 if test x"$ac_file" != x-; then
5681 $as_echo "/* $configure_input */" \
5682 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5683 } >"$ac_tmp/config.h" \
5684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5685 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5687 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5688 else
5689 rm -f "$ac_file"
5690 mv "$ac_tmp/config.h" "$ac_file" \
5691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5693 else
5694 $as_echo "/* $configure_input */" \
5695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5696 || as_fn_error $? "could not create -" "$LINENO" 5
5701 esac
5703 done # for ac_tag
5706 as_fn_exit 0
5707 _ACEOF
5708 ac_clean_files=$ac_clean_files_save
5710 test $ac_write_fail = 0 ||
5711 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5714 # configure is writing to config.log, and then calls config.status.
5715 # config.status does its own redirection, appending to config.log.
5716 # Unfortunately, on DOS this fails, as config.log is still kept open
5717 # by configure, so config.status won't be able to write to it; its
5718 # output is simply discarded. So we exec the FD to /dev/null,
5719 # effectively closing config.log, so it can be properly (re)opened and
5720 # appended to by config.status. When coming back to configure, we
5721 # need to make the FD available again.
5722 if test "$no_create" != yes; then
5723 ac_cs_success=:
5724 ac_config_status_args=
5725 test "$silent" = yes &&
5726 ac_config_status_args="$ac_config_status_args --quiet"
5727 exec 5>/dev/null
5728 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5729 exec 5>>config.log
5730 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5731 # would make configure fail if this is the last instruction.
5732 $ac_cs_success || as_fn_exit 1
5734 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5736 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}