2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 ac_unique_file="buffer.c"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
594 ac_subst_vars='LTLIBOBJS
662 program_transform_name
675 enable_option_checking
684 ac_precious_vars='build_alias
696 # Initialize some variables set by options.
698 ac_init_version=false
699 ac_unrecognized_opts=
701 # The variables have the same names as the options, with
702 # dashes changed to underlines.
710 program_transform_name=s,x,x,
718 # Installation directory options.
719 # These are left unexpanded so users can "make install exec_prefix=/foo"
720 # and all the variables that are supposed to be based on exec_prefix
721 # by default will actually change.
722 # Use braces instead of parens because sh, perl, etc. also accept them.
723 # (The list follows the same order as the GNU Coding Standards.)
724 bindir='${exec_prefix}/bin'
725 sbindir='${exec_prefix}/sbin'
726 libexecdir='${exec_prefix}/libexec'
727 datarootdir='${prefix}/share'
728 datadir='${datarootdir}'
729 sysconfdir='${prefix}/etc'
730 sharedstatedir='${prefix}/com'
731 localstatedir='${prefix}/var'
732 includedir='${prefix}/include'
733 oldincludedir='/usr/include'
734 docdir='${datarootdir}/doc/${PACKAGE}'
735 infodir='${datarootdir}/info'
740 libdir='${exec_prefix}/lib'
741 localedir='${datarootdir}/locale'
742 mandir='${datarootdir}/man'
748 # If the previous option needs an argument, assign it.
749 if test -n "$ac_prev"; then
750 eval $ac_prev=\$ac_option
756 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760 # Accept the important Cygnus configure options, so we can diagnose typos.
762 case $ac_dashdash$ac_option in
766 -bindir | --bindir | --bindi | --bind | --bin | --bi)
768 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
771 -build | --build | --buil | --bui | --bu)
772 ac_prev=build_alias ;;
773 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
774 build_alias=$ac_optarg ;;
776 -cache-file | --cache-file | --cache-fil | --cache-fi \
777 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
778 ac_prev=cache_file ;;
779 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
780 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
781 cache_file=$ac_optarg ;;
784 cache_file=config.cache ;;
786 -datadir | --datadir | --datadi | --datad)
788 -datadir=* | --datadir=* | --datadi=* | --datad=*)
789 datadir=$ac_optarg ;;
791 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
792 | --dataroo | --dataro | --datar)
793 ac_prev=datarootdir ;;
794 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
795 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
796 datarootdir=$ac_optarg ;;
798 -disable-* | --disable-*)
799 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
802 as_fn_error "invalid feature name: $ac_useropt"
803 ac_useropt_orig=$ac_useropt
804 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
805 case $ac_user_opts in
809 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
810 ac_unrecognized_sep=', ';;
812 eval enable_$ac_useropt=no ;;
814 -docdir | --docdir | --docdi | --doc | --do)
816 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
819 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
821 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
824 -enable-* | --enable-*)
825 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828 as_fn_error "invalid feature name: $ac_useropt"
829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';;
838 eval enable_$ac_useropt=\$ac_optarg ;;
840 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
841 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
842 | --exec | --exe | --ex)
843 ac_prev=exec_prefix ;;
844 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
845 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
846 | --exec=* | --exe=* | --ex=*)
847 exec_prefix=$ac_optarg ;;
849 -gas | --gas | --ga | --g)
850 # Obsolete; use --with-gas.
853 -help | --help | --hel | --he | -h)
855 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
856 ac_init_help=recursive ;;
857 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
858 ac_init_help=short ;;
860 -host | --host | --hos | --ho)
861 ac_prev=host_alias ;;
862 -host=* | --host=* | --hos=* | --ho=*)
863 host_alias=$ac_optarg ;;
865 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
867 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
869 htmldir=$ac_optarg ;;
871 -includedir | --includedir | --includedi | --included | --include \
872 | --includ | --inclu | --incl | --inc)
873 ac_prev=includedir ;;
874 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
875 | --includ=* | --inclu=* | --incl=* | --inc=*)
876 includedir=$ac_optarg ;;
878 -infodir | --infodir | --infodi | --infod | --info | --inf)
880 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
881 infodir=$ac_optarg ;;
883 -libdir | --libdir | --libdi | --libd)
885 -libdir=* | --libdir=* | --libdi=* | --libd=*)
888 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
889 | --libexe | --libex | --libe)
890 ac_prev=libexecdir ;;
891 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
892 | --libexe=* | --libex=* | --libe=*)
893 libexecdir=$ac_optarg ;;
895 -localedir | --localedir | --localedi | --localed | --locale)
897 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
898 localedir=$ac_optarg ;;
900 -localstatedir | --localstatedir | --localstatedi | --localstated \
901 | --localstate | --localstat | --localsta | --localst | --locals)
902 ac_prev=localstatedir ;;
903 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
904 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
905 localstatedir=$ac_optarg ;;
907 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
909 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913 # Obsolete; use --without-fp.
916 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
917 | --no-cr | --no-c | -n)
920 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
921 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
924 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
925 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
926 | --oldin | --oldi | --old | --ol | --o)
927 ac_prev=oldincludedir ;;
928 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
929 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
930 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
931 oldincludedir=$ac_optarg ;;
933 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
935 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
938 -program-prefix | --program-prefix | --program-prefi | --program-pref \
939 | --program-pre | --program-pr | --program-p)
940 ac_prev=program_prefix ;;
941 -program-prefix=* | --program-prefix=* | --program-prefi=* \
942 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
943 program_prefix=$ac_optarg ;;
945 -program-suffix | --program-suffix | --program-suffi | --program-suff \
946 | --program-suf | --program-su | --program-s)
947 ac_prev=program_suffix ;;
948 -program-suffix=* | --program-suffix=* | --program-suffi=* \
949 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
950 program_suffix=$ac_optarg ;;
952 -program-transform-name | --program-transform-name \
953 | --program-transform-nam | --program-transform-na \
954 | --program-transform-n | --program-transform- \
955 | --program-transform | --program-transfor \
956 | --program-transfo | --program-transf \
957 | --program-trans | --program-tran \
958 | --progr-tra | --program-tr | --program-t)
959 ac_prev=program_transform_name ;;
960 -program-transform-name=* | --program-transform-name=* \
961 | --program-transform-nam=* | --program-transform-na=* \
962 | --program-transform-n=* | --program-transform-=* \
963 | --program-transform=* | --program-transfor=* \
964 | --program-transfo=* | --program-transf=* \
965 | --program-trans=* | --program-tran=* \
966 | --progr-tra=* | --program-tr=* | --program-t=*)
967 program_transform_name=$ac_optarg ;;
969 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
971 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
974 -psdir | --psdir | --psdi | --psd | --ps)
976 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
980 | -silent | --silent | --silen | --sile | --sil)
983 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
985 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
987 sbindir=$ac_optarg ;;
989 -sharedstatedir | --sharedstatedir | --sharedstatedi \
990 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
991 | --sharedst | --shareds | --shared | --share | --shar \
993 ac_prev=sharedstatedir ;;
994 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
995 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
996 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
998 sharedstatedir=$ac_optarg ;;
1000 -site | --site | --sit)
1002 -site=* | --site=* | --sit=*)
1005 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1007 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1008 srcdir=$ac_optarg ;;
1010 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1011 | --syscon | --sysco | --sysc | --sys | --sy)
1012 ac_prev=sysconfdir ;;
1013 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1014 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1015 sysconfdir=$ac_optarg ;;
1017 -target | --target | --targe | --targ | --tar | --ta | --t)
1018 ac_prev=target_alias ;;
1019 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1020 target_alias=$ac_optarg ;;
1022 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1025 -version | --version | --versio | --versi | --vers | -V)
1026 ac_init_version=: ;;
1029 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error "invalid package name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1042 eval with_$ac_useropt=\$ac_optarg ;;
1044 -without-* | --without-*)
1045 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048 as_fn_error "invalid package name: $ac_useropt"
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1058 eval with_$ac_useropt=no ;;
1061 # Obsolete; use --with-x.
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1078 -*) as_fn_error "unrecognized option: \`$ac_option'
1079 Try \`$0 --help' for more information."
1083 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084 # Reject names that are not valid shell variable names.
1085 case $ac_envvar in #(
1086 '' | [0-9]* | *[!_$as_cr_alnum]* )
1087 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103 if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 as_fn_error "missing argument to $ac_option"
1108 if test -n "$ac_unrecognized_opts"; then
1109 case $enable_option_checking in
1111 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1112 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1116 # Check all directory arguments for consistency.
1117 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118 datadir sysconfdir sharedstatedir localstatedir includedir \
1119 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120 libdir localedir mandir
1122 eval ac_val=\$$ac_var
1123 # Remove trailing slashes.
1126 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1127 eval $ac_var=\$ac_val;;
1129 # Be sure to have absolute directory names.
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1134 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1137 # There might be people who depend on the old broken behavior: `$host'
1138 # used to hold the argument of --host etc.
1139 # FIXME: To remove some day.
1142 target=$target_alias
1144 # FIXME: To remove some day.
1145 if test "x$host_alias" != x; then
1146 if test "x$build_alias" = x; then
1147 cross_compiling=maybe
1148 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1149 If a cross compiler is detected then cross compile mode will be used." >&2
1150 elif test "x$build_alias" != "x$host_alias"; then
1156 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1158 test "$silent" = yes && exec 6>/dev/null
1161 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1162 ac_ls_di=`ls -di .` &&
1163 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1164 as_fn_error "working directory cannot be determined"
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 as_fn_error "pwd does not report name of working directory"
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir=`$as_dirname -- "$as_myself" ||
1174 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$as_myself" : 'X\(//\)[^/]' \| \
1176 X"$as_myself" : 'X\(//\)$' \| \
1177 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1178 $as_echo X"$as_myself" |
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1201 ac_srcdir_defaulted=no
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1205 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1211 # When building in place, set srcdir=.
1212 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 # Remove unnecessary trailing slashes from srcdir.
1216 # Double slashes in file names in object file debugging info
1217 # mess up M-x gdb in Emacs.
1219 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 for ac_var in $ac_precious_vars; do
1222 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_env_${ac_var}_value=\$${ac_var}
1224 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 # Report the --help message.
1231 if test "$ac_init_help" = "long"; then
1232 # Omit some internal or obsolete options to make the list less imposing.
1233 # This message is too long to be a string in the A/UX 3.1 sh.
1235 \`configure' configures this package to adapt to many kinds of systems.
1237 Usage: $0 [OPTION]... [VAR=VALUE]...
1239 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240 VAR=VALUE. See below for descriptions of some of the useful variables.
1242 Defaults for the options are specified in brackets.
1245 -h, --help display this help and exit
1246 --help=short display options specific to this package
1247 --help=recursive display the short help of all the included packages
1248 -V, --version display version information and exit
1249 -q, --quiet, --silent do not print \`checking...' messages
1250 --cache-file=FILE cache test results in FILE [disabled]
1251 -C, --config-cache alias for \`--cache-file=config.cache'
1252 -n, --no-create do not create output files
1253 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1255 Installation directories:
1256 --prefix=PREFIX install architecture-independent files in PREFIX
1257 [$ac_default_prefix]
1258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 By default, \`make install' will install all the files in
1262 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264 for instance \`--prefix=\$HOME'.
1266 For better control, use the options below.
1268 Fine tuning of the installation directories:
1269 --bindir=DIR user executables [EPREFIX/bin]
1270 --sbindir=DIR system admin executables [EPREFIX/sbin]
1271 --libexecdir=DIR program executables [EPREFIX/libexec]
1272 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1273 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1274 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1275 --libdir=DIR object code libraries [EPREFIX/lib]
1276 --includedir=DIR C header files [PREFIX/include]
1277 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1278 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1279 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1280 --infodir=DIR info documentation [DATAROOTDIR/info]
1281 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1282 --mandir=DIR man documentation [DATAROOTDIR/man]
1283 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1284 --htmldir=DIR html documentation [DOCDIR]
1285 --dvidir=DIR dvi documentation [DOCDIR]
1286 --pdfdir=DIR pdf documentation [DOCDIR]
1287 --psdir=DIR ps documentation [DOCDIR]
1293 --x-includes=DIR X include files are in DIR
1294 --x-libraries=DIR X library files are in DIR
1297 --build=BUILD configure for building on BUILD [guessed]
1298 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1299 --target=TARGET configure for building compilers for TARGET [HOST]
1303 if test -n "$ac_init_help"; then
1308 --disable-option-checking ignore unrecognized --enable/--with options
1309 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1310 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1311 --enable-xdf support for OS/2 extended density format disks
1312 --enable-vold compatibility with Solaris' vold
1313 --enable-new-vold compatibility with Solaris' vold, new version
1314 --enable-debug debuging messages
1315 --enable-raw-term raw terminal (readkey behaviour, default)
1316 --enable-floppyd floppy daemon support
1319 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1320 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1321 --with-x use the X Window System
1323 Some influential environment variables:
1324 CC C compiler command
1325 CFLAGS C compiler flags
1326 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1327 nonstandard directory <lib dir>
1328 LIBS libraries to pass to the linker, e.g. -l<library>
1329 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1330 you have headers in a nonstandard directory <include dir>
1332 XMKMF Path to xmkmf, Makefile generator for X Window System
1334 Use these variables to override the choices made by `configure' or to help
1335 it to find libraries and programs with nonstandard names/locations.
1337 Report bugs to the package provider.
1342 if test "$ac_init_help" = "recursive"; then
1343 # If there are subdirs, report their specific --help.
1344 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1345 test -d "$ac_dir" ||
1346 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1361 ac_abs_top_builddir=$ac_pwd
1362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363 # for backward compatibility:
1364 ac_top_builddir=$ac_top_build_prefix
1367 .) # We are building in place.
1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
1372 ac_srcdir=$srcdir$ac_dir_suffix;
1373 ac_top_srcdir=$srcdir
1374 ac_abs_top_srcdir=$srcdir ;;
1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1389 $SHELL "$ac_srcdir/configure" --help=recursive
1391 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 cd "$ac_pwd" || { ac_status=$?; break; }
1397 test -n "$ac_init_help" && exit $ac_status
1398 if $ac_init_version; then
1401 generated by GNU Autoconf 2.65
1403 Copyright (C) 2009 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1410 ## ------------------------ ##
1411 ## Autoconf initialization. ##
1412 ## ------------------------ ##
1414 # ac_fn_c_try_compile LINENO
1415 # --------------------------
1416 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1417 ac_fn_c_try_compile ()
1419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1420 rm -f conftest.$ac_objext
1421 if { { ac_try="$ac_compile"
1423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1424 *) ac_try_echo=$ac_try;;
1426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1427 $as_echo "$ac_try_echo"; } >&5
1428 (eval "$ac_compile") 2>conftest.err
1430 if test -s conftest.err; then
1431 grep -v '^ *+' conftest.err >conftest.er1
1432 cat conftest.er1 >&5
1433 mv -f conftest.er1 conftest.err
1435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1436 test $ac_status = 0; } && {
1437 test -z "$ac_c_werror_flag" ||
1438 test ! -s conftest.err
1439 } && test -s conftest.$ac_objext; then :
1442 $as_echo "$as_me: failed program was:" >&5
1443 sed 's/^/| /' conftest.$ac_ext >&5
1447 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1448 as_fn_set_status $ac_retval
1450 } # ac_fn_c_try_compile
1452 # ac_fn_c_try_cpp LINENO
1453 # ----------------------
1454 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1458 if { { ac_try="$ac_cpp conftest.$ac_ext"
1460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1461 *) ac_try_echo=$ac_try;;
1463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464 $as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1467 if test -s conftest.err; then
1468 grep -v '^ *+' conftest.err >conftest.er1
1469 cat conftest.er1 >&5
1470 mv -f conftest.er1 conftest.err
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } >/dev/null && {
1474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1475 test ! -s conftest.err
1479 $as_echo "$as_me: failed program was:" >&5
1480 sed 's/^/| /' conftest.$ac_ext >&5
1484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1485 as_fn_set_status $ac_retval
1489 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1490 # -------------------------------------------------------
1491 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1492 # the include files in INCLUDES and setting the cache variable VAR
1494 ac_fn_c_check_header_mongrel ()
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1499 $as_echo_n "checking for $2... " >&6; }
1500 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1501 $as_echo_n "(cached) " >&6
1504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1505 $as_echo "$ac_res" >&6; }
1507 # Is the header compilable?
1508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1509 $as_echo_n "checking $2 usability... " >&6; }
1510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1511 /* end confdefs.h. */
1515 if ac_fn_c_try_compile "$LINENO"; then :
1516 ac_header_compiler=yes
1518 ac_header_compiler=no
1520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1522 $as_echo "$ac_header_compiler" >&6; }
1524 # Is the header present?
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1526 $as_echo_n "checking $2 presence... " >&6; }
1527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1528 /* end confdefs.h. */
1531 if ac_fn_c_try_cpp "$LINENO"; then :
1532 ac_header_preproc=yes
1534 ac_header_preproc=no
1536 rm -f conftest.err conftest.$ac_ext
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1538 $as_echo "$ac_header_preproc" >&6; }
1540 # So? What about this header?
1541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1544 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1546 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1550 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1552 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1554 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1556 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1558 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1562 $as_echo_n "checking for $2... " >&6; }
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 $as_echo_n "(cached) " >&6
1566 eval "$3=\$ac_header_compiler"
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570 $as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574 } # ac_fn_c_check_header_mongrel
1576 # ac_fn_c_try_run LINENO
1577 # ----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1579 # that executables *can* be run.
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_link"
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>&5
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1594 { { case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_try") 2>&5
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; }; }; then :
1606 $as_echo "$as_me: program exited with status $ac_status" >&5
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 ac_retval=$ac_status
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614 as_fn_set_status $ac_retval
1618 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists and can be compiled using the include files in
1621 # INCLUDES, setting the cache variable VAR accordingly.
1622 ac_fn_c_check_header_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628 $as_echo_n "(cached) " >&6
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1635 if ac_fn_c_try_compile "$LINENO"; then :
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 } # ac_fn_c_check_header_compile
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 $as_test_x conftest$ac_exeext
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 as_fn_set_status $ac_retval
1693 } # ac_fn_c_try_link
1695 # ac_fn_c_check_func LINENO FUNC VAR
1696 # ----------------------------------
1697 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1698 ac_fn_c_check_func ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1710 #define $2 innocuous_$2
1712 /* System header to define __stub macros and hopefully few prototypes,
1713 which can conflict with char $2 (); below.
1714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1715 <limits.h> exists even on freestanding compilers. */
1718 # include <limits.h>
1720 # include <assert.h>
1725 /* Override any GCC internal prototype to avoid an error.
1726 Use char because int might match the return type of a GCC
1727 builtin and then its argument prototype would still apply. */
1732 /* The GNU C library defines this for functions which it implements
1733 to always fail with ENOSYS. Some functions are actually named
1734 something starting with __ and the normal name is an alias. */
1735 #if defined __stub_$2 || defined __stub___$2
1747 if ac_fn_c_try_link "$LINENO"; then :
1752 rm -f core conftest.err conftest.$ac_objext \
1753 conftest$ac_exeext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 } # ac_fn_c_check_func
1762 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1763 # -------------------------------------------
1764 # Tests whether TYPE exists after having included INCLUDES, setting cache
1765 # variable VAR accordingly.
1766 ac_fn_c_check_type ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 $as_echo_n "(cached) " >&6
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1800 if ac_fn_c_try_compile "$LINENO"; then :
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814 } # ac_fn_c_check_type
1815 cat >config.log <<_ACEOF
1816 This file contains any messages produced by compilers while
1817 running configure, to aid debugging if configure makes a mistake.
1819 It was created by $as_me, which was
1820 generated by GNU Autoconf 2.65. Invocation command line was
1832 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1833 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1834 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1835 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1836 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1839 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1841 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1842 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1843 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1844 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1845 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1846 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1847 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 test -z "$as_dir" && as_dir=.
1856 $as_echo "PATH: $as_dir"
1872 # Keep a trace of the command line.
1873 # Strip out --no-create and --no-recursion so they do not pile up.
1874 # Strip out --silent because we don't want to record it for future runs.
1875 # Also quote any args containing shell meta-characters.
1876 # Make two passes to allow for proper duplicate-argument suppression.
1880 ac_must_keep_next=false
1886 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888 | -silent | --silent | --silen | --sile | --sil)
1891 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1896 as_fn_append ac_configure_args1 " '$ac_arg'"
1897 if test $ac_must_keep_next = true; then
1898 ac_must_keep_next=false # Got value, back to normal.
1901 *=* | --config-cache | -C | -disable-* | --disable-* \
1902 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904 | -with-* | --with-* | -without-* | --without-* | --x)
1905 case "$ac_configure_args0 " in
1906 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1909 -* ) ac_must_keep_next=true ;;
1912 as_fn_append ac_configure_args " '$ac_arg'"
1917 { ac_configure_args0=; unset ac_configure_args0;}
1918 { ac_configure_args1=; unset ac_configure_args1;}
1920 # When interrupted or exit'd, cleanup temporary files, and complete
1921 # config.log. We remove comments because anyway the quotes in there
1922 # would cause problems or look ugly.
1923 # WARNING: Use '\'' to represent an apostrophe within the trap.
1924 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925 trap 'exit_status=$?
1926 # Save into config.log some information that might help in debugging.
1931 ## ---------------- ##
1932 ## Cache variables. ##
1933 ## ---------------- ##
1936 # The following way of writing the cache mishandles newlines in values,
1938 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1939 eval ac_val=\$$ac_var
1943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1944 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1947 _ | IFS | as_nl) ;; #(
1948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1949 *) { eval $ac_var=; unset $ac_var;} ;;
1954 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1955 *${as_nl}ac_space=\ *)
1957 "s/'\''/'\''\\\\'\'''\''/g;
1958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1969 ## ----------------- ##
1970 ## Output variables. ##
1971 ## ----------------- ##
1974 for ac_var in $ac_subst_vars
1976 eval ac_val=\$$ac_var
1978 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 $as_echo "$ac_var='\''$ac_val'\''"
1984 if test -n "$ac_subst_files"; then
1986 ## ------------------- ##
1987 ## File substitutions. ##
1988 ## ------------------- ##
1991 for ac_var in $ac_subst_files
1993 eval ac_val=\$$ac_var
1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 $as_echo "$ac_var='\''$ac_val'\''"
2002 if test -s confdefs.h; then
2012 test "$ac_signal" != 0 &&
2013 $as_echo "$as_me: caught signal $ac_signal"
2014 $as_echo "$as_me: exit $exit_status"
2016 rm -f core *.core core.conftest.* &&
2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 for ac_signal in 1 2 13 15; do
2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2026 rm -f -r conftest* confdefs.h
2028 $as_echo "/* confdefs.h */" > confdefs.h
2030 # Predefined preprocessor variables.
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_NAME "$PACKAGE_NAME"
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_STRING "$PACKAGE_STRING"
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_URL "$PACKAGE_URL"
2057 # Let the site file select an alternate cache file if it wants to.
2058 # Prefer an explicitly selected file to automatically selected ones.
2061 if test -n "$CONFIG_SITE"; then
2062 ac_site_file1=$CONFIG_SITE
2063 elif test "x$prefix" != xNONE; then
2064 ac_site_file1=$prefix/share/config.site
2065 ac_site_file2=$prefix/etc/config.site
2067 ac_site_file1=$ac_default_prefix/share/config.site
2068 ac_site_file2=$ac_default_prefix/etc/config.site
2070 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072 test "x$ac_site_file" = xNONE && continue
2073 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2076 sed 's/^/| /' "$ac_site_file" >&5
2081 if test -r "$cache_file"; then
2082 # Some versions of bash will fail to source /dev/null (special files
2083 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2084 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2086 $as_echo "$as_me: loading cache $cache_file" >&6;}
2088 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2089 *) . "./$cache_file";;
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2094 $as_echo "$as_me: creating cache $cache_file" >&6;}
2098 # Check that the precious variables saved in the cache have kept the same
2100 ac_cache_corrupted=false
2101 for ac_var in $ac_precious_vars; do
2102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2103 eval ac_new_set=\$ac_env_${ac_var}_set
2104 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2105 eval ac_new_val=\$ac_env_${ac_var}_value
2106 case $ac_old_set,$ac_new_set in
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2109 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2110 ac_cache_corrupted=: ;;
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2113 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2114 ac_cache_corrupted=: ;;
2117 if test "x$ac_old_val" != "x$ac_new_val"; then
2118 # differences in whitespace do not lead to failure.
2119 ac_old_val_w=`echo x $ac_old_val`
2120 ac_new_val_w=`echo x $ac_new_val`
2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2124 ac_cache_corrupted=:
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2127 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2128 eval $ac_var=\$ac_old_val
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2131 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2133 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2136 # Pass precious variables to config.status.
2137 if test "$ac_new_set" = set; then
2139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2140 *) ac_arg=$ac_var=$ac_new_val ;;
2142 case " $ac_configure_args " in
2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2144 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2148 if $ac_cache_corrupted; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2153 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2155 ## -------------------- ##
2156 ## Main body of script. ##
2157 ## -------------------- ##
2160 ac_cpp='$CPP $CPPFLAGS'
2161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167 ac_config_headers="$ac_config_headers config.h"
2171 ac_cpp='$CPP $CPPFLAGS'
2172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then :
2181 $as_echo_n "(cached) " >&6
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 if test -n "$CC"; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2209 $as_echo "no" >&6; }
2214 if test -z "$ac_cv_prog_CC"; then
2216 # Extract the first word of "gcc", so it can be a program name with args.
2217 set dummy gcc; ac_word=$2
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2219 $as_echo_n "checking for $ac_word... " >&6; }
2220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2221 $as_echo_n "(cached) " >&6
2223 if test -n "$ac_ct_CC"; then
2224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 ac_cv_prog_ac_ct_CC="gcc"
2234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2246 $as_echo "$ac_ct_CC" >&6; }
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2249 $as_echo "no" >&6; }
2252 if test "x$ac_ct_CC" = x; then
2255 case $cross_compiling:$ac_tool_warned in
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2259 ac_tool_warned=yes ;;
2267 if test -z "$CC"; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}cc; ac_word=$2
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if test "${ac_cv_prog_CC+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_CC="${ac_tool_prefix}cc"
2287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 if test -n "$CC"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2299 $as_echo "$CC" >&6; }
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2302 $as_echo "no" >&6; }
2308 if test -z "$CC"; then
2309 # Extract the first word of "cc", so it can be a program name with args.
2310 set dummy cc; ac_word=$2
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then :
2314 $as_echo_n "(cached) " >&6
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2328 ac_prog_rejected=yes
2332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 if test $ac_prog_rejected = yes; then
2340 # We found a bogon in the path, so make sure we never use it.
2341 set dummy $ac_cv_prog_CC
2343 if test $# != 0; then
2344 # We chose a different compiler from the bogus one.
2345 # However, it has the same basename, so the bogon will be chosen
2346 # first if we set CC to just the basename; use the full file name.
2348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2354 if test -n "$CC"; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2356 $as_echo "$CC" >&6; }
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2359 $as_echo "no" >&6; }
2364 if test -z "$CC"; then
2365 if test -n "$ac_tool_prefix"; then
2366 for ac_prog in cl.exe
2368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2371 $as_echo_n "checking for $ac_word... " >&6; }
2372 if test "${ac_cv_prog_CC+set}" = set; then :
2373 $as_echo_n "(cached) " >&6
2375 if test -n "$CC"; then
2376 ac_cv_prog_CC="$CC" # Let the user override the test.
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 if test -n "$CC"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2398 $as_echo "$CC" >&6; }
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2401 $as_echo "no" >&6; }
2405 test -n "$CC" && break
2408 if test -z "$CC"; then
2410 for ac_prog in cl.exe
2412 # Extract the first word of "$ac_prog", so it can be a program name with args.
2413 set dummy $ac_prog; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2419 if test -n "$ac_ct_CC"; then
2420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_ac_ct_CC="$ac_prog"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2440 if test -n "$ac_ct_CC"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2442 $as_echo "$ac_ct_CC" >&6; }
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2449 test -n "$ac_ct_CC" && break
2452 if test "x$ac_ct_CC" = x; then
2455 case $cross_compiling:$ac_tool_warned in
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459 ac_tool_warned=yes ;;
2468 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 as_fn_error "no acceptable C compiler found in \$PATH
2471 See \`config.log' for more details." "$LINENO" 5; }
2473 # Provide some information about the compiler.
2474 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2477 for ac_option in --version -v -V -qversion; do
2478 { { ac_try="$ac_compiler $ac_option >&5"
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2484 $as_echo "$ac_try_echo"; } >&5
2485 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2487 if test -s conftest.err; then
2489 ... rest of stderr output deleted ...
2490 10q' conftest.err >conftest.er1
2491 cat conftest.er1 >&5
2493 rm -f conftest.er1 conftest.err
2494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2495 test $ac_status = 0; }
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2509 ac_clean_files_save=$ac_clean_files
2510 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2511 # Try to create an executable without -o first, disregard a.out.
2512 # It will help us diagnose broken compilers, and finding out an intuition
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2515 $as_echo_n "checking whether the C compiler works... " >&6; }
2516 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2518 # The possible output files:
2519 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2522 for ac_file in $ac_files
2525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2526 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2531 if { { ac_try="$ac_link_default"
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537 $as_echo "$ac_try_echo"; } >&5
2538 (eval "$ac_link_default") 2>&5
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; }; then :
2542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2543 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2544 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2545 # so that the user can short-circuit this test for compilers unknown to
2547 for ac_file in $ac_files ''
2549 test -f "$ac_file" || continue
2551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2554 # We found the default executable, but exeext='' is most
2558 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2562 # We set ac_cv_exeext here because the later test for it is not
2563 # safe: cross compilers may not add the suffix if given an `-o'
2564 # argument, so we may need to know it at that point already.
2565 # Even if this section looks crufty: it has the advantage of
2572 test "$ac_cv_exeext" = no && ac_cv_exeext=
2577 if test -z "$ac_file"; then :
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2580 $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 { as_fn_set_status 77
2586 as_fn_error "C compiler cannot create executables
2587 See \`config.log' for more details." "$LINENO" 5; }; }
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2590 $as_echo "yes" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2593 $as_echo_n "checking for C compiler default output file name... " >&6; }
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2595 $as_echo "$ac_file" >&6; }
2596 ac_exeext=$ac_cv_exeext
2598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2599 ac_clean_files=$ac_clean_files_save
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2601 $as_echo_n "checking for suffix of executables... " >&6; }
2602 if { { ac_try="$ac_link"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2608 $as_echo "$ac_try_echo"; } >&5
2609 (eval "$ac_link") 2>&5
2611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2612 test $ac_status = 0; }; then :
2613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2614 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2615 # work properly (i.e., refer to `conftest.exe'), while it won't with
2617 for ac_file in conftest.exe conftest conftest.*; do
2618 test -f "$ac_file" || continue
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error "cannot compute suffix of executables: cannot compile and link
2630 See \`config.log' for more details." "$LINENO" 5; }
2632 rm -f conftest conftest$ac_cv_exeext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2634 $as_echo "$ac_cv_exeext" >&6; }
2636 rm -f conftest.$ac_ext
2637 EXEEXT=$ac_cv_exeext
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2645 FILE *f = fopen ("conftest.out", "w");
2646 return ferror (f) || fclose (f) != 0;
2652 ac_clean_files="$ac_clean_files conftest.out"
2653 # Check that the compiler produces executables we can run. If not, either
2654 # the compiler is broken, or we cross compile.
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2656 $as_echo_n "checking whether we are cross compiling... " >&6; }
2657 if test "$cross_compiling" != yes; then
2658 { { ac_try="$ac_link"
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2664 $as_echo "$ac_try_echo"; } >&5
2665 (eval "$ac_link") 2>&5
2667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2668 test $ac_status = 0; }
2669 if { ac_try='./conftest$ac_cv_exeext'
2670 { { case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676 (eval "$ac_try") 2>&5
2678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2679 test $ac_status = 0; }; }; then
2682 if test "$cross_compiling" = maybe; then
2685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2687 as_fn_error "cannot run C compiled programs.
2688 If you meant to cross compile, use \`--host'.
2689 See \`config.log' for more details." "$LINENO" 5; }
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2694 $as_echo "$cross_compiling" >&6; }
2696 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2697 ac_clean_files=$ac_clean_files_save
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2699 $as_echo_n "checking for suffix of object files... " >&6; }
2700 if test "${ac_cv_objext+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2714 rm -f conftest.o conftest.obj
2715 if { { ac_try="$ac_compile"
2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2718 *) ac_try_echo=$ac_try;;
2720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2721 $as_echo "$ac_try_echo"; } >&5
2722 (eval "$ac_compile") 2>&5
2724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2725 test $ac_status = 0; }; then :
2726 for ac_file in conftest.o conftest.obj conftest.*; do
2727 test -f "$ac_file" || continue;
2729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2730 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2735 $as_echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2740 as_fn_error "cannot compute suffix of object files: cannot compile
2741 See \`config.log' for more details." "$LINENO" 5; }
2743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2746 $as_echo "$ac_cv_objext" >&6; }
2747 OBJEXT=$ac_cv_objext
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2750 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2751 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2752 $as_echo_n "(cached) " >&6
2754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2768 if ac_fn_c_try_compile "$LINENO"; then :
2773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2778 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2779 if test $ac_compiler_gnu = yes; then
2784 ac_test_CFLAGS=${CFLAGS+set}
2785 ac_save_CFLAGS=$CFLAGS
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2787 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2788 if test "${ac_cv_prog_cc_g+set}" = set; then :
2789 $as_echo_n "(cached) " >&6
2791 ac_save_c_werror_flag=$ac_c_werror_flag
2792 ac_c_werror_flag=yes
2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2796 /* end confdefs.h. */
2806 if ac_fn_c_try_compile "$LINENO"; then :
2810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2811 /* end confdefs.h. */
2821 if ac_fn_c_try_compile "$LINENO"; then :
2824 ac_c_werror_flag=$ac_save_c_werror_flag
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h. */
2837 if ac_fn_c_try_compile "$LINENO"; then :
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2845 ac_c_werror_flag=$ac_save_c_werror_flag
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2848 $as_echo "$ac_cv_prog_cc_g" >&6; }
2849 if test "$ac_test_CFLAGS" = set; then
2850 CFLAGS=$ac_save_CFLAGS
2851 elif test $ac_cv_prog_cc_g = yes; then
2852 if test "$GCC" = yes; then
2858 if test "$GCC" = yes; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2865 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2866 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2869 ac_cv_prog_cc_c89=no
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2875 #include <sys/types.h>
2876 #include <sys/stat.h>
2877 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2878 struct buf { int x; };
2879 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2880 static char *e (p, i)
2886 static char *f (char * (*g) (char **, int), char **p, ...)
2891 s = g (p, va_arg (v,int));
2896 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2897 function prototypes and stuff, but not '\xHH' hex character constants.
2898 These don't provoke an error unfortunately, instead are silently treated
2899 as 'x'. The following induces an error, until -std is added to get
2900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2901 array size at least. It's necessary to write '\x00'==0 to get something
2902 that's true only with -std. */
2903 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2905 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2906 inside strings and character constants. */
2908 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2910 int test (int i, double x);
2911 struct s1 {int (*f) (int a);};
2912 struct s2 {int (*f) (double a);};
2913 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2919 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2924 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2927 CC="$ac_save_CC $ac_arg"
2928 if ac_fn_c_try_compile "$LINENO"; then :
2929 ac_cv_prog_cc_c89=$ac_arg
2931 rm -f core conftest.err conftest.$ac_objext
2932 test "x$ac_cv_prog_cc_c89" != "xno" && break
2934 rm -f conftest.$ac_ext
2939 case "x$ac_cv_prog_cc_c89" in
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2942 $as_echo "none needed" >&6; } ;;
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2945 $as_echo "unsupported" >&6; } ;;
2947 CC="$CC $ac_cv_prog_cc_c89"
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2949 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2951 if test "x$ac_cv_prog_cc_c89" != xno; then :
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2968 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2969 # On Suns, sometimes $CPP names a directory.
2970 if test -n "$CPP" && test -d "$CPP"; then
2973 if test -z "$CPP"; then
2974 if test "${ac_cv_prog_CPP+set}" = set; then :
2975 $as_echo_n "(cached) " >&6
2977 # Double quotes because CPP needs to be expanded
2978 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2981 for ac_c_preproc_warn_flag in '' yes
2983 # Use a header file that comes with gcc, so configuring glibc
2984 # with a fresh cross-compiler works.
2985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2986 # <limits.h> exists even on freestanding compilers.
2987 # On the NeXT, cc -E runs the code through the compiler's parser,
2988 # not just through cpp. "Syntax error" is here to catch this case.
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990 /* end confdefs.h. */
2992 # include <limits.h>
2994 # include <assert.h>
2998 if ac_fn_c_try_cpp "$LINENO"; then :
3001 # Broken: fails on valid input.
3004 rm -f conftest.err conftest.$ac_ext
3006 # OK, works on sane cases. Now check whether nonexistent headers
3007 # can be detected and how.
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3010 #include <ac_nonexistent.h>
3012 if ac_fn_c_try_cpp "$LINENO"; then :
3013 # Broken: success on invalid input.
3016 # Passes both tests.
3020 rm -f conftest.err conftest.$ac_ext
3023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3024 rm -f conftest.err conftest.$ac_ext
3025 if $ac_preproc_ok; then :
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3038 $as_echo "$CPP" >&6; }
3040 for ac_c_preproc_warn_flag in '' yes
3042 # Use a header file that comes with gcc, so configuring glibc
3043 # with a fresh cross-compiler works.
3044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3045 # <limits.h> exists even on freestanding compilers.
3046 # On the NeXT, cc -E runs the code through the compiler's parser,
3047 # not just through cpp. "Syntax error" is here to catch this case.
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3051 # include <limits.h>
3053 # include <assert.h>
3057 if ac_fn_c_try_cpp "$LINENO"; then :
3060 # Broken: fails on valid input.
3063 rm -f conftest.err conftest.$ac_ext
3065 # OK, works on sane cases. Now check whether nonexistent headers
3066 # can be detected and how.
3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h. */
3069 #include <ac_nonexistent.h>
3071 if ac_fn_c_try_cpp "$LINENO"; then :
3072 # Broken: success on invalid input.
3075 # Passes both tests.
3079 rm -f conftest.err conftest.$ac_ext
3082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3083 rm -f conftest.err conftest.$ac_ext
3084 if $ac_preproc_ok; then :
3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3090 See \`config.log' for more details." "$LINENO" 5; }
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3101 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3102 if test "${ac_cv_path_GREP+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3105 if test -z "$GREP"; then
3106 ac_path_GREP_found=false
3107 # Loop through the user's path and test for each of PROGNAME-LIST
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3112 test -z "$as_dir" && as_dir=.
3113 for ac_prog in grep ggrep; do
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3117 # Check for GNU ac_path_GREP and select it if it is found.
3118 # Check for GNU $ac_path_GREP
3119 case `"$ac_path_GREP" --version 2>&1` in
3121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3124 $as_echo_n 0123456789 >"conftest.in"
3127 cat "conftest.in" "conftest.in" >"conftest.tmp"
3128 mv "conftest.tmp" "conftest.in"
3129 cp "conftest.in" "conftest.nl"
3130 $as_echo 'GREP' >> "conftest.nl"
3131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3133 as_fn_arith $ac_count + 1 && ac_count=$as_val
3134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3135 # Best one so far, save it but keep looking for a better one
3136 ac_cv_path_GREP="$ac_path_GREP"
3137 ac_path_GREP_max=$ac_count
3139 # 10*(2^10) chars as input seems more than enough
3140 test $ac_count -gt 10 && break
3142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3145 $ac_path_GREP_found && break 3
3150 if test -z "$ac_cv_path_GREP"; then
3151 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3154 ac_cv_path_GREP=$GREP
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3159 $as_echo "$ac_cv_path_GREP" >&6; }
3160 GREP="$ac_cv_path_GREP"
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3164 $as_echo_n "checking for egrep... " >&6; }
3165 if test "${ac_cv_path_EGREP+set}" = set; then :
3166 $as_echo_n "(cached) " >&6
3168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3169 then ac_cv_path_EGREP="$GREP -E"
3171 if test -z "$EGREP"; then
3172 ac_path_EGREP_found=false
3173 # Loop through the user's path and test for each of PROGNAME-LIST
3174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3178 test -z "$as_dir" && as_dir=.
3179 for ac_prog in egrep; do
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3183 # Check for GNU ac_path_EGREP and select it if it is found.
3184 # Check for GNU $ac_path_EGREP
3185 case `"$ac_path_EGREP" --version 2>&1` in
3187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3190 $as_echo_n 0123456789 >"conftest.in"
3193 cat "conftest.in" "conftest.in" >"conftest.tmp"
3194 mv "conftest.tmp" "conftest.in"
3195 cp "conftest.in" "conftest.nl"
3196 $as_echo 'EGREP' >> "conftest.nl"
3197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3199 as_fn_arith $ac_count + 1 && ac_count=$as_val
3200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3201 # Best one so far, save it but keep looking for a better one
3202 ac_cv_path_EGREP="$ac_path_EGREP"
3203 ac_path_EGREP_max=$ac_count
3205 # 10*(2^10) chars as input seems more than enough
3206 test $ac_count -gt 10 && break
3208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3211 $ac_path_EGREP_found && break 3
3216 if test -z "$ac_cv_path_EGREP"; then
3217 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3220 ac_cv_path_EGREP=$EGREP
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3226 $as_echo "$ac_cv_path_EGREP" >&6; }
3227 EGREP="$ac_cv_path_EGREP"
3230 if test $ac_cv_c_compiler_gnu = yes; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
3232 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3233 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3236 ac_pattern="Autoconf.*'x'"
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3243 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3244 ac_cv_prog_gcc_traditional=yes
3246 ac_cv_prog_gcc_traditional=no
3251 if test $ac_cv_prog_gcc_traditional = no; then
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3258 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
3259 ac_cv_prog_gcc_traditional=yes
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
3266 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3267 if test $ac_cv_prog_gcc_traditional = yes; then
3268 CC="$CC -traditional"
3273 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3274 for ac_t in install-sh install.sh shtool; do
3275 if test -f "$ac_dir/$ac_t"; then
3277 ac_install_sh="$ac_aux_dir/$ac_t -c"
3282 if test -z "$ac_aux_dir"; then
3283 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3286 # These three variables are undocumented and unsupported,
3287 # and are intended to be withdrawn in a future Autoconf release.
3288 # They can cause serious problems if a builder's source tree is in a directory
3289 # whose full name contains unusual characters.
3290 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3291 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3292 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3295 # Find a good install program. We prefer a C program (faster),
3296 # so one script is as good as another. But avoid the broken or
3297 # incompatible versions:
3298 # SysV /etc/install, /usr/sbin/install
3299 # SunOS /usr/etc/install
3300 # IRIX /sbin/install
3302 # AmigaOS /C/install, which installs bootblocks on floppy discs
3303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3306 # OS/2's system install, which has a completely different semantic
3307 # ./install, which can be erroneously created by make from ./install.sh.
3308 # Reject install programs that cannot install multiple files.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3310 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3311 if test -z "$INSTALL"; then
3312 if test "${ac_cv_path_install+set}" = set; then :
3313 $as_echo_n "(cached) " >&6
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 test -z "$as_dir" && as_dir=.
3320 # Account for people who put trailing slashes in PATH elements.
3321 case $as_dir/ in #((
3322 ./ | .// | /[cC]/* | \
3323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3324 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3327 # OSF1 and SCO ODT 3.0 have their own names for install.
3328 # Don't use installbsd from OSF since it installs stuff as root
3330 for ac_prog in ginstall scoinst install; do
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3333 if test $ac_prog = install &&
3334 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3335 # AIX install. It has an incompatible calling convention.
3337 elif test $ac_prog = install &&
3338 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3339 # program-specific install script used by HP pwplus--don't use.
3342 rm -rf conftest.one conftest.two conftest.dir
3343 echo one > conftest.one
3344 echo two > conftest.two
3346 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3347 test -s conftest.one && test -s conftest.two &&
3348 test -s conftest.dir/conftest.one &&
3349 test -s conftest.dir/conftest.two
3351 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3364 rm -rf conftest.one conftest.two conftest.dir
3367 if test "${ac_cv_path_install+set}" = set; then
3368 INSTALL=$ac_cv_path_install
3370 # As a last resort, use the slow shell script. Don't cache a
3371 # value for INSTALL within a source directory, because that will
3372 # break other packages using the cache if that directory is
3373 # removed, or if the value is a relative name.
3374 INSTALL=$ac_install_sh
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3378 $as_echo "$INSTALL" >&6; }
3380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3381 # It thinks the first close brace ends the variable substitution.
3382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3389 $as_echo_n "checking whether ln -s works... " >&6; }
3391 if test "$LN_S" = "ln -s"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3396 $as_echo "no, using $LN_S" >&6; }
3400 # Extract the first word of "install-info", so it can be a program name with args.
3401 set dummy install-info; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3407 case $INSTALL_INFO in
3409 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=""""
3431 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
3432 if test -n "$INSTALL_INFO"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
3434 $as_echo "$INSTALL_INFO" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3443 $as_echo_n "checking for ANSI C header files... " >&6; }
3444 if test "${ac_cv_header_stdc+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3462 if ac_fn_c_try_compile "$LINENO"; then :
3463 ac_cv_header_stdc=yes
3465 ac_cv_header_stdc=no
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 if test $ac_cv_header_stdc = yes; then
3470 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477 $EGREP "memchr" >/dev/null 2>&1; then :
3480 ac_cv_header_stdc=no
3486 if test $ac_cv_header_stdc = yes; then
3487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494 $EGREP "free" >/dev/null 2>&1; then :
3497 ac_cv_header_stdc=no
3503 if test $ac_cv_header_stdc = yes; then
3504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3505 if test "$cross_compiling" = yes; then :
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3512 #if ((' ' & 0x0FF) == 0x020)
3513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3516 # define ISLOWER(c) \
3517 (('a' <= (c) && (c) <= 'i') \
3518 || ('j' <= (c) && (c) <= 'r') \
3519 || ('s' <= (c) && (c) <= 'z'))
3520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3528 for (i = 0; i < 256; i++)
3529 if (XOR (islower (i), ISLOWER (i))
3530 || toupper (i) != TOUPPER (i))
3535 if ac_fn_c_try_run "$LINENO"; then :
3538 ac_cv_header_stdc=no
3540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3541 conftest.$ac_objext conftest.beam conftest.$ac_ext
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3547 $as_echo "$ac_cv_header_stdc" >&6; }
3548 if test $ac_cv_header_stdc = yes; then
3550 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3554 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3555 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3556 inttypes.h stdint.h unistd.h
3558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3559 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3561 eval as_val=\$$as_ac_Header
3562 if test "x$as_val" = x""yes; then :
3563 cat >>confdefs.h <<_ACEOF
3564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3573 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3574 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3581 if test "$MINIX" = yes; then
3583 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3586 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3589 $as_echo "#define _MINIX 1" >>confdefs.h
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3595 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3596 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3602 # define __EXTENSIONS__ 1
3603 $ac_includes_default
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_cv_safe_to_define___extensions__=yes
3615 ac_cv_safe_to_define___extensions__=no
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3620 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3621 test $ac_cv_safe_to_define___extensions__ = yes &&
3622 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3624 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3626 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3628 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3630 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3633 # Make sure we can run config.sub.
3634 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3635 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3638 $as_echo_n "checking build system type... " >&6; }
3639 if test "${ac_cv_build+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3642 ac_build_alias=$build_alias
3643 test "x$ac_build_alias" = x &&
3644 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3645 test "x$ac_build_alias" = x &&
3646 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3647 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3648 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3652 $as_echo "$ac_cv_build" >&6; }
3653 case $ac_cv_build in
3655 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3658 ac_save_IFS=$IFS; IFS='-'
3664 # Remember, the first character of IFS is used to create $*,
3665 # except with old shells:
3668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3672 $as_echo_n "checking host system type... " >&6; }
3673 if test "${ac_cv_host+set}" = set; then :
3674 $as_echo_n "(cached) " >&6
3676 if test "x$host_alias" = x; then
3677 ac_cv_host=$ac_cv_build
3679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3680 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3685 $as_echo "$ac_cv_host" >&6; }
3688 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3691 ac_save_IFS=$IFS; IFS='-'
3697 # Remember, the first character of IFS is used to create $*,
3698 # except with old shells:
3701 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3705 $as_echo_n "checking target system type... " >&6; }
3706 if test "${ac_cv_target+set}" = set; then :
3707 $as_echo_n "(cached) " >&6
3709 if test "x$target_alias" = x; then
3710 ac_cv_target=$ac_cv_host
3712 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3713 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3718 $as_echo "$ac_cv_target" >&6; }
3719 case $ac_cv_target in
3721 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3723 target=$ac_cv_target
3724 ac_save_IFS=$IFS; IFS='-'
3730 # Remember, the first character of IFS is used to create $*,
3731 # except with old shells:
3734 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3737 # The aliases save the names the user supplied, while $host etc.
3738 # will get canonicalized.
3739 test -n "$target_alias" &&
3740 test "$program_prefix$program_suffix$program_transform_name" = \
3742 program_prefix=${target_alias}-
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
3746 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3747 if test "${ac_cv_c_const+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h. */
3756 /* FIXME: Include the comments suggested by Paul. */
3758 /* Ultrix mips cc rejects this. */
3759 typedef int charset[2];
3761 /* SunOS 4.1.1 cc rejects this. */
3762 char const *const *pcpcc;
3764 /* NEC SVR4.0.2 mips cc rejects this. */
3765 struct point {int x, y;};
3766 static struct point const zero = {0,0};
3767 /* AIX XL C 1.02.0.0 rejects this.
3768 It does not let you subtract one const X* pointer from another in
3769 an arm of an if-expression whose if-part is not a constant
3771 const char *g = "string";
3772 pcpcc = &g + (g ? g-g : 0);
3773 /* HPUX 7.0 cc rejects these. */
3775 ppc = (char**) pcpcc;
3776 pcpcc = (char const *const *) ppc;
3777 { /* SCO 3.2v4 cc rejects this. */
3779 char const *s = 0 ? (char *) 0 : (char const *) 0;
3784 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3786 const int *foo = &x[0];
3789 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3790 typedef const int *iptr;
3794 { /* AIX XL C 1.02.0.0 rejects this saying
3795 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3796 struct s { int j; const int *ap[3]; };
3797 struct s *b; b->j = 5;
3799 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3803 return !cs[0] && !zero.x;
3810 if ac_fn_c_try_compile "$LINENO"; then :
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
3818 $as_echo "$ac_cv_c_const" >&6; }
3819 if test $ac_cv_c_const = no; then
3821 $as_echo "#define const /**/" >>confdefs.h
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
3826 $as_echo_n "checking for inline... " >&6; }
3827 if test "${ac_cv_c_inline+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3831 for ac_kw in inline __inline__ __inline; do
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3836 static $ac_kw foo_t static_foo () {return 0; }
3837 $ac_kw foo_t foo () {return 0; }
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_c_inline=$ac_kw
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 test "$ac_cv_c_inline" != no && break
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
3850 $as_echo "$ac_cv_c_inline" >&6; }
3852 case $ac_cv_c_inline in
3855 case $ac_cv_c_inline in
3857 *) ac_val=$ac_cv_c_inline;;
3859 cat >>confdefs.h <<_ACEOF
3861 #define inline $ac_val
3869 # Check whether --enable-xdf was given.
3870 if test "${enable_xdf+set}" = set; then :
3871 enableval=$enable_xdf; if test x$enableval = xyes; then
3873 $as_echo "#define USE_XDF 1" >>confdefs.h
3878 $as_echo "#define USE_XDF 1" >>confdefs.h
3884 # Check whether --enable-vold was given.
3885 if test "${enable_vold+set}" = set; then :
3886 enableval=$enable_vold; if test x$enableval = xyes; then
3888 $as_echo "#define USING_VOLD 1" >>confdefs.h
3895 # Check whether --enable-new-vold was given.
3896 if test "${enable_new_vold+set}" = set; then :
3897 enableval=$enable_new_vold; newVold=x$enableval
3898 if test x$enableval = xyes; then
3900 $as_echo "#define USING_NEW_VOLD 1" >>confdefs.h
3907 # Check whether --enable-debug was given.
3908 if test "${enable_debug+set}" = set; then :
3909 enableval=$enable_debug; if test x$enableval = xyes; then
3911 $as_echo "#define DEBUG 1" >>confdefs.h
3918 # Check whether --enable-raw_term was given.
3919 if test "${enable_raw_term+set}" = set; then :
3920 enableval=$enable_raw_term; if test x$enableval = xyes; then
3922 $as_echo "#define USE_RAWTERM 1" >>confdefs.h
3927 $as_echo "#define USE_RAWTERM 1" >>confdefs.h
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
3935 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
3936 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3939 ac_check_lib_save_LIBS=$LIBS
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3944 /* Override any GCC internal prototype to avoid an error.
3945 Use char because int might match the return type of a GCC
3946 builtin and then its argument prototype would still apply. */
3959 if ac_fn_c_try_link "$LINENO"; then :
3960 ac_cv_lib_sun_getpwnam=yes
3962 ac_cv_lib_sun_getpwnam=no
3964 rm -f core conftest.err conftest.$ac_objext \
3965 conftest$ac_exeext conftest.$ac_ext
3966 LIBS=$ac_check_lib_save_LIBS
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
3969 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
3970 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
3971 cat >>confdefs.h <<_ACEOF
3972 #define HAVE_LIBSUN 1
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cam_open_device in -lcam" >&5
3980 $as_echo_n "checking for cam_open_device in -lcam... " >&6; }
3981 if test "${ac_cv_lib_cam_cam_open_device+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3984 ac_check_lib_save_LIBS=$LIBS
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3989 /* Override any GCC internal prototype to avoid an error.
3990 Use char because int might match the return type of a GCC
3991 builtin and then its argument prototype would still apply. */
3995 char cam_open_device ();
3999 return cam_open_device ();
4004 if ac_fn_c_try_link "$LINENO"; then :
4005 ac_cv_lib_cam_cam_open_device=yes
4007 ac_cv_lib_cam_cam_open_device=no
4009 rm -f core conftest.err conftest.$ac_objext \
4010 conftest$ac_exeext conftest.$ac_ext
4011 LIBS=$ac_check_lib_save_LIBS
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cam_cam_open_device" >&5
4014 $as_echo "$ac_cv_lib_cam_cam_open_device" >&6; }
4015 if test "x$ac_cv_lib_cam_cam_open_device" = x""yes; then :
4016 cat >>confdefs.h <<_ACEOF
4017 #define HAVE_LIBCAM 1
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4026 $as_echo_n "checking for ANSI C header files... " >&6; }
4027 if test "${ac_cv_header_stdc+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_header_stdc=yes
4048 ac_cv_header_stdc=no
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 if test $ac_cv_header_stdc = yes; then
4053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4060 $EGREP "memchr" >/dev/null 2>&1; then :
4063 ac_cv_header_stdc=no
4069 if test $ac_cv_header_stdc = yes; then
4070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077 $EGREP "free" >/dev/null 2>&1; then :
4080 ac_cv_header_stdc=no
4086 if test $ac_cv_header_stdc = yes; then
4087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4088 if test "$cross_compiling" = yes; then :
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4095 #if ((' ' & 0x0FF) == 0x020)
4096 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4097 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4099 # define ISLOWER(c) \
4100 (('a' <= (c) && (c) <= 'i') \
4101 || ('j' <= (c) && (c) <= 'r') \
4102 || ('s' <= (c) && (c) <= 'z'))
4103 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4106 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4111 for (i = 0; i < 256; i++)
4112 if (XOR (islower (i), ISLOWER (i))
4113 || toupper (i) != TOUPPER (i))
4118 if ac_fn_c_try_run "$LINENO"; then :
4121 ac_cv_header_stdc=no
4123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4124 conftest.$ac_objext conftest.beam conftest.$ac_ext
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4130 $as_echo "$ac_cv_header_stdc" >&6; }
4131 if test $ac_cv_header_stdc = yes; then
4133 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4138 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4139 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4140 $as_echo_n "(cached) " >&6
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144 #include <sys/types.h>
4145 #include <sys/wait.h>
4147 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4150 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4158 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164 ac_cv_header_sys_wait_h=yes
4166 ac_cv_header_sys_wait_h=no
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4171 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4172 if test $ac_cv_header_sys_wait_h = yes; then
4174 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4178 for ac_header in getopt.h sys/stat.h stdlib.h unistd.h linux/unistd.h \
4179 libc.h fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h strings.h string.h \
4180 sys/param.h memory.h malloc.h signal.h sys/signal.h utime.h sgtty.h \
4181 sys/floppy.h mntent.h sys/sysmacros.h netinet/in.h assert.h \
4182 iconv.h wctype.h wchar.h locale.h linux/fs.h
4184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4185 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4186 eval as_val=\$$as_ac_Header
4187 if test "x$as_val" = x""yes; then :
4188 cat >>confdefs.h <<_ACEOF
4189 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4196 for ac_header in termio.h sys/termio.h
4198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4199 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4200 eval as_val=\$$as_ac_Header
4201 if test "x$as_val" = x""yes; then :
4202 cat >>confdefs.h <<_ACEOF
4203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4210 for ac_header in termios.h sys/termios.h
4212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4213 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4214 eval as_val=\$$as_ac_Header
4215 if test "x$as_val" = x""yes; then :
4216 cat >>confdefs.h <<_ACEOF
4217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llseek declared in unistd.h" >&5
4227 $as_echo_n "checking whether llseek declared in unistd.h... " >&6; }
4228 if test "${mtools_cv_have_llseek_prototype+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4237 extern int llseek(int);
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 mtools_cv_have_llseek_prototype=no
4245 mtools_cv_have_llseek_prototype=yes
4247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtools_cv_have_llseek_prototype" >&5
4251 $as_echo "$mtools_cv_have_llseek_prototype" >&6; }
4252 if test "$mtools_cv_have_llseek_prototype" = yes; then
4254 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek64 declared in unistd.h" >&5
4259 $as_echo_n "checking whether lseek64 declared in unistd.h... " >&6; }
4260 if test "${mtools_cv_have_lseek64_prototype+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4266 #include "sysincludes.h"
4272 extern int lseek64(int);
4277 if ac_fn_c_try_compile "$LINENO"; then :
4278 mtools_cv_have_lseek64_prototype=no
4280 mtools_cv_have_lseek64_prototype=yes
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mtools_cv_have_lseek64_prototype" >&5
4286 $as_echo "$mtools_cv_have_lseek64_prototype" >&6; }
4287 if test "$mtools_cv_have_lseek64_prototype" = yes; then
4289 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
4294 for ac_func in htons
4296 ac_fn_c_check_func "$LINENO" "htons" "ac_cv_func_htons"
4297 if test "x$ac_cv_func_htons" = x""yes; then :
4298 cat >>confdefs.h <<_ACEOF
4299 #define HAVE_HTONS 1
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4308 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4309 if test "${ac_cv_c_const+set}" = set; then :
4310 $as_echo_n "(cached) " >&6
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4318 /* FIXME: Include the comments suggested by Paul. */
4320 /* Ultrix mips cc rejects this. */
4321 typedef int charset[2];
4323 /* SunOS 4.1.1 cc rejects this. */
4324 char const *const *pcpcc;
4326 /* NEC SVR4.0.2 mips cc rejects this. */
4327 struct point {int x, y;};
4328 static struct point const zero = {0,0};
4329 /* AIX XL C 1.02.0.0 rejects this.
4330 It does not let you subtract one const X* pointer from another in
4331 an arm of an if-expression whose if-part is not a constant
4333 const char *g = "string";
4334 pcpcc = &g + (g ? g-g : 0);
4335 /* HPUX 7.0 cc rejects these. */
4337 ppc = (char**) pcpcc;
4338 pcpcc = (char const *const *) ppc;
4339 { /* SCO 3.2v4 cc rejects this. */
4341 char const *s = 0 ? (char *) 0 : (char const *) 0;
4346 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4348 const int *foo = &x[0];
4351 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4352 typedef const int *iptr;
4356 { /* AIX XL C 1.02.0.0 rejects this saying
4357 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4358 struct s { int j; const int *ap[3]; };
4359 struct s *b; b->j = 5;
4361 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4365 return !cs[0] && !zero.x;
4372 if ac_fn_c_try_compile "$LINENO"; then :
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4380 $as_echo "$ac_cv_c_const" >&6; }
4381 if test $ac_cv_c_const = no; then
4383 $as_echo "#define const /**/" >>confdefs.h
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4388 $as_echo_n "checking for inline... " >&6; }
4389 if test "${ac_cv_c_inline+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4393 for ac_kw in inline __inline__ __inline; do
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4398 static $ac_kw foo_t static_foo () {return 0; }
4399 $ac_kw foo_t foo () {return 0; }
4403 if ac_fn_c_try_compile "$LINENO"; then :
4404 ac_cv_c_inline=$ac_kw
4406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 test "$ac_cv_c_inline" != no && break
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4412 $as_echo "$ac_cv_c_inline" >&6; }
4414 case $ac_cv_c_inline in
4417 case $ac_cv_c_inline in
4419 *) ac_val=$ac_cv_c_inline;;
4421 cat >>confdefs.h <<_ACEOF
4423 #define inline $ac_val
4429 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4430 if test "x$ac_cv_type_size_t" = x""yes; then :
4434 cat >>confdefs.h <<_ACEOF
4435 #define size_t unsigned int
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4441 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4442 if test "${ac_cv_header_time+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447 #include <sys/types.h>
4448 #include <sys/time.h>
4454 if ((struct tm *) 0)
4460 if ac_fn_c_try_compile "$LINENO"; then :
4461 ac_cv_header_time=yes
4463 ac_cv_header_time=no
4465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4468 $as_echo "$ac_cv_header_time" >&6; }
4469 if test $ac_cv_header_time = yes; then
4471 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4476 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4477 if test "${ac_cv_struct_tm+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <sys/types.h>
4489 int *p = &tm.tm_sec;
4495 if ac_fn_c_try_compile "$LINENO"; then :
4496 ac_cv_struct_tm=time.h
4498 ac_cv_struct_tm=sys/time.h
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4503 $as_echo "$ac_cv_struct_tm" >&6; }
4504 if test $ac_cv_struct_tm = sys/time.h; then
4506 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4513 $as_echo_n "checking return type of signal handlers... " >&6; }
4514 if test "${ac_cv_type_signal+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #include <sys/types.h>
4525 return *(signal (0, 0)) (0) == 1;
4530 if ac_fn_c_try_compile "$LINENO"; then :
4531 ac_cv_type_signal=int
4533 ac_cv_type_signal=void
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4538 $as_echo "$ac_cv_type_signal" >&6; }
4540 cat >>confdefs.h <<_ACEOF
4541 #define RETSIGTYPE $ac_cv_type_signal
4545 for ac_func in strerror random srandom strchr strrchr lockf flock \
4546 strcasecmp strncasecmp strnlen atexit on_exit getpass memmove \
4547 strdup strcspn strspn strtoul strtol memcpy strpbrk memset setenv \
4548 seteuid setresuid setpgrp \
4549 tcsetattr tcflush basename fchdir media_oldaliases llseek lseek64 \
4550 snprintf stat64 setlocale \
4551 wcsdup wcscasecmp wcsnlen putwc \
4552 getuserid getgroupid
4554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4556 eval as_val=\$$as_ac_var
4557 if test "x$as_val" = x""yes; then :
4558 cat >>confdefs.h <<_ACEOF
4559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
4566 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
4567 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4570 if test "$cross_compiling" = yes; then :
4571 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 $ac_includes_default
4579 /* If this system has a BSD-style setpgrp which takes arguments,
4580 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
4581 exit successfully. */
4582 return setpgrp (1,1) != -1;
4587 if ac_fn_c_try_run "$LINENO"; then :
4588 ac_cv_func_setpgrp_void=no
4590 ac_cv_func_setpgrp_void=yes
4592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4593 conftest.$ac_objext conftest.beam conftest.$ac_ext
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
4598 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
4599 if test $ac_cv_func_setpgrp_void = yes; then
4601 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
4616 $as_echo_n "checking for 64-bit off_t... " >&6; }
4617 if test "${sfs_cv_off_t_64+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4624 #include <sys/types.h>
4630 switch (0) case 0: case (sizeof (off_t) <= 4):;
4636 if ac_fn_c_try_compile "$LINENO"; then :
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sfs_cv_off_t_64" >&5
4644 $as_echo "$sfs_cv_off_t_64" >&6; }
4645 if test $sfs_cv_off_t_64 = yes; then
4647 $as_echo "#define HAVE_OFF_T_64 1" >>confdefs.h
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports loff_t type" >&5
4652 $as_echo_n "checking whether ${CC} supports loff_t type... " >&6; }
4653 if test "${ice_cv_have_loff_t+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #include <sys/types.h>
4668 if ac_fn_c_try_compile "$LINENO"; then :
4669 ice_cv_have_loff_t=yes
4671 ice_cv_have_loff_t=no
4673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_loff_t" >&5
4678 $as_echo "$ice_cv_have_loff_t" >&6; }
4679 if test "$ice_cv_have_loff_t" = yes; then
4681 $as_echo "#define HAVE_LOFF_T 1" >>confdefs.h
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports offset_t type" >&5
4687 $as_echo_n "checking whether ${CC} supports offset_t type... " >&6; }
4688 if test "${ice_cv_have_offset_t+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 #include <sys/types.h>
4703 if ac_fn_c_try_compile "$LINENO"; then :
4704 ice_cv_have_offset_t=yes
4706 ice_cv_have_offset_t=no
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_offset_t" >&5
4713 $as_echo "$ice_cv_have_offset_t" >&6; }
4714 if test "$ice_cv_have_offset_t" = yes; then
4716 $as_echo "#define HAVE_OFFSET_T 1" >>confdefs.h
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports long long type" >&5
4722 $as_echo_n "checking whether ${CC} supports long long type... " >&6; }
4723 if test "${ice_cv_have_long_long+set}" = set; then :
4724 $as_echo_n "(cached) " >&6
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ice_cv_have_long_long=yes
4741 ice_cv_have_long_long=no
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ice_cv_have_long_long" >&5
4748 $as_echo "$ice_cv_have_long_long" >&6; }
4749 if test "$ice_cv_have_long_long" = yes; then
4751 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
4757 for ac_func in utimes utime
4759 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4761 eval as_val=\$$as_ac_var
4762 if test "x$as_val" = x""yes; then :
4763 cat >>confdefs.h <<_ACEOF
4764 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4770 for ac_func in tzset gettimeofday
4772 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4773 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4774 eval as_val=\$$as_ac_var
4775 if test "x$as_val" = x""yes; then :
4776 cat >>confdefs.h <<_ACEOF
4777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
4786 $as_echo_n "checking declaration of sys_errlist... " >&6; }
4787 if test "${cf_cv_dcl_sys_errlist+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4795 #include <sys/types.h>
4800 char *c = (char *) *sys_errlist
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 cf_cv_dcl_sys_errlist=yes
4808 cf_cv_dcl_sys_errlist=no
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_dcl_sys_errlist" >&5
4814 $as_echo "$cf_cv_dcl_sys_errlist" >&6; }
4815 test $cf_cv_dcl_sys_errlist = no ||
4816 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
4821 host_os0=`echo $host_os | sed 's/-/_/g'`
4822 host_os1=`echo $host_os0 | sed 's/\./_/g'`
4823 host_os2=`echo $host_os0 | sed 's/^\([^.]*\)\..*$/\1/g'`
4824 host_os3=`echo $host_os2 | sed 's/^\([^0-9]*\)[0-9]*$/\1/g'`
4825 host_cpu1=`echo $host_cpu | sed 's/\./_/g'`
4826 host_vendor1=`echo $host_vendor | sed 's/\./_/g'`
4827 HOST_ID="-DCPU_$host_cpu1 -DVENDOR_$host_vendor1 -DOS_$host_os1"
4828 if [ $host_os1 != $host_os2 ] ; then
4829 HOST_ID="$HOST_ID -DOS_$host_os2"
4831 if [ $host_os1 != $host_os3 ] && [ $host_os2 != $host_os3 ] ; then
4832 HOST_ID="$HOST_ID -DOS_$host_os3"
4835 my_host_os=`echo $host_os1 $host_os2 $host_os3 | sort -u`
4836 objs=`echo $srcdir/*.c | sed 's/\.c$/.o/' `
4837 if [ "X$GCC" = "Xyes" ] ; then
4839 if [ "$host_os3" = sunos ] ; then
4842 if [ "$host_os3" = ultrix ] ; then
4845 if [ "$host_os3" = linux ] ; then
4846 CFLAGS="$CFLAGS -fno-strength-reduce"
4848 if [ "$host_os3" = aux ] ; then
4849 CFLAGS="$CFLAGS -ZP"
4850 MACHDEPLIBS="-lposix -UTIL"
4853 arm*-*-linux) CFLAGS="$CFLAGS -mstructure-size-boundary=8";;
4855 CFLAGS="$CFLAGS $Wall"
4857 if [ $host_os3 = hpux ] ; then
4858 CPPFLAGS="$CPPFLAGS -Ae"
4861 if [ $host_os3 = xenix ] ; then
4862 CFLAGS="$CFLAGS -M2e"
4866 if [ $host_os3 = hpux ] ; then
4867 LDFLAGS="$LDFLAGS -z"
4870 if [ $host_os3 = xenix ] ; then
4871 LDFLAGS="$LDFLAGS -M2e -i -f 5000"
4874 if [ $host_os2 = sysv4 ] ; then
4875 SHLIB="-lc -L/usr/ucblib -lucb"
4880 if [ $host_os3 = isc ] ; then
4881 CFLAGS="$CFLAGS -D_SYSV3"
4885 if [ $host_os3 = solaris -a x$newVold = xxyes ] ; then
4886 SHLIB="$SHLIB -s -lvolmgt"
4889 if [ $host_os3 = nextstep ] ; then
4890 CFLAGS="$CFLAGS -DBSD"
4894 if [ -d /usr/5lib ] ; then
4895 extralibdir=-L/usr/5lib
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4901 $as_echo_n "checking for X... " >&6; }
4904 # Check whether --with-x was given.
4905 if test "${with_x+set}" = set; then :
4909 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4910 if test "x$with_x" = xno; then
4911 # The user explicitly disabled X.
4914 case $x_includes,$x_libraries in #(
4915 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
4916 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4919 # One or both of the vars are not set, and there is no cached value.
4920 ac_x_includes=no ac_x_libraries=no
4921 rm -f -r conftest.dir
4922 if mkdir conftest.dir; then
4924 cat >Imakefile <<'_ACEOF'
4926 @echo incroot='${INCROOT}'
4928 @echo usrlibdir='${USRLIBDIR}'
4930 @echo libdir='${LIBDIR}'
4932 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4934 for ac_var in incroot usrlibdir libdir; do
4935 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4937 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4938 for ac_extension in a so sl dylib la dll; do
4939 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4940 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4941 ac_im_usrlibdir=$ac_im_libdir; break
4944 # Screen out bogus values from the imake configuration. They are
4945 # bogus both because they are the default anyway, and because
4946 # using them would break gcc on systems where it needs fixed includes.
4947 case $ac_im_incroot in
4948 /usr/include) ac_x_includes= ;;
4949 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4951 case $ac_im_usrlibdir in
4952 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4953 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4957 rm -f -r conftest.dir
4960 # Standard set of common directories for X headers.
4961 # Check X11 before X11Rn because it is often a symlink to the current release.
4975 /usr/local/X11/include
4976 /usr/local/X11R7/include
4977 /usr/local/X11R6/include
4978 /usr/local/X11R5/include
4979 /usr/local/X11R4/include
4981 /usr/local/include/X11
4982 /usr/local/include/X11R7
4983 /usr/local/include/X11R6
4984 /usr/local/include/X11R5
4985 /usr/local/include/X11R4
4989 /usr/XFree86/include/X11
4993 /usr/unsupported/include
4995 /usr/local/x11r5/include
4996 /usr/lpp/Xamples/include
4998 /usr/openwin/include
4999 /usr/openwin/share/include'
5001 if test "$ac_x_includes" = no; then
5002 # Guess where to find include files, by looking for Xlib.h.
5003 # First, try using that file with no special directory specified.
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006 #include <X11/Xlib.h>
5008 if ac_fn_c_try_cpp "$LINENO"; then :
5009 # We can compile using X headers with no special include directory.
5012 for ac_dir in $ac_x_header_dirs; do
5013 if test -r "$ac_dir/X11/Xlib.h"; then
5014 ac_x_includes=$ac_dir
5019 rm -f conftest.err conftest.$ac_ext
5020 fi # $ac_x_includes = no
5022 if test "$ac_x_libraries" = no; then
5023 # Check for the libraries.
5024 # See if we find them without any special options.
5025 # Don't add to $LIBS permanently.
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 #include <X11/Xlib.h>
5039 if ac_fn_c_try_link "$LINENO"; then :
5041 # We can link X programs with no special library path.
5045 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5047 # Don't even attempt the hair of trying to link an X program!
5048 for ac_extension in a so sl dylib la dll; do
5049 if test -r "$ac_dir/libX11.$ac_extension"; then
5050 ac_x_libraries=$ac_dir
5056 rm -f core conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058 fi # $ac_x_libraries = no
5060 case $ac_x_includes,$ac_x_libraries in #(
5062 # Didn't find X, or a directory has "'" in its name.
5063 ac_cv_have_x="have_x=no";; #(
5065 # Record where we found X for the cache.
5066 ac_cv_have_x="have_x=yes\
5067 ac_x_includes='$ac_x_includes'\
5068 ac_x_libraries='$ac_x_libraries'"
5074 eval "$ac_cv_have_x"
5077 if test "$have_x" != yes; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5079 $as_echo "$have_x" >&6; }
5082 # If each of the values was on the command line, it overrides each guess.
5083 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5084 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5085 # Update the cache value to reflect the command line values.
5086 ac_cv_have_x="have_x=yes\
5087 ac_x_includes='$x_includes'\
5088 ac_x_libraries='$x_libraries'"
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5090 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5093 if test "$no_x" = yes; then
5094 # Not all programs may use this symbol, but it does not hurt to define it.
5096 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5098 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5100 if test -n "$x_includes"; then
5101 X_CFLAGS="$X_CFLAGS -I$x_includes"
5104 # It would also be nice to do this for all -L options, not just this one.
5105 if test -n "$x_libraries"; then
5106 X_LIBS="$X_LIBS -L$x_libraries"
5107 # For Solaris; some versions of Sun CC require a space after -R and
5108 # others require no space. Words are not sufficient . . . .
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5110 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5111 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5112 ac_xsave_c_werror_flag=$ac_c_werror_flag
5113 ac_c_werror_flag=yes
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5125 if ac_fn_c_try_link "$LINENO"; then :
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 X_LIBS="$X_LIBS -R$x_libraries"
5130 LIBS="$ac_xsave_LIBS -R $x_libraries"
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5142 if ac_fn_c_try_link "$LINENO"; then :
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5144 $as_echo "yes" >&6; }
5145 X_LIBS="$X_LIBS -R $x_libraries"
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5148 $as_echo "neither works" >&6; }
5150 rm -f core conftest.err conftest.$ac_objext \
5151 conftest$ac_exeext conftest.$ac_ext
5153 rm -f core conftest.err conftest.$ac_objext \
5154 conftest$ac_exeext conftest.$ac_ext
5155 ac_c_werror_flag=$ac_xsave_c_werror_flag
5159 # Check for system-dependent libraries X programs must link with.
5160 # Do this before checking for the system-independent R6 libraries
5161 # (-lICE), since we may need -lsocket or whatever for X linking.
5163 if test "$ISC" = yes; then
5164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5166 # Martyn Johnson says this is needed for Ultrix, if the X
5167 # libraries were built with DECnet support. And Karl Berry says
5168 # the Alpha needs dnet_stub (dnet does not exist).
5169 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5173 /* Override any GCC internal prototype to avoid an error.
5174 Use char because int might match the return type of a GCC
5175 builtin and then its argument prototype would still apply. */
5179 char XOpenDisplay ();
5183 return XOpenDisplay ();
5188 if ac_fn_c_try_link "$LINENO"; then :
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5192 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5193 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5196 ac_check_lib_save_LIBS=$LIBS
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5201 /* Override any GCC internal prototype to avoid an error.
5202 Use char because int might match the return type of a GCC
5203 builtin and then its argument prototype would still apply. */
5211 return dnet_ntoa ();
5216 if ac_fn_c_try_link "$LINENO"; then :
5217 ac_cv_lib_dnet_dnet_ntoa=yes
5219 ac_cv_lib_dnet_dnet_ntoa=no
5221 rm -f core conftest.err conftest.$ac_objext \
5222 conftest$ac_exeext conftest.$ac_ext
5223 LIBS=$ac_check_lib_save_LIBS
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5226 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5227 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5228 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5231 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5233 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5234 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5237 ac_check_lib_save_LIBS=$LIBS
5238 LIBS="-ldnet_stub $LIBS"
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5242 /* Override any GCC internal prototype to avoid an error.
5243 Use char because int might match the return type of a GCC
5244 builtin and then its argument prototype would still apply. */
5252 return dnet_ntoa ();
5257 if ac_fn_c_try_link "$LINENO"; then :
5258 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5260 ac_cv_lib_dnet_stub_dnet_ntoa=no
5262 rm -f core conftest.err conftest.$ac_objext \
5263 conftest$ac_exeext conftest.$ac_ext
5264 LIBS=$ac_check_lib_save_LIBS
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5267 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5268 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5269 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5274 rm -f core conftest.err conftest.$ac_objext \
5275 conftest$ac_exeext conftest.$ac_ext
5276 LIBS="$ac_xsave_LIBS"
5278 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5279 # to get the SysV transport functions.
5280 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5282 # The nsl library prevents programs from opening the X display
5283 # on Irix 5.2, according to T.E. Dickey.
5284 # The functions gethostbyname, getservbyname, and inet_addr are
5285 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5286 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5287 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5291 if test $ac_cv_func_gethostbyname = no; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5293 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5294 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
5297 ac_check_lib_save_LIBS=$LIBS
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5302 /* Override any GCC internal prototype to avoid an error.
5303 Use char because int might match the return type of a GCC
5304 builtin and then its argument prototype would still apply. */
5308 char gethostbyname ();
5312 return gethostbyname ();
5317 if ac_fn_c_try_link "$LINENO"; then :
5318 ac_cv_lib_nsl_gethostbyname=yes
5320 ac_cv_lib_nsl_gethostbyname=no
5322 rm -f core conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5324 LIBS=$ac_check_lib_save_LIBS
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5327 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5328 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5332 if test $ac_cv_lib_nsl_gethostbyname = no; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5334 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5335 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5338 ac_check_lib_save_LIBS=$LIBS
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5343 /* Override any GCC internal prototype to avoid an error.
5344 Use char because int might match the return type of a GCC
5345 builtin and then its argument prototype would still apply. */
5349 char gethostbyname ();
5353 return gethostbyname ();
5358 if ac_fn_c_try_link "$LINENO"; then :
5359 ac_cv_lib_bsd_gethostbyname=yes
5361 ac_cv_lib_bsd_gethostbyname=no
5363 rm -f core conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365 LIBS=$ac_check_lib_save_LIBS
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5368 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5369 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5370 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5376 # lieder@skyler.mavd.honeywell.com says without -lsocket,
5377 # socket/setsockopt and other routines are undefined under SCO ODT
5378 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5379 # on later versions), says Simon Leinen: it contains gethostby*
5380 # variants that don't use the name server (or something). -lsocket
5381 # must be given before -lnsl if both are needed. We assume that
5382 # if connect needs -lnsl, so does gethostbyname.
5383 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5384 if test "x$ac_cv_func_connect" = x""yes; then :
5388 if test $ac_cv_func_connect = no; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5390 $as_echo_n "checking for connect in -lsocket... " >&6; }
5391 if test "${ac_cv_lib_socket_connect+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5394 ac_check_lib_save_LIBS=$LIBS
5395 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5399 /* Override any GCC internal prototype to avoid an error.
5400 Use char because int might match the return type of a GCC
5401 builtin and then its argument prototype would still apply. */
5414 if ac_fn_c_try_link "$LINENO"; then :
5415 ac_cv_lib_socket_connect=yes
5417 ac_cv_lib_socket_connect=no
5419 rm -f core conftest.err conftest.$ac_objext \
5420 conftest$ac_exeext conftest.$ac_ext
5421 LIBS=$ac_check_lib_save_LIBS
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5424 $as_echo "$ac_cv_lib_socket_connect" >&6; }
5425 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5426 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5431 # Guillermo Gomez says -lposix is necessary on A/UX.
5432 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5433 if test "x$ac_cv_func_remove" = x""yes; then :
5437 if test $ac_cv_func_remove = no; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5439 $as_echo_n "checking for remove in -lposix... " >&6; }
5440 if test "${ac_cv_lib_posix_remove+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5443 ac_check_lib_save_LIBS=$LIBS
5444 LIBS="-lposix $LIBS"
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5448 /* Override any GCC internal prototype to avoid an error.
5449 Use char because int might match the return type of a GCC
5450 builtin and then its argument prototype would still apply. */
5463 if ac_fn_c_try_link "$LINENO"; then :
5464 ac_cv_lib_posix_remove=yes
5466 ac_cv_lib_posix_remove=no
5468 rm -f core conftest.err conftest.$ac_objext \
5469 conftest$ac_exeext conftest.$ac_ext
5470 LIBS=$ac_check_lib_save_LIBS
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5473 $as_echo "$ac_cv_lib_posix_remove" >&6; }
5474 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5480 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5481 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5482 if test "x$ac_cv_func_shmat" = x""yes; then :
5486 if test $ac_cv_func_shmat = no; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5488 $as_echo_n "checking for shmat in -lipc... " >&6; }
5489 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5492 ac_check_lib_save_LIBS=$LIBS
5494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5497 /* Override any GCC internal prototype to avoid an error.
5498 Use char because int might match the return type of a GCC
5499 builtin and then its argument prototype would still apply. */
5512 if ac_fn_c_try_link "$LINENO"; then :
5513 ac_cv_lib_ipc_shmat=yes
5515 ac_cv_lib_ipc_shmat=no
5517 rm -f core conftest.err conftest.$ac_objext \
5518 conftest$ac_exeext conftest.$ac_ext
5519 LIBS=$ac_check_lib_save_LIBS
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5522 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5523 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5530 # Check for libraries that X11R6 Xt/Xaw programs need.
5531 ac_save_LDFLAGS=$LDFLAGS
5532 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5533 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5534 # check for ICE first), but we must link in the order -lSM -lICE or
5535 # we get undefined symbols. So assume we have SM if we have ICE.
5536 # These have to be linked with before -lX11, unlike the other
5537 # libraries we check for below, so use a different variable.
5538 # John Interrante, Karl Berry
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5540 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5541 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5542 $as_echo_n "(cached) " >&6
5544 ac_check_lib_save_LIBS=$LIBS
5545 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5549 /* Override any GCC internal prototype to avoid an error.
5550 Use char because int might match the return type of a GCC
5551 builtin and then its argument prototype would still apply. */
5555 char IceConnectionNumber ();
5559 return IceConnectionNumber ();
5564 if ac_fn_c_try_link "$LINENO"; then :
5565 ac_cv_lib_ICE_IceConnectionNumber=yes
5567 ac_cv_lib_ICE_IceConnectionNumber=no
5569 rm -f core conftest.err conftest.$ac_objext \
5570 conftest$ac_exeext conftest.$ac_ext
5571 LIBS=$ac_check_lib_save_LIBS
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5574 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5575 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5576 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5579 LDFLAGS=$ac_save_LDFLAGS
5584 # Check whether --enable-floppyd was given.
5585 if test "${enable_floppyd+set}" = set; then :
5586 enableval=$enable_floppyd; if test x$enableval != x; then
5587 use_floppyd=$enableval
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
5593 $as_echo_n "checking for main in -lsocket... " >&6; }
5594 if test "${ac_cv_lib_socket_main+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5597 ac_check_lib_save_LIBS=$LIBS
5598 LIBS="-lsocket $LIBS"
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5611 if ac_fn_c_try_link "$LINENO"; then :
5612 ac_cv_lib_socket_main=yes
5614 ac_cv_lib_socket_main=no
5616 rm -f core conftest.err conftest.$ac_objext \
5617 conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
5621 $as_echo "$ac_cv_lib_socket_main" >&6; }
5622 if test "x$ac_cv_lib_socket_main" = x""yes; then :
5623 cat >>confdefs.h <<_ACEOF
5624 #define HAVE_LIBSOCKET 1
5627 LIBS="-lsocket $LIBS"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lbsd" >&5
5632 $as_echo_n "checking for main in -lbsd... " >&6; }
5633 if test "${ac_cv_lib_bsd_main+set}" = set; then :
5634 $as_echo_n "(cached) " >&6
5636 ac_check_lib_save_LIBS=$LIBS
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5650 if ac_fn_c_try_link "$LINENO"; then :
5651 ac_cv_lib_bsd_main=yes
5653 ac_cv_lib_bsd_main=no
5655 rm -f core conftest.err conftest.$ac_objext \
5656 conftest$ac_exeext conftest.$ac_ext
5657 LIBS=$ac_check_lib_save_LIBS
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_main" >&5
5660 $as_echo "$ac_cv_lib_bsd_main" >&6; }
5661 if test "x$ac_cv_lib_bsd_main" = x""yes; then :
5662 cat >>confdefs.h <<_ACEOF
5663 #define HAVE_LIBBSD 1
5670 for ac_header in sys/socket.h arpa/inet.h netdb.h
5672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5673 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5674 eval as_val=\$$as_ac_Header
5675 if test "x$as_val" = x""yes; then :
5676 cat >>confdefs.h <<_ACEOF
5677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5685 if test X$use_floppyd = X -a X$no_x = X ; then
5689 if test X$use_floppyd = Xyes; then
5690 if test X$no_x = Xyes ; then
5691 echo "Floppyd needs X support" >&2
5692 echo "To compile without floppyd, use ./configure --disable-floppyd" >&2
5695 FLOPPYD="floppyd floppyd_installtest"
5696 BINFLOPPYD="\$(DESTDIR)\$(bindir)/floppyd \$(DESTDIR)\$(bindir)/floppyd_installtest"
5698 $as_echo "#define USE_FLOPPYD 1" >>confdefs.h
5714 ac_config_files="$ac_config_files Makefile"
5716 cat >confcache <<\_ACEOF
5717 # This file is a shell script that caches the results of configure
5718 # tests run on this system so they can be shared between configure
5719 # scripts and configure runs, see configure's option --config-cache.
5720 # It is not useful on other systems. If it contains results you don't
5721 # want to keep, you may remove or edit it.
5723 # config.status only pays attention to the cache file if you give it
5724 # the --recheck option to rerun configure.
5726 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5727 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5732 # The following way of writing the cache mishandles newlines in values,
5733 # but we know of no workaround that is simple, portable, and efficient.
5734 # So, we kill variables containing newlines.
5735 # Ultrix sh set writes to stderr and can't be redirected directly,
5736 # and sets the high bit in the cache file unless we assign to the vars.
5738 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5739 eval ac_val=\$$ac_var
5743 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5744 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5747 _ | IFS | as_nl) ;; #(
5748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5749 *) { eval $ac_var=; unset $ac_var;} ;;
5755 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5756 *${as_nl}ac_space=\ *)
5757 # `set' does not quote correctly, so add quotes: double-quote
5758 # substitution turns \\\\ into \\, and sed turns \\ into \.
5761 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5764 # `set' quotes correctly as required by POSIX, so do not add quotes.
5765 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5776 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5778 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5779 if test -w "$cache_file"; then
5780 test "x$cache_file" != "x/dev/null" &&
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5782 $as_echo "$as_me: updating cache $cache_file" >&6;}
5783 cat confcache >$cache_file
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5786 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5791 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5792 # Let make expand exec_prefix.
5793 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5795 DEFS=-DHAVE_CONFIG_H
5799 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5800 # 1. Remove the extension, and $U if already installed.
5801 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5802 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5803 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5804 # will be set to the directory where LIBOBJS objects are built.
5805 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5806 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5810 LTLIBOBJS=$ac_ltlibobjs
5814 : ${CONFIG_STATUS=./config.status}
5816 ac_clean_files_save=$ac_clean_files
5817 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5819 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5821 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5823 # Generated by $as_me.
5824 # Run this file to recreate the current configuration.
5825 # Compiler output produced by configure, useful for debugging
5826 # configure, is in config.log if it exists.
5832 SHELL=\${CONFIG_SHELL-$SHELL}
5835 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5836 ## -------------------- ##
5837 ## M4sh Initialization. ##
5838 ## -------------------- ##
5840 # Be more Bourne compatible
5841 DUALCASE=1; export DUALCASE # for MKS sh
5842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5845 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5846 # is contrary to our usage. Disable this feature.
5847 alias -g '${1+"$@"}'='"$@"'
5848 setopt NO_GLOB_SUBST
5850 case `(set -o) 2>/dev/null` in #(
5862 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5863 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5866 # Prefer a ksh shell builtin over an external printf program on Solaris,
5867 # but without wasting forks for bash or zsh.
5868 if test -z "$BASH_VERSION$ZSH_VERSION" \
5869 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5870 as_echo='print -r --'
5871 as_echo_n='print -rn --'
5872 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5873 as_echo='printf %s\n'
5874 as_echo_n='printf %s'
5876 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5877 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5878 as_echo_n='/usr/ucb/echo -n'
5880 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5881 as_echo_n_body='eval
5885 expr "X$arg" : "X\\(.*\\)$as_nl";
5886 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5888 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5890 export as_echo_n_body
5891 as_echo_n='sh -c $as_echo_n_body as_echo'
5894 as_echo='sh -c $as_echo_body as_echo'
5897 # The user is always right.
5898 if test "${PATH_SEPARATOR+set}" != set; then
5900 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5901 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5908 # We need space, tab and new line, in precisely that order. Quoting is
5909 # there to prevent editors from complaining about space-tab.
5910 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5911 # splitting by setting IFS to empty value.)
5914 # Find who we are. Look in the path if we contain no directory separator.
5916 *[\\/]* ) as_myself=$0 ;;
5917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 test -z "$as_dir" && as_dir=.
5922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5928 # We did not find ourselves, most probably we were run as `sh COMMAND'
5929 # in which case we are not to be found in the path.
5930 if test "x$as_myself" = x; then
5933 if test ! -f "$as_myself"; then
5934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5938 # Unset variables that we do not need and which cause bugs (e.g. in
5939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5940 # suppresses any "Segmentation fault" message there. '((' could
5941 # trigger a bug in pdksh 5.2.14.
5942 for as_var in BASH_ENV ENV MAIL MAILPATH
5943 do eval test x\${$as_var+set} = xset \
5944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5960 # as_fn_error ERROR [LINENO LOG_FD]
5961 # ---------------------------------
5962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5964 # script with status $?, using 1 if that was 0.
5967 as_status=$?; test $as_status -eq 0 && as_status=1
5969 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5972 $as_echo "$as_me: error: $1" >&2
5973 as_fn_exit $as_status
5977 # as_fn_set_status STATUS
5978 # -----------------------
5979 # Set $? to STATUS, without forking.
5983 } # as_fn_set_status
5987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5997 # Portably unset VAR.
6000 { eval $1=; unset $1;}
6002 as_unset=as_fn_unset
6003 # as_fn_append VAR VALUE
6004 # ----------------------
6005 # Append the text in VALUE to the end of the definition contained in VAR. Take
6006 # advantage of any shell optimizations that allow amortized linear growth over
6007 # repeated appends, instead of the typical quadratic growth present in naive
6009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6010 eval 'as_fn_append ()
6021 # as_fn_arith ARG...
6022 # ------------------
6023 # Perform arithmetic evaluation on the ARGs, and store the result in the
6024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6025 # must be portable across $(()) and expr.
6026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6027 eval 'as_fn_arith ()
6034 as_val=`expr "$@" || test $? -eq 1`
6039 if expr a : '\(a\)' >/dev/null 2>&1 &&
6040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6046 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6047 as_basename=basename
6052 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6058 as_me=`$as_basename -- "$0" ||
6059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6060 X"$0" : 'X\(//\)$' \| \
6061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6063 sed '/^.*\/\([^/][^/]*\)\/*$/{
6077 # Avoid depending upon Character Ranges.
6078 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6079 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6080 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6081 as_cr_digits='0123456789'
6082 as_cr_alnum=$as_cr_Letters$as_cr_digits
6084 ECHO_C= ECHO_N= ECHO_T=
6085 case `echo -n x` in #(((((
6087 case `echo 'xy\c'` in
6088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6097 rm -f conf$$ conf$$.exe conf$$.file
6098 if test -d conf$$.dir; then
6099 rm -f conf$$.dir/conf$$.file
6102 mkdir conf$$.dir 2>/dev/null
6104 if (echo >conf$$.file) 2>/dev/null; then
6105 if ln -s conf$$.file conf$$ 2>/dev/null; then
6107 # ... but there are two gotchas:
6108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6110 # In both cases, we have to default to `cp -p'.
6111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6113 elif ln conf$$.file conf$$ 2>/dev/null; then
6121 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6122 rmdir conf$$.dir 2>/dev/null
6127 # Create "$as_dir" as a directory, including parents if necessary.
6132 -*) as_dir=./$as_dir;;
6134 test -d "$as_dir" || eval $as_mkdir_p || {
6138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6139 *) as_qdir=$as_dir;;
6141 as_dirs="'$as_qdir' $as_dirs"
6142 as_dir=`$as_dirname -- "$as_dir" ||
6143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6144 X"$as_dir" : 'X\(//\)[^/]' \| \
6145 X"$as_dir" : 'X\(//\)$' \| \
6146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6147 $as_echo X"$as_dir" |
6148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6165 test -d "$as_dir" && break
6167 test -z "$as_dirs" || eval "mkdir $as_dirs"
6168 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6172 if mkdir -p . 2>/dev/null; then
6173 as_mkdir_p='mkdir -p "$as_dir"'
6175 test -d ./-p && rmdir ./-p
6179 if test -x / >/dev/null 2>&1; then
6182 if ls -dL / >/dev/null 2>&1; then
6189 if test -d "$1"; then
6195 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6196 ???[sx]*):;;*)false;;esac;fi
6200 as_executable_p=$as_test_x
6202 # Sed expression to map a string onto a valid CPP name.
6203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6205 # Sed expression to map a string onto a valid variable name.
6206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6210 ## ----------------------------------- ##
6211 ## Main body of $CONFIG_STATUS script. ##
6212 ## ----------------------------------- ##
6214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6217 # Save the log message, to keep $0 and so on meaningful, and to
6218 # report actual input values of CONFIG_FILES etc. instead of their
6219 # values after options handling.
6221 This file was extended by $as_me, which was
6222 generated by GNU Autoconf 2.65. Invocation command line was
6224 CONFIG_FILES = $CONFIG_FILES
6225 CONFIG_HEADERS = $CONFIG_HEADERS
6226 CONFIG_LINKS = $CONFIG_LINKS
6227 CONFIG_COMMANDS = $CONFIG_COMMANDS
6230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6235 case $ac_config_files in *"
6236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6239 case $ac_config_headers in *"
6240 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6245 # Files that config.status was made for.
6246 config_files="$ac_config_files"
6247 config_headers="$ac_config_headers"
6251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6253 \`$as_me' instantiates files and other configuration actions
6254 from templates according to the current configuration. Unless the files
6255 and actions are specified as TAGs, all are instantiated by default.
6257 Usage: $0 [OPTION]... [TAG]...
6259 -h, --help print this help, then exit
6260 -V, --version print version number and configuration settings, then exit
6261 --config print configuration, then exit
6262 -q, --quiet, --silent
6263 do not print progress messages
6264 -d, --debug don't remove temporary files
6265 --recheck update $as_me by reconfiguring in the same conditions
6266 --file=FILE[:TEMPLATE]
6267 instantiate the configuration file FILE
6268 --header=FILE[:TEMPLATE]
6269 instantiate the configuration header FILE
6271 Configuration files:
6274 Configuration headers:
6277 Report bugs to the package provider."
6280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6281 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6284 configured by $0, generated by GNU Autoconf 2.65,
6285 with options \\"\$ac_cs_config\\"
6287 Copyright (C) 2009 Free Software Foundation, Inc.
6288 This config.status script is free software; the Free Software Foundation
6289 gives unlimited permission to copy, distribute and modify it."
6294 test -n "\$AWK" || AWK=awk
6297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6298 # The default lists apply if the user does not specify any file.
6304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6316 # Handling of the options.
6317 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6319 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6320 $as_echo "$ac_cs_version"; exit ;;
6321 --config | --confi | --conf | --con | --co | --c )
6322 $as_echo "$ac_cs_config"; exit ;;
6323 --debug | --debu | --deb | --de | --d | -d )
6325 --file | --fil | --fi | --f )
6328 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6330 as_fn_append CONFIG_FILES " '$ac_optarg'"
6331 ac_need_defaults=false;;
6332 --header | --heade | --head | --hea )
6335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6337 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6338 ac_need_defaults=false;;
6340 # Conflict between --help and --header
6341 as_fn_error "ambiguous option: \`$1'
6342 Try \`$0 --help' for more information.";;
6343 --help | --hel | -h )
6344 $as_echo "$ac_cs_usage"; exit ;;
6345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6350 -*) as_fn_error "unrecognized option: \`$1'
6351 Try \`$0 --help' for more information." ;;
6353 *) as_fn_append ac_config_targets " $1"
6354 ac_need_defaults=false ;;
6360 ac_configure_extra_args=
6362 if $ac_cs_silent; then
6364 ac_configure_extra_args="$ac_configure_extra_args --silent"
6368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6369 if \$ac_cs_recheck; then
6370 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6373 CONFIG_SHELL='$SHELL'
6379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6384 ## Running $as_me. ##
6390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6395 # Handling of arguments.
6396 for ac_config_target in $ac_config_targets
6398 case $ac_config_target in
6399 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6400 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6402 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6407 # If the user did not use the arguments to specify the items to instantiate,
6408 # then the envvar interface is used. Set only those that are not.
6409 # We use the long form for the default assignment because of an extremely
6410 # bizarre bug on SunOS 4.1.3.
6411 if $ac_need_defaults; then
6412 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6413 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6416 # Have a temporary directory for convenience. Make it in the build tree
6417 # simply because there is no reason against having it here, and in addition,
6418 # creating and moving files from /tmp can sometimes cause problems.
6419 # Hook for its removal unless debugging.
6420 # Note that there is a small window in which the directory will not be cleaned:
6421 # after its creation but before its name has been assigned to `$tmp'.
6425 trap 'exit_status=$?
6426 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6428 trap 'as_fn_exit 1' 1 2 13 15
6430 # Create a (secure) tmp directory for tmp files.
6433 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6434 test -n "$tmp" && test -d "$tmp"
6437 tmp=./conf$$-$RANDOM
6438 (umask 077 && mkdir "$tmp")
6439 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6441 # Set up the scripts for CONFIG_FILES section.
6442 # No need to generate them if there are no CONFIG_FILES.
6443 # This happens for instance with `./config.status config.h'.
6444 if test -n "$CONFIG_FILES"; then
6447 ac_cr=`echo X | tr X '\015'`
6448 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6449 # But we know of no other shell where ac_cr would be empty at this
6450 # point, so we can use a bashism as a fallback.
6451 if test "x$ac_cr" = x; then
6452 eval ac_cr=\$\'\\r\'
6454 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6455 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6461 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6466 echo "cat >conf$$subs.awk <<_ACEOF" &&
6467 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6470 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6471 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6473 for ac_last_try in false false false false false :; do
6474 . ./conf$$subs.sh ||
6475 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6477 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6478 if test $ac_delim_n = $ac_delim_num; then
6480 elif $ac_last_try; then
6481 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6489 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6493 s/^/S["/; s/!.*/"]=/
6503 s/\(.\{148\}\)..*/\1/
6505 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6510 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6517 s/\(.\{148\}\)..*/\1/
6519 s/["\\]/\\&/g; s/^/"/; s/$/"/
6523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6528 ' <conf$$subs.awk | sed '
6533 ' >>$CONFIG_STATUS || ac_write_fail=1
6534 rm -f conf$$subs.awk
6535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6537 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6538 for (key in S) S_is_set[key] = 1
6544 nfields = split(line, field, "@")
6546 len = length(field[1])
6547 for (i = 2; i < nfields; i++) {
6549 keylen = length(key)
6550 if (S_is_set[key]) {
6552 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6553 len += length(value) + length(field[++i])
6564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6565 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6566 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6569 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6570 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6573 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6574 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6575 # trailing colons and then remove the whole line if VPATH becomes empty
6576 # (actually we leave an empty line to preserve line numbers).
6577 if test "x$srcdir" = x.; then
6578 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6582 s/^\([^=]*=[ ]*\):*/\1/
6588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6589 fi # test -n "$CONFIG_FILES"
6591 # Set up the scripts for CONFIG_HEADERS section.
6592 # No need to generate them if there are no CONFIG_HEADERS.
6593 # This happens for instance with `./config.status Makefile'.
6594 if test -n "$CONFIG_HEADERS"; then
6595 cat >"$tmp/defines.awk" <<\_ACAWK ||
6599 # Transform confdefs.h into an awk script `defines.awk', embedded as
6600 # here-document in config.status, that substitutes the proper values into
6601 # config.h.in to produce config.h.
6603 # Create a delimiter string that does not exist in confdefs.h, to ease
6604 # handling of long lines.
6606 for ac_last_try in false false :; do
6607 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6608 if test -z "$ac_t"; then
6610 elif $ac_last_try; then
6611 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6613 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6617 # For the awk script, D is an array of macro values keyed by name,
6618 # likewise P contains macro parameters if any. Preserve backslash
6619 # newline sequences.
6621 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6623 s/.\{148\}/&'"$ac_delim"'/g
6626 s/^[ ]*#[ ]*define[ ][ ]*/ /
6633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6635 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6640 D["\1"]=" \3\\\\\\n"\\/p
6642 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6647 s/.\{148\}/&'"$ac_delim"'/g
6652 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6655 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6657 ' <confdefs.h | sed '
6658 s/'"$ac_delim"'/"\\\
6659 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6662 for (key in D) D_is_set[key] = 1
6665 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6667 split(line, arg, " ")
6668 if (arg[1] == "#") {
6672 defundef = substr(arg[1], 2)
6675 split(mac1, mac2, "(") #)
6677 prefix = substr(line, 1, index(line, defundef) - 1)
6678 if (D_is_set[macro]) {
6679 # Preserve the white space surrounding the "#".
6680 print prefix "define", macro P[macro] D[macro]
6683 # Replace #undef with comments. This is necessary, for example,
6684 # in the case of _POSIX_SOURCE, which is predefined and required
6685 # on some systems where configure will not decide to define it.
6686 if (defundef == "undef") {
6687 print "/*", prefix defundef, macro, "*/"
6695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6696 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6697 fi # test -n "$CONFIG_HEADERS"
6700 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6705 :[FHLC]) ac_mode=$ac_tag; continue;;
6707 case $ac_mode$ac_tag in
6709 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6710 :[FH]-) ac_tag=-:-;;
6711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6728 -) ac_f="$tmp/stdin";;
6729 *) # Look for the file first in the build tree, then in the source tree
6730 # (if the path is not absolute). The absolute path cannot be DOS-style,
6731 # because $ac_f cannot contain `:'.
6735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6737 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6739 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6740 as_fn_append ac_file_inputs " '$ac_f'"
6743 # Let's still pretend it is `configure' which instantiates (i.e., don't
6744 # use $as_me), people would be surprised to read:
6745 # /* config.h. Generated by config.status. */
6746 configure_input='Generated from '`
6747 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6749 if test x"$ac_file" != x-; then
6750 configure_input="$ac_file. $configure_input"
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6752 $as_echo "$as_me: creating $ac_file" >&6;}
6754 # Neutralize special characters interpreted by sed in replacement strings.
6755 case $configure_input in #(
6756 *\&* | *\|* | *\\* )
6757 ac_sed_conf_input=`$as_echo "$configure_input" |
6758 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6759 *) ac_sed_conf_input=$configure_input;;
6763 *:-:* | *:-) cat >"$tmp/stdin" \
6764 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6769 ac_dir=`$as_dirname -- "$ac_file" ||
6770 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6771 X"$ac_file" : 'X\(//\)[^/]' \| \
6772 X"$ac_file" : 'X\(//\)$' \| \
6773 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6774 $as_echo X"$ac_file" |
6775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6792 as_dir="$ac_dir"; as_fn_mkdir_p
6796 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6798 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6799 # A ".." for each directory in $ac_dir_suffix.
6800 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6801 case $ac_top_builddir_sub in
6802 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6803 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6806 ac_abs_top_builddir=$ac_pwd
6807 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6808 # for backward compatibility:
6809 ac_top_builddir=$ac_top_build_prefix
6812 .) # We are building in place.
6814 ac_top_srcdir=$ac_top_builddir_sub
6815 ac_abs_top_srcdir=$ac_pwd ;;
6816 [\\/]* | ?:[\\/]* ) # Absolute name.
6817 ac_srcdir=$srcdir$ac_dir_suffix;
6818 ac_top_srcdir=$srcdir
6819 ac_abs_top_srcdir=$srcdir ;;
6821 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6822 ac_top_srcdir=$ac_top_build_prefix$srcdir
6823 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6825 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6835 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6836 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6841 # If the template does not know about datarootdir, expand it.
6842 # FIXME: This hack should be removed a few years after 2.60.
6843 ac_datarootdir_hack=; ac_datarootdir_seen=
6854 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6855 *datarootdir*) ac_datarootdir_seen=yes;;
6856 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6858 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6861 ac_datarootdir_hack='
6862 s&@datadir@&$datadir&g
6863 s&@docdir@&$docdir&g
6864 s&@infodir@&$infodir&g
6865 s&@localedir@&$localedir&g
6866 s&@mandir@&$mandir&g
6867 s&\\\${datarootdir}&$datarootdir&g' ;;
6871 # Neutralize VPATH when `$srcdir' = `.'.
6872 # Shell code in configure.ac might set extrasub.
6873 # FIXME: do we really want to maintain this feature?
6874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6875 ac_sed_extra="$ac_vpsub
6878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6881 s|@configure_input@|$ac_sed_conf_input|;t t
6882 s&@top_builddir@&$ac_top_builddir_sub&;t t
6883 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6884 s&@srcdir@&$ac_srcdir&;t t
6885 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6886 s&@top_srcdir@&$ac_top_srcdir&;t t
6887 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6888 s&@builddir@&$ac_builddir&;t t
6889 s&@abs_builddir@&$ac_abs_builddir&;t t
6890 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6891 s&@INSTALL@&$ac_INSTALL&;t t
6892 $ac_datarootdir_hack
6894 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6895 || as_fn_error "could not create $ac_file" "$LINENO" 5
6897 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6898 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6899 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6901 which seems to be undefined. Please make sure it is defined." >&5
6902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6903 which seems to be undefined. Please make sure it is defined." >&2;}
6907 -) cat "$tmp/out" && rm -f "$tmp/out";;
6908 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6910 || as_fn_error "could not create $ac_file" "$LINENO" 5
6916 if test x"$ac_file" != x-; then
6918 $as_echo "/* $configure_input */" \
6919 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6920 } >"$tmp/config.h" \
6921 || as_fn_error "could not create $ac_file" "$LINENO" 5
6922 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6924 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6927 mv "$tmp/config.h" "$ac_file" \
6928 || as_fn_error "could not create $ac_file" "$LINENO" 5
6931 $as_echo "/* $configure_input */" \
6932 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6933 || as_fn_error "could not create -" "$LINENO" 5
6945 ac_clean_files=$ac_clean_files_save
6947 test $ac_write_fail = 0 ||
6948 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6951 # configure is writing to config.log, and then calls config.status.
6952 # config.status does its own redirection, appending to config.log.
6953 # Unfortunately, on DOS this fails, as config.log is still kept open
6954 # by configure, so config.status won't be able to write to it; its
6955 # output is simply discarded. So we exec the FD to /dev/null,
6956 # effectively closing config.log, so it can be properly (re)opened and
6957 # appended to by config.status. When coming back to configure, we
6958 # need to make the FD available again.
6959 if test "$no_create" != yes; then
6961 ac_config_status_args=
6962 test "$silent" = yes &&
6963 ac_config_status_args="$ac_config_status_args --quiet"
6965 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6967 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6968 # would make configure fail if this is the last instruction.
6969 $ac_cs_success || as_fn_exit $?
6971 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6973 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}