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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
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.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || 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 :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
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 :
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
238 if test "x$CONFIG_SHELL" != x; then :
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.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
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
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."
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."
276 SHELL=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
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
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
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 :
398 as_val=`expr "$@" || test $? -eq 1`
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.
410 as_status=$1; test $as_status -eq 0 && as_status=1
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
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
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
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 ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
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"'
543 test -d ./-p && rmdir ./-p
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
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`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="gbdfed.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars='LTLIBOBJS
679 program_transform_name
692 enable_option_checking
695 ac_precious_vars='build_alias
707 # Initialize some variables set by options.
709 ac_init_version=false
710 ac_unrecognized_opts=
712 # The variables have the same names as the options, with
713 # dashes changed to underlines.
721 program_transform_name=s,x,x,
729 # Installation directory options.
730 # These are left unexpanded so users can "make install exec_prefix=/foo"
731 # and all the variables that are supposed to be based on exec_prefix
732 # by default will actually change.
733 # Use braces instead of parens because sh, perl, etc. also accept them.
734 # (The list follows the same order as the GNU Coding Standards.)
735 bindir='${exec_prefix}/bin'
736 sbindir='${exec_prefix}/sbin'
737 libexecdir='${exec_prefix}/libexec'
738 datarootdir='${prefix}/share'
739 datadir='${datarootdir}'
740 sysconfdir='${prefix}/etc'
741 sharedstatedir='${prefix}/com'
742 localstatedir='${prefix}/var'
743 includedir='${prefix}/include'
744 oldincludedir='/usr/include'
745 docdir='${datarootdir}/doc/${PACKAGE}'
746 infodir='${datarootdir}/info'
751 libdir='${exec_prefix}/lib'
752 localedir='${datarootdir}/locale'
753 mandir='${datarootdir}/man'
759 # If the previous option needs an argument, assign it.
760 if test -n "$ac_prev"; then
761 eval $ac_prev=\$ac_option
767 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772 # Accept the important Cygnus configure options, so we can diagnose typos.
774 case $ac_dashdash$ac_option in
778 -bindir | --bindir | --bindi | --bind | --bin | --bi)
780 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
783 -build | --build | --buil | --bui | --bu)
784 ac_prev=build_alias ;;
785 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786 build_alias=$ac_optarg ;;
788 -cache-file | --cache-file | --cache-fil | --cache-fi \
789 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790 ac_prev=cache_file ;;
791 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793 cache_file=$ac_optarg ;;
796 cache_file=config.cache ;;
798 -datadir | --datadir | --datadi | --datad)
800 -datadir=* | --datadir=* | --datadi=* | --datad=*)
801 datadir=$ac_optarg ;;
803 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804 | --dataroo | --dataro | --datar)
805 ac_prev=datarootdir ;;
806 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808 datarootdir=$ac_optarg ;;
810 -disable-* | --disable-*)
811 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812 # Reject names that are not valid shell variable names.
813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
814 as_fn_error $? "invalid feature name: $ac_useropt"
815 ac_useropt_orig=$ac_useropt
816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817 case $ac_user_opts in
821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
822 ac_unrecognized_sep=', ';;
824 eval enable_$ac_useropt=no ;;
826 -docdir | --docdir | --docdi | --doc | --do)
828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836 -enable-* | --enable-*)
837 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840 as_fn_error $? "invalid feature name: $ac_useropt"
841 ac_useropt_orig=$ac_useropt
842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843 case $ac_user_opts in
847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
848 ac_unrecognized_sep=', ';;
850 eval enable_$ac_useropt=\$ac_optarg ;;
852 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854 | --exec | --exe | --ex)
855 ac_prev=exec_prefix ;;
856 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858 | --exec=* | --exe=* | --ex=*)
859 exec_prefix=$ac_optarg ;;
861 -gas | --gas | --ga | --g)
862 # Obsolete; use --with-gas.
865 -help | --help | --hel | --he | -h)
867 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868 ac_init_help=recursive ;;
869 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870 ac_init_help=short ;;
872 -host | --host | --hos | --ho)
873 ac_prev=host_alias ;;
874 -host=* | --host=* | --hos=* | --ho=*)
875 host_alias=$ac_optarg ;;
877 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881 htmldir=$ac_optarg ;;
883 -includedir | --includedir | --includedi | --included | --include \
884 | --includ | --inclu | --incl | --inc)
885 ac_prev=includedir ;;
886 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887 | --includ=* | --inclu=* | --incl=* | --inc=*)
888 includedir=$ac_optarg ;;
890 -infodir | --infodir | --infodi | --infod | --info | --inf)
892 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893 infodir=$ac_optarg ;;
895 -libdir | --libdir | --libdi | --libd)
897 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901 | --libexe | --libex | --libe)
902 ac_prev=libexecdir ;;
903 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904 | --libexe=* | --libex=* | --libe=*)
905 libexecdir=$ac_optarg ;;
907 -localedir | --localedir | --localedi | --localed | --locale)
909 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910 localedir=$ac_optarg ;;
912 -localstatedir | --localstatedir | --localstatedi | --localstated \
913 | --localstate | --localstat | --localsta | --localst | --locals)
914 ac_prev=localstatedir ;;
915 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917 localstatedir=$ac_optarg ;;
919 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925 # Obsolete; use --without-fp.
928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929 | --no-cr | --no-c | -n)
932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938 | --oldin | --oldi | --old | --ol | --o)
939 ac_prev=oldincludedir ;;
940 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943 oldincludedir=$ac_optarg ;;
945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 -program-prefix | --program-prefix | --program-prefi | --program-pref \
951 | --program-pre | --program-pr | --program-p)
952 ac_prev=program_prefix ;;
953 -program-prefix=* | --program-prefix=* | --program-prefi=* \
954 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955 program_prefix=$ac_optarg ;;
957 -program-suffix | --program-suffix | --program-suffi | --program-suff \
958 | --program-suf | --program-su | --program-s)
959 ac_prev=program_suffix ;;
960 -program-suffix=* | --program-suffix=* | --program-suffi=* \
961 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962 program_suffix=$ac_optarg ;;
964 -program-transform-name | --program-transform-name \
965 | --program-transform-nam | --program-transform-na \
966 | --program-transform-n | --program-transform- \
967 | --program-transform | --program-transfor \
968 | --program-transfo | --program-transf \
969 | --program-trans | --program-tran \
970 | --progr-tra | --program-tr | --program-t)
971 ac_prev=program_transform_name ;;
972 -program-transform-name=* | --program-transform-name=* \
973 | --program-transform-nam=* | --program-transform-na=* \
974 | --program-transform-n=* | --program-transform-=* \
975 | --program-transform=* | --program-transfor=* \
976 | --program-transfo=* | --program-transf=* \
977 | --program-trans=* | --program-tran=* \
978 | --progr-tra=* | --program-tr=* | --program-t=*)
979 program_transform_name=$ac_optarg ;;
981 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 -psdir | --psdir | --psdi | --psd | --ps)
988 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992 | -silent | --silent | --silen | --sile | --sil)
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999 sbindir=$ac_optarg ;;
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1005 ac_prev=sharedstatedir ;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010 sharedstatedir=$ac_optarg ;;
1012 -site | --site | --sit)
1014 -site=* | --site=* | --sit=*)
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir=$ac_optarg ;;
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev=sysconfdir ;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir=$ac_optarg ;;
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev=target_alias ;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias=$ac_optarg ;;
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version=: ;;
1041 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid package name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1054 eval with_$ac_useropt=\$ac_optarg ;;
1056 -without-* | --without-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error $? "invalid package name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1070 eval with_$ac_useropt=no ;;
1073 # Obsolete; use --with-x.
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1090 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1091 Try \`$0 --help' for more information"
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 case $ac_envvar in #(
1098 '' | [0-9]* | *[!_$as_cr_alnum]* )
1099 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 as_fn_error $? "missing argument to $ac_option"
1120 if test -n "$ac_unrecognized_opts"; then
1121 case $enable_option_checking in
1123 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1124 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1128 # Check all directory arguments for consistency.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val=\$$ac_var
1135 # Remove trailing slashes.
1138 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1139 eval $ac_var=\$ac_val;;
1141 # Be sure to have absolute directory names.
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 elif test "x$build_alias" != "x$host_alias"; then
1166 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1168 test "$silent" = yes && exec 6>/dev/null
1171 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172 ac_ls_di=`ls -di .` &&
1173 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 as_fn_error $? "working directory cannot be determined"
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 as_fn_error $? "pwd does not report name of working directory"
1179 # Find the source files, if location was not specified.
1180 if test -z "$srcdir"; then
1181 ac_srcdir_defaulted=yes
1182 # Try the directory containing this script, then the parent directory.
1183 ac_confdir=`$as_dirname -- "$as_myself" ||
1184 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185 X"$as_myself" : 'X\(//\)[^/]' \| \
1186 X"$as_myself" : 'X\(//\)$' \| \
1187 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1188 $as_echo X"$as_myself" |
1189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1211 ac_srcdir_defaulted=no
1213 if test ! -r "$srcdir/$ac_unique_file"; then
1214 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1217 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1219 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1245 \`configure' configures this package to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking ...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1303 --x-includes=DIR X include files are in DIR
1304 --x-libraries=DIR X library files are in DIR
1308 if test -n "$ac_init_help"; then
1313 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1314 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1315 --with-x use the X Window System
1317 Some influential environment variables:
1318 CC C compiler command
1319 CFLAGS C compiler flags
1320 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1321 nonstandard directory <lib dir>
1322 LIBS libraries to pass to the linker, e.g. -l<library>
1323 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1324 you have headers in a nonstandard directory <include dir>
1326 XMKMF Path to xmkmf, Makefile generator for X Window System
1328 Use these variables to override the choices made by `configure' or to help
1329 it to find libraries and programs with nonstandard names/locations.
1331 Report bugs to the package provider.
1336 if test "$ac_init_help" = "recursive"; then
1337 # If there are subdirs, report their specific --help.
1338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1339 test -d "$ac_dir" ||
1340 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1348 # A ".." for each directory in $ac_dir_suffix.
1349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1350 case $ac_top_builddir_sub in
1351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1355 ac_abs_top_builddir=$ac_pwd
1356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1357 # for backward compatibility:
1358 ac_top_builddir=$ac_top_build_prefix
1361 .) # We are building in place.
1363 ac_top_srcdir=$ac_top_builddir_sub
1364 ac_abs_top_srcdir=$ac_pwd ;;
1365 [\\/]* | ?:[\\/]* ) # Absolute name.
1366 ac_srcdir=$srcdir$ac_dir_suffix;
1367 ac_top_srcdir=$srcdir
1368 ac_abs_top_srcdir=$srcdir ;;
1370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1371 ac_top_srcdir=$ac_top_build_prefix$srcdir
1372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1376 cd "$ac_dir" || { ac_status=$?; continue; }
1377 # Check for guested configure.
1378 if test -f "$ac_srcdir/configure.gnu"; then
1380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1381 elif test -f "$ac_srcdir/configure"; then
1383 $SHELL "$ac_srcdir/configure" --help=recursive
1385 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1387 cd "$ac_pwd" || { ac_status=$?; break; }
1391 test -n "$ac_init_help" && exit $ac_status
1392 if $ac_init_version; then
1395 generated by GNU Autoconf 2.69
1397 Copyright (C) 2012 Free Software Foundation, Inc.
1398 This configure script is free software; the Free Software Foundation
1399 gives unlimited permission to copy, distribute and modify it.
1404 ## ------------------------ ##
1405 ## Autoconf initialization. ##
1406 ## ------------------------ ##
1408 # ac_fn_c_try_compile LINENO
1409 # --------------------------
1410 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1411 ac_fn_c_try_compile ()
1413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1414 rm -f conftest.$ac_objext
1415 if { { ac_try="$ac_compile"
1417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1418 *) ac_try_echo=$ac_try;;
1420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1421 $as_echo "$ac_try_echo"; } >&5
1422 (eval "$ac_compile") 2>conftest.err
1424 if test -s conftest.err; then
1425 grep -v '^ *+' conftest.err >conftest.er1
1426 cat conftest.er1 >&5
1427 mv -f conftest.er1 conftest.err
1429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1430 test $ac_status = 0; } && {
1431 test -z "$ac_c_werror_flag" ||
1432 test ! -s conftest.err
1433 } && test -s conftest.$ac_objext; then :
1436 $as_echo "$as_me: failed program was:" >&5
1437 sed 's/^/| /' conftest.$ac_ext >&5
1441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1442 as_fn_set_status $ac_retval
1444 } # ac_fn_c_try_compile
1446 # ac_fn_c_try_cpp LINENO
1447 # ----------------------
1448 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1452 if { { ac_try="$ac_cpp conftest.$ac_ext"
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } > conftest.i && {
1468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1473 $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.$ac_ext >&5
1478 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1479 as_fn_set_status $ac_retval
1483 # ac_fn_c_try_run LINENO
1484 # ----------------------
1485 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1486 # that executables *can* be run.
1489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1490 if { { ac_try="$ac_link"
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_link") 2>&5
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1501 { { case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_try") 2>&5
1509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510 test $ac_status = 0; }; }; then :
1513 $as_echo "$as_me: program exited with status $ac_status" >&5
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1517 ac_retval=$ac_status
1519 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521 as_fn_set_status $ac_retval
1525 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1526 # -------------------------------------------------------
1527 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1528 # the include files in INCLUDES and setting the cache variable VAR
1530 ac_fn_c_check_header_mongrel ()
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if eval \${$3+:} false; then :
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1535 $as_echo_n "checking for $2... " >&6; }
1536 if eval \${$3+:} false; then :
1537 $as_echo_n "(cached) " >&6
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1541 $as_echo "$ac_res" >&6; }
1543 # Is the header compilable?
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1545 $as_echo_n "checking $2 usability... " >&6; }
1546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547 /* end confdefs.h. */
1551 if ac_fn_c_try_compile "$LINENO"; then :
1552 ac_header_compiler=yes
1554 ac_header_compiler=no
1556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1558 $as_echo "$ac_header_compiler" >&6; }
1560 # Is the header present?
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1562 $as_echo_n "checking $2 presence... " >&6; }
1563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1564 /* end confdefs.h. */
1567 if ac_fn_c_try_cpp "$LINENO"; then :
1568 ac_header_preproc=yes
1570 ac_header_preproc=no
1572 rm -f conftest.err conftest.i conftest.$ac_ext
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1574 $as_echo "$ac_header_preproc" >&6; }
1576 # So? What about this header?
1577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1580 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1582 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1586 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1588 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1590 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1592 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1594 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1598 $as_echo_n "checking for $2... " >&6; }
1599 if eval \${$3+:} false; then :
1600 $as_echo_n "(cached) " >&6
1602 eval "$3=\$ac_header_compiler"
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1606 $as_echo "$ac_res" >&6; }
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 } # ac_fn_c_check_header_mongrel
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if eval \${$3+:} false; then :
1622 $as_echo_n "(cached) " >&6
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1629 if ac_fn_c_try_compile "$LINENO"; then :
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641 } # ac_fn_c_check_header_compile
1643 # ac_fn_c_try_link LINENO
1644 # -----------------------
1645 # Try to link conftest.$ac_ext, and return whether this succeeded.
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext conftest$ac_exeext
1650 if { { ac_try="$ac_link"
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_link") 2>conftest.err
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest$ac_exeext && {
1669 test "$cross_compiling" = yes ||
1670 test -x conftest$ac_exeext
1674 $as_echo "$as_me: failed program was:" >&5
1675 sed 's/^/| /' conftest.$ac_ext >&5
1679 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1680 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1681 # interfere with the next link command; also delete a directory that is
1682 # left behind by Apple's compiler. We do this before executing the actions.
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1687 } # ac_fn_c_try_link
1689 # ac_fn_c_check_func LINENO FUNC VAR
1690 # ----------------------------------
1691 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1692 ac_fn_c_check_func ()
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1704 #define $2 innocuous_$2
1706 /* System header to define __stub macros and hopefully few prototypes,
1707 which can conflict with char $2 (); below.
1708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1709 <limits.h> exists even on freestanding compilers. */
1712 # include <limits.h>
1714 # include <assert.h>
1719 /* Override any GCC internal prototype to avoid an error.
1720 Use char because int might match the return type of a GCC
1721 builtin and then its argument prototype would still apply. */
1726 /* The GNU C library defines this for functions which it implements
1727 to always fail with ENOSYS. Some functions are actually named
1728 something starting with __ and the normal name is an alias. */
1729 #if defined __stub_$2 || defined __stub___$2
1741 if ac_fn_c_try_link "$LINENO"; then :
1746 rm -f core conftest.err conftest.$ac_objext \
1747 conftest$ac_exeext conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 } # ac_fn_c_check_func
1755 cat >config.log <<_ACEOF
1756 This file contains any messages produced by compilers while
1757 running configure, to aid debugging if configure makes a mistake.
1759 It was created by $as_me, which was
1760 generated by GNU Autoconf 2.69. Invocation command line was
1772 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1773 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1774 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1775 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1776 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1778 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1779 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1781 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1782 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1783 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1784 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1785 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1786 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1787 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795 test -z "$as_dir" && as_dir=.
1796 $as_echo "PATH: $as_dir"
1812 # Keep a trace of the command line.
1813 # Strip out --no-create and --no-recursion so they do not pile up.
1814 # Strip out --silent because we don't want to record it for future runs.
1815 # Also quote any args containing shell meta-characters.
1816 # Make two passes to allow for proper duplicate-argument suppression.
1820 ac_must_keep_next=false
1826 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1827 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1828 | -silent | --silent | --silen | --sile | --sil)
1831 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1834 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1836 as_fn_append ac_configure_args1 " '$ac_arg'"
1837 if test $ac_must_keep_next = true; then
1838 ac_must_keep_next=false # Got value, back to normal.
1841 *=* | --config-cache | -C | -disable-* | --disable-* \
1842 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1843 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1844 | -with-* | --with-* | -without-* | --without-* | --x)
1845 case "$ac_configure_args0 " in
1846 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1849 -* ) ac_must_keep_next=true ;;
1852 as_fn_append ac_configure_args " '$ac_arg'"
1857 { ac_configure_args0=; unset ac_configure_args0;}
1858 { ac_configure_args1=; unset ac_configure_args1;}
1860 # When interrupted or exit'd, cleanup temporary files, and complete
1861 # config.log. We remove comments because anyway the quotes in there
1862 # would cause problems or look ugly.
1863 # WARNING: Use '\'' to represent an apostrophe within the trap.
1864 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1865 trap 'exit_status=$?
1866 # Save into config.log some information that might help in debugging.
1870 $as_echo "## ---------------- ##
1871 ## Cache variables. ##
1872 ## ---------------- ##"
1874 # The following way of writing the cache mishandles newlines in values,
1876 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1877 eval ac_val=\$$ac_var
1881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1882 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1885 _ | IFS | as_nl) ;; #(
1886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887 *) { eval $ac_var=; unset $ac_var;} ;;
1892 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1893 *${as_nl}ac_space=\ *)
1895 "s/'\''/'\''\\\\'\'''\''/g;
1896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1899 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1906 $as_echo "## ----------------- ##
1907 ## Output variables. ##
1908 ## ----------------- ##"
1910 for ac_var in $ac_subst_vars
1912 eval ac_val=\$$ac_var
1914 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1916 $as_echo "$ac_var='\''$ac_val'\''"
1920 if test -n "$ac_subst_files"; then
1921 $as_echo "## ------------------- ##
1922 ## File substitutions. ##
1923 ## ------------------- ##"
1925 for ac_var in $ac_subst_files
1927 eval ac_val=\$$ac_var
1929 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1931 $as_echo "$ac_var='\''$ac_val'\''"
1936 if test -s confdefs.h; then
1937 $as_echo "## ----------- ##
1944 test "$ac_signal" != 0 &&
1945 $as_echo "$as_me: caught signal $ac_signal"
1946 $as_echo "$as_me: exit $exit_status"
1948 rm -f core *.core core.conftest.* &&
1949 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1952 for ac_signal in 1 2 13 15; do
1953 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1957 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1958 rm -f -r conftest* confdefs.h
1960 $as_echo "/* confdefs.h */" > confdefs.h
1962 # Predefined preprocessor variables.
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_NAME "$PACKAGE_NAME"
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_STRING "$PACKAGE_STRING"
1980 cat >>confdefs.h <<_ACEOF
1981 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE_URL "$PACKAGE_URL"
1989 # Let the site file select an alternate cache file if it wants to.
1990 # Prefer an explicitly selected file to automatically selected ones.
1993 if test -n "$CONFIG_SITE"; then
1994 # We do not want a PATH search for config.site.
1995 case $CONFIG_SITE in #((
1996 -*) ac_site_file1=./$CONFIG_SITE;;
1997 */*) ac_site_file1=$CONFIG_SITE;;
1998 *) ac_site_file1=./$CONFIG_SITE;;
2000 elif test "x$prefix" != xNONE; then
2001 ac_site_file1=$prefix/share/config.site
2002 ac_site_file2=$prefix/etc/config.site
2004 ac_site_file1=$ac_default_prefix/share/config.site
2005 ac_site_file2=$ac_default_prefix/etc/config.site
2007 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2009 test "x$ac_site_file" = xNONE && continue
2010 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2012 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2013 sed 's/^/| /' "$ac_site_file" >&5
2015 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2017 as_fn_error $? "failed to load site script $ac_site_file
2018 See \`config.log' for more details" "$LINENO" 5; }
2022 if test -r "$cache_file"; then
2023 # Some versions of bash will fail to source /dev/null (special files
2024 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2025 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027 $as_echo "$as_me: loading cache $cache_file" >&6;}
2029 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030 *) . "./$cache_file";;
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035 $as_echo "$as_me: creating cache $cache_file" >&6;}
2039 # Check that the precious variables saved in the cache have kept the same
2041 ac_cache_corrupted=false
2042 for ac_var in $ac_precious_vars; do
2043 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2044 eval ac_new_set=\$ac_env_${ac_var}_set
2045 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2046 eval ac_new_val=\$ac_env_${ac_var}_value
2047 case $ac_old_set,$ac_new_set in
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2050 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2051 ac_cache_corrupted=: ;;
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2054 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2055 ac_cache_corrupted=: ;;
2058 if test "x$ac_old_val" != "x$ac_new_val"; then
2059 # differences in whitespace do not lead to failure.
2060 ac_old_val_w=`echo x $ac_old_val`
2061 ac_new_val_w=`echo x $ac_new_val`
2062 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2064 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2065 ac_cache_corrupted=:
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2068 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2069 eval $ac_var=\$ac_old_val
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2072 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2074 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2077 # Pass precious variables to config.status.
2078 if test "$ac_new_set" = set; then
2080 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2081 *) ac_arg=$ac_var=$ac_new_val ;;
2083 case " $ac_configure_args " in
2084 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2085 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2089 if $ac_cache_corrupted; then
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2093 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2094 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2096 ## -------------------- ##
2097 ## Main body of script. ##
2098 ## -------------------- ##
2101 ac_cpp='$CPP $CPPFLAGS'
2102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 if test -n "$ac_tool_prefix"; then
2114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2117 $as_echo_n "checking for $ac_word... " >&6; }
2118 if ${ac_cv_prog_CC+:} false; then :
2119 $as_echo_n "(cached) " >&6
2121 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 if test -n "$CC"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2144 $as_echo "$CC" >&6; }
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2147 $as_echo "no" >&6; }
2152 if test -z "$ac_cv_prog_CC"; then
2154 # Extract the first word of "gcc", so it can be a program name with args.
2155 set dummy gcc; ac_word=$2
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2157 $as_echo_n "checking for $ac_word... " >&6; }
2158 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2159 $as_echo_n "(cached) " >&6
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171 ac_cv_prog_ac_ct_CC="gcc"
2172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2184 $as_echo "$ac_ct_CC" >&6; }
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2187 $as_echo "no" >&6; }
2190 if test "x$ac_ct_CC" = x; then
2193 case $cross_compiling:$ac_tool_warned in
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2197 ac_tool_warned=yes ;;
2205 if test -z "$CC"; then
2206 if test -n "$ac_tool_prefix"; then
2207 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2208 set dummy ${ac_tool_prefix}cc; ac_word=$2
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2210 $as_echo_n "checking for $ac_word... " >&6; }
2211 if ${ac_cv_prog_CC+:} false; then :
2212 $as_echo_n "(cached) " >&6
2214 if test -n "$CC"; then
2215 ac_cv_prog_CC="$CC" # Let the user override the test.
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224 ac_cv_prog_CC="${ac_tool_prefix}cc"
2225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2235 if test -n "$CC"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2237 $as_echo "$CC" >&6; }
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2240 $as_echo "no" >&6; }
2246 if test -z "$CC"; then
2247 # Extract the first word of "cc", so it can be a program name with args.
2248 set dummy cc; ac_word=$2
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2250 $as_echo_n "checking for $ac_word... " >&6; }
2251 if ${ac_cv_prog_CC+:} false; then :
2252 $as_echo_n "(cached) " >&6
2254 if test -n "$CC"; then
2255 ac_cv_prog_CC="$CC" # Let the user override the test.
2258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 test -z "$as_dir" && as_dir=.
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2265 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2266 ac_prog_rejected=yes
2270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 if test $ac_prog_rejected = yes; then
2278 # We found a bogon in the path, so make sure we never use it.
2279 set dummy $ac_cv_prog_CC
2281 if test $# != 0; then
2282 # We chose a different compiler from the bogus one.
2283 # However, it has the same basename, so the bogon will be chosen
2284 # first if we set CC to just the basename; use the full file name.
2286 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2292 if test -n "$CC"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2294 $as_echo "$CC" >&6; }
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2297 $as_echo "no" >&6; }
2302 if test -z "$CC"; then
2303 if test -n "$ac_tool_prefix"; then
2304 for ac_prog in cl.exe
2306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2309 $as_echo_n "checking for $ac_word... " >&6; }
2310 if ${ac_cv_prog_CC+:} false; then :
2311 $as_echo_n "(cached) " >&6
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2323 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 if test -n "$CC"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2336 $as_echo "$CC" >&6; }
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2339 $as_echo "no" >&6; }
2343 test -n "$CC" && break
2346 if test -z "$CC"; then
2348 for ac_prog in cl.exe
2350 # Extract the first word of "$ac_prog", so it can be a program name with args.
2351 set dummy $ac_prog; ac_word=$2
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2353 $as_echo_n "checking for $ac_word... " >&6; }
2354 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2355 $as_echo_n "(cached) " >&6
2357 if test -n "$ac_ct_CC"; then
2358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_ac_ct_CC="$ac_prog"
2368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2378 if test -n "$ac_ct_CC"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2380 $as_echo "$ac_ct_CC" >&6; }
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2383 $as_echo "no" >&6; }
2387 test -n "$ac_ct_CC" && break
2390 if test "x$ac_ct_CC" = x; then
2393 case $cross_compiling:$ac_tool_warned in
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2397 ac_tool_warned=yes ;;
2406 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2408 as_fn_error $? "no acceptable C compiler found in \$PATH
2409 See \`config.log' for more details" "$LINENO" 5; }
2411 # Provide some information about the compiler.
2412 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2415 for ac_option in --version -v -V -qversion; do
2416 { { ac_try="$ac_compiler $ac_option >&5"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2422 $as_echo "$ac_try_echo"; } >&5
2423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2425 if test -s conftest.err; then
2427 ... rest of stderr output deleted ...
2428 10q' conftest.err >conftest.er1
2429 cat conftest.er1 >&5
2431 rm -f conftest.er1 conftest.err
2432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2433 test $ac_status = 0; }
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2447 ac_clean_files_save=$ac_clean_files
2448 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2449 # Try to create an executable without -o first, disregard a.out.
2450 # It will help us diagnose broken compilers, and finding out an intuition
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2453 $as_echo_n "checking whether the C compiler works... " >&6; }
2454 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2456 # The possible output files:
2457 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2460 for ac_file in $ac_files
2463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2464 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2469 if { { ac_try="$ac_link_default"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476 (eval "$ac_link_default") 2>&5
2478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2479 test $ac_status = 0; }; then :
2480 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2481 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2482 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2483 # so that the user can short-circuit this test for compilers unknown to
2485 for ac_file in $ac_files ''
2487 test -f "$ac_file" || continue
2489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2492 # We found the default executable, but exeext='' is most
2496 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2498 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2500 # We set ac_cv_exeext here because the later test for it is not
2501 # safe: cross compilers may not add the suffix if given an `-o'
2502 # argument, so we may need to know it at that point already.
2503 # Even if this section looks crufty: it has the advantage of
2510 test "$ac_cv_exeext" = no && ac_cv_exeext=
2515 if test -z "$ac_file"; then :
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517 $as_echo "no" >&6; }
2518 $as_echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2523 as_fn_error 77 "C compiler cannot create executables
2524 See \`config.log' for more details" "$LINENO" 5; }
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2530 $as_echo_n "checking for C compiler default output file name... " >&6; }
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2532 $as_echo "$ac_file" >&6; }
2533 ac_exeext=$ac_cv_exeext
2535 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2536 ac_clean_files=$ac_clean_files_save
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2538 $as_echo_n "checking for suffix of executables... " >&6; }
2539 if { { ac_try="$ac_link"
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2545 $as_echo "$ac_try_echo"; } >&5
2546 (eval "$ac_link") 2>&5
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; }; then :
2550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2552 # work properly (i.e., refer to `conftest.exe'), while it won't with
2554 for ac_file in conftest.exe conftest conftest.*; do
2555 test -f "$ac_file" || continue
2557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2567 See \`config.log' for more details" "$LINENO" 5; }
2569 rm -f conftest conftest$ac_cv_exeext
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2571 $as_echo "$ac_cv_exeext" >&6; }
2573 rm -f conftest.$ac_ext
2574 EXEEXT=$ac_cv_exeext
2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2577 /* end confdefs.h. */
2582 FILE *f = fopen ("conftest.out", "w");
2583 return ferror (f) || fclose (f) != 0;
2589 ac_clean_files="$ac_clean_files conftest.out"
2590 # Check that the compiler produces executables we can run. If not, either
2591 # the compiler is broken, or we cross compile.
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2593 $as_echo_n "checking whether we are cross compiling... " >&6; }
2594 if test "$cross_compiling" != yes; then
2595 { { ac_try="$ac_link"
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2601 $as_echo "$ac_try_echo"; } >&5
2602 (eval "$ac_link") 2>&5
2604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2605 test $ac_status = 0; }
2606 if { ac_try='./conftest$ac_cv_exeext'
2607 { { case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2612 $as_echo "$ac_try_echo"; } >&5
2613 (eval "$ac_try") 2>&5
2615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2616 test $ac_status = 0; }; }; then
2619 if test "$cross_compiling" = maybe; then
2622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2624 as_fn_error $? "cannot run C compiled programs.
2625 If you meant to cross compile, use \`--host'.
2626 See \`config.log' for more details" "$LINENO" 5; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2631 $as_echo "$cross_compiling" >&6; }
2633 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2634 ac_clean_files=$ac_clean_files_save
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2636 $as_echo_n "checking for suffix of object files... " >&6; }
2637 if ${ac_cv_objext+:} false; then :
2638 $as_echo_n "(cached) " >&6
2640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2641 /* end confdefs.h. */
2651 rm -f conftest.o conftest.obj
2652 if { { ac_try="$ac_compile"
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2658 $as_echo "$ac_try_echo"; } >&5
2659 (eval "$ac_compile") 2>&5
2661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2662 test $ac_status = 0; }; then :
2663 for ac_file in conftest.o conftest.obj conftest.*; do
2664 test -f "$ac_file" || continue;
2666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2667 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2672 $as_echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2677 as_fn_error $? "cannot compute suffix of object files: cannot compile
2678 See \`config.log' for more details" "$LINENO" 5; }
2680 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2683 $as_echo "$ac_cv_objext" >&6; }
2684 OBJEXT=$ac_cv_objext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2687 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2688 if ${ac_cv_c_compiler_gnu+:} false; then :
2689 $as_echo_n "(cached) " >&6
2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2692 /* end confdefs.h. */
2705 if ac_fn_c_try_compile "$LINENO"; then :
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2715 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2716 if test $ac_compiler_gnu = yes; then
2721 ac_test_CFLAGS=${CFLAGS+set}
2722 ac_save_CFLAGS=$CFLAGS
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2724 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2725 if ${ac_cv_prog_cc_g+:} false; then :
2726 $as_echo_n "(cached) " >&6
2728 ac_save_c_werror_flag=$ac_c_werror_flag
2729 ac_c_werror_flag=yes
2732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h. */
2743 if ac_fn_c_try_compile "$LINENO"; then :
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2758 if ac_fn_c_try_compile "$LINENO"; then :
2761 ac_c_werror_flag=$ac_save_c_werror_flag
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764 /* end confdefs.h. */
2774 if ac_fn_c_try_compile "$LINENO"; then :
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 ac_c_werror_flag=$ac_save_c_werror_flag
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2785 $as_echo "$ac_cv_prog_cc_g" >&6; }
2786 if test "$ac_test_CFLAGS" = set; then
2787 CFLAGS=$ac_save_CFLAGS
2788 elif test $ac_cv_prog_cc_g = yes; then
2789 if test "$GCC" = yes; then
2795 if test "$GCC" = yes; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2802 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2803 if ${ac_cv_prog_cc_c89+:} false; then :
2804 $as_echo_n "(cached) " >&6
2806 ac_cv_prog_cc_c89=no
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2813 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2814 struct buf { int x; };
2815 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2816 static char *e (p, i)
2822 static char *f (char * (*g) (char **, int), char **p, ...)
2827 s = g (p, va_arg (v,int));
2832 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2833 function prototypes and stuff, but not '\xHH' hex character constants.
2834 These don't provoke an error unfortunately, instead are silently treated
2835 as 'x'. The following induces an error, until -std is added to get
2836 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2837 array size at least. It's necessary to write '\x00'==0 to get something
2838 that's true only with -std. */
2839 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2841 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2842 inside strings and character constants. */
2844 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2846 int test (int i, double x);
2847 struct s1 {int (*f) (int a);};
2848 struct s2 {int (*f) (double a);};
2849 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2855 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2860 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2861 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2863 CC="$ac_save_CC $ac_arg"
2864 if ac_fn_c_try_compile "$LINENO"; then :
2865 ac_cv_prog_cc_c89=$ac_arg
2867 rm -f core conftest.err conftest.$ac_objext
2868 test "x$ac_cv_prog_cc_c89" != "xno" && break
2870 rm -f conftest.$ac_ext
2875 case "x$ac_cv_prog_cc_c89" in
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2878 $as_echo "none needed" >&6; } ;;
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2881 $as_echo "unsupported" >&6; } ;;
2883 CC="$CC $ac_cv_prog_cc_c89"
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2885 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2887 if test "x$ac_cv_prog_cc_c89" != xno; then :
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 if test "x$CC" = xgcc; then
2900 XX_CFLAGS="-Wall -pedantic"
2904 XX_CFLAGS="-std1 -O2 -g3"
2913 # Extract the first word of "rm", so it can be a program name with args.
2914 set dummy rm; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_RM+:} false; then :
2918 $as_echo_n "(cached) " >&6
2920 if test -n "$RM"; then
2921 ac_cv_prog_RM="$RM" # Let the user override the test.
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 if test -n "$RM"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
2943 $as_echo "$RM" >&6; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2950 # Extract the first word of "cp", so it can be a program name with args.
2951 set dummy cp; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_CP+:} false; then :
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$CP"; then
2958 ac_cv_prog_CP="$CP" # Let the user override the test.
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 if test -n "$CP"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
2980 $as_echo "$CP" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2995 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2996 # On Suns, sometimes $CPP names a directory.
2997 if test -n "$CPP" && test -d "$CPP"; then
3000 if test -z "$CPP"; then
3001 if ${ac_cv_prog_CPP+:} false; then :
3002 $as_echo_n "(cached) " >&6
3004 # Double quotes because CPP needs to be expanded
3005 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3008 for ac_c_preproc_warn_flag in '' yes
3010 # Use a header file that comes with gcc, so configuring glibc
3011 # with a fresh cross-compiler works.
3012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3013 # <limits.h> exists even on freestanding compilers.
3014 # On the NeXT, cc -E runs the code through the compiler's parser,
3015 # not just through cpp. "Syntax error" is here to catch this case.
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3019 # include <limits.h>
3021 # include <assert.h>
3025 if ac_fn_c_try_cpp "$LINENO"; then :
3028 # Broken: fails on valid input.
3031 rm -f conftest.err conftest.i conftest.$ac_ext
3033 # OK, works on sane cases. Now check whether nonexistent headers
3034 # can be detected and how.
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3037 #include <ac_nonexistent.h>
3039 if ac_fn_c_try_cpp "$LINENO"; then :
3040 # Broken: success on invalid input.
3043 # Passes both tests.
3047 rm -f conftest.err conftest.i conftest.$ac_ext
3050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3051 rm -f conftest.i conftest.err conftest.$ac_ext
3052 if $ac_preproc_ok; then :
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3065 $as_echo "$CPP" >&6; }
3067 for ac_c_preproc_warn_flag in '' yes
3069 # Use a header file that comes with gcc, so configuring glibc
3070 # with a fresh cross-compiler works.
3071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3072 # <limits.h> exists even on freestanding compilers.
3073 # On the NeXT, cc -E runs the code through the compiler's parser,
3074 # not just through cpp. "Syntax error" is here to catch this case.
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3078 # include <limits.h>
3080 # include <assert.h>
3084 if ac_fn_c_try_cpp "$LINENO"; then :
3087 # Broken: fails on valid input.
3090 rm -f conftest.err conftest.i conftest.$ac_ext
3092 # OK, works on sane cases. Now check whether nonexistent headers
3093 # can be detected and how.
3094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3095 /* end confdefs.h. */
3096 #include <ac_nonexistent.h>
3098 if ac_fn_c_try_cpp "$LINENO"; then :
3099 # Broken: success on invalid input.
3102 # Passes both tests.
3106 rm -f conftest.err conftest.i conftest.$ac_ext
3109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3110 rm -f conftest.i conftest.err conftest.$ac_ext
3111 if $ac_preproc_ok; then :
3114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3116 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3117 See \`config.log' for more details" "$LINENO" 5; }
3121 ac_cpp='$CPP $CPPFLAGS'
3122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3128 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3129 if ${ac_cv_path_GREP+:} false; then :
3130 $as_echo_n "(cached) " >&6
3132 if test -z "$GREP"; then
3133 ac_path_GREP_found=false
3134 # Loop through the user's path and test for each of PROGNAME-LIST
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3139 test -z "$as_dir" && as_dir=.
3140 for ac_prog in grep ggrep; do
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3143 as_fn_executable_p "$ac_path_GREP" || continue
3144 # Check for GNU ac_path_GREP and select it if it is found.
3145 # Check for GNU $ac_path_GREP
3146 case `"$ac_path_GREP" --version 2>&1` in
3148 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3151 $as_echo_n 0123456789 >"conftest.in"
3154 cat "conftest.in" "conftest.in" >"conftest.tmp"
3155 mv "conftest.tmp" "conftest.in"
3156 cp "conftest.in" "conftest.nl"
3157 $as_echo 'GREP' >> "conftest.nl"
3158 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3160 as_fn_arith $ac_count + 1 && ac_count=$as_val
3161 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3162 # Best one so far, save it but keep looking for a better one
3163 ac_cv_path_GREP="$ac_path_GREP"
3164 ac_path_GREP_max=$ac_count
3166 # 10*(2^10) chars as input seems more than enough
3167 test $ac_count -gt 10 && break
3169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3172 $ac_path_GREP_found && break 3
3177 if test -z "$ac_cv_path_GREP"; then
3178 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3181 ac_cv_path_GREP=$GREP
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3186 $as_echo "$ac_cv_path_GREP" >&6; }
3187 GREP="$ac_cv_path_GREP"
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3191 $as_echo_n "checking for egrep... " >&6; }
3192 if ${ac_cv_path_EGREP+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3196 then ac_cv_path_EGREP="$GREP -E"
3198 if test -z "$EGREP"; then
3199 ac_path_EGREP_found=false
3200 # Loop through the user's path and test for each of PROGNAME-LIST
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3205 test -z "$as_dir" && as_dir=.
3206 for ac_prog in egrep; do
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3209 as_fn_executable_p "$ac_path_EGREP" || continue
3210 # Check for GNU ac_path_EGREP and select it if it is found.
3211 # Check for GNU $ac_path_EGREP
3212 case `"$ac_path_EGREP" --version 2>&1` in
3214 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3217 $as_echo_n 0123456789 >"conftest.in"
3220 cat "conftest.in" "conftest.in" >"conftest.tmp"
3221 mv "conftest.tmp" "conftest.in"
3222 cp "conftest.in" "conftest.nl"
3223 $as_echo 'EGREP' >> "conftest.nl"
3224 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3226 as_fn_arith $ac_count + 1 && ac_count=$as_val
3227 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3228 # Best one so far, save it but keep looking for a better one
3229 ac_cv_path_EGREP="$ac_path_EGREP"
3230 ac_path_EGREP_max=$ac_count
3232 # 10*(2^10) chars as input seems more than enough
3233 test $ac_count -gt 10 && break
3235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3238 $ac_path_EGREP_found && break 3
3243 if test -z "$ac_cv_path_EGREP"; then
3244 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3247 ac_cv_path_EGREP=$EGREP
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3253 $as_echo "$ac_cv_path_EGREP" >&6; }
3254 EGREP="$ac_cv_path_EGREP"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3258 $as_echo_n "checking for ANSI C header files... " >&6; }
3259 if ${ac_cv_header_stdc+:} false; then :
3260 $as_echo_n "(cached) " >&6
3262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263 /* end confdefs.h. */
3277 if ac_fn_c_try_compile "$LINENO"; then :
3278 ac_cv_header_stdc=yes
3280 ac_cv_header_stdc=no
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 if test $ac_cv_header_stdc = yes; then
3285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3292 $EGREP "memchr" >/dev/null 2>&1; then :
3295 ac_cv_header_stdc=no
3301 if test $ac_cv_header_stdc = yes; then
3302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3309 $EGREP "free" >/dev/null 2>&1; then :
3312 ac_cv_header_stdc=no
3318 if test $ac_cv_header_stdc = yes; then
3319 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3320 if test "$cross_compiling" = yes; then :
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3327 #if ((' ' & 0x0FF) == 0x020)
3328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3331 # define ISLOWER(c) \
3332 (('a' <= (c) && (c) <= 'i') \
3333 || ('j' <= (c) && (c) <= 'r') \
3334 || ('s' <= (c) && (c) <= 'z'))
3335 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3338 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3343 for (i = 0; i < 256; i++)
3344 if (XOR (islower (i), ISLOWER (i))
3345 || toupper (i) != TOUPPER (i))
3350 if ac_fn_c_try_run "$LINENO"; then :
3353 ac_cv_header_stdc=no
3355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3356 conftest.$ac_objext conftest.beam conftest.$ac_ext
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3362 $as_echo "$ac_cv_header_stdc" >&6; }
3363 if test $ac_cv_header_stdc = yes; then
3365 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3370 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3371 inttypes.h stdint.h unistd.h
3373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3374 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3377 cat >>confdefs.h <<_ACEOF
3378 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3386 for ac_header in libintl.h stddef.h stdlib.h string.h unistd.h
3388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3391 cat >>confdefs.h <<_ACEOF
3392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3401 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3402 if ${ac_cv_c_const+:} false; then :
3403 $as_echo_n "(cached) " >&6
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3413 /* Ultrix mips cc rejects this sort of thing. */
3414 typedef int charset[2];
3415 const charset cs = { 0, 0 };
3416 /* SunOS 4.1.1 cc rejects this. */
3417 char const *const *pcpcc;
3419 /* NEC SVR4.0.2 mips cc rejects this. */
3420 struct point {int x, y;};
3421 static struct point const zero = {0,0};
3422 /* AIX XL C 1.02.0.0 rejects this.
3423 It does not let you subtract one const X* pointer from another in
3424 an arm of an if-expression whose if-part is not a constant
3426 const char *g = "string";
3427 pcpcc = &g + (g ? g-g : 0);
3428 /* HPUX 7.0 cc rejects these. */
3430 ppc = (char**) pcpcc;
3431 pcpcc = (char const *const *) ppc;
3432 { /* SCO 3.2v4 cc rejects this sort of thing. */
3435 char const *s = 0 ? (char *) 0 : (char const *) 0;
3440 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3442 const int *foo = &x[0];
3445 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3446 typedef const int *iptr;
3450 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
3451 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3452 struct s { int j; const int *ap[3]; } bx;
3453 struct s *b = &bx; b->j = 5;
3455 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3459 return !cs[0] && !zero.x;
3466 if ac_fn_c_try_compile "$LINENO"; then :
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3474 $as_echo "$ac_cv_c_const" >&6; }
3475 if test $ac_cv_c_const = no; then
3477 $as_echo "#define const /**/" >>confdefs.h
3482 for ac_header in stdlib.h
3484 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3485 if test "x$ac_cv_header_stdlib_h" = xyes; then :
3486 cat >>confdefs.h <<_ACEOF
3487 #define HAVE_STDLIB_H 1
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
3495 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
3496 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
3497 $as_echo_n "(cached) " >&6
3499 if test "$cross_compiling" = yes; then :
3500 ac_cv_func_malloc_0_nonnull=no
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
3505 # include <stdlib.h>
3513 return ! malloc (0);
3518 if ac_fn_c_try_run "$LINENO"; then :
3519 ac_cv_func_malloc_0_nonnull=yes
3521 ac_cv_func_malloc_0_nonnull=no
3523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3524 conftest.$ac_objext conftest.beam conftest.$ac_ext
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
3529 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
3530 if test $ac_cv_func_malloc_0_nonnull = yes; then :
3532 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
3535 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
3537 case " $LIBOBJS " in
3538 *" malloc.$ac_objext "* ) ;;
3539 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
3544 $as_echo "#define malloc rpl_malloc" >>confdefs.h
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
3550 $as_echo_n "checking for working memcmp... " >&6; }
3551 if ${ac_cv_func_memcmp_working+:} false; then :
3552 $as_echo_n "(cached) " >&6
3554 if test "$cross_compiling" = yes; then :
3555 ac_cv_func_memcmp_working=no
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559 $ac_includes_default
3564 /* Some versions of memcmp are not 8-bit clean. */
3565 char c0 = '\100', c1 = '\200', c2 = '\201';
3566 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
3569 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
3570 or more and with at least one buffer not starting on a 4-byte boundary.
3571 William Lewis provided this test program. */
3576 for (i = 0; i < 4; i++)
3580 strcpy (a, "--------01111111");
3581 strcpy (b, "--------10000000");
3582 if (memcmp (a, b, 16) >= 0)
3592 if ac_fn_c_try_run "$LINENO"; then :
3593 ac_cv_func_memcmp_working=yes
3595 ac_cv_func_memcmp_working=no
3597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3598 conftest.$ac_objext conftest.beam conftest.$ac_ext
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
3603 $as_echo "$ac_cv_func_memcmp_working" >&6; }
3604 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
3605 *" memcmp.$ac_objext "* ) ;;
3606 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
3611 for ac_header in stdlib.h
3613 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
3614 if test "x$ac_cv_header_stdlib_h" = xyes; then :
3615 cat >>confdefs.h <<_ACEOF
3616 #define HAVE_STDLIB_H 1
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
3624 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
3625 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
3626 $as_echo_n "(cached) " >&6
3628 if test "$cross_compiling" = yes; then :
3629 ac_cv_func_realloc_0_nonnull=no
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
3634 # include <stdlib.h>
3642 return ! realloc (0, 0);
3647 if ac_fn_c_try_run "$LINENO"; then :
3648 ac_cv_func_realloc_0_nonnull=yes
3650 ac_cv_func_realloc_0_nonnull=no
3652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3653 conftest.$ac_objext conftest.beam conftest.$ac_ext
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
3658 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
3659 if test $ac_cv_func_realloc_0_nonnull = yes; then :
3661 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
3664 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
3666 case " $LIBOBJS " in
3667 *" realloc.$ac_objext "* ) ;;
3668 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
3673 $as_echo "#define realloc rpl_realloc" >>confdefs.h
3678 for ac_func in vprintf
3680 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
3681 if test "x$ac_cv_func_vprintf" = xyes; then :
3682 cat >>confdefs.h <<_ACEOF
3683 #define HAVE_VPRINTF 1
3686 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
3687 if test "x$ac_cv_func__doprnt" = xyes; then :
3689 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
3697 for ac_func in memmove memset strchr strdup strrchr strstr
3699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3702 cat >>confdefs.h <<_ACEOF
3703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3713 if test -z "$PKG_CONFIG"; then
3714 # Extract the first word of "pkg-config", so it can be a program name with args.
3715 set dummy pkg-config; ac_word=$2
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3717 $as_echo_n "checking for $ac_word... " >&6; }
3718 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3719 $as_echo_n "(cached) " >&6
3723 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3733 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3745 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3746 if test -n "$PKG_CONFIG"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3748 $as_echo "$PKG_CONFIG" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3757 if test "$PKG_CONFIG" = "no" ; then
3758 echo "*** The pkg-config script could not be found. Make sure it is"
3759 echo "*** in your path, or set the PKG_CONFIG environment variable"
3760 echo "*** to the full path to pkg-config."
3761 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3763 PKG_CONFIG_MIN_VERSION=0.9.0
3764 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2 >= 2.0" >&5
3766 $as_echo_n "checking for freetype2 >= 2.0... " >&6; }
3768 if $PKG_CONFIG --exists "freetype2 >= 2.0" ; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3770 $as_echo "yes" >&6; }
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
3774 $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
3775 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.0"`
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
3777 $as_echo "$FREETYPE_CFLAGS" >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
3780 $as_echo_n "checking FREETYPE_LIBS... " >&6; }
3781 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.0"`
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
3783 $as_echo "$FREETYPE_LIBS" >&6; }
3787 ## If we have a custom action on failure, don't print errors, but
3788 ## do set a variable so people can do so.
3789 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.0"`
3790 echo $FREETYPE_PKG_ERRORS
3796 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3797 echo "*** See http://www.freedesktop.org/software/pkgconfig"
3801 if test $succeeded = yes; then
3802 DEFINES="-DHAVE_FREETYPE" CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS" LIBS="$LIBS $FREETYPE_LIBS"
3804 as_fn_error $? "Library requirements (freetype2 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
3810 if test -z "$PKG_CONFIG"; then
3811 # Extract the first word of "pkg-config", so it can be a program name with args.
3812 set dummy pkg-config; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3816 $as_echo_n "(cached) " >&6
3820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3842 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3843 if test -n "$PKG_CONFIG"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3845 $as_echo "$PKG_CONFIG" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848 $as_echo "no" >&6; }
3854 if test "$PKG_CONFIG" = "no" ; then
3855 echo "*** The pkg-config script could not be found. Make sure it is"
3856 echo "*** in your path, or set the PKG_CONFIG environment variable"
3857 echo "*** to the full path to pkg-config."
3858 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3860 PKG_CONFIG_MIN_VERSION=0.9.0
3861 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.6" >&5
3863 $as_echo_n "checking for gtk+-2.0 >= 2.6... " >&6; }
3865 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.6" ; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3867 $as_echo "yes" >&6; }
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
3871 $as_echo_n "checking GTK_CFLAGS... " >&6; }
3872 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6"`
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
3874 $as_echo "$GTK_CFLAGS" >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
3877 $as_echo_n "checking GTK_LIBS... " >&6; }
3878 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6"`
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
3880 $as_echo "$GTK_LIBS" >&6; }
3884 ## If we have a custom action on failure, don't print errors, but
3885 ## do set a variable so people can do so.
3886 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.6"`
3887 echo $GTK_PKG_ERRORS
3893 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3894 echo "*** See http://www.freedesktop.org/software/pkgconfig"
3898 if test $succeeded = yes; then
3899 CPPFLAGS="$CPPFLAGS $GTK_CFLAGS" LIBS="$LIBS $GTK_LIBS"
3901 as_fn_error $? "Library requirements (gtk+-2.0 >= 2.6) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hbf.c" >&5
3906 $as_echo_n "checking for hbf.c... " >&6; }
3907 if ${ac_cv_file_hbf_c+:} false; then :
3908 $as_echo_n "(cached) " >&6
3910 test "$cross_compiling" = yes &&
3911 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
3912 if test -r "hbf.c"; then
3913 ac_cv_file_hbf_c=yes
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_hbf_c" >&5
3919 $as_echo "$ac_cv_file_hbf_c" >&6; }
3920 if test "x$ac_cv_file_hbf_c" = xyes; then :
3921 DEFINES="$DEFINES -DHAVE_HBF" HBFSRC="hbf.c" HBFOBJ="hbf.o"
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
3926 $as_echo_n "checking for X... " >&6; }
3929 # Check whether --with-x was given.
3930 if test "${with_x+set}" = set; then :
3934 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3935 if test "x$with_x" = xno; then
3936 # The user explicitly disabled X.
3939 case $x_includes,$x_libraries in #(
3940 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
3941 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 # One or both of the vars are not set, and there is no cached value.
3945 ac_x_includes=no ac_x_libraries=no
3946 rm -f -r conftest.dir
3947 if mkdir conftest.dir; then
3949 cat >Imakefile <<'_ACEOF'
3951 @echo incroot='${INCROOT}'
3953 @echo usrlibdir='${USRLIBDIR}'
3955 @echo libdir='${LIBDIR}'
3957 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3958 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3959 for ac_var in incroot usrlibdir libdir; do
3960 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3962 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3963 for ac_extension in a so sl dylib la dll; do
3964 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3965 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3966 ac_im_usrlibdir=$ac_im_libdir; break
3969 # Screen out bogus values from the imake configuration. They are
3970 # bogus both because they are the default anyway, and because
3971 # using them would break gcc on systems where it needs fixed includes.
3972 case $ac_im_incroot in
3973 /usr/include) ac_x_includes= ;;
3974 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3976 case $ac_im_usrlibdir in
3977 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
3978 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3982 rm -f -r conftest.dir
3985 # Standard set of common directories for X headers.
3986 # Check X11 before X11Rn because it is often a symlink to the current release.
4000 /usr/local/X11/include
4001 /usr/local/X11R7/include
4002 /usr/local/X11R6/include
4003 /usr/local/X11R5/include
4004 /usr/local/X11R4/include
4006 /usr/local/include/X11
4007 /usr/local/include/X11R7
4008 /usr/local/include/X11R6
4009 /usr/local/include/X11R5
4010 /usr/local/include/X11R4
4014 /usr/XFree86/include/X11
4018 /usr/unsupported/include
4020 /usr/local/x11r5/include
4021 /usr/lpp/Xamples/include
4023 /usr/openwin/include
4024 /usr/openwin/share/include'
4026 if test "$ac_x_includes" = no; then
4027 # Guess where to find include files, by looking for Xlib.h.
4028 # First, try using that file with no special directory specified.
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031 #include <X11/Xlib.h>
4033 if ac_fn_c_try_cpp "$LINENO"; then :
4034 # We can compile using X headers with no special include directory.
4037 for ac_dir in $ac_x_header_dirs; do
4038 if test -r "$ac_dir/X11/Xlib.h"; then
4039 ac_x_includes=$ac_dir
4044 rm -f conftest.err conftest.i conftest.$ac_ext
4045 fi # $ac_x_includes = no
4047 if test "$ac_x_libraries" = no; then
4048 # Check for the libraries.
4049 # See if we find them without any special options.
4050 # Don't add to $LIBS permanently.
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 #include <X11/Xlib.h>
4064 if ac_fn_c_try_link "$LINENO"; then :
4066 # We can link X programs with no special library path.
4070 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4072 # Don't even attempt the hair of trying to link an X program!
4073 for ac_extension in a so sl dylib la dll; do
4074 if test -r "$ac_dir/libX11.$ac_extension"; then
4075 ac_x_libraries=$ac_dir
4081 rm -f core conftest.err conftest.$ac_objext \
4082 conftest$ac_exeext conftest.$ac_ext
4083 fi # $ac_x_libraries = no
4085 case $ac_x_includes,$ac_x_libraries in #(
4087 # Didn't find X, or a directory has "'" in its name.
4088 ac_cv_have_x="have_x=no";; #(
4090 # Record where we found X for the cache.
4091 ac_cv_have_x="have_x=yes\
4092 ac_x_includes='$ac_x_includes'\
4093 ac_x_libraries='$ac_x_libraries'"
4099 eval "$ac_cv_have_x"
4102 if test "$have_x" != yes; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4104 $as_echo "$have_x" >&6; }
4107 # If each of the values was on the command line, it overrides each guess.
4108 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4109 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4110 # Update the cache value to reflect the command line values.
4111 ac_cv_have_x="have_x=yes\
4112 ac_x_includes='$x_includes'\
4113 ac_x_libraries='$x_libraries'"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4115 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4118 if test "$no_x" = yes; then
4119 # Not all programs may use this symbol, but it does not hurt to define it.
4121 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4123 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4125 if test -n "$x_includes"; then
4126 X_CFLAGS="$X_CFLAGS -I$x_includes"
4129 # It would also be nice to do this for all -L options, not just this one.
4130 if test -n "$x_libraries"; then
4131 X_LIBS="$X_LIBS -L$x_libraries"
4132 # For Solaris; some versions of Sun CC require a space after -R and
4133 # others require no space. Words are not sufficient . . . .
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4135 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
4136 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4137 ac_xsave_c_werror_flag=$ac_c_werror_flag
4138 ac_c_werror_flag=yes
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4150 if ac_fn_c_try_link "$LINENO"; then :
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152 $as_echo "no" >&6; }
4153 X_LIBS="$X_LIBS -R$x_libraries"
4155 LIBS="$ac_xsave_LIBS -R $x_libraries"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4167 if ac_fn_c_try_link "$LINENO"; then :
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4169 $as_echo "yes" >&6; }
4170 X_LIBS="$X_LIBS -R $x_libraries"
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4173 $as_echo "neither works" >&6; }
4175 rm -f core conftest.err conftest.$ac_objext \
4176 conftest$ac_exeext conftest.$ac_ext
4178 rm -f core conftest.err conftest.$ac_objext \
4179 conftest$ac_exeext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_xsave_c_werror_flag
4184 # Check for system-dependent libraries X programs must link with.
4185 # Do this before checking for the system-independent R6 libraries
4186 # (-lICE), since we may need -lsocket or whatever for X linking.
4188 if test "$ISC" = yes; then
4189 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4191 # Martyn Johnson says this is needed for Ultrix, if the X
4192 # libraries were built with DECnet support. And Karl Berry says
4193 # the Alpha needs dnet_stub (dnet does not exist).
4194 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4198 /* Override any GCC internal prototype to avoid an error.
4199 Use char because int might match the return type of a GCC
4200 builtin and then its argument prototype would still apply. */
4204 char XOpenDisplay ();
4208 return XOpenDisplay ();
4213 if ac_fn_c_try_link "$LINENO"; then :
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4217 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4218 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 ac_check_lib_save_LIBS=$LIBS
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4226 /* Override any GCC internal prototype to avoid an error.
4227 Use char because int might match the return type of a GCC
4228 builtin and then its argument prototype would still apply. */
4236 return dnet_ntoa ();
4241 if ac_fn_c_try_link "$LINENO"; then :
4242 ac_cv_lib_dnet_dnet_ntoa=yes
4244 ac_cv_lib_dnet_dnet_ntoa=no
4246 rm -f core conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4248 LIBS=$ac_check_lib_save_LIBS
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4251 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4252 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4253 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4256 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4258 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4259 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4260 $as_echo_n "(cached) " >&6
4262 ac_check_lib_save_LIBS=$LIBS
4263 LIBS="-ldnet_stub $LIBS"
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4267 /* Override any GCC internal prototype to avoid an error.
4268 Use char because int might match the return type of a GCC
4269 builtin and then its argument prototype would still apply. */
4277 return dnet_ntoa ();
4282 if ac_fn_c_try_link "$LINENO"; then :
4283 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4285 ac_cv_lib_dnet_stub_dnet_ntoa=no
4287 rm -f core conftest.err conftest.$ac_objext \
4288 conftest$ac_exeext conftest.$ac_ext
4289 LIBS=$ac_check_lib_save_LIBS
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4292 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4293 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
4294 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4299 rm -f core conftest.err conftest.$ac_objext \
4300 conftest$ac_exeext conftest.$ac_ext
4301 LIBS="$ac_xsave_LIBS"
4303 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4304 # to get the SysV transport functions.
4305 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4307 # The nsl library prevents programs from opening the X display
4308 # on Irix 5.2, according to T.E. Dickey.
4309 # The functions gethostbyname, getservbyname, and inet_addr are
4310 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4311 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4312 if test "x$ac_cv_func_gethostbyname" = xyes; then :
4316 if test $ac_cv_func_gethostbyname = no; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4318 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4319 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 ac_check_lib_save_LIBS=$LIBS
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4327 /* Override any GCC internal prototype to avoid an error.
4328 Use char because int might match the return type of a GCC
4329 builtin and then its argument prototype would still apply. */
4333 char gethostbyname ();
4337 return gethostbyname ();
4342 if ac_fn_c_try_link "$LINENO"; then :
4343 ac_cv_lib_nsl_gethostbyname=yes
4345 ac_cv_lib_nsl_gethostbyname=no
4347 rm -f core conftest.err conftest.$ac_objext \
4348 conftest$ac_exeext conftest.$ac_ext
4349 LIBS=$ac_check_lib_save_LIBS
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4352 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4353 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4354 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4357 if test $ac_cv_lib_nsl_gethostbyname = no; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4359 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4360 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
4361 $as_echo_n "(cached) " >&6
4363 ac_check_lib_save_LIBS=$LIBS
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4368 /* Override any GCC internal prototype to avoid an error.
4369 Use char because int might match the return type of a GCC
4370 builtin and then its argument prototype would still apply. */
4374 char gethostbyname ();
4378 return gethostbyname ();
4383 if ac_fn_c_try_link "$LINENO"; then :
4384 ac_cv_lib_bsd_gethostbyname=yes
4386 ac_cv_lib_bsd_gethostbyname=no
4388 rm -f core conftest.err conftest.$ac_objext \
4389 conftest$ac_exeext conftest.$ac_ext
4390 LIBS=$ac_check_lib_save_LIBS
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4393 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4394 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
4395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4401 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4402 # socket/setsockopt and other routines are undefined under SCO ODT
4403 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4404 # on later versions), says Simon Leinen: it contains gethostby*
4405 # variants that don't use the name server (or something). -lsocket
4406 # must be given before -lnsl if both are needed. We assume that
4407 # if connect needs -lnsl, so does gethostbyname.
4408 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4409 if test "x$ac_cv_func_connect" = xyes; then :
4413 if test $ac_cv_func_connect = no; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4415 $as_echo_n "checking for connect in -lsocket... " >&6; }
4416 if ${ac_cv_lib_socket_connect+:} false; then :
4417 $as_echo_n "(cached) " >&6
4419 ac_check_lib_save_LIBS=$LIBS
4420 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4424 /* Override any GCC internal prototype to avoid an error.
4425 Use char because int might match the return type of a GCC
4426 builtin and then its argument prototype would still apply. */
4439 if ac_fn_c_try_link "$LINENO"; then :
4440 ac_cv_lib_socket_connect=yes
4442 ac_cv_lib_socket_connect=no
4444 rm -f core conftest.err conftest.$ac_objext \
4445 conftest$ac_exeext conftest.$ac_ext
4446 LIBS=$ac_check_lib_save_LIBS
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4449 $as_echo "$ac_cv_lib_socket_connect" >&6; }
4450 if test "x$ac_cv_lib_socket_connect" = xyes; then :
4451 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4456 # Guillermo Gomez says -lposix is necessary on A/UX.
4457 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
4458 if test "x$ac_cv_func_remove" = xyes; then :
4462 if test $ac_cv_func_remove = no; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4464 $as_echo_n "checking for remove in -lposix... " >&6; }
4465 if ${ac_cv_lib_posix_remove+:} false; then :
4466 $as_echo_n "(cached) " >&6
4468 ac_check_lib_save_LIBS=$LIBS
4469 LIBS="-lposix $LIBS"
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4473 /* Override any GCC internal prototype to avoid an error.
4474 Use char because int might match the return type of a GCC
4475 builtin and then its argument prototype would still apply. */
4488 if ac_fn_c_try_link "$LINENO"; then :
4489 ac_cv_lib_posix_remove=yes
4491 ac_cv_lib_posix_remove=no
4493 rm -f core conftest.err conftest.$ac_objext \
4494 conftest$ac_exeext conftest.$ac_ext
4495 LIBS=$ac_check_lib_save_LIBS
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4498 $as_echo "$ac_cv_lib_posix_remove" >&6; }
4499 if test "x$ac_cv_lib_posix_remove" = xyes; then :
4500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4505 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4506 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4507 if test "x$ac_cv_func_shmat" = xyes; then :
4511 if test $ac_cv_func_shmat = no; then
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4513 $as_echo_n "checking for shmat in -lipc... " >&6; }
4514 if ${ac_cv_lib_ipc_shmat+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 ac_check_lib_save_LIBS=$LIBS
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4522 /* Override any GCC internal prototype to avoid an error.
4523 Use char because int might match the return type of a GCC
4524 builtin and then its argument prototype would still apply. */
4537 if ac_fn_c_try_link "$LINENO"; then :
4538 ac_cv_lib_ipc_shmat=yes
4540 ac_cv_lib_ipc_shmat=no
4542 rm -f core conftest.err conftest.$ac_objext \
4543 conftest$ac_exeext conftest.$ac_ext
4544 LIBS=$ac_check_lib_save_LIBS
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4547 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4548 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
4549 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4555 # Check for libraries that X11R6 Xt/Xaw programs need.
4556 ac_save_LDFLAGS=$LDFLAGS
4557 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4558 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4559 # check for ICE first), but we must link in the order -lSM -lICE or
4560 # we get undefined symbols. So assume we have SM if we have ICE.
4561 # These have to be linked with before -lX11, unlike the other
4562 # libraries we check for below, so use a different variable.
4563 # John Interrante, Karl Berry
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4565 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4566 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
4567 $as_echo_n "(cached) " >&6
4569 ac_check_lib_save_LIBS=$LIBS
4570 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4574 /* Override any GCC internal prototype to avoid an error.
4575 Use char because int might match the return type of a GCC
4576 builtin and then its argument prototype would still apply. */
4580 char IceConnectionNumber ();
4584 return IceConnectionNumber ();
4589 if ac_fn_c_try_link "$LINENO"; then :
4590 ac_cv_lib_ICE_IceConnectionNumber=yes
4592 ac_cv_lib_ICE_IceConnectionNumber=no
4594 rm -f core conftest.err conftest.$ac_objext \
4595 conftest$ac_exeext conftest.$ac_ext
4596 LIBS=$ac_check_lib_save_LIBS
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4599 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4600 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
4601 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4604 LDFLAGS=$ac_save_LDFLAGS
4609 if test "$have_x" != yes; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: X11 not found. Disabling server font grabbing." >&5
4611 $as_echo "$as_me: X11 not found. Disabling server font grabbing." >&6;}
4613 DEFINES="$DEFINES -DHAVE_XLIB"
4614 BDFGRABSRC="bdfgrab.c"
4615 BDFGRABOBJ="bdfgrab.o"
4619 # Fix for implicit DSO linking issue.
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCreatePixmap in -lX11" >&5
4622 $as_echo_n "checking for XCreatePixmap in -lX11... " >&6; }
4623 if ${ac_cv_lib_X11_XCreatePixmap+:} false; then :
4624 $as_echo_n "(cached) " >&6
4626 ac_check_lib_save_LIBS=$LIBS
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4631 /* Override any GCC internal prototype to avoid an error.
4632 Use char because int might match the return type of a GCC
4633 builtin and then its argument prototype would still apply. */
4637 char XCreatePixmap ();
4641 return XCreatePixmap ();
4646 if ac_fn_c_try_link "$LINENO"; then :
4647 ac_cv_lib_X11_XCreatePixmap=yes
4649 ac_cv_lib_X11_XCreatePixmap=no
4651 rm -f core conftest.err conftest.$ac_objext \
4652 conftest$ac_exeext conftest.$ac_ext
4653 LIBS=$ac_check_lib_save_LIBS
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XCreatePixmap" >&5
4656 $as_echo "$ac_cv_lib_X11_XCreatePixmap" >&6; }
4657 if test "x$ac_cv_lib_X11_XCreatePixmap" = xyes; then :
4658 cat >>confdefs.h <<_ACEOF
4659 #define HAVE_LIBX11 1
4673 ac_config_files="$ac_config_files Makefile"
4675 cat >confcache <<\_ACEOF
4676 # This file is a shell script that caches the results of configure
4677 # tests run on this system so they can be shared between configure
4678 # scripts and configure runs, see configure's option --config-cache.
4679 # It is not useful on other systems. If it contains results you don't
4680 # want to keep, you may remove or edit it.
4682 # config.status only pays attention to the cache file if you give it
4683 # the --recheck option to rerun configure.
4685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4691 # The following way of writing the cache mishandles newlines in values,
4692 # but we know of no workaround that is simple, portable, and efficient.
4693 # So, we kill variables containing newlines.
4694 # Ultrix sh set writes to stderr and can't be redirected directly,
4695 # and sets the high bit in the cache file unless we assign to the vars.
4697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4698 eval ac_val=\$$ac_var
4702 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4703 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4706 _ | IFS | as_nl) ;; #(
4707 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4708 *) { eval $ac_var=; unset $ac_var;} ;;
4714 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4715 *${as_nl}ac_space=\ *)
4716 # `set' does not quote correctly, so add quotes: double-quote
4717 # substitution turns \\\\ into \\, and sed turns \\ into \.
4720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4723 # `set' quotes correctly as required by POSIX, so do not add quotes.
4724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4733 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4735 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4737 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4738 if test -w "$cache_file"; then
4739 if test "x$cache_file" != "x/dev/null"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4741 $as_echo "$as_me: updating cache $cache_file" >&6;}
4742 if test ! -f "$cache_file" || test -h "$cache_file"; then
4743 cat confcache >"$cache_file"
4745 case $cache_file in #(
4747 mv -f confcache "$cache_file"$$ &&
4748 mv -f "$cache_file"$$ "$cache_file" ;; #(
4750 mv -f confcache "$cache_file" ;;
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4756 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4761 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4762 # Let make expand exec_prefix.
4763 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4765 # Transform confdefs.h into DEFS.
4766 # Protect against shell expansion while executing Makefile rules.
4767 # Protect against Makefile macro expansion.
4769 # If the first sed substitution is executed (which looks for macros that
4770 # take arguments), then branch to the quote section. Otherwise,
4771 # look for a macro that doesn't take arguments.
4781 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4783 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4787 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4800 DEFS=`sed -n "$ac_script" confdefs.h`
4806 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4807 # 1. Remove the extension, and $U if already installed.
4808 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4809 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4810 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4811 # will be set to the directory where LIBOBJS objects are built.
4812 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4813 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4817 LTLIBOBJS=$ac_ltlibobjs
4821 : "${CONFIG_STATUS=./config.status}"
4823 ac_clean_files_save=$ac_clean_files
4824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4826 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4828 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4830 # Generated by $as_me.
4831 # Run this file to recreate the current configuration.
4832 # Compiler output produced by configure, useful for debugging
4833 # configure, is in config.log if it exists.
4839 SHELL=\${CONFIG_SHELL-$SHELL}
4842 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4843 ## -------------------- ##
4844 ## M4sh Initialization. ##
4845 ## -------------------- ##
4847 # Be more Bourne compatible
4848 DUALCASE=1; export DUALCASE # for MKS sh
4849 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4852 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4853 # is contrary to our usage. Disable this feature.
4854 alias -g '${1+"$@"}'='"$@"'
4855 setopt NO_GLOB_SUBST
4857 case `(set -o) 2>/dev/null` in #(
4869 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4870 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4872 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4873 # Prefer a ksh shell builtin over an external printf program on Solaris,
4874 # but without wasting forks for bash or zsh.
4875 if test -z "$BASH_VERSION$ZSH_VERSION" \
4876 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4877 as_echo='print -r --'
4878 as_echo_n='print -rn --'
4879 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4880 as_echo='printf %s\n'
4881 as_echo_n='printf %s'
4883 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4884 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4885 as_echo_n='/usr/ucb/echo -n'
4887 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4888 as_echo_n_body='eval
4892 expr "X$arg" : "X\\(.*\\)$as_nl";
4893 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4895 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4897 export as_echo_n_body
4898 as_echo_n='sh -c $as_echo_n_body as_echo'
4901 as_echo='sh -c $as_echo_body as_echo'
4904 # The user is always right.
4905 if test "${PATH_SEPARATOR+set}" != set; then
4907 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4908 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4915 # We need space, tab and new line, in precisely that order. Quoting is
4916 # there to prevent editors from complaining about space-tab.
4917 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4918 # splitting by setting IFS to empty value.)
4921 # Find who we are. Look in the path if we contain no directory separator.
4924 *[\\/]* ) as_myself=$0 ;;
4925 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 test -z "$as_dir" && as_dir=.
4930 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4936 # We did not find ourselves, most probably we were run as `sh COMMAND'
4937 # in which case we are not to be found in the path.
4938 if test "x$as_myself" = x; then
4941 if test ! -f "$as_myself"; then
4942 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4946 # Unset variables that we do not need and which cause bugs (e.g. in
4947 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4948 # suppresses any "Segmentation fault" message there. '((' could
4949 # trigger a bug in pdksh 5.2.14.
4950 for as_var in BASH_ENV ENV MAIL MAILPATH
4951 do eval test x\${$as_var+set} = xset \
4952 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4965 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4968 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4969 # ----------------------------------------
4970 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4971 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4972 # script with STATUS, using 1 if that was 0.
4975 as_status=$1; test $as_status -eq 0 && as_status=1
4977 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4978 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4980 $as_echo "$as_me: error: $2" >&2
4981 as_fn_exit $as_status
4985 # as_fn_set_status STATUS
4986 # -----------------------
4987 # Set $? to STATUS, without forking.
4991 } # as_fn_set_status
4995 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5005 # Portably unset VAR.
5008 { eval $1=; unset $1;}
5010 as_unset=as_fn_unset
5011 # as_fn_append VAR VALUE
5012 # ----------------------
5013 # Append the text in VALUE to the end of the definition contained in VAR. Take
5014 # advantage of any shell optimizations that allow amortized linear growth over
5015 # repeated appends, instead of the typical quadratic growth present in naive
5017 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5018 eval 'as_fn_append ()
5029 # as_fn_arith ARG...
5030 # ------------------
5031 # Perform arithmetic evaluation on the ARGs, and store the result in the
5032 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5033 # must be portable across $(()) and expr.
5034 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5035 eval 'as_fn_arith ()
5042 as_val=`expr "$@" || test $? -eq 1`
5047 if expr a : '\(a\)' >/dev/null 2>&1 &&
5048 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5054 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5055 as_basename=basename
5060 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5066 as_me=`$as_basename -- "$0" ||
5067 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5068 X"$0" : 'X\(//\)$' \| \
5069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5071 sed '/^.*\/\([^/][^/]*\)\/*$/{
5085 # Avoid depending upon Character Ranges.
5086 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5087 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5088 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5089 as_cr_digits='0123456789'
5090 as_cr_alnum=$as_cr_Letters$as_cr_digits
5092 ECHO_C= ECHO_N= ECHO_T=
5093 case `echo -n x` in #(((((
5095 case `echo 'xy\c'` in
5096 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5098 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5105 rm -f conf$$ conf$$.exe conf$$.file
5106 if test -d conf$$.dir; then
5107 rm -f conf$$.dir/conf$$.file
5110 mkdir conf$$.dir 2>/dev/null
5112 if (echo >conf$$.file) 2>/dev/null; then
5113 if ln -s conf$$.file conf$$ 2>/dev/null; then
5115 # ... but there are two gotchas:
5116 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5117 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5118 # In both cases, we have to default to `cp -pR'.
5119 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5121 elif ln conf$$.file conf$$ 2>/dev/null; then
5129 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5130 rmdir conf$$.dir 2>/dev/null
5135 # Create "$as_dir" as a directory, including parents if necessary.
5140 -*) as_dir=./$as_dir;;
5142 test -d "$as_dir" || eval $as_mkdir_p || {
5146 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5147 *) as_qdir=$as_dir;;
5149 as_dirs="'$as_qdir' $as_dirs"
5150 as_dir=`$as_dirname -- "$as_dir" ||
5151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5152 X"$as_dir" : 'X\(//\)[^/]' \| \
5153 X"$as_dir" : 'X\(//\)$' \| \
5154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5155 $as_echo X"$as_dir" |
5156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5173 test -d "$as_dir" && break
5175 test -z "$as_dirs" || eval "mkdir $as_dirs"
5176 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5180 if mkdir -p . 2>/dev/null; then
5181 as_mkdir_p='mkdir -p "$as_dir"'
5183 test -d ./-p && rmdir ./-p
5188 # as_fn_executable_p FILE
5189 # -----------------------
5190 # Test if FILE is an executable regular file.
5191 as_fn_executable_p ()
5193 test -f "$1" && test -x "$1"
5194 } # as_fn_executable_p
5196 as_executable_p=as_fn_executable_p
5198 # Sed expression to map a string onto a valid CPP name.
5199 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5201 # Sed expression to map a string onto a valid variable name.
5202 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5206 ## ----------------------------------- ##
5207 ## Main body of $CONFIG_STATUS script. ##
5208 ## ----------------------------------- ##
5210 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5213 # Save the log message, to keep $0 and so on meaningful, and to
5214 # report actual input values of CONFIG_FILES etc. instead of their
5215 # values after options handling.
5217 This file was extended by $as_me, which was
5218 generated by GNU Autoconf 2.69. Invocation command line was
5220 CONFIG_FILES = $CONFIG_FILES
5221 CONFIG_HEADERS = $CONFIG_HEADERS
5222 CONFIG_LINKS = $CONFIG_LINKS
5223 CONFIG_COMMANDS = $CONFIG_COMMANDS
5226 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5231 case $ac_config_files in *"
5232 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5238 # Files that config.status was made for.
5239 config_files="$ac_config_files"
5243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5245 \`$as_me' instantiates files and other configuration actions
5246 from templates according to the current configuration. Unless the files
5247 and actions are specified as TAGs, all are instantiated by default.
5249 Usage: $0 [OPTION]... [TAG]...
5251 -h, --help print this help, then exit
5252 -V, --version print version number and configuration settings, then exit
5253 --config print configuration, then exit
5254 -q, --quiet, --silent
5255 do not print progress messages
5256 -d, --debug don't remove temporary files
5257 --recheck update $as_me by reconfiguring in the same conditions
5258 --file=FILE[:TEMPLATE]
5259 instantiate the configuration file FILE
5261 Configuration files:
5264 Report bugs to the package provider."
5267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5268 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5271 configured by $0, generated by GNU Autoconf 2.69,
5272 with options \\"\$ac_cs_config\\"
5274 Copyright (C) 2012 Free Software Foundation, Inc.
5275 This config.status script is free software; the Free Software Foundation
5276 gives unlimited permission to copy, distribute and modify it."
5280 test -n "\$AWK" || AWK=awk
5283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5284 # The default lists apply if the user does not specify any file.
5290 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5291 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5307 # Handling of the options.
5308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5310 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5311 $as_echo "$ac_cs_version"; exit ;;
5312 --config | --confi | --conf | --con | --co | --c )
5313 $as_echo "$ac_cs_config"; exit ;;
5314 --debug | --debu | --deb | --de | --d | -d )
5316 --file | --fil | --fi | --f )
5319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5320 '') as_fn_error $? "missing file argument" ;;
5322 as_fn_append CONFIG_FILES " '$ac_optarg'"
5323 ac_need_defaults=false;;
5324 --he | --h | --help | --hel | -h )
5325 $as_echo "$ac_cs_usage"; exit ;;
5326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5327 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5331 -*) as_fn_error $? "unrecognized option: \`$1'
5332 Try \`$0 --help' for more information." ;;
5334 *) as_fn_append ac_config_targets " $1"
5335 ac_need_defaults=false ;;
5341 ac_configure_extra_args=
5343 if $ac_cs_silent; then
5345 ac_configure_extra_args="$ac_configure_extra_args --silent"
5349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5350 if \$ac_cs_recheck; then
5351 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5353 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5354 CONFIG_SHELL='$SHELL'
5360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5364 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5365 ## Running $as_me. ##
5371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5376 # Handling of arguments.
5377 for ac_config_target in $ac_config_targets
5379 case $ac_config_target in
5380 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5382 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5387 # If the user did not use the arguments to specify the items to instantiate,
5388 # then the envvar interface is used. Set only those that are not.
5389 # We use the long form for the default assignment because of an extremely
5390 # bizarre bug on SunOS 4.1.3.
5391 if $ac_need_defaults; then
5392 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5395 # Have a temporary directory for convenience. Make it in the build tree
5396 # simply because there is no reason against having it here, and in addition,
5397 # creating and moving files from /tmp can sometimes cause problems.
5398 # Hook for its removal unless debugging.
5399 # Note that there is a small window in which the directory will not be cleaned:
5400 # after its creation but before its name has been assigned to `$tmp'.
5404 trap 'exit_status=$?
5406 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5408 trap 'as_fn_exit 1' 1 2 13 15
5410 # Create a (secure) tmp directory for tmp files.
5413 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5417 tmp=./conf$$-$RANDOM
5418 (umask 077 && mkdir "$tmp")
5419 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5422 # Set up the scripts for CONFIG_FILES section.
5423 # No need to generate them if there are no CONFIG_FILES.
5424 # This happens for instance with `./config.status config.h'.
5425 if test -n "$CONFIG_FILES"; then
5428 ac_cr=`echo X | tr X '\015'`
5429 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5430 # But we know of no other shell where ac_cr would be empty at this
5431 # point, so we can use a bashism as a fallback.
5432 if test "x$ac_cr" = x; then
5433 eval ac_cr=\$\'\\r\'
5435 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5436 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5442 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5447 echo "cat >conf$$subs.awk <<_ACEOF" &&
5448 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5451 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5452 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
5454 for ac_last_try in false false false false false :; do
5455 . ./conf$$subs.sh ||
5456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5458 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5459 if test $ac_delim_n = $ac_delim_num; then
5461 elif $ac_last_try; then
5462 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5464 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5470 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
5474 s/^/S["/; s/!.*/"]=/
5484 s/\(.\{148\}\)..*/\1/
5486 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5491 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5498 s/\(.\{148\}\)..*/\1/
5500 s/["\\]/\\&/g; s/^/"/; s/$/"/
5504 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5509 ' <conf$$subs.awk | sed '
5514 ' >>$CONFIG_STATUS || ac_write_fail=1
5515 rm -f conf$$subs.awk
5516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5518 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
5519 for (key in S) S_is_set[key] = 1
5525 nfields = split(line, field, "@")
5527 len = length(field[1])
5528 for (i = 2; i < nfields; i++) {
5530 keylen = length(key)
5531 if (S_is_set[key]) {
5533 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5534 len += length(value) + length(field[++i])
5545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5546 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5547 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5550 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5551 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5554 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5555 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
5556 # trailing colons and then remove the whole line if VPATH becomes empty
5557 # (actually we leave an empty line to preserve line numbers).
5558 if test "x$srcdir" = x.; then
5559 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5578 fi # test -n "$CONFIG_FILES"
5581 eval set X " :F $CONFIG_FILES "
5586 :[FHLC]) ac_mode=$ac_tag; continue;;
5588 case $ac_mode$ac_tag in
5590 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
5591 :[FH]-) ac_tag=-:-;;
5592 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5609 -) ac_f="$ac_tmp/stdin";;
5610 *) # Look for the file first in the build tree, then in the source tree
5611 # (if the path is not absolute). The absolute path cannot be DOS-style,
5612 # because $ac_f cannot contain `:'.
5616 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5618 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5620 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5621 as_fn_append ac_file_inputs " '$ac_f'"
5624 # Let's still pretend it is `configure' which instantiates (i.e., don't
5625 # use $as_me), people would be surprised to read:
5626 # /* config.h. Generated by config.status. */
5627 configure_input='Generated from '`
5628 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5630 if test x"$ac_file" != x-; then
5631 configure_input="$ac_file. $configure_input"
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5633 $as_echo "$as_me: creating $ac_file" >&6;}
5635 # Neutralize special characters interpreted by sed in replacement strings.
5636 case $configure_input in #(
5637 *\&* | *\|* | *\\* )
5638 ac_sed_conf_input=`$as_echo "$configure_input" |
5639 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5640 *) ac_sed_conf_input=$configure_input;;
5644 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5650 ac_dir=`$as_dirname -- "$ac_file" ||
5651 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5652 X"$ac_file" : 'X\(//\)[^/]' \| \
5653 X"$ac_file" : 'X\(//\)$' \| \
5654 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5655 $as_echo X"$ac_file" |
5656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5673 as_dir="$ac_dir"; as_fn_mkdir_p
5677 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5679 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5680 # A ".." for each directory in $ac_dir_suffix.
5681 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5682 case $ac_top_builddir_sub in
5683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5687 ac_abs_top_builddir=$ac_pwd
5688 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5689 # for backward compatibility:
5690 ac_top_builddir=$ac_top_build_prefix
5693 .) # We are building in place.
5695 ac_top_srcdir=$ac_top_builddir_sub
5696 ac_abs_top_srcdir=$ac_pwd ;;
5697 [\\/]* | ?:[\\/]* ) # Absolute name.
5698 ac_srcdir=$srcdir$ac_dir_suffix;
5699 ac_top_srcdir=$srcdir
5700 ac_abs_top_srcdir=$srcdir ;;
5702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5703 ac_top_srcdir=$ac_top_build_prefix$srcdir
5704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5706 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5718 # If the template does not know about datarootdir, expand it.
5719 # FIXME: This hack should be removed a few years after 2.60.
5720 ac_datarootdir_hack=; ac_datarootdir_seen=
5731 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5732 *datarootdir*) ac_datarootdir_seen=yes;;
5733 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5735 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5738 ac_datarootdir_hack='
5739 s&@datadir@&$datadir&g
5740 s&@docdir@&$docdir&g
5741 s&@infodir@&$infodir&g
5742 s&@localedir@&$localedir&g
5743 s&@mandir@&$mandir&g
5744 s&\\\${datarootdir}&$datarootdir&g' ;;
5748 # Neutralize VPATH when `$srcdir' = `.'.
5749 # Shell code in configure.ac might set extrasub.
5750 # FIXME: do we really want to maintain this feature?
5751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5752 ac_sed_extra="$ac_vpsub
5755 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5758 s|@configure_input@|$ac_sed_conf_input|;t t
5759 s&@top_builddir@&$ac_top_builddir_sub&;t t
5760 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5761 s&@srcdir@&$ac_srcdir&;t t
5762 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5763 s&@top_srcdir@&$ac_top_srcdir&;t t
5764 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5765 s&@builddir@&$ac_builddir&;t t
5766 s&@abs_builddir@&$ac_abs_builddir&;t t
5767 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5768 $ac_datarootdir_hack
5770 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5771 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5773 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5774 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5775 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5776 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5778 which seems to be undefined. Please make sure it is defined" >&5
5779 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5780 which seems to be undefined. Please make sure it is defined" >&2;}
5782 rm -f "$ac_tmp/stdin"
5784 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5785 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5799 ac_clean_files=$ac_clean_files_save
5801 test $ac_write_fail = 0 ||
5802 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5805 # configure is writing to config.log, and then calls config.status.
5806 # config.status does its own redirection, appending to config.log.
5807 # Unfortunately, on DOS this fails, as config.log is still kept open
5808 # by configure, so config.status won't be able to write to it; its
5809 # output is simply discarded. So we exec the FD to /dev/null,
5810 # effectively closing config.log, so it can be properly (re)opened and
5811 # appended to by config.status. When coming back to configure, we
5812 # need to make the FD available again.
5813 if test "$no_create" != yes; then
5815 ac_config_status_args=
5816 test "$silent" = yes &&
5817 ac_config_status_args="$ac_config_status_args --quiet"
5819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5822 # would make configure fail if this is the last instruction.
5823 $ac_cs_success || as_fn_exit 1
5825 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5827 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}