struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / packihx / configure
blob11eb4583eb5cc80bab1d3d32e6a77eb03571cff1
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="packihx.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='LTLIBOBJS
623 LIBOBJS
624 EGREP
625 GREP
627 OBJEXT
628 EXEEXT
629 ac_ct_CC
630 CPPFLAGS
631 LDFLAGS
632 CFLAGS
634 target_alias
635 host_alias
636 build_alias
637 LIBS
638 ECHO_T
639 ECHO_N
640 ECHO_C
641 DEFS
642 mandir
643 localedir
644 libdir
645 psdir
646 pdfdir
647 dvidir
648 htmldir
649 infodir
650 docdir
651 oldincludedir
652 includedir
653 runstatedir
654 localstatedir
655 sharedstatedir
656 sysconfdir
657 datadir
658 datarootdir
659 libexecdir
660 sbindir
661 bindir
662 program_transform_name
663 prefix
664 exec_prefix
665 PACKAGE_URL
666 PACKAGE_BUGREPORT
667 PACKAGE_STRING
668 PACKAGE_VERSION
669 PACKAGE_TARNAME
670 PACKAGE_NAME
671 PATH_SEPARATOR
672 SHELL'
673 ac_subst_files=''
674 ac_user_opts='
675 enable_option_checking
677 ac_precious_vars='build_alias
678 host_alias
679 target_alias
681 CFLAGS
682 LDFLAGS
683 LIBS
684 CPPFLAGS
685 CPP'
688 # Initialize some variables set by options.
689 ac_init_help=
690 ac_init_version=false
691 ac_unrecognized_opts=
692 ac_unrecognized_sep=
693 # The variables have the same names as the options, with
694 # dashes changed to underlines.
695 cache_file=/dev/null
696 exec_prefix=NONE
697 no_create=
698 no_recursion=
699 prefix=NONE
700 program_prefix=NONE
701 program_suffix=NONE
702 program_transform_name=s,x,x,
703 silent=
704 site=
705 srcdir=
706 verbose=
707 x_includes=NONE
708 x_libraries=NONE
710 # Installation directory options.
711 # These are left unexpanded so users can "make install exec_prefix=/foo"
712 # and all the variables that are supposed to be based on exec_prefix
713 # by default will actually change.
714 # Use braces instead of parens because sh, perl, etc. also accept them.
715 # (The list follows the same order as the GNU Coding Standards.)
716 bindir='${exec_prefix}/bin'
717 sbindir='${exec_prefix}/sbin'
718 libexecdir='${exec_prefix}/libexec'
719 datarootdir='${prefix}/share'
720 datadir='${datarootdir}'
721 sysconfdir='${prefix}/etc'
722 sharedstatedir='${prefix}/com'
723 localstatedir='${prefix}/var'
724 runstatedir='${localstatedir}/run'
725 includedir='${prefix}/include'
726 oldincludedir='/usr/include'
727 docdir='${datarootdir}/doc/${PACKAGE}'
728 infodir='${datarootdir}/info'
729 htmldir='${docdir}'
730 dvidir='${docdir}'
731 pdfdir='${docdir}'
732 psdir='${docdir}'
733 libdir='${exec_prefix}/lib'
734 localedir='${datarootdir}/locale'
735 mandir='${datarootdir}/man'
737 ac_prev=
738 ac_dashdash=
739 for ac_option
741 # If the previous option needs an argument, assign it.
742 if test -n "$ac_prev"; then
743 eval $ac_prev=\$ac_option
744 ac_prev=
745 continue
748 case $ac_option in
749 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
750 *=) ac_optarg= ;;
751 *) ac_optarg=yes ;;
752 esac
754 # Accept the important Cygnus configure options, so we can diagnose typos.
756 case $ac_dashdash$ac_option in
758 ac_dashdash=yes ;;
760 -bindir | --bindir | --bindi | --bind | --bin | --bi)
761 ac_prev=bindir ;;
762 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
763 bindir=$ac_optarg ;;
765 -build | --build | --buil | --bui | --bu)
766 ac_prev=build_alias ;;
767 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
768 build_alias=$ac_optarg ;;
770 -cache-file | --cache-file | --cache-fil | --cache-fi \
771 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
772 ac_prev=cache_file ;;
773 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
774 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
775 cache_file=$ac_optarg ;;
777 --config-cache | -C)
778 cache_file=config.cache ;;
780 -datadir | --datadir | --datadi | --datad)
781 ac_prev=datadir ;;
782 -datadir=* | --datadir=* | --datadi=* | --datad=*)
783 datadir=$ac_optarg ;;
785 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
786 | --dataroo | --dataro | --datar)
787 ac_prev=datarootdir ;;
788 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
789 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
790 datarootdir=$ac_optarg ;;
792 -disable-* | --disable-*)
793 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
794 # Reject names that are not valid shell variable names.
795 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
796 as_fn_error $? "invalid feature name: $ac_useropt"
797 ac_useropt_orig=$ac_useropt
798 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
799 case $ac_user_opts in
801 "enable_$ac_useropt"
802 "*) ;;
803 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
804 ac_unrecognized_sep=', ';;
805 esac
806 eval enable_$ac_useropt=no ;;
808 -docdir | --docdir | --docdi | --doc | --do)
809 ac_prev=docdir ;;
810 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
811 docdir=$ac_optarg ;;
813 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
814 ac_prev=dvidir ;;
815 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
816 dvidir=$ac_optarg ;;
818 -enable-* | --enable-*)
819 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
820 # Reject names that are not valid shell variable names.
821 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
822 as_fn_error $? "invalid feature name: $ac_useropt"
823 ac_useropt_orig=$ac_useropt
824 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
825 case $ac_user_opts in
827 "enable_$ac_useropt"
828 "*) ;;
829 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
830 ac_unrecognized_sep=', ';;
831 esac
832 eval enable_$ac_useropt=\$ac_optarg ;;
834 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
835 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
836 | --exec | --exe | --ex)
837 ac_prev=exec_prefix ;;
838 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
839 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
840 | --exec=* | --exe=* | --ex=*)
841 exec_prefix=$ac_optarg ;;
843 -gas | --gas | --ga | --g)
844 # Obsolete; use --with-gas.
845 with_gas=yes ;;
847 -help | --help | --hel | --he | -h)
848 ac_init_help=long ;;
849 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
850 ac_init_help=recursive ;;
851 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
852 ac_init_help=short ;;
854 -host | --host | --hos | --ho)
855 ac_prev=host_alias ;;
856 -host=* | --host=* | --hos=* | --ho=*)
857 host_alias=$ac_optarg ;;
859 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
860 ac_prev=htmldir ;;
861 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
862 | --ht=*)
863 htmldir=$ac_optarg ;;
865 -includedir | --includedir | --includedi | --included | --include \
866 | --includ | --inclu | --incl | --inc)
867 ac_prev=includedir ;;
868 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
869 | --includ=* | --inclu=* | --incl=* | --inc=*)
870 includedir=$ac_optarg ;;
872 -infodir | --infodir | --infodi | --infod | --info | --inf)
873 ac_prev=infodir ;;
874 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
875 infodir=$ac_optarg ;;
877 -libdir | --libdir | --libdi | --libd)
878 ac_prev=libdir ;;
879 -libdir=* | --libdir=* | --libdi=* | --libd=*)
880 libdir=$ac_optarg ;;
882 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
883 | --libexe | --libex | --libe)
884 ac_prev=libexecdir ;;
885 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
886 | --libexe=* | --libex=* | --libe=*)
887 libexecdir=$ac_optarg ;;
889 -localedir | --localedir | --localedi | --localed | --locale)
890 ac_prev=localedir ;;
891 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
892 localedir=$ac_optarg ;;
894 -localstatedir | --localstatedir | --localstatedi | --localstated \
895 | --localstate | --localstat | --localsta | --localst | --locals)
896 ac_prev=localstatedir ;;
897 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
898 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
899 localstatedir=$ac_optarg ;;
901 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
902 ac_prev=mandir ;;
903 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
904 mandir=$ac_optarg ;;
906 -nfp | --nfp | --nf)
907 # Obsolete; use --without-fp.
908 with_fp=no ;;
910 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
911 | --no-cr | --no-c | -n)
912 no_create=yes ;;
914 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
915 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
916 no_recursion=yes ;;
918 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
919 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
920 | --oldin | --oldi | --old | --ol | --o)
921 ac_prev=oldincludedir ;;
922 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
923 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
924 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
925 oldincludedir=$ac_optarg ;;
927 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
928 ac_prev=prefix ;;
929 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
930 prefix=$ac_optarg ;;
932 -program-prefix | --program-prefix | --program-prefi | --program-pref \
933 | --program-pre | --program-pr | --program-p)
934 ac_prev=program_prefix ;;
935 -program-prefix=* | --program-prefix=* | --program-prefi=* \
936 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
937 program_prefix=$ac_optarg ;;
939 -program-suffix | --program-suffix | --program-suffi | --program-suff \
940 | --program-suf | --program-su | --program-s)
941 ac_prev=program_suffix ;;
942 -program-suffix=* | --program-suffix=* | --program-suffi=* \
943 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
944 program_suffix=$ac_optarg ;;
946 -program-transform-name | --program-transform-name \
947 | --program-transform-nam | --program-transform-na \
948 | --program-transform-n | --program-transform- \
949 | --program-transform | --program-transfor \
950 | --program-transfo | --program-transf \
951 | --program-trans | --program-tran \
952 | --progr-tra | --program-tr | --program-t)
953 ac_prev=program_transform_name ;;
954 -program-transform-name=* | --program-transform-name=* \
955 | --program-transform-nam=* | --program-transform-na=* \
956 | --program-transform-n=* | --program-transform-=* \
957 | --program-transform=* | --program-transfor=* \
958 | --program-transfo=* | --program-transf=* \
959 | --program-trans=* | --program-tran=* \
960 | --progr-tra=* | --program-tr=* | --program-t=*)
961 program_transform_name=$ac_optarg ;;
963 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
964 ac_prev=pdfdir ;;
965 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
966 pdfdir=$ac_optarg ;;
968 -psdir | --psdir | --psdi | --psd | --ps)
969 ac_prev=psdir ;;
970 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
971 psdir=$ac_optarg ;;
973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
974 | -silent | --silent | --silen | --sile | --sil)
975 silent=yes ;;
977 -runstatedir | --runstatedir | --runstatedi | --runstated \
978 | --runstate | --runstat | --runsta | --runst | --runs \
979 | --run | --ru | --r)
980 ac_prev=runstatedir ;;
981 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
982 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
983 | --run=* | --ru=* | --r=*)
984 runstatedir=$ac_optarg ;;
986 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
987 ac_prev=sbindir ;;
988 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
989 | --sbi=* | --sb=*)
990 sbindir=$ac_optarg ;;
992 -sharedstatedir | --sharedstatedir | --sharedstatedi \
993 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
994 | --sharedst | --shareds | --shared | --share | --shar \
995 | --sha | --sh)
996 ac_prev=sharedstatedir ;;
997 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
998 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
999 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1000 | --sha=* | --sh=*)
1001 sharedstatedir=$ac_optarg ;;
1003 -site | --site | --sit)
1004 ac_prev=site ;;
1005 -site=* | --site=* | --sit=*)
1006 site=$ac_optarg ;;
1008 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1009 ac_prev=srcdir ;;
1010 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1011 srcdir=$ac_optarg ;;
1013 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1014 | --syscon | --sysco | --sysc | --sys | --sy)
1015 ac_prev=sysconfdir ;;
1016 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1017 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1018 sysconfdir=$ac_optarg ;;
1020 -target | --target | --targe | --targ | --tar | --ta | --t)
1021 ac_prev=target_alias ;;
1022 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1023 target_alias=$ac_optarg ;;
1025 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 verbose=yes ;;
1028 -version | --version | --versio | --versi | --vers | -V)
1029 ac_init_version=: ;;
1031 -with-* | --with-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error $? "invalid package name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "with_$ac_useropt"
1041 "*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval with_$ac_useropt=\$ac_optarg ;;
1047 -without-* | --without-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid package name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "with_$ac_useropt"
1057 "*) ;;
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1060 esac
1061 eval with_$ac_useropt=no ;;
1063 --x)
1064 # Obsolete; use --with-x.
1065 with_x=yes ;;
1067 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1068 | --x-incl | --x-inc | --x-in | --x-i)
1069 ac_prev=x_includes ;;
1070 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1071 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1072 x_includes=$ac_optarg ;;
1074 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1075 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1076 ac_prev=x_libraries ;;
1077 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1078 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1079 x_libraries=$ac_optarg ;;
1081 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1082 Try \`$0 --help' for more information"
1085 *=*)
1086 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1087 # Reject names that are not valid shell variable names.
1088 case $ac_envvar in #(
1089 '' | [0-9]* | *[!_$as_cr_alnum]* )
1090 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1091 esac
1092 eval $ac_envvar=\$ac_optarg
1093 export $ac_envvar ;;
1096 # FIXME: should be removed in autoconf 3.0.
1097 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1103 esac
1104 done
1106 if test -n "$ac_prev"; then
1107 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108 as_fn_error $? "missing argument to $ac_option"
1111 if test -n "$ac_unrecognized_opts"; then
1112 case $enable_option_checking in
1113 no) ;;
1114 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1115 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1116 esac
1119 # Check all directory arguments for consistency.
1120 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir runstatedir
1125 eval ac_val=\$$ac_var
1126 # Remove trailing slashes.
1127 case $ac_val in
1128 */ )
1129 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1130 eval $ac_var=\$ac_val;;
1131 esac
1132 # Be sure to have absolute directory names.
1133 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac
1137 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1138 done
1140 # There might be people who depend on the old broken behavior: `$host'
1141 # used to hold the argument of --host etc.
1142 # FIXME: To remove some day.
1143 build=$build_alias
1144 host=$host_alias
1145 target=$target_alias
1147 # FIXME: To remove some day.
1148 if test "x$host_alias" != x; then
1149 if test "x$build_alias" = x; then
1150 cross_compiling=maybe
1151 elif test "x$build_alias" != "x$host_alias"; then
1152 cross_compiling=yes
1156 ac_tool_prefix=
1157 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159 test "$silent" = yes && exec 6>/dev/null
1162 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di=`ls -di .` &&
1164 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1165 as_fn_error $? "working directory cannot be determined"
1166 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167 as_fn_error $? "pwd does not report name of working directory"
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$as_myself" ||
1175 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$as_myself" : 'X\(//\)[^/]' \| \
1177 X"$as_myself" : 'X\(//\)$' \| \
1178 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1179 $as_echo X"$as_myself" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1188 /^X\(\/\/\)$/{
1189 s//\1/
1192 /^X\(\/\).*/{
1193 s//\1/
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1201 else
1202 ac_srcdir_defaulted=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 ac_abs_confdir=`(
1210 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1211 pwd)`
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 srcdir=.
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1219 case $srcdir in
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 esac
1222 for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227 done
1230 # Report the --help message.
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1235 cat <<_ACEOF
1236 \`configure' configures this package to adapt to many kinds of systems.
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1243 Defaults for the options are specified in brackets.
1245 Configuration:
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking ...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 [PREFIX]
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1267 For better control, use the options below.
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1290 _ACEOF
1292 cat <<\_ACEOF
1293 _ACEOF
1296 if test -n "$ac_init_help"; then
1298 cat <<\_ACEOF
1300 Some influential environment variables:
1301 CC C compiler command
1302 CFLAGS C compiler flags
1303 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1304 nonstandard directory <lib dir>
1305 LIBS libraries to pass to the linker, e.g. -l<library>
1306 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1307 you have headers in a nonstandard directory <include dir>
1308 CPP C preprocessor
1310 Use these variables to override the choices made by `configure' or to help
1311 it to find libraries and programs with nonstandard names/locations.
1313 Report bugs to the package provider.
1314 _ACEOF
1315 ac_status=$?
1318 if test "$ac_init_help" = "recursive"; then
1319 # If there are subdirs, report their specific --help.
1320 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1321 test -d "$ac_dir" ||
1322 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1323 continue
1324 ac_builddir=.
1326 case "$ac_dir" in
1327 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1330 # A ".." for each directory in $ac_dir_suffix.
1331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1332 case $ac_top_builddir_sub in
1333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1335 esac ;;
1336 esac
1337 ac_abs_top_builddir=$ac_pwd
1338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1339 # for backward compatibility:
1340 ac_top_builddir=$ac_top_build_prefix
1342 case $srcdir in
1343 .) # We are building in place.
1344 ac_srcdir=.
1345 ac_top_srcdir=$ac_top_builddir_sub
1346 ac_abs_top_srcdir=$ac_pwd ;;
1347 [\\/]* | ?:[\\/]* ) # Absolute name.
1348 ac_srcdir=$srcdir$ac_dir_suffix;
1349 ac_top_srcdir=$srcdir
1350 ac_abs_top_srcdir=$srcdir ;;
1351 *) # Relative name.
1352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1353 ac_top_srcdir=$ac_top_build_prefix$srcdir
1354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1355 esac
1356 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358 cd "$ac_dir" || { ac_status=$?; continue; }
1359 # Check for guested configure.
1360 if test -f "$ac_srcdir/configure.gnu"; then
1361 echo &&
1362 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1363 elif test -f "$ac_srcdir/configure"; then
1364 echo &&
1365 $SHELL "$ac_srcdir/configure" --help=recursive
1366 else
1367 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1368 fi || ac_status=$?
1369 cd "$ac_pwd" || { ac_status=$?; break; }
1370 done
1373 test -n "$ac_init_help" && exit $ac_status
1374 if $ac_init_version; then
1375 cat <<\_ACEOF
1376 configure
1377 generated by GNU Autoconf 2.69
1379 Copyright (C) 2012 Free Software Foundation, Inc.
1380 This configure script is free software; the Free Software Foundation
1381 gives unlimited permission to copy, distribute and modify it.
1382 _ACEOF
1383 exit
1386 ## ------------------------ ##
1387 ## Autoconf initialization. ##
1388 ## ------------------------ ##
1390 # ac_fn_c_try_compile LINENO
1391 # --------------------------
1392 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1393 ac_fn_c_try_compile ()
1395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1396 rm -f conftest.$ac_objext
1397 if { { ac_try="$ac_compile"
1398 case "(($ac_try" in
1399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1400 *) ac_try_echo=$ac_try;;
1401 esac
1402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1403 $as_echo "$ac_try_echo"; } >&5
1404 (eval "$ac_compile") 2>conftest.err
1405 ac_status=$?
1406 if test -s conftest.err; then
1407 grep -v '^ *+' conftest.err >conftest.er1
1408 cat conftest.er1 >&5
1409 mv -f conftest.er1 conftest.err
1411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1412 test $ac_status = 0; } && {
1413 test -z "$ac_c_werror_flag" ||
1414 test ! -s conftest.err
1415 } && test -s conftest.$ac_objext; then :
1416 ac_retval=0
1417 else
1418 $as_echo "$as_me: failed program was:" >&5
1419 sed 's/^/| /' conftest.$ac_ext >&5
1421 ac_retval=1
1423 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1424 as_fn_set_status $ac_retval
1426 } # ac_fn_c_try_compile
1428 # ac_fn_c_try_run LINENO
1429 # ----------------------
1430 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1431 # that executables *can* be run.
1432 ac_fn_c_try_run ()
1434 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1435 if { { ac_try="$ac_link"
1436 case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439 esac
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_link") 2>&5
1443 ac_status=$?
1444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1445 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1446 { { case "(($ac_try" in
1447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1448 *) ac_try_echo=$ac_try;;
1449 esac
1450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451 $as_echo "$ac_try_echo"; } >&5
1452 (eval "$ac_try") 2>&5
1453 ac_status=$?
1454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455 test $ac_status = 0; }; }; then :
1456 ac_retval=0
1457 else
1458 $as_echo "$as_me: program exited with status $ac_status" >&5
1459 $as_echo "$as_me: failed program was:" >&5
1460 sed 's/^/| /' conftest.$ac_ext >&5
1462 ac_retval=$ac_status
1464 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1466 as_fn_set_status $ac_retval
1468 } # ac_fn_c_try_run
1470 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1471 # --------------------------------------------
1472 # Tries to find the compile-time value of EXPR in a program that includes
1473 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1474 # computed
1475 ac_fn_c_compute_int ()
1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478 if test "$cross_compiling" = yes; then
1479 # Depending upon the size, compute the lo and hi bounds.
1480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1481 /* end confdefs.h. */
1484 main ()
1486 static int test_array [1 - 2 * !(($2) >= 0)];
1487 test_array [0] = 0;
1488 return test_array [0];
1491 return 0;
1493 _ACEOF
1494 if ac_fn_c_try_compile "$LINENO"; then :
1495 ac_lo=0 ac_mid=0
1496 while :; do
1497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1498 /* end confdefs.h. */
1501 main ()
1503 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1504 test_array [0] = 0;
1505 return test_array [0];
1508 return 0;
1510 _ACEOF
1511 if ac_fn_c_try_compile "$LINENO"; then :
1512 ac_hi=$ac_mid; break
1513 else
1514 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1515 if test $ac_lo -le $ac_mid; then
1516 ac_lo= ac_hi=
1517 break
1519 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1522 done
1523 else
1524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1525 /* end confdefs.h. */
1528 main ()
1530 static int test_array [1 - 2 * !(($2) < 0)];
1531 test_array [0] = 0;
1532 return test_array [0];
1535 return 0;
1537 _ACEOF
1538 if ac_fn_c_try_compile "$LINENO"; then :
1539 ac_hi=-1 ac_mid=-1
1540 while :; do
1541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1542 /* end confdefs.h. */
1545 main ()
1547 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1548 test_array [0] = 0;
1549 return test_array [0];
1552 return 0;
1554 _ACEOF
1555 if ac_fn_c_try_compile "$LINENO"; then :
1556 ac_lo=$ac_mid; break
1557 else
1558 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1559 if test $ac_mid -le $ac_hi; then
1560 ac_lo= ac_hi=
1561 break
1563 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1566 done
1567 else
1568 ac_lo= ac_hi=
1570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1573 # Binary search between lo and hi bounds.
1574 while test "x$ac_lo" != "x$ac_hi"; do
1575 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1580 main ()
1582 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1583 test_array [0] = 0;
1584 return test_array [0];
1587 return 0;
1589 _ACEOF
1590 if ac_fn_c_try_compile "$LINENO"; then :
1591 ac_hi=$ac_mid
1592 else
1593 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596 done
1597 case $ac_lo in #((
1598 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1599 '') ac_retval=1 ;;
1600 esac
1601 else
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1605 static long int longval () { return $2; }
1606 static unsigned long int ulongval () { return $2; }
1607 #include <stdio.h>
1608 #include <stdlib.h>
1610 main ()
1613 FILE *f = fopen ("conftest.val", "w");
1614 if (! f)
1615 return 1;
1616 if (($2) < 0)
1618 long int i = longval ();
1619 if (i != ($2))
1620 return 1;
1621 fprintf (f, "%ld", i);
1623 else
1625 unsigned long int i = ulongval ();
1626 if (i != ($2))
1627 return 1;
1628 fprintf (f, "%lu", i);
1630 /* Do not output a trailing newline, as this causes \r\n confusion
1631 on some platforms. */
1632 return ferror (f) || fclose (f) != 0;
1635 return 0;
1637 _ACEOF
1638 if ac_fn_c_try_run "$LINENO"; then :
1639 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1640 else
1641 ac_retval=1
1643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1644 conftest.$ac_objext conftest.beam conftest.$ac_ext
1645 rm -f conftest.val
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1651 } # ac_fn_c_compute_int
1653 # ac_fn_c_try_cpp LINENO
1654 # ----------------------
1655 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_cpp ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if { { ac_try="$ac_cpp conftest.$ac_ext"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } > conftest.i && {
1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1683 ac_retval=1
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 as_fn_set_status $ac_retval
1688 } # ac_fn_c_try_cpp
1690 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1691 # -------------------------------------------------------
1692 # Tests whether HEADER exists and can be compiled using the include files in
1693 # INCLUDES, setting the cache variable VAR accordingly.
1694 ac_fn_c_check_header_compile ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1698 $as_echo_n "checking for $2... " >&6; }
1699 if eval \${$3+:} false; then :
1700 $as_echo_n "(cached) " >&6
1701 else
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708 eval "$3=yes"
1709 else
1710 eval "$3=no"
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 } # ac_fn_c_check_header_compile
1720 cat >config.log <<_ACEOF
1721 This file contains any messages produced by compilers while
1722 running configure, to aid debugging if configure makes a mistake.
1724 It was created by $as_me, which was
1725 generated by GNU Autoconf 2.69. Invocation command line was
1727 $ $0 $@
1729 _ACEOF
1730 exec 5>>config.log
1732 cat <<_ASUNAME
1733 ## --------- ##
1734 ## Platform. ##
1735 ## --------- ##
1737 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1738 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1739 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1740 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1741 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1743 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1744 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1746 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1747 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1748 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1749 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1750 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1751 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1752 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1754 _ASUNAME
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 for as_dir in $PATH
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 $as_echo "PATH: $as_dir"
1762 done
1763 IFS=$as_save_IFS
1765 } >&5
1767 cat >&5 <<_ACEOF
1770 ## ----------- ##
1771 ## Core tests. ##
1772 ## ----------- ##
1774 _ACEOF
1777 # Keep a trace of the command line.
1778 # Strip out --no-create and --no-recursion so they do not pile up.
1779 # Strip out --silent because we don't want to record it for future runs.
1780 # Also quote any args containing shell meta-characters.
1781 # Make two passes to allow for proper duplicate-argument suppression.
1782 ac_configure_args=
1783 ac_configure_args0=
1784 ac_configure_args1=
1785 ac_must_keep_next=false
1786 for ac_pass in 1 2
1788 for ac_arg
1790 case $ac_arg in
1791 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1792 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1793 | -silent | --silent | --silen | --sile | --sil)
1794 continue ;;
1795 *\'*)
1796 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1797 esac
1798 case $ac_pass in
1799 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1801 as_fn_append ac_configure_args1 " '$ac_arg'"
1802 if test $ac_must_keep_next = true; then
1803 ac_must_keep_next=false # Got value, back to normal.
1804 else
1805 case $ac_arg in
1806 *=* | --config-cache | -C | -disable-* | --disable-* \
1807 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1808 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1809 | -with-* | --with-* | -without-* | --without-* | --x)
1810 case "$ac_configure_args0 " in
1811 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1812 esac
1814 -* ) ac_must_keep_next=true ;;
1815 esac
1817 as_fn_append ac_configure_args " '$ac_arg'"
1819 esac
1820 done
1821 done
1822 { ac_configure_args0=; unset ac_configure_args0;}
1823 { ac_configure_args1=; unset ac_configure_args1;}
1825 # When interrupted or exit'd, cleanup temporary files, and complete
1826 # config.log. We remove comments because anyway the quotes in there
1827 # would cause problems or look ugly.
1828 # WARNING: Use '\'' to represent an apostrophe within the trap.
1829 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1830 trap 'exit_status=$?
1831 # Save into config.log some information that might help in debugging.
1833 echo
1835 $as_echo "## ---------------- ##
1836 ## Cache variables. ##
1837 ## ---------------- ##"
1838 echo
1839 # The following way of writing the cache mishandles newlines in values,
1841 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1842 eval ac_val=\$$ac_var
1843 case $ac_val in #(
1844 *${as_nl}*)
1845 case $ac_var in #(
1846 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1847 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1848 esac
1849 case $ac_var in #(
1850 _ | IFS | as_nl) ;; #(
1851 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1852 *) { eval $ac_var=; unset $ac_var;} ;;
1853 esac ;;
1854 esac
1855 done
1856 (set) 2>&1 |
1857 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1858 *${as_nl}ac_space=\ *)
1859 sed -n \
1860 "s/'\''/'\''\\\\'\'''\''/g;
1861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1862 ;; #(
1864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1866 esac |
1867 sort
1869 echo
1871 $as_echo "## ----------------- ##
1872 ## Output variables. ##
1873 ## ----------------- ##"
1874 echo
1875 for ac_var in $ac_subst_vars
1877 eval ac_val=\$$ac_var
1878 case $ac_val in
1879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 esac
1881 $as_echo "$ac_var='\''$ac_val'\''"
1882 done | sort
1883 echo
1885 if test -n "$ac_subst_files"; then
1886 $as_echo "## ------------------- ##
1887 ## File substitutions. ##
1888 ## ------------------- ##"
1889 echo
1890 for ac_var in $ac_subst_files
1892 eval ac_val=\$$ac_var
1893 case $ac_val in
1894 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1895 esac
1896 $as_echo "$ac_var='\''$ac_val'\''"
1897 done | sort
1898 echo
1901 if test -s confdefs.h; then
1902 $as_echo "## ----------- ##
1903 ## confdefs.h. ##
1904 ## ----------- ##"
1905 echo
1906 cat confdefs.h
1907 echo
1909 test "$ac_signal" != 0 &&
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
1912 } >&5
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1915 exit $exit_status
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1919 done
1920 ac_signal=0
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1925 $as_echo "/* confdefs.h */" > confdefs.h
1927 # Predefined preprocessor variables.
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_NAME "$PACKAGE_NAME"
1931 _ACEOF
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1935 _ACEOF
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1939 _ACEOF
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_STRING "$PACKAGE_STRING"
1943 _ACEOF
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1947 _ACEOF
1949 cat >>confdefs.h <<_ACEOF
1950 #define PACKAGE_URL "$PACKAGE_URL"
1951 _ACEOF
1954 # Let the site file select an alternate cache file if it wants to.
1955 # Prefer an explicitly selected file to automatically selected ones.
1956 ac_site_file1=NONE
1957 ac_site_file2=NONE
1958 if test -n "$CONFIG_SITE"; then
1959 # We do not want a PATH search for config.site.
1960 case $CONFIG_SITE in #((
1961 -*) ac_site_file1=./$CONFIG_SITE;;
1962 */*) ac_site_file1=$CONFIG_SITE;;
1963 *) ac_site_file1=./$CONFIG_SITE;;
1964 esac
1965 elif test "x$prefix" != xNONE; then
1966 ac_site_file1=$prefix/share/config.site
1967 ac_site_file2=$prefix/etc/config.site
1968 else
1969 ac_site_file1=$ac_default_prefix/share/config.site
1970 ac_site_file2=$ac_default_prefix/etc/config.site
1972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1974 test "x$ac_site_file" = xNONE && continue
1975 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1979 . "$ac_site_file" \
1980 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1982 as_fn_error $? "failed to load site script $ac_site_file
1983 See \`config.log' for more details" "$LINENO" 5; }
1985 done
1987 if test -r "$cache_file"; then
1988 # Some versions of bash will fail to source /dev/null (special files
1989 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1990 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1992 $as_echo "$as_me: loading cache $cache_file" >&6;}
1993 case $cache_file in
1994 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1995 *) . "./$cache_file";;
1996 esac
1998 else
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2000 $as_echo "$as_me: creating cache $cache_file" >&6;}
2001 >$cache_file
2004 # Check that the precious variables saved in the cache have kept the same
2005 # value.
2006 ac_cache_corrupted=false
2007 for ac_var in $ac_precious_vars; do
2008 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2009 eval ac_new_set=\$ac_env_${ac_var}_set
2010 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2011 eval ac_new_val=\$ac_env_${ac_var}_value
2012 case $ac_old_set,$ac_new_set in
2013 set,)
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2017 ,set)
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2019 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2020 ac_cache_corrupted=: ;;
2021 ,);;
2023 if test "x$ac_old_val" != "x$ac_new_val"; then
2024 # differences in whitespace do not lead to failure.
2025 ac_old_val_w=`echo x $ac_old_val`
2026 ac_new_val_w=`echo x $ac_new_val`
2027 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2029 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2030 ac_cache_corrupted=:
2031 else
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2033 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2034 eval $ac_var=\$ac_old_val
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2037 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2039 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2040 fi;;
2041 esac
2042 # Pass precious variables to config.status.
2043 if test "$ac_new_set" = set; then
2044 case $ac_new_val in
2045 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2046 *) ac_arg=$ac_var=$ac_new_val ;;
2047 esac
2048 case " $ac_configure_args " in
2049 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2050 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2051 esac
2053 done
2054 if $ac_cache_corrupted; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2058 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2059 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2061 ## -------------------- ##
2062 ## Main body of script. ##
2063 ## -------------------- ##
2065 ac_ext=c
2066 ac_cpp='$CPP $CPPFLAGS'
2067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2072 ac_config_headers="$ac_config_headers config.h:config_in.h"
2076 ac_ext=c
2077 ac_cpp='$CPP $CPPFLAGS'
2078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 if test -n "$ac_tool_prefix"; then
2082 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2083 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2085 $as_echo_n "checking for $ac_word... " >&6; }
2086 if ${ac_cv_prog_CC+:} false; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 if test -n "$CC"; then
2090 ac_cv_prog_CC="$CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 break 2
2103 done
2104 done
2105 IFS=$as_save_IFS
2109 CC=$ac_cv_prog_CC
2110 if test -n "$CC"; then
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2112 $as_echo "$CC" >&6; }
2113 else
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2115 $as_echo "no" >&6; }
2120 if test -z "$ac_cv_prog_CC"; then
2121 ac_ct_CC=$CC
2122 # Extract the first word of "gcc", so it can be a program name with args.
2123 set dummy gcc; ac_word=$2
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2125 $as_echo_n "checking for $ac_word... " >&6; }
2126 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2127 $as_echo_n "(cached) " >&6
2128 else
2129 if test -n "$ac_ct_CC"; then
2130 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131 else
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133 for as_dir in $PATH
2135 IFS=$as_save_IFS
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139 ac_cv_prog_ac_ct_CC="gcc"
2140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 break 2
2143 done
2144 done
2145 IFS=$as_save_IFS
2149 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2150 if test -n "$ac_ct_CC"; then
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2152 $as_echo "$ac_ct_CC" >&6; }
2153 else
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2155 $as_echo "no" >&6; }
2158 if test "x$ac_ct_CC" = x; then
2159 CC=""
2160 else
2161 case $cross_compiling:$ac_tool_warned in
2162 yes:)
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2165 ac_tool_warned=yes ;;
2166 esac
2167 CC=$ac_ct_CC
2169 else
2170 CC="$ac_cv_prog_CC"
2173 if test -z "$CC"; then
2174 if test -n "$ac_tool_prefix"; then
2175 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2176 set dummy ${ac_tool_prefix}cc; ac_word=$2
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2178 $as_echo_n "checking for $ac_word... " >&6; }
2179 if ${ac_cv_prog_CC+:} false; then :
2180 $as_echo_n "(cached) " >&6
2181 else
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2188 IFS=$as_save_IFS
2189 test -z "$as_dir" && as_dir=.
2190 for ac_exec_ext in '' $ac_executable_extensions; do
2191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2192 ac_cv_prog_CC="${ac_tool_prefix}cc"
2193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 break 2
2196 done
2197 done
2198 IFS=$as_save_IFS
2202 CC=$ac_cv_prog_CC
2203 if test -n "$CC"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2205 $as_echo "$CC" >&6; }
2206 else
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2208 $as_echo "no" >&6; }
2214 if test -z "$CC"; then
2215 # Extract the first word of "cc", so it can be a program name with args.
2216 set dummy cc; ac_word=$2
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2218 $as_echo_n "checking for $ac_word... " >&6; }
2219 if ${ac_cv_prog_CC+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 if test -n "$CC"; then
2223 ac_cv_prog_CC="$CC" # Let the user override the test.
2224 else
2225 ac_prog_rejected=no
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2234 ac_prog_rejected=yes
2235 continue
2237 ac_cv_prog_CC="cc"
2238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2241 done
2242 done
2243 IFS=$as_save_IFS
2245 if test $ac_prog_rejected = yes; then
2246 # We found a bogon in the path, so make sure we never use it.
2247 set dummy $ac_cv_prog_CC
2248 shift
2249 if test $# != 0; then
2250 # We chose a different compiler from the bogus one.
2251 # However, it has the same basename, so the bogon will be chosen
2252 # first if we set CC to just the basename; use the full file name.
2253 shift
2254 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2262 $as_echo "$CC" >&6; }
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2265 $as_echo "no" >&6; }
2270 if test -z "$CC"; then
2271 if test -n "$ac_tool_prefix"; then
2272 for ac_prog in cl.exe
2274 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2275 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if ${ac_cv_prog_CC+:} false; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2283 else
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2291 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2293 break 2
2295 done
2296 done
2297 IFS=$as_save_IFS
2301 CC=$ac_cv_prog_CC
2302 if test -n "$CC"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2304 $as_echo "$CC" >&6; }
2305 else
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2307 $as_echo "no" >&6; }
2311 test -n "$CC" && break
2312 done
2314 if test -z "$CC"; then
2315 ac_ct_CC=$CC
2316 for ac_prog in cl.exe
2318 # Extract the first word of "$ac_prog", so it can be a program name with args.
2319 set dummy $ac_prog; ac_word=$2
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2321 $as_echo_n "checking for $ac_word... " >&6; }
2322 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2323 $as_echo_n "(cached) " >&6
2324 else
2325 if test -n "$ac_ct_CC"; then
2326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327 else
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2329 for as_dir in $PATH
2331 IFS=$as_save_IFS
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2335 ac_cv_prog_ac_ct_CC="$ac_prog"
2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 break 2
2339 done
2340 done
2341 IFS=$as_save_IFS
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2348 $as_echo "$ac_ct_CC" >&6; }
2349 else
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2351 $as_echo "no" >&6; }
2355 test -n "$ac_ct_CC" && break
2356 done
2358 if test "x$ac_ct_CC" = x; then
2359 CC=""
2360 else
2361 case $cross_compiling:$ac_tool_warned in
2362 yes:)
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2365 ac_tool_warned=yes ;;
2366 esac
2367 CC=$ac_ct_CC
2374 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2376 as_fn_error $? "no acceptable C compiler found in \$PATH
2377 See \`config.log' for more details" "$LINENO" 5; }
2379 # Provide some information about the compiler.
2380 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2381 set X $ac_compile
2382 ac_compiler=$2
2383 for ac_option in --version -v -V -qversion; do
2384 { { ac_try="$ac_compiler $ac_option >&5"
2385 case "(($ac_try" in
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2388 esac
2389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390 $as_echo "$ac_try_echo"; } >&5
2391 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2392 ac_status=$?
2393 if test -s conftest.err; then
2394 sed '10a\
2395 ... rest of stderr output deleted ...
2396 10q' conftest.err >conftest.er1
2397 cat conftest.er1 >&5
2399 rm -f conftest.er1 conftest.err
2400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2401 test $ac_status = 0; }
2402 done
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2408 main ()
2412 return 0;
2414 _ACEOF
2415 ac_clean_files_save=$ac_clean_files
2416 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2417 # Try to create an executable without -o first, disregard a.out.
2418 # It will help us diagnose broken compilers, and finding out an intuition
2419 # of exeext.
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2421 $as_echo_n "checking whether the C compiler works... " >&6; }
2422 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2424 # The possible output files:
2425 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2427 ac_rmfiles=
2428 for ac_file in $ac_files
2430 case $ac_file in
2431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2432 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2433 esac
2434 done
2435 rm -f $ac_rmfiles
2437 if { { ac_try="$ac_link_default"
2438 case "(($ac_try" in
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2441 esac
2442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2443 $as_echo "$ac_try_echo"; } >&5
2444 (eval "$ac_link_default") 2>&5
2445 ac_status=$?
2446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 test $ac_status = 0; }; then :
2448 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2449 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2450 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2451 # so that the user can short-circuit this test for compilers unknown to
2452 # Autoconf.
2453 for ac_file in $ac_files ''
2455 test -f "$ac_file" || continue
2456 case $ac_file in
2457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2459 [ab].out )
2460 # We found the default executable, but exeext='' is most
2461 # certainly right.
2462 break;;
2463 *.* )
2464 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2465 then :; else
2466 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2468 # We set ac_cv_exeext here because the later test for it is not
2469 # safe: cross compilers may not add the suffix if given an `-o'
2470 # argument, so we may need to know it at that point already.
2471 # Even if this section looks crufty: it has the advantage of
2472 # actually working.
2473 break;;
2475 break;;
2476 esac
2477 done
2478 test "$ac_cv_exeext" = no && ac_cv_exeext=
2480 else
2481 ac_file=''
2483 if test -z "$ac_file"; then :
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 $as_echo "$as_me: failed program was:" >&5
2487 sed 's/^/| /' conftest.$ac_ext >&5
2489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2491 as_fn_error 77 "C compiler cannot create executables
2492 See \`config.log' for more details" "$LINENO" 5; }
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2495 $as_echo "yes" >&6; }
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2498 $as_echo_n "checking for C compiler default output file name... " >&6; }
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2500 $as_echo "$ac_file" >&6; }
2501 ac_exeext=$ac_cv_exeext
2503 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2504 ac_clean_files=$ac_clean_files_save
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2506 $as_echo_n "checking for suffix of executables... " >&6; }
2507 if { { ac_try="$ac_link"
2508 case "(($ac_try" in
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2511 esac
2512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2513 $as_echo "$ac_try_echo"; } >&5
2514 (eval "$ac_link") 2>&5
2515 ac_status=$?
2516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2517 test $ac_status = 0; }; then :
2518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2519 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2520 # work properly (i.e., refer to `conftest.exe'), while it won't with
2521 # `rm'.
2522 for ac_file in conftest.exe conftest conftest.*; do
2523 test -f "$ac_file" || continue
2524 case $ac_file in
2525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527 break;;
2528 * ) break;;
2529 esac
2530 done
2531 else
2532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2535 See \`config.log' for more details" "$LINENO" 5; }
2537 rm -f conftest conftest$ac_cv_exeext
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2539 $as_echo "$ac_cv_exeext" >&6; }
2541 rm -f conftest.$ac_ext
2542 EXEEXT=$ac_cv_exeext
2543 ac_exeext=$EXEEXT
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2546 #include <stdio.h>
2548 main ()
2550 FILE *f = fopen ("conftest.out", "w");
2551 return ferror (f) || fclose (f) != 0;
2554 return 0;
2556 _ACEOF
2557 ac_clean_files="$ac_clean_files conftest.out"
2558 # Check that the compiler produces executables we can run. If not, either
2559 # the compiler is broken, or we cross compile.
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2561 $as_echo_n "checking whether we are cross compiling... " >&6; }
2562 if test "$cross_compiling" != yes; then
2563 { { ac_try="$ac_link"
2564 case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2567 esac
2568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2569 $as_echo "$ac_try_echo"; } >&5
2570 (eval "$ac_link") 2>&5
2571 ac_status=$?
2572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2573 test $ac_status = 0; }
2574 if { ac_try='./conftest$ac_cv_exeext'
2575 { { case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_try") 2>&5
2582 ac_status=$?
2583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2584 test $ac_status = 0; }; }; then
2585 cross_compiling=no
2586 else
2587 if test "$cross_compiling" = maybe; then
2588 cross_compiling=yes
2589 else
2590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 as_fn_error $? "cannot run C compiled programs.
2593 If you meant to cross compile, use \`--host'.
2594 See \`config.log' for more details" "$LINENO" 5; }
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2599 $as_echo "$cross_compiling" >&6; }
2601 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2602 ac_clean_files=$ac_clean_files_save
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2604 $as_echo_n "checking for suffix of object files... " >&6; }
2605 if ${ac_cv_objext+:} false; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h. */
2612 main ()
2616 return 0;
2618 _ACEOF
2619 rm -f conftest.o conftest.obj
2620 if { { ac_try="$ac_compile"
2621 case "(($ac_try" in
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2624 esac
2625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2626 $as_echo "$ac_try_echo"; } >&5
2627 (eval "$ac_compile") 2>&5
2628 ac_status=$?
2629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630 test $ac_status = 0; }; then :
2631 for ac_file in conftest.o conftest.obj conftest.*; do
2632 test -f "$ac_file" || continue;
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2636 break;;
2637 esac
2638 done
2639 else
2640 $as_echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2645 as_fn_error $? "cannot compute suffix of object files: cannot compile
2646 See \`config.log' for more details" "$LINENO" 5; }
2648 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2651 $as_echo "$ac_cv_objext" >&6; }
2652 OBJEXT=$ac_cv_objext
2653 ac_objext=$OBJEXT
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2655 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2656 if ${ac_cv_c_compiler_gnu+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2663 main ()
2665 #ifndef __GNUC__
2666 choke me
2667 #endif
2670 return 0;
2672 _ACEOF
2673 if ac_fn_c_try_compile "$LINENO"; then :
2674 ac_compiler_gnu=yes
2675 else
2676 ac_compiler_gnu=no
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2683 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2684 if test $ac_compiler_gnu = yes; then
2685 GCC=yes
2686 else
2687 GCC=
2689 ac_test_CFLAGS=${CFLAGS+set}
2690 ac_save_CFLAGS=$CFLAGS
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2692 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2693 if ${ac_cv_prog_cc_g+:} false; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 ac_save_c_werror_flag=$ac_c_werror_flag
2697 ac_c_werror_flag=yes
2698 ac_cv_prog_cc_g=no
2699 CFLAGS="-g"
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2704 main ()
2708 return 0;
2710 _ACEOF
2711 if ac_fn_c_try_compile "$LINENO"; then :
2712 ac_cv_prog_cc_g=yes
2713 else
2714 CFLAGS=""
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h. */
2719 main ()
2723 return 0;
2725 _ACEOF
2726 if ac_fn_c_try_compile "$LINENO"; then :
2728 else
2729 ac_c_werror_flag=$ac_save_c_werror_flag
2730 CFLAGS="-g"
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2735 main ()
2739 return 0;
2741 _ACEOF
2742 if ac_fn_c_try_compile "$LINENO"; then :
2743 ac_cv_prog_cc_g=yes
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_c_werror_flag=$ac_save_c_werror_flag
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2753 $as_echo "$ac_cv_prog_cc_g" >&6; }
2754 if test "$ac_test_CFLAGS" = set; then
2755 CFLAGS=$ac_save_CFLAGS
2756 elif test $ac_cv_prog_cc_g = yes; then
2757 if test "$GCC" = yes; then
2758 CFLAGS="-g -O2"
2759 else
2760 CFLAGS="-g"
2762 else
2763 if test "$GCC" = yes; then
2764 CFLAGS="-O2"
2765 else
2766 CFLAGS=
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2771 if ${ac_cv_prog_cc_c89+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 ac_cv_prog_cc_c89=no
2775 ac_save_CC=$CC
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2778 #include <stdarg.h>
2779 #include <stdio.h>
2780 struct stat;
2781 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2782 struct buf { int x; };
2783 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2784 static char *e (p, i)
2785 char **p;
2786 int i;
2788 return p[i];
2790 static char *f (char * (*g) (char **, int), char **p, ...)
2792 char *s;
2793 va_list v;
2794 va_start (v,p);
2795 s = g (p, va_arg (v,int));
2796 va_end (v);
2797 return s;
2800 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2801 function prototypes and stuff, but not '\xHH' hex character constants.
2802 These don't provoke an error unfortunately, instead are silently treated
2803 as 'x'. The following induces an error, until -std is added to get
2804 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2805 array size at least. It's necessary to write '\x00'==0 to get something
2806 that's true only with -std. */
2807 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2809 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2810 inside strings and character constants. */
2811 #define FOO(x) 'x'
2812 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2814 int test (int i, double x);
2815 struct s1 {int (*f) (int a);};
2816 struct s2 {int (*f) (double a);};
2817 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2818 int argc;
2819 char **argv;
2821 main ()
2823 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2825 return 0;
2827 _ACEOF
2828 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2829 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2831 CC="$ac_save_CC $ac_arg"
2832 if ac_fn_c_try_compile "$LINENO"; then :
2833 ac_cv_prog_cc_c89=$ac_arg
2835 rm -f core conftest.err conftest.$ac_objext
2836 test "x$ac_cv_prog_cc_c89" != "xno" && break
2837 done
2838 rm -f conftest.$ac_ext
2839 CC=$ac_save_CC
2842 # AC_CACHE_VAL
2843 case "x$ac_cv_prog_cc_c89" in
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2846 $as_echo "none needed" >&6; } ;;
2847 xno)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2849 $as_echo "unsupported" >&6; } ;;
2851 CC="$CC $ac_cv_prog_cc_c89"
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2853 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2854 esac
2855 if test "x$ac_cv_prog_cc_c89" != xno; then :
2859 ac_ext=c
2860 ac_cpp='$CPP $CPPFLAGS'
2861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2867 ac_ext=c
2868 ac_cpp='$CPP $CPPFLAGS'
2869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2873 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2874 # On Suns, sometimes $CPP names a directory.
2875 if test -n "$CPP" && test -d "$CPP"; then
2876 CPP=
2878 if test -z "$CPP"; then
2879 if ${ac_cv_prog_CPP+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 # Double quotes because CPP needs to be expanded
2883 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2885 ac_preproc_ok=false
2886 for ac_c_preproc_warn_flag in '' yes
2888 # Use a header file that comes with gcc, so configuring glibc
2889 # with a fresh cross-compiler works.
2890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2891 # <limits.h> exists even on freestanding compilers.
2892 # On the NeXT, cc -E runs the code through the compiler's parser,
2893 # not just through cpp. "Syntax error" is here to catch this case.
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2896 #ifdef __STDC__
2897 # include <limits.h>
2898 #else
2899 # include <assert.h>
2900 #endif
2901 Syntax error
2902 _ACEOF
2903 if ac_fn_c_try_cpp "$LINENO"; then :
2905 else
2906 # Broken: fails on valid input.
2907 continue
2909 rm -f conftest.err conftest.i conftest.$ac_ext
2911 # OK, works on sane cases. Now check whether nonexistent headers
2912 # can be detected and how.
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2915 #include <ac_nonexistent.h>
2916 _ACEOF
2917 if ac_fn_c_try_cpp "$LINENO"; then :
2918 # Broken: success on invalid input.
2919 continue
2920 else
2921 # Passes both tests.
2922 ac_preproc_ok=:
2923 break
2925 rm -f conftest.err conftest.i conftest.$ac_ext
2927 done
2928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2929 rm -f conftest.i conftest.err conftest.$ac_ext
2930 if $ac_preproc_ok; then :
2931 break
2934 done
2935 ac_cv_prog_CPP=$CPP
2938 CPP=$ac_cv_prog_CPP
2939 else
2940 ac_cv_prog_CPP=$CPP
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2943 $as_echo "$CPP" >&6; }
2944 ac_preproc_ok=false
2945 for ac_c_preproc_warn_flag in '' yes
2947 # Use a header file that comes with gcc, so configuring glibc
2948 # with a fresh cross-compiler works.
2949 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2950 # <limits.h> exists even on freestanding compilers.
2951 # On the NeXT, cc -E runs the code through the compiler's parser,
2952 # not just through cpp. "Syntax error" is here to catch this case.
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h. */
2955 #ifdef __STDC__
2956 # include <limits.h>
2957 #else
2958 # include <assert.h>
2959 #endif
2960 Syntax error
2961 _ACEOF
2962 if ac_fn_c_try_cpp "$LINENO"; then :
2964 else
2965 # Broken: fails on valid input.
2966 continue
2968 rm -f conftest.err conftest.i conftest.$ac_ext
2970 # OK, works on sane cases. Now check whether nonexistent headers
2971 # can be detected and how.
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2975 _ACEOF
2976 if ac_fn_c_try_cpp "$LINENO"; then :
2977 # Broken: success on invalid input.
2978 continue
2979 else
2980 # Passes both tests.
2981 ac_preproc_ok=:
2982 break
2984 rm -f conftest.err conftest.i conftest.$ac_ext
2986 done
2987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988 rm -f conftest.i conftest.err conftest.$ac_ext
2989 if $ac_preproc_ok; then :
2991 else
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2994 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2995 See \`config.log' for more details" "$LINENO" 5; }
2998 ac_ext=c
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3006 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3007 if ${ac_cv_path_GREP+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -z "$GREP"; then
3011 ac_path_GREP_found=false
3012 # Loop through the user's path and test for each of PROGNAME-LIST
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_prog in grep ggrep; do
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3021 as_fn_executable_p "$ac_path_GREP" || continue
3022 # Check for GNU ac_path_GREP and select it if it is found.
3023 # Check for GNU $ac_path_GREP
3024 case `"$ac_path_GREP" --version 2>&1` in
3025 *GNU*)
3026 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3028 ac_count=0
3029 $as_echo_n 0123456789 >"conftest.in"
3030 while :
3032 cat "conftest.in" "conftest.in" >"conftest.tmp"
3033 mv "conftest.tmp" "conftest.in"
3034 cp "conftest.in" "conftest.nl"
3035 $as_echo 'GREP' >> "conftest.nl"
3036 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3038 as_fn_arith $ac_count + 1 && ac_count=$as_val
3039 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3040 # Best one so far, save it but keep looking for a better one
3041 ac_cv_path_GREP="$ac_path_GREP"
3042 ac_path_GREP_max=$ac_count
3044 # 10*(2^10) chars as input seems more than enough
3045 test $ac_count -gt 10 && break
3046 done
3047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3048 esac
3050 $ac_path_GREP_found && break 3
3051 done
3052 done
3053 done
3054 IFS=$as_save_IFS
3055 if test -z "$ac_cv_path_GREP"; then
3056 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3058 else
3059 ac_cv_path_GREP=$GREP
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3064 $as_echo "$ac_cv_path_GREP" >&6; }
3065 GREP="$ac_cv_path_GREP"
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3069 $as_echo_n "checking for egrep... " >&6; }
3070 if ${ac_cv_path_EGREP+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3074 then ac_cv_path_EGREP="$GREP -E"
3075 else
3076 if test -z "$EGREP"; then
3077 ac_path_EGREP_found=false
3078 # Loop through the user's path and test for each of PROGNAME-LIST
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3082 IFS=$as_save_IFS
3083 test -z "$as_dir" && as_dir=.
3084 for ac_prog in egrep; do
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3087 as_fn_executable_p "$ac_path_EGREP" || continue
3088 # Check for GNU ac_path_EGREP and select it if it is found.
3089 # Check for GNU $ac_path_EGREP
3090 case `"$ac_path_EGREP" --version 2>&1` in
3091 *GNU*)
3092 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3094 ac_count=0
3095 $as_echo_n 0123456789 >"conftest.in"
3096 while :
3098 cat "conftest.in" "conftest.in" >"conftest.tmp"
3099 mv "conftest.tmp" "conftest.in"
3100 cp "conftest.in" "conftest.nl"
3101 $as_echo 'EGREP' >> "conftest.nl"
3102 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3104 as_fn_arith $ac_count + 1 && ac_count=$as_val
3105 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3106 # Best one so far, save it but keep looking for a better one
3107 ac_cv_path_EGREP="$ac_path_EGREP"
3108 ac_path_EGREP_max=$ac_count
3110 # 10*(2^10) chars as input seems more than enough
3111 test $ac_count -gt 10 && break
3112 done
3113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3114 esac
3116 $ac_path_EGREP_found && break 3
3117 done
3118 done
3119 done
3120 IFS=$as_save_IFS
3121 if test -z "$ac_cv_path_EGREP"; then
3122 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3124 else
3125 ac_cv_path_EGREP=$EGREP
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3131 $as_echo "$ac_cv_path_EGREP" >&6; }
3132 EGREP="$ac_cv_path_EGREP"
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3136 $as_echo_n "checking for ANSI C header files... " >&6; }
3137 if ${ac_cv_header_stdc+:} false; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3142 #include <stdlib.h>
3143 #include <stdarg.h>
3144 #include <string.h>
3145 #include <float.h>
3148 main ()
3152 return 0;
3154 _ACEOF
3155 if ac_fn_c_try_compile "$LINENO"; then :
3156 ac_cv_header_stdc=yes
3157 else
3158 ac_cv_header_stdc=no
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3162 if test $ac_cv_header_stdc = yes; then
3163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165 /* end confdefs.h. */
3166 #include <string.h>
3168 _ACEOF
3169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3170 $EGREP "memchr" >/dev/null 2>&1; then :
3172 else
3173 ac_cv_header_stdc=no
3175 rm -f conftest*
3179 if test $ac_cv_header_stdc = yes; then
3180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3183 #include <stdlib.h>
3185 _ACEOF
3186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3187 $EGREP "free" >/dev/null 2>&1; then :
3189 else
3190 ac_cv_header_stdc=no
3192 rm -f conftest*
3196 if test $ac_cv_header_stdc = yes; then
3197 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3198 if test "$cross_compiling" = yes; then :
3200 else
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3203 #include <ctype.h>
3204 #include <stdlib.h>
3205 #if ((' ' & 0x0FF) == 0x020)
3206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3208 #else
3209 # define ISLOWER(c) \
3210 (('a' <= (c) && (c) <= 'i') \
3211 || ('j' <= (c) && (c) <= 'r') \
3212 || ('s' <= (c) && (c) <= 'z'))
3213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3214 #endif
3216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3218 main ()
3220 int i;
3221 for (i = 0; i < 256; i++)
3222 if (XOR (islower (i), ISLOWER (i))
3223 || toupper (i) != TOUPPER (i))
3224 return 2;
3225 return 0;
3227 _ACEOF
3228 if ac_fn_c_try_run "$LINENO"; then :
3230 else
3231 ac_cv_header_stdc=no
3233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3234 conftest.$ac_objext conftest.beam conftest.$ac_ext
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3240 $as_echo "$ac_cv_header_stdc" >&6; }
3241 if test $ac_cv_header_stdc = yes; then
3243 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3247 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3248 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3249 inttypes.h stdint.h unistd.h
3250 do :
3251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3252 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3254 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3255 cat >>confdefs.h <<_ACEOF
3256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3257 _ACEOF
3261 done
3264 # The cast to long int works around a bug in the HP C Compiler
3265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3267 # This bug is HP SR number 8606223364.
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
3269 $as_echo_n "checking size of char... " >&6; }
3270 if ${ac_cv_sizeof_char+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
3275 else
3276 if test "$ac_cv_type_char" = yes; then
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error 77 "cannot compute sizeof (char)
3280 See \`config.log' for more details" "$LINENO" 5; }
3281 else
3282 ac_cv_sizeof_char=0
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
3288 $as_echo "$ac_cv_sizeof_char" >&6; }
3292 cat >>confdefs.h <<_ACEOF
3293 #define SIZEOF_CHAR $ac_cv_sizeof_char
3294 _ACEOF
3297 # The cast to long int works around a bug in the HP C Compiler
3298 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3299 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3300 # This bug is HP SR number 8606223364.
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
3302 $as_echo_n "checking size of short... " >&6; }
3303 if ${ac_cv_sizeof_short+:} false; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
3308 else
3309 if test "$ac_cv_type_short" = yes; then
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error 77 "cannot compute sizeof (short)
3313 See \`config.log' for more details" "$LINENO" 5; }
3314 else
3315 ac_cv_sizeof_short=0
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
3321 $as_echo "$ac_cv_sizeof_short" >&6; }
3325 cat >>confdefs.h <<_ACEOF
3326 #define SIZEOF_SHORT $ac_cv_sizeof_short
3327 _ACEOF
3330 # The cast to long int works around a bug in the HP C Compiler
3331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3333 # This bug is HP SR number 8606223364.
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
3335 $as_echo_n "checking size of int... " >&6; }
3336 if ${ac_cv_sizeof_int+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338 else
3339 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
3341 else
3342 if test "$ac_cv_type_int" = yes; then
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error 77 "cannot compute sizeof (int)
3346 See \`config.log' for more details" "$LINENO" 5; }
3347 else
3348 ac_cv_sizeof_int=0
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
3354 $as_echo "$ac_cv_sizeof_int" >&6; }
3358 cat >>confdefs.h <<_ACEOF
3359 #define SIZEOF_INT $ac_cv_sizeof_int
3360 _ACEOF
3363 # The cast to long int works around a bug in the HP C Compiler
3364 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3365 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3366 # This bug is HP SR number 8606223364.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
3368 $as_echo_n "checking size of long... " >&6; }
3369 if ${ac_cv_sizeof_long+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
3374 else
3375 if test "$ac_cv_type_long" = yes; then
3376 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3378 as_fn_error 77 "cannot compute sizeof (long)
3379 See \`config.log' for more details" "$LINENO" 5; }
3380 else
3381 ac_cv_sizeof_long=0
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
3387 $as_echo "$ac_cv_sizeof_long" >&6; }
3391 cat >>confdefs.h <<_ACEOF
3392 #define SIZEOF_LONG $ac_cv_sizeof_long
3393 _ACEOF
3396 # The cast to long int works around a bug in the HP C Compiler
3397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3399 # This bug is HP SR number 8606223364.
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
3401 $as_echo_n "checking size of long long... " >&6; }
3402 if ${ac_cv_sizeof_long_long+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
3407 else
3408 if test "$ac_cv_type_long_long" = yes; then
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error 77 "cannot compute sizeof (long long)
3412 See \`config.log' for more details" "$LINENO" 5; }
3413 else
3414 ac_cv_sizeof_long_long=0
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
3420 $as_echo "$ac_cv_sizeof_long_long" >&6; }
3424 cat >>confdefs.h <<_ACEOF
3425 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3426 _ACEOF
3430 type_name()
3432 if expr "$ac_cv_sizeof_char" '>=' "$1" >/dev/null; then
3433 echo "char"
3434 exit
3436 if expr "$ac_cv_sizeof_short" '>=' "$1" >/dev/null; then
3437 echo "short"
3438 exit
3440 if expr "$ac_cv_sizeof_int" '>=' "$1" >/dev/null; then
3441 echo "int"
3442 exit
3444 if expr "$ac_cv_sizeof_long" '>=' "$1" >/dev/null; then
3445 echo "long"
3446 exit
3448 if expr "$ac_cv_sizeof_long_long" '>=' "$1" >/dev/null; then
3449 echo "long long"
3450 exit
3452 echo "long long"
3455 # Try to append a c99 flag
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3457 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3458 if ${ac_cv_prog_cc_c99+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 ac_cv_prog_cc_c99=no
3462 ac_save_CC=$CC
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3465 #include <stdarg.h>
3466 #include <stdbool.h>
3467 #include <stdlib.h>
3468 #include <wchar.h>
3469 #include <stdio.h>
3471 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3472 #define debug(...) fprintf (stderr, __VA_ARGS__)
3473 #define showlist(...) puts (#__VA_ARGS__)
3474 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3475 static void
3476 test_varargs_macros (void)
3478 int x = 1234;
3479 int y = 5678;
3480 debug ("Flag");
3481 debug ("X = %d\n", x);
3482 showlist (The first, second, and third items.);
3483 report (x>y, "x is %d but y is %d", x, y);
3486 // Check long long types.
3487 #define BIG64 18446744073709551615ull
3488 #define BIG32 4294967295ul
3489 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3490 #if !BIG_OK
3491 your preprocessor is broken;
3492 #endif
3493 #if BIG_OK
3494 #else
3495 your preprocessor is broken;
3496 #endif
3497 static long long int bignum = -9223372036854775807LL;
3498 static unsigned long long int ubignum = BIG64;
3500 struct incomplete_array
3502 int datasize;
3503 double data[];
3506 struct named_init {
3507 int number;
3508 const wchar_t *name;
3509 double average;
3512 typedef const char *ccp;
3514 static inline int
3515 test_restrict (ccp restrict text)
3517 // See if C++-style comments work.
3518 // Iterate through items via the restricted pointer.
3519 // Also check for declarations in for loops.
3520 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3521 continue;
3522 return 0;
3525 // Check varargs and va_copy.
3526 static void
3527 test_varargs (const char *format, ...)
3529 va_list args;
3530 va_start (args, format);
3531 va_list args_copy;
3532 va_copy (args_copy, args);
3534 const char *str;
3535 int number;
3536 float fnumber;
3538 while (*format)
3540 switch (*format++)
3542 case 's': // string
3543 str = va_arg (args_copy, const char *);
3544 break;
3545 case 'd': // int
3546 number = va_arg (args_copy, int);
3547 break;
3548 case 'f': // float
3549 fnumber = va_arg (args_copy, double);
3550 break;
3551 default:
3552 break;
3555 va_end (args_copy);
3556 va_end (args);
3560 main ()
3563 // Check bool.
3564 _Bool success = false;
3566 // Check restrict.
3567 if (test_restrict ("String literal") == 0)
3568 success = true;
3569 char *restrict newvar = "Another string";
3571 // Check varargs.
3572 test_varargs ("s, d' f .", "string", 65, 34.234);
3573 test_varargs_macros ();
3575 // Check flexible array members.
3576 struct incomplete_array *ia =
3577 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3578 ia->datasize = 10;
3579 for (int i = 0; i < ia->datasize; ++i)
3580 ia->data[i] = i * 1.234;
3582 // Check named initializers.
3583 struct named_init ni = {
3584 .number = 34,
3585 .name = L"Test wide string",
3586 .average = 543.34343,
3589 ni.number = 58;
3591 int dynamic_array[ni.number];
3592 dynamic_array[ni.number - 1] = 543;
3594 // work around unused variable warnings
3595 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3596 || dynamic_array[ni.number - 1] != 543);
3599 return 0;
3601 _ACEOF
3602 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3604 CC="$ac_save_CC $ac_arg"
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_c99=$ac_arg
3608 rm -f core conftest.err conftest.$ac_objext
3609 test "x$ac_cv_prog_cc_c99" != "xno" && break
3610 done
3611 rm -f conftest.$ac_ext
3612 CC=$ac_save_CC
3615 # AC_CACHE_VAL
3616 case "x$ac_cv_prog_cc_c99" in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3620 xno)
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3624 CC="$CC $ac_cv_prog_cc_c99"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3626 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3627 esac
3628 if test "x$ac_cv_prog_cc_c99" != xno; then :
3633 if test "$ac_cv_prog_cc_c99" != "no"; then
3634 CFLAGS="$ac_cv_prog_cc_c99 ${CFLAGS}"
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type name for byte" >&5
3638 $as_echo_n "checking type name for byte... " >&6; }
3639 TYPE_BYTE=`type_name 1`
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TYPE_BYTE" >&5
3641 $as_echo "$TYPE_BYTE" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type name for word" >&5
3643 $as_echo_n "checking type name for word... " >&6; }
3644 TYPE_WORD=`type_name 2`
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TYPE_WORD" >&5
3646 $as_echo "$TYPE_WORD" >&6; }
3648 cat >>confdefs.h <<_ACEOF
3649 #define TYPE_BYTE $TYPE_BYTE
3650 _ACEOF
3653 cat >>confdefs.h <<_ACEOF
3654 #define TYPE_WORD $TYPE_WORD
3655 _ACEOF
3658 cat >>confdefs.h <<_ACEOF
3659 #define TYPE_UBYTE unsigned $TYPE_BYTE
3660 _ACEOF
3663 cat >>confdefs.h <<_ACEOF
3664 #define TYPE_UWORD unsigned $TYPE_WORD
3665 _ACEOF
3670 ac_config_files="$ac_config_files Makefile"
3672 cat >confcache <<\_ACEOF
3673 # This file is a shell script that caches the results of configure
3674 # tests run on this system so they can be shared between configure
3675 # scripts and configure runs, see configure's option --config-cache.
3676 # It is not useful on other systems. If it contains results you don't
3677 # want to keep, you may remove or edit it.
3679 # config.status only pays attention to the cache file if you give it
3680 # the --recheck option to rerun configure.
3682 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3683 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3684 # following values.
3686 _ACEOF
3688 # The following way of writing the cache mishandles newlines in values,
3689 # but we know of no workaround that is simple, portable, and efficient.
3690 # So, we kill variables containing newlines.
3691 # Ultrix sh set writes to stderr and can't be redirected directly,
3692 # and sets the high bit in the cache file unless we assign to the vars.
3694 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3695 eval ac_val=\$$ac_var
3696 case $ac_val in #(
3697 *${as_nl}*)
3698 case $ac_var in #(
3699 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3700 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3701 esac
3702 case $ac_var in #(
3703 _ | IFS | as_nl) ;; #(
3704 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3705 *) { eval $ac_var=; unset $ac_var;} ;;
3706 esac ;;
3707 esac
3708 done
3710 (set) 2>&1 |
3711 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3712 *${as_nl}ac_space=\ *)
3713 # `set' does not quote correctly, so add quotes: double-quote
3714 # substitution turns \\\\ into \\, and sed turns \\ into \.
3715 sed -n \
3716 "s/'/'\\\\''/g;
3717 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3718 ;; #(
3720 # `set' quotes correctly as required by POSIX, so do not add quotes.
3721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3723 esac |
3724 sort
3726 sed '
3727 /^ac_cv_env_/b end
3728 t clear
3729 :clear
3730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3731 t end
3732 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3733 :end' >>confcache
3734 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3735 if test -w "$cache_file"; then
3736 if test "x$cache_file" != "x/dev/null"; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3738 $as_echo "$as_me: updating cache $cache_file" >&6;}
3739 if test ! -f "$cache_file" || test -h "$cache_file"; then
3740 cat confcache >"$cache_file"
3741 else
3742 case $cache_file in #(
3743 */* | ?:*)
3744 mv -f confcache "$cache_file"$$ &&
3745 mv -f "$cache_file"$$ "$cache_file" ;; #(
3747 mv -f confcache "$cache_file" ;;
3748 esac
3751 else
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3753 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3756 rm -f confcache
3758 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3759 # Let make expand exec_prefix.
3760 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3762 DEFS=-DHAVE_CONFIG_H
3764 ac_libobjs=
3765 ac_ltlibobjs=
3767 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3768 # 1. Remove the extension, and $U if already installed.
3769 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3770 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3771 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3772 # will be set to the directory where LIBOBJS objects are built.
3773 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3774 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3775 done
3776 LIBOBJS=$ac_libobjs
3778 LTLIBOBJS=$ac_ltlibobjs
3782 : "${CONFIG_STATUS=./config.status}"
3783 ac_write_fail=0
3784 ac_clean_files_save=$ac_clean_files
3785 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3787 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3788 as_write_fail=0
3789 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3790 #! $SHELL
3791 # Generated by $as_me.
3792 # Run this file to recreate the current configuration.
3793 # Compiler output produced by configure, useful for debugging
3794 # configure, is in config.log if it exists.
3796 debug=false
3797 ac_cs_recheck=false
3798 ac_cs_silent=false
3800 SHELL=\${CONFIG_SHELL-$SHELL}
3801 export SHELL
3802 _ASEOF
3803 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3804 ## -------------------- ##
3805 ## M4sh Initialization. ##
3806 ## -------------------- ##
3808 # Be more Bourne compatible
3809 DUALCASE=1; export DUALCASE # for MKS sh
3810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3811 emulate sh
3812 NULLCMD=:
3813 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3814 # is contrary to our usage. Disable this feature.
3815 alias -g '${1+"$@"}'='"$@"'
3816 setopt NO_GLOB_SUBST
3817 else
3818 case `(set -o) 2>/dev/null` in #(
3819 *posix*) :
3820 set -o posix ;; #(
3821 *) :
3823 esac
3827 as_nl='
3829 export as_nl
3830 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3831 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3834 # Prefer a ksh shell builtin over an external printf program on Solaris,
3835 # but without wasting forks for bash or zsh.
3836 if test -z "$BASH_VERSION$ZSH_VERSION" \
3837 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3838 as_echo='print -r --'
3839 as_echo_n='print -rn --'
3840 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3841 as_echo='printf %s\n'
3842 as_echo_n='printf %s'
3843 else
3844 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3845 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3846 as_echo_n='/usr/ucb/echo -n'
3847 else
3848 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3849 as_echo_n_body='eval
3850 arg=$1;
3851 case $arg in #(
3852 *"$as_nl"*)
3853 expr "X$arg" : "X\\(.*\\)$as_nl";
3854 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3855 esac;
3856 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3858 export as_echo_n_body
3859 as_echo_n='sh -c $as_echo_n_body as_echo'
3861 export as_echo_body
3862 as_echo='sh -c $as_echo_body as_echo'
3865 # The user is always right.
3866 if test "${PATH_SEPARATOR+set}" != set; then
3867 PATH_SEPARATOR=:
3868 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3869 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3870 PATH_SEPARATOR=';'
3875 # IFS
3876 # We need space, tab and new line, in precisely that order. Quoting is
3877 # there to prevent editors from complaining about space-tab.
3878 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3879 # splitting by setting IFS to empty value.)
3880 IFS=" "" $as_nl"
3882 # Find who we are. Look in the path if we contain no directory separator.
3883 as_myself=
3884 case $0 in #((
3885 *[\\/]* ) as_myself=$0 ;;
3886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3892 done
3893 IFS=$as_save_IFS
3896 esac
3897 # We did not find ourselves, most probably we were run as `sh COMMAND'
3898 # in which case we are not to be found in the path.
3899 if test "x$as_myself" = x; then
3900 as_myself=$0
3902 if test ! -f "$as_myself"; then
3903 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3904 exit 1
3907 # Unset variables that we do not need and which cause bugs (e.g. in
3908 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
3909 # suppresses any "Segmentation fault" message there. '((' could
3910 # trigger a bug in pdksh 5.2.14.
3911 for as_var in BASH_ENV ENV MAIL MAILPATH
3912 do eval test x\${$as_var+set} = xset \
3913 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3914 done
3915 PS1='$ '
3916 PS2='> '
3917 PS4='+ '
3919 # NLS nuisances.
3920 LC_ALL=C
3921 export LC_ALL
3922 LANGUAGE=C
3923 export LANGUAGE
3925 # CDPATH.
3926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3929 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3930 # ----------------------------------------
3931 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3932 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3933 # script with STATUS, using 1 if that was 0.
3934 as_fn_error ()
3936 as_status=$1; test $as_status -eq 0 && as_status=1
3937 if test "$4"; then
3938 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3939 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3941 $as_echo "$as_me: error: $2" >&2
3942 as_fn_exit $as_status
3943 } # as_fn_error
3946 # as_fn_set_status STATUS
3947 # -----------------------
3948 # Set $? to STATUS, without forking.
3949 as_fn_set_status ()
3951 return $1
3952 } # as_fn_set_status
3954 # as_fn_exit STATUS
3955 # -----------------
3956 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3957 as_fn_exit ()
3959 set +e
3960 as_fn_set_status $1
3961 exit $1
3962 } # as_fn_exit
3964 # as_fn_unset VAR
3965 # ---------------
3966 # Portably unset VAR.
3967 as_fn_unset ()
3969 { eval $1=; unset $1;}
3971 as_unset=as_fn_unset
3972 # as_fn_append VAR VALUE
3973 # ----------------------
3974 # Append the text in VALUE to the end of the definition contained in VAR. Take
3975 # advantage of any shell optimizations that allow amortized linear growth over
3976 # repeated appends, instead of the typical quadratic growth present in naive
3977 # implementations.
3978 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3979 eval 'as_fn_append ()
3981 eval $1+=\$2
3983 else
3984 as_fn_append ()
3986 eval $1=\$$1\$2
3988 fi # as_fn_append
3990 # as_fn_arith ARG...
3991 # ------------------
3992 # Perform arithmetic evaluation on the ARGs, and store the result in the
3993 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3994 # must be portable across $(()) and expr.
3995 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3996 eval 'as_fn_arith ()
3998 as_val=$(( $* ))
4000 else
4001 as_fn_arith ()
4003 as_val=`expr "$@" || test $? -eq 1`
4005 fi # as_fn_arith
4008 if expr a : '\(a\)' >/dev/null 2>&1 &&
4009 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4010 as_expr=expr
4011 else
4012 as_expr=false
4015 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4016 as_basename=basename
4017 else
4018 as_basename=false
4021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4022 as_dirname=dirname
4023 else
4024 as_dirname=false
4027 as_me=`$as_basename -- "$0" ||
4028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4029 X"$0" : 'X\(//\)$' \| \
4030 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4031 $as_echo X/"$0" |
4032 sed '/^.*\/\([^/][^/]*\)\/*$/{
4033 s//\1/
4036 /^X\/\(\/\/\)$/{
4037 s//\1/
4040 /^X\/\(\/\).*/{
4041 s//\1/
4044 s/.*/./; q'`
4046 # Avoid depending upon Character Ranges.
4047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4050 as_cr_digits='0123456789'
4051 as_cr_alnum=$as_cr_Letters$as_cr_digits
4053 ECHO_C= ECHO_N= ECHO_T=
4054 case `echo -n x` in #(((((
4055 -n*)
4056 case `echo 'xy\c'` in
4057 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4058 xy) ECHO_C='\c';;
4059 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4060 ECHO_T=' ';;
4061 esac;;
4063 ECHO_N='-n';;
4064 esac
4066 rm -f conf$$ conf$$.exe conf$$.file
4067 if test -d conf$$.dir; then
4068 rm -f conf$$.dir/conf$$.file
4069 else
4070 rm -f conf$$.dir
4071 mkdir conf$$.dir 2>/dev/null
4073 if (echo >conf$$.file) 2>/dev/null; then
4074 if ln -s conf$$.file conf$$ 2>/dev/null; then
4075 as_ln_s='ln -s'
4076 # ... but there are two gotchas:
4077 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4078 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4079 # In both cases, we have to default to `cp -pR'.
4080 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4081 as_ln_s='cp -pR'
4082 elif ln conf$$.file conf$$ 2>/dev/null; then
4083 as_ln_s=ln
4084 else
4085 as_ln_s='cp -pR'
4087 else
4088 as_ln_s='cp -pR'
4090 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4091 rmdir conf$$.dir 2>/dev/null
4094 # as_fn_mkdir_p
4095 # -------------
4096 # Create "$as_dir" as a directory, including parents if necessary.
4097 as_fn_mkdir_p ()
4100 case $as_dir in #(
4101 -*) as_dir=./$as_dir;;
4102 esac
4103 test -d "$as_dir" || eval $as_mkdir_p || {
4104 as_dirs=
4105 while :; do
4106 case $as_dir in #(
4107 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4108 *) as_qdir=$as_dir;;
4109 esac
4110 as_dirs="'$as_qdir' $as_dirs"
4111 as_dir=`$as_dirname -- "$as_dir" ||
4112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4113 X"$as_dir" : 'X\(//\)[^/]' \| \
4114 X"$as_dir" : 'X\(//\)$' \| \
4115 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4116 $as_echo X"$as_dir" |
4117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4118 s//\1/
4121 /^X\(\/\/\)[^/].*/{
4122 s//\1/
4125 /^X\(\/\/\)$/{
4126 s//\1/
4129 /^X\(\/\).*/{
4130 s//\1/
4133 s/.*/./; q'`
4134 test -d "$as_dir" && break
4135 done
4136 test -z "$as_dirs" || eval "mkdir $as_dirs"
4137 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4140 } # as_fn_mkdir_p
4141 if mkdir -p . 2>/dev/null; then
4142 as_mkdir_p='mkdir -p "$as_dir"'
4143 else
4144 test -d ./-p && rmdir ./-p
4145 as_mkdir_p=false
4149 # as_fn_executable_p FILE
4150 # -----------------------
4151 # Test if FILE is an executable regular file.
4152 as_fn_executable_p ()
4154 test -f "$1" && test -x "$1"
4155 } # as_fn_executable_p
4156 as_test_x='test -x'
4157 as_executable_p=as_fn_executable_p
4159 # Sed expression to map a string onto a valid CPP name.
4160 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4162 # Sed expression to map a string onto a valid variable name.
4163 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4166 exec 6>&1
4167 ## ----------------------------------- ##
4168 ## Main body of $CONFIG_STATUS script. ##
4169 ## ----------------------------------- ##
4170 _ASEOF
4171 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4174 # Save the log message, to keep $0 and so on meaningful, and to
4175 # report actual input values of CONFIG_FILES etc. instead of their
4176 # values after options handling.
4177 ac_log="
4178 This file was extended by $as_me, which was
4179 generated by GNU Autoconf 2.69. Invocation command line was
4181 CONFIG_FILES = $CONFIG_FILES
4182 CONFIG_HEADERS = $CONFIG_HEADERS
4183 CONFIG_LINKS = $CONFIG_LINKS
4184 CONFIG_COMMANDS = $CONFIG_COMMANDS
4185 $ $0 $@
4187 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4190 _ACEOF
4192 case $ac_config_files in *"
4193 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4194 esac
4196 case $ac_config_headers in *"
4197 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4198 esac
4201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4202 # Files that config.status was made for.
4203 config_files="$ac_config_files"
4204 config_headers="$ac_config_headers"
4206 _ACEOF
4208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4209 ac_cs_usage="\
4210 \`$as_me' instantiates files and other configuration actions
4211 from templates according to the current configuration. Unless the files
4212 and actions are specified as TAGs, all are instantiated by default.
4214 Usage: $0 [OPTION]... [TAG]...
4216 -h, --help print this help, then exit
4217 -V, --version print version number and configuration settings, then exit
4218 --config print configuration, then exit
4219 -q, --quiet, --silent
4220 do not print progress messages
4221 -d, --debug don't remove temporary files
4222 --recheck update $as_me by reconfiguring in the same conditions
4223 --file=FILE[:TEMPLATE]
4224 instantiate the configuration file FILE
4225 --header=FILE[:TEMPLATE]
4226 instantiate the configuration header FILE
4228 Configuration files:
4229 $config_files
4231 Configuration headers:
4232 $config_headers
4234 Report bugs to the package provider."
4236 _ACEOF
4237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4238 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4239 ac_cs_version="\\
4240 config.status
4241 configured by $0, generated by GNU Autoconf 2.69,
4242 with options \\"\$ac_cs_config\\"
4244 Copyright (C) 2012 Free Software Foundation, Inc.
4245 This config.status script is free software; the Free Software Foundation
4246 gives unlimited permission to copy, distribute and modify it."
4248 ac_pwd='$ac_pwd'
4249 srcdir='$srcdir'
4250 test -n "\$AWK" || AWK=awk
4251 _ACEOF
4253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4254 # The default lists apply if the user does not specify any file.
4255 ac_need_defaults=:
4256 while test $# != 0
4258 case $1 in
4259 --*=?*)
4260 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4261 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4262 ac_shift=:
4264 --*=)
4265 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4266 ac_optarg=
4267 ac_shift=:
4270 ac_option=$1
4271 ac_optarg=$2
4272 ac_shift=shift
4274 esac
4276 case $ac_option in
4277 # Handling of the options.
4278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4279 ac_cs_recheck=: ;;
4280 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4281 $as_echo "$ac_cs_version"; exit ;;
4282 --config | --confi | --conf | --con | --co | --c )
4283 $as_echo "$ac_cs_config"; exit ;;
4284 --debug | --debu | --deb | --de | --d | -d )
4285 debug=: ;;
4286 --file | --fil | --fi | --f )
4287 $ac_shift
4288 case $ac_optarg in
4289 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4290 '') as_fn_error $? "missing file argument" ;;
4291 esac
4292 as_fn_append CONFIG_FILES " '$ac_optarg'"
4293 ac_need_defaults=false;;
4294 --header | --heade | --head | --hea )
4295 $ac_shift
4296 case $ac_optarg in
4297 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4298 esac
4299 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4300 ac_need_defaults=false;;
4301 --he | --h)
4302 # Conflict between --help and --header
4303 as_fn_error $? "ambiguous option: \`$1'
4304 Try \`$0 --help' for more information.";;
4305 --help | --hel | -h )
4306 $as_echo "$ac_cs_usage"; exit ;;
4307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4308 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4309 ac_cs_silent=: ;;
4311 # This is an error.
4312 -*) as_fn_error $? "unrecognized option: \`$1'
4313 Try \`$0 --help' for more information." ;;
4315 *) as_fn_append ac_config_targets " $1"
4316 ac_need_defaults=false ;;
4318 esac
4319 shift
4320 done
4322 ac_configure_extra_args=
4324 if $ac_cs_silent; then
4325 exec 6>/dev/null
4326 ac_configure_extra_args="$ac_configure_extra_args --silent"
4329 _ACEOF
4330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4331 if \$ac_cs_recheck; then
4332 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4333 shift
4334 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4335 CONFIG_SHELL='$SHELL'
4336 export CONFIG_SHELL
4337 exec "\$@"
4340 _ACEOF
4341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4342 exec 5>>config.log
4344 echo
4345 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4346 ## Running $as_me. ##
4347 _ASBOX
4348 $as_echo "$ac_log"
4349 } >&5
4351 _ACEOF
4352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4353 _ACEOF
4355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4357 # Handling of arguments.
4358 for ac_config_target in $ac_config_targets
4360 case $ac_config_target in
4361 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_in.h" ;;
4362 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4364 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4365 esac
4366 done
4369 # If the user did not use the arguments to specify the items to instantiate,
4370 # then the envvar interface is used. Set only those that are not.
4371 # We use the long form for the default assignment because of an extremely
4372 # bizarre bug on SunOS 4.1.3.
4373 if $ac_need_defaults; then
4374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4378 # Have a temporary directory for convenience. Make it in the build tree
4379 # simply because there is no reason against having it here, and in addition,
4380 # creating and moving files from /tmp can sometimes cause problems.
4381 # Hook for its removal unless debugging.
4382 # Note that there is a small window in which the directory will not be cleaned:
4383 # after its creation but before its name has been assigned to `$tmp'.
4384 $debug ||
4386 tmp= ac_tmp=
4387 trap 'exit_status=$?
4388 : "${ac_tmp:=$tmp}"
4389 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4391 trap 'as_fn_exit 1' 1 2 13 15
4393 # Create a (secure) tmp directory for tmp files.
4396 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4397 test -d "$tmp"
4398 } ||
4400 tmp=./conf$$-$RANDOM
4401 (umask 077 && mkdir "$tmp")
4402 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4403 ac_tmp=$tmp
4405 # Set up the scripts for CONFIG_FILES section.
4406 # No need to generate them if there are no CONFIG_FILES.
4407 # This happens for instance with `./config.status config.h'.
4408 if test -n "$CONFIG_FILES"; then
4411 ac_cr=`echo X | tr X '\015'`
4412 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4413 # But we know of no other shell where ac_cr would be empty at this
4414 # point, so we can use a bashism as a fallback.
4415 if test "x$ac_cr" = x; then
4416 eval ac_cr=\$\'\\r\'
4418 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4419 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4420 ac_cs_awk_cr='\\r'
4421 else
4422 ac_cs_awk_cr=$ac_cr
4425 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4426 _ACEOF
4430 echo "cat >conf$$subs.awk <<_ACEOF" &&
4431 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4432 echo "_ACEOF"
4433 } >conf$$subs.sh ||
4434 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4435 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4436 ac_delim='%!_!# '
4437 for ac_last_try in false false false false false :; do
4438 . ./conf$$subs.sh ||
4439 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4441 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4442 if test $ac_delim_n = $ac_delim_num; then
4443 break
4444 elif $ac_last_try; then
4445 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4446 else
4447 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4449 done
4450 rm -f conf$$subs.sh
4452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4453 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4454 _ACEOF
4455 sed -n '
4457 s/^/S["/; s/!.*/"]=/
4460 s/^[^!]*!//
4461 :repl
4462 t repl
4463 s/'"$ac_delim"'$//
4464 t delim
4467 s/\(.\{148\}\)..*/\1/
4468 t more1
4469 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4472 b repl
4473 :more1
4474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4477 s/.\{148\}//
4478 t nl
4479 :delim
4481 s/\(.\{148\}\)..*/\1/
4482 t more2
4483 s/["\\]/\\&/g; s/^/"/; s/$/"/
4486 :more2
4487 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4490 s/.\{148\}//
4491 t delim
4492 ' <conf$$subs.awk | sed '
4493 /^[^""]/{
4495 s/\n//
4497 ' >>$CONFIG_STATUS || ac_write_fail=1
4498 rm -f conf$$subs.awk
4499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4500 _ACAWK
4501 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4502 for (key in S) S_is_set[key] = 1
4503 FS = "\a"
4507 line = $ 0
4508 nfields = split(line, field, "@")
4509 substed = 0
4510 len = length(field[1])
4511 for (i = 2; i < nfields; i++) {
4512 key = field[i]
4513 keylen = length(key)
4514 if (S_is_set[key]) {
4515 value = S[key]
4516 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4517 len += length(value) + length(field[++i])
4518 substed = 1
4519 } else
4520 len += 1 + keylen
4523 print line
4526 _ACAWK
4527 _ACEOF
4528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4529 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4530 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4531 else
4533 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4534 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4535 _ACEOF
4537 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4538 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4539 # trailing colons and then remove the whole line if VPATH becomes empty
4540 # (actually we leave an empty line to preserve line numbers).
4541 if test "x$srcdir" = x.; then
4542 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4544 s///
4545 s/^/:/
4546 s/[ ]*$/:/
4547 s/:\$(srcdir):/:/g
4548 s/:\${srcdir}:/:/g
4549 s/:@srcdir@:/:/g
4550 s/^:*//
4551 s/:*$//
4553 s/\(=[ ]*\).*/\1/
4555 s/\n//
4556 s/^[^=]*=[ ]*$//
4560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4561 fi # test -n "$CONFIG_FILES"
4563 # Set up the scripts for CONFIG_HEADERS section.
4564 # No need to generate them if there are no CONFIG_HEADERS.
4565 # This happens for instance with `./config.status Makefile'.
4566 if test -n "$CONFIG_HEADERS"; then
4567 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4568 BEGIN {
4569 _ACEOF
4571 # Transform confdefs.h into an awk script `defines.awk', embedded as
4572 # here-document in config.status, that substitutes the proper values into
4573 # config.h.in to produce config.h.
4575 # Create a delimiter string that does not exist in confdefs.h, to ease
4576 # handling of long lines.
4577 ac_delim='%!_!# '
4578 for ac_last_try in false false :; do
4579 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4580 if test -z "$ac_tt"; then
4581 break
4582 elif $ac_last_try; then
4583 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4584 else
4585 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4587 done
4589 # For the awk script, D is an array of macro values keyed by name,
4590 # likewise P contains macro parameters if any. Preserve backslash
4591 # newline sequences.
4593 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4594 sed -n '
4595 s/.\{148\}/&'"$ac_delim"'/g
4596 t rset
4597 :rset
4598 s/^[ ]*#[ ]*define[ ][ ]*/ /
4599 t def
4601 :def
4602 s/\\$//
4603 t bsnl
4604 s/["\\]/\\&/g
4605 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4606 D["\1"]=" \3"/p
4607 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4609 :bsnl
4610 s/["\\]/\\&/g
4611 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4612 D["\1"]=" \3\\\\\\n"\\/p
4613 t cont
4614 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4615 t cont
4617 :cont
4619 s/.\{148\}/&'"$ac_delim"'/g
4620 t clear
4621 :clear
4622 s/\\$//
4623 t bsnlc
4624 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4626 :bsnlc
4627 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4628 b cont
4629 ' <confdefs.h | sed '
4630 s/'"$ac_delim"'/"\\\
4631 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4634 for (key in D) D_is_set[key] = 1
4635 FS = "\a"
4637 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4638 line = \$ 0
4639 split(line, arg, " ")
4640 if (arg[1] == "#") {
4641 defundef = arg[2]
4642 mac1 = arg[3]
4643 } else {
4644 defundef = substr(arg[1], 2)
4645 mac1 = arg[2]
4647 split(mac1, mac2, "(") #)
4648 macro = mac2[1]
4649 prefix = substr(line, 1, index(line, defundef) - 1)
4650 if (D_is_set[macro]) {
4651 # Preserve the white space surrounding the "#".
4652 print prefix "define", macro P[macro] D[macro]
4653 next
4654 } else {
4655 # Replace #undef with comments. This is necessary, for example,
4656 # in the case of _POSIX_SOURCE, which is predefined and required
4657 # on some systems where configure will not decide to define it.
4658 if (defundef == "undef") {
4659 print "/*", prefix defundef, macro, "*/"
4660 next
4664 { print }
4665 _ACAWK
4666 _ACEOF
4667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4668 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4669 fi # test -n "$CONFIG_HEADERS"
4672 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4673 shift
4674 for ac_tag
4676 case $ac_tag in
4677 :[FHLC]) ac_mode=$ac_tag; continue;;
4678 esac
4679 case $ac_mode$ac_tag in
4680 :[FHL]*:*);;
4681 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4682 :[FH]-) ac_tag=-:-;;
4683 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4684 esac
4685 ac_save_IFS=$IFS
4686 IFS=:
4687 set x $ac_tag
4688 IFS=$ac_save_IFS
4689 shift
4690 ac_file=$1
4691 shift
4693 case $ac_mode in
4694 :L) ac_source=$1;;
4695 :[FH])
4696 ac_file_inputs=
4697 for ac_f
4699 case $ac_f in
4700 -) ac_f="$ac_tmp/stdin";;
4701 *) # Look for the file first in the build tree, then in the source tree
4702 # (if the path is not absolute). The absolute path cannot be DOS-style,
4703 # because $ac_f cannot contain `:'.
4704 test -f "$ac_f" ||
4705 case $ac_f in
4706 [\\/$]*) false;;
4707 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4708 esac ||
4709 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4710 esac
4711 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4712 as_fn_append ac_file_inputs " '$ac_f'"
4713 done
4715 # Let's still pretend it is `configure' which instantiates (i.e., don't
4716 # use $as_me), people would be surprised to read:
4717 # /* config.h. Generated by config.status. */
4718 configure_input='Generated from '`
4719 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4720 `' by configure.'
4721 if test x"$ac_file" != x-; then
4722 configure_input="$ac_file. $configure_input"
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4724 $as_echo "$as_me: creating $ac_file" >&6;}
4726 # Neutralize special characters interpreted by sed in replacement strings.
4727 case $configure_input in #(
4728 *\&* | *\|* | *\\* )
4729 ac_sed_conf_input=`$as_echo "$configure_input" |
4730 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4731 *) ac_sed_conf_input=$configure_input;;
4732 esac
4734 case $ac_tag in
4735 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4736 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4737 esac
4739 esac
4741 ac_dir=`$as_dirname -- "$ac_file" ||
4742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4743 X"$ac_file" : 'X\(//\)[^/]' \| \
4744 X"$ac_file" : 'X\(//\)$' \| \
4745 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4746 $as_echo X"$ac_file" |
4747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4748 s//\1/
4751 /^X\(\/\/\)[^/].*/{
4752 s//\1/
4755 /^X\(\/\/\)$/{
4756 s//\1/
4759 /^X\(\/\).*/{
4760 s//\1/
4763 s/.*/./; q'`
4764 as_dir="$ac_dir"; as_fn_mkdir_p
4765 ac_builddir=.
4767 case "$ac_dir" in
4768 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4770 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4771 # A ".." for each directory in $ac_dir_suffix.
4772 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4773 case $ac_top_builddir_sub in
4774 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4775 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4776 esac ;;
4777 esac
4778 ac_abs_top_builddir=$ac_pwd
4779 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4780 # for backward compatibility:
4781 ac_top_builddir=$ac_top_build_prefix
4783 case $srcdir in
4784 .) # We are building in place.
4785 ac_srcdir=.
4786 ac_top_srcdir=$ac_top_builddir_sub
4787 ac_abs_top_srcdir=$ac_pwd ;;
4788 [\\/]* | ?:[\\/]* ) # Absolute name.
4789 ac_srcdir=$srcdir$ac_dir_suffix;
4790 ac_top_srcdir=$srcdir
4791 ac_abs_top_srcdir=$srcdir ;;
4792 *) # Relative name.
4793 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4794 ac_top_srcdir=$ac_top_build_prefix$srcdir
4795 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4796 esac
4797 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4800 case $ac_mode in
4803 # CONFIG_FILE
4806 _ACEOF
4808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4809 # If the template does not know about datarootdir, expand it.
4810 # FIXME: This hack should be removed a few years after 2.60.
4811 ac_datarootdir_hack=; ac_datarootdir_seen=
4812 ac_sed_dataroot='
4813 /datarootdir/ {
4817 /@datadir@/p
4818 /@docdir@/p
4819 /@infodir@/p
4820 /@localedir@/p
4821 /@mandir@/p'
4822 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4823 *datarootdir*) ac_datarootdir_seen=yes;;
4824 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4826 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4827 _ACEOF
4828 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4829 ac_datarootdir_hack='
4830 s&@datadir@&$datadir&g
4831 s&@docdir@&$docdir&g
4832 s&@infodir@&$infodir&g
4833 s&@localedir@&$localedir&g
4834 s&@mandir@&$mandir&g
4835 s&\\\${datarootdir}&$datarootdir&g' ;;
4836 esac
4837 _ACEOF
4839 # Neutralize VPATH when `$srcdir' = `.'.
4840 # Shell code in configure.ac might set extrasub.
4841 # FIXME: do we really want to maintain this feature?
4842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4843 ac_sed_extra="$ac_vpsub
4844 $extrasub
4845 _ACEOF
4846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4848 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4849 s|@configure_input@|$ac_sed_conf_input|;t t
4850 s&@top_builddir@&$ac_top_builddir_sub&;t t
4851 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4852 s&@srcdir@&$ac_srcdir&;t t
4853 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4854 s&@top_srcdir@&$ac_top_srcdir&;t t
4855 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4856 s&@builddir@&$ac_builddir&;t t
4857 s&@abs_builddir@&$ac_abs_builddir&;t t
4858 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4859 $ac_datarootdir_hack
4861 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
4862 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4864 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4865 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
4866 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
4867 "$ac_tmp/out"`; test -z "$ac_out"; } &&
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4869 which seems to be undefined. Please make sure it is defined" >&5
4870 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4871 which seems to be undefined. Please make sure it is defined" >&2;}
4873 rm -f "$ac_tmp/stdin"
4874 case $ac_file in
4875 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
4876 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
4877 esac \
4878 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4882 # CONFIG_HEADER
4884 if test x"$ac_file" != x-; then
4886 $as_echo "/* $configure_input */" \
4887 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
4888 } >"$ac_tmp/config.h" \
4889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4890 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4892 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4893 else
4894 rm -f "$ac_file"
4895 mv "$ac_tmp/config.h" "$ac_file" \
4896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4898 else
4899 $as_echo "/* $configure_input */" \
4900 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
4901 || as_fn_error $? "could not create -" "$LINENO" 5
4906 esac
4908 done # for ac_tag
4911 as_fn_exit 0
4912 _ACEOF
4913 ac_clean_files=$ac_clean_files_save
4915 test $ac_write_fail = 0 ||
4916 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4919 # configure is writing to config.log, and then calls config.status.
4920 # config.status does its own redirection, appending to config.log.
4921 # Unfortunately, on DOS this fails, as config.log is still kept open
4922 # by configure, so config.status won't be able to write to it; its
4923 # output is simply discarded. So we exec the FD to /dev/null,
4924 # effectively closing config.log, so it can be properly (re)opened and
4925 # appended to by config.status. When coming back to configure, we
4926 # need to make the FD available again.
4927 if test "$no_create" != yes; then
4928 ac_cs_success=:
4929 ac_config_status_args=
4930 test "$silent" = yes &&
4931 ac_config_status_args="$ac_config_status_args --quiet"
4932 exec 5>/dev/null
4933 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4934 exec 5>>config.log
4935 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4936 # would make configure fail if this is the last instruction.
4937 $ac_cs_success || as_fn_exit 1
4939 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4941 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}