Added support for DE200C VFD
[lcdproc-de200c.git] / configure
blob850e56dd089dfde5761b7aca513c214678ce2d92
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for lcdproc 0.5.2.
5 # Report bugs to <lcdproc@lists.omnipotent.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
52 rm -f conf$$.sh
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
70 IFS=" "" $as_nl"
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 done
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
142 /^X\/\(\/\/\)$/{
143 s//\1/
146 /^X\/\(\/\).*/{
147 s//\1/
150 s/.*/./; q'`
152 # CDPATH.
153 $as_unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
167 as_func_success () {
168 as_func_return 0
170 as_func_failure () {
171 as_func_return 1
173 as_func_ret_success () {
174 return 0
176 as_func_ret_failure () {
177 return 1
180 exitcode=0
181 if as_func_success; then
183 else
184 exitcode=1
185 echo as_func_success failed.
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 else
208 exitcode=1
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
279 (as_func_return () {
280 (exit $1)
282 as_func_success () {
283 as_func_return 0
285 as_func_failure () {
286 as_func_return 1
288 as_func_ret_success () {
289 return 0
291 as_func_ret_failure () {
292 return 1
295 exitcode=0
296 if as_func_success; then
298 else
299 exitcode=1
300 echo as_func_success failed.
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 else
323 exitcode=1
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335 _ASEOF
336 }; then
337 break
342 done
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
369 (exit \$1)
371 as_func_success () {
372 as_func_return 0
374 as_func_failure () {
375 as_func_return 1
377 as_func_ret_success () {
378 return 0
380 as_func_ret_failure () {
381 return 1
384 exitcode=0
385 if as_func_success; then
387 else
388 exitcode=1
389 echo as_func_success failed.
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 else
412 exitcode=1
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
448 :lineno
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
482 ECHO_N='-n';;
483 esac
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev/null 6>&1
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 # Initializations.
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME='lcdproc'
576 PACKAGE_TARNAME='lcdproc'
577 PACKAGE_VERSION='0.5.2'
578 PACKAGE_STRING='lcdproc 0.5.2'
579 PACKAGE_BUGREPORT='lcdproc@lists.omnipotent.net'
581 ac_unique_file="clients/lcdproc/batt.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
618 ac_config_libobj_dir=shared
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 INSTALL_PROGRAM
657 INSTALL_SCRIPT
658 INSTALL_DATA
659 CYGPATH_W
660 PACKAGE
661 VERSION
662 ACLOCAL
663 AUTOCONF
664 AUTOMAKE
665 AUTOHEADER
666 MAKEINFO
667 install_sh
668 STRIP
669 INSTALL_STRIP_PROGRAM
670 mkdir_p
672 SET_MAKE
673 am__leading_dot
674 AMTAR
675 am__tar
676 am__untar
677 build
678 build_cpu
679 build_vendor
680 build_os
681 host
682 host_cpu
683 host_vendor
684 host_os
685 DARWIN_TRUE
686 DARWIN_FALSE
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 DEPDIR
695 am__include
696 am__quote
697 AMDEP_TRUE
698 AMDEP_FALSE
699 AMDEPBACKSLASH
700 CCDEPMODE
701 am__fastdepCC_TRUE
702 am__fastdepCC_FALSE
704 RANLIB
705 GREP
706 EGREP
707 LIBOBJS
709 CCSHARED
710 LDSHARED
711 libusb_libs
712 libusb_cflags
713 libusb_config
714 LIBCURSES
715 LIBIRMAN
716 LIBLIRC_CLIENT
717 LIBSVGA
718 DRIVERS
719 HD44780_DRIVERS
720 LIBG15
721 LIBGLCD
722 LIBFTDI
723 LIBXOSD
724 LIBUSBLCD
725 DOXYGEN
727 DOX_TRUE
728 DOX_FALSE
729 enable_dot
730 enable_html_dox
731 enable_latex_dox
732 LTLIBOBJS'
733 ac_subst_files=''
734 ac_precious_vars='build_alias
735 host_alias
736 target_alias
738 CFLAGS
739 LDFLAGS
740 LIBS
741 CPPFLAGS
742 CPP'
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
791 ac_prev=
792 ac_dashdash=
793 for ac_option
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
811 ac_dashdash=yes ;;
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
830 --config-cache | -C)
831 cache_file=config.cache ;;
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1119 esac
1120 done
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164 test "$silent" = yes && exec 6>/dev/null
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1195 /^X\(\/\/\)$/{
1196 s//\1/
1199 /^X\(\/\).*/{
1200 s//\1/
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1208 else
1209 ac_srcdir_defaulted=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures lcdproc 0.5.2 to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/lcdproc]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1300 cat <<\_ACEOF
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1307 System types:
1308 --build=BUILD configure for building on BUILD [guessed]
1309 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1310 _ACEOF
1313 if test -n "$ac_init_help"; then
1314 case $ac_init_help in
1315 short | recursive ) echo "Configuration of lcdproc 0.5.2:";;
1316 esac
1317 cat <<\_ACEOF
1319 Optional Features:
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --enable-debug show debug information
1323 --disable-dependency-tracking speeds up one-time build
1324 --enable-dependency-tracking do not reject slow dependency extractors
1325 --enable-libusb compile with USB support using libusb.
1326 --enable-drivers=<list> compile drivers for LCDs in <list>,
1327 which is a comma-separated list of drivers.
1328 Possible drivers are:
1329 bayrad,CFontz,CFontz633,CFontzPacket,curses,CwLnx,ea65,
1330 EyeboxOne,g15,glcdlib,glk,hd44780,icp_a106,imon,IOWarrior,
1331 irman,joy,lb216,lcdm001,lcterm,lirc,MD8800,ms6931,
1332 mtc_s16209x,MtxOrb,NoritakeVFD,picolcd,pyramid,sed1330
1333 sed1520,serialPOS,serialVFD,sli,stv5730,svga,t6963,text,
1334 tyan,ula200,xosd
1335 'all' compiles all drivers;
1336 'all,!xxx,!yyy' de-selects previously selected drivers
1337 --enable-seamless-hbars no gaps in horizontal bar graphs (if HW supports it)
1338 --enable-testmenus enable server test menus
1339 --enable-permissive-menu-goto allow transitions
1340 between different client's menus
1341 --enable-lcdproc-menus enable menu support in lcdproc client
1342 --enable-stat-nfs display NFS filesystem stats in lcdproc client
1343 --enable-stat-smbfs display SMBFS filesystem stats in lcdproc client
1344 --enable-doxygen enable documentation generation with doxygen (auto)
1345 --enable-dot use 'dot' to generate graphs in doxygen (auto)
1346 --enable-html-dox enable HTML generation with doxygen (yes)
1347 --enable-latex-dox enable LaTeX documentation generation with doxygen (no)
1349 Optional Packages:
1350 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1351 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1352 --with-included-getopt Use the included getopt rather than glibc's
1353 --with-lcdport=<port> the server port 13666
1354 --with-libusb-includes=DIR
1355 libusb include files are in DIR
1356 (default: found by libusb-config).
1357 --with-libusb-libraries=DIR
1358 libusb library files are in DIR
1359 (default: found by libusb-config).
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1371 Use these variables to override the choices made by `configure' or to help
1372 it to find libraries and programs with nonstandard names/locations.
1374 Report bugs to <lcdproc@lists.omnipotent.net>.
1375 _ACEOF
1376 ac_status=$?
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 lcdproc configure 0.5.2
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by lcdproc $as_me 0.5.2, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1452 $ $0 $@
1454 _ACEOF
1455 exec 5>>config.log
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1479 _ASUNAME
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1490 } >&5
1492 cat >&5 <<_ACEOF
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1499 _ACEOF
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1513 for ac_arg
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1558 echo
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1592 esac |
1593 sort
1595 echo
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1694 shift
1695 for ac_site_file
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1703 done
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1722 # Check that the precious variables saved in the cache have kept the same
1723 # value.
1724 ac_cache_corrupted=false
1725 for ac_var in $ac_precious_vars; do
1726 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1727 eval ac_new_set=\$ac_env_${ac_var}_set
1728 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1729 eval ac_new_val=\$ac_env_${ac_var}_value
1730 case $ac_old_set,$ac_new_set in
1731 set,)
1732 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1733 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1734 ac_cache_corrupted=: ;;
1735 ,set)
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1737 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1739 ,);;
1741 if test "x$ac_old_val" != "x$ac_new_val"; then
1742 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1743 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1744 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1745 echo "$as_me: former value: $ac_old_val" >&2;}
1746 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1747 echo "$as_me: current value: $ac_new_val" >&2;}
1748 ac_cache_corrupted=:
1749 fi;;
1750 esac
1751 # Pass precious variables to config.status.
1752 if test "$ac_new_set" = set; then
1753 case $ac_new_val in
1754 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1755 *) ac_arg=$ac_var=$ac_new_val ;;
1756 esac
1757 case " $ac_configure_args " in
1758 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1759 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1760 esac
1762 done
1763 if $ac_cache_corrupted; then
1764 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1765 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1766 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1767 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1768 { (exit 1); exit 1; }; }
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803 am__api_version="1.9"
1804 ac_aux_dir=
1805 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1806 if test -f "$ac_dir/install-sh"; then
1807 ac_aux_dir=$ac_dir
1808 ac_install_sh="$ac_aux_dir/install-sh -c"
1809 break
1810 elif test -f "$ac_dir/install.sh"; then
1811 ac_aux_dir=$ac_dir
1812 ac_install_sh="$ac_aux_dir/install.sh -c"
1813 break
1814 elif test -f "$ac_dir/shtool"; then
1815 ac_aux_dir=$ac_dir
1816 ac_install_sh="$ac_aux_dir/shtool install -c"
1817 break
1819 done
1820 if test -z "$ac_aux_dir"; then
1821 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1822 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1823 { (exit 1); exit 1; }; }
1826 # These three variables are undocumented and unsupported,
1827 # and are intended to be withdrawn in a future Autoconf release.
1828 # They can cause serious problems if a builder's source tree is in a directory
1829 # whose full name contains unusual characters.
1830 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1831 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1832 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1835 # Find a good install program. We prefer a C program (faster),
1836 # so one script is as good as another. But avoid the broken or
1837 # incompatible versions:
1838 # SysV /etc/install, /usr/sbin/install
1839 # SunOS /usr/etc/install
1840 # IRIX /sbin/install
1841 # AIX /bin/install
1842 # AmigaOS /C/install, which installs bootblocks on floppy discs
1843 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1844 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1845 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1846 # OS/2's system install, which has a completely different semantic
1847 # ./install, which can be erroneously created by make from ./install.sh.
1848 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1849 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1850 if test -z "$INSTALL"; then
1851 if test "${ac_cv_path_install+set}" = set; then
1852 echo $ECHO_N "(cached) $ECHO_C" >&6
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 # Account for people who put trailing slashes in PATH elements.
1860 case $as_dir/ in
1861 ./ | .// | /cC/* | \
1862 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1863 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1864 /usr/ucb/* ) ;;
1866 # OSF1 and SCO ODT 3.0 have their own names for install.
1867 # Don't use installbsd from OSF since it installs stuff as root
1868 # by default.
1869 for ac_prog in ginstall scoinst install; do
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1872 if test $ac_prog = install &&
1873 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1874 # AIX install. It has an incompatible calling convention.
1876 elif test $ac_prog = install &&
1877 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1878 # program-specific install script used by HP pwplus--don't use.
1880 else
1881 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1882 break 3
1885 done
1886 done
1888 esac
1889 done
1890 IFS=$as_save_IFS
1894 if test "${ac_cv_path_install+set}" = set; then
1895 INSTALL=$ac_cv_path_install
1896 else
1897 # As a last resort, use the slow shell script. Don't cache a
1898 # value for INSTALL within a source directory, because that will
1899 # break other packages using the cache if that directory is
1900 # removed, or if the value is a relative name.
1901 INSTALL=$ac_install_sh
1904 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1905 echo "${ECHO_T}$INSTALL" >&6; }
1907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1908 # It thinks the first close brace ends the variable substitution.
1909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1915 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1916 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1917 # Just in case
1918 sleep 1
1919 echo timestamp > conftest.file
1920 # Do `set' in a subshell so we don't clobber the current shell's
1921 # arguments. Must try -L first in case configure is actually a
1922 # symlink; some systems play weird games with the mod time of symlinks
1923 # (eg FreeBSD returns the mod time of the symlink's containing
1924 # directory).
1925 if (
1926 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1927 if test "$*" = "X"; then
1928 # -L didn't work.
1929 set X `ls -t $srcdir/configure conftest.file`
1931 rm -f conftest.file
1932 if test "$*" != "X $srcdir/configure conftest.file" \
1933 && test "$*" != "X conftest.file $srcdir/configure"; then
1935 # If neither matched, then we have a broken ls. This can happen
1936 # if, for instance, CONFIG_SHELL is bash and it inherits a
1937 # broken ls alias from the environment. This has actually
1938 # happened. Such a system could not be considered "sane".
1939 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1940 alias in your environment" >&5
1941 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1942 alias in your environment" >&2;}
1943 { (exit 1); exit 1; }; }
1946 test "$2" = conftest.file
1948 then
1949 # Ok.
1951 else
1952 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1953 Check your system clock" >&5
1954 echo "$as_me: error: newly created file is older than distributed files!
1955 Check your system clock" >&2;}
1956 { (exit 1); exit 1; }; }
1958 { echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6; }
1960 test "$program_prefix" != NONE &&
1961 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1962 # Use a double $ so make ignores it.
1963 test "$program_suffix" != NONE &&
1964 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1965 # Double any \ or $. echo might interpret backslashes.
1966 # By default was `s,x,x', remove it if useless.
1967 cat <<\_ACEOF >conftest.sed
1968 s/[\\$]/&&/g;s/;s,x,x,$//
1969 _ACEOF
1970 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1971 rm -f conftest.sed
1973 # expand $ac_aux_dir to an absolute path
1974 am_aux_dir=`cd $ac_aux_dir && pwd`
1976 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1977 # Use eval to expand $SHELL
1978 if eval "$MISSING --run true"; then
1979 am_missing_run="$MISSING --run "
1980 else
1981 am_missing_run=
1982 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1983 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1986 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1987 # We used to keeping the `.' as first argument, in order to
1988 # allow $(mkdir_p) to be used without argument. As in
1989 # $(mkdir_p) $(somedir)
1990 # where $(somedir) is conditionally defined. However this is wrong
1991 # for two reasons:
1992 # 1. if the package is installed by a user who cannot write `.'
1993 # make install will fail,
1994 # 2. the above comment should most certainly read
1995 # $(mkdir_p) $(DESTDIR)$(somedir)
1996 # so it does not work when $(somedir) is undefined and
1997 # $(DESTDIR) is not.
1998 # To support the latter case, we have to write
1999 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2000 # so the `.' trick is pointless.
2001 mkdir_p='mkdir -p --'
2002 else
2003 # On NextStep and OpenStep, the `mkdir' command does not
2004 # recognize any option. It will interpret all options as
2005 # directories to create, and then abort because `.' already
2006 # exists.
2007 for d in ./-p ./--version;
2009 test -d $d && rmdir $d
2010 done
2011 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2012 if test -f "$ac_aux_dir/mkinstalldirs"; then
2013 mkdir_p='$(mkinstalldirs)'
2014 else
2015 mkdir_p='$(install_sh) -d'
2019 for ac_prog in gawk mawk nawk awk
2021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2022 set dummy $ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_AWK+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 if test -n "$AWK"; then
2029 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2034 IFS=$as_save_IFS
2035 test -z "$as_dir" && as_dir=.
2036 for ac_exec_ext in '' $ac_executable_extensions; do
2037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2038 ac_cv_prog_AWK="$ac_prog"
2039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 break 2
2042 done
2043 done
2044 IFS=$as_save_IFS
2048 AWK=$ac_cv_prog_AWK
2049 if test -n "$AWK"; then
2050 { echo "$as_me:$LINENO: result: $AWK" >&5
2051 echo "${ECHO_T}$AWK" >&6; }
2052 else
2053 { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2058 test -n "$AWK" && break
2059 done
2061 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2062 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2063 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2064 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067 cat >conftest.make <<\_ACEOF
2068 SHELL = /bin/sh
2069 all:
2070 @echo '@@@%%%=$(MAKE)=@@@%%%'
2071 _ACEOF
2072 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2073 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2074 *@@@%%%=?*=@@@%%%*)
2075 eval ac_cv_prog_make_${ac_make}_set=yes;;
2077 eval ac_cv_prog_make_${ac_make}_set=no;;
2078 esac
2079 rm -f conftest.make
2081 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2082 { echo "$as_me:$LINENO: result: yes" >&5
2083 echo "${ECHO_T}yes" >&6; }
2084 SET_MAKE=
2085 else
2086 { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2088 SET_MAKE="MAKE=${MAKE-make}"
2091 rm -rf .tst 2>/dev/null
2092 mkdir .tst 2>/dev/null
2093 if test -d .tst; then
2094 am__leading_dot=.
2095 else
2096 am__leading_dot=_
2098 rmdir .tst 2>/dev/null
2100 # test to see if srcdir already configured
2101 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2102 test -f $srcdir/config.status; then
2103 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2104 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2105 { (exit 1); exit 1; }; }
2108 # test whether we have cygpath
2109 if test -z "$CYGPATH_W"; then
2110 if (cygpath --version) >/dev/null 2>/dev/null; then
2111 CYGPATH_W='cygpath -w'
2112 else
2113 CYGPATH_W=echo
2118 # Define the identity of the package.
2119 PACKAGE='lcdproc'
2120 VERSION='0.5.2'
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE "$PACKAGE"
2125 _ACEOF
2128 cat >>confdefs.h <<_ACEOF
2129 #define VERSION "$VERSION"
2130 _ACEOF
2132 # Some tools Automake needs.
2134 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2137 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2140 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2143 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2146 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2148 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2150 # Installed binaries are usually stripped using `strip' when the user
2151 # run `make install-strip'. However `strip' might not be the right
2152 # tool to use in cross-compilation environments, therefore Automake
2153 # will honor the `STRIP' environment variable to overrule this program.
2154 if test "$cross_compiling" != no; then
2155 if test -n "$ac_tool_prefix"; then
2156 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2157 set dummy ${ac_tool_prefix}strip; ac_word=$2
2158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2160 if test "${ac_cv_prog_STRIP+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163 if test -n "$STRIP"; then
2164 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2169 IFS=$as_save_IFS
2170 test -z "$as_dir" && as_dir=.
2171 for ac_exec_ext in '' $ac_executable_extensions; do
2172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2173 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 break 2
2177 done
2178 done
2179 IFS=$as_save_IFS
2183 STRIP=$ac_cv_prog_STRIP
2184 if test -n "$STRIP"; then
2185 { echo "$as_me:$LINENO: result: $STRIP" >&5
2186 echo "${ECHO_T}$STRIP" >&6; }
2187 else
2188 { echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6; }
2194 if test -z "$ac_cv_prog_STRIP"; then
2195 ac_ct_STRIP=$STRIP
2196 # Extract the first word of "strip", so it can be a program name with args.
2197 set dummy strip; ac_word=$2
2198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2200 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203 if test -n "$ac_ct_STRIP"; then
2204 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2205 else
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2209 IFS=$as_save_IFS
2210 test -z "$as_dir" && as_dir=.
2211 for ac_exec_ext in '' $ac_executable_extensions; do
2212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213 ac_cv_prog_ac_ct_STRIP="strip"
2214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215 break 2
2217 done
2218 done
2219 IFS=$as_save_IFS
2223 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2224 if test -n "$ac_ct_STRIP"; then
2225 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2226 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2227 else
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2232 if test "x$ac_ct_STRIP" = x; then
2233 STRIP=":"
2234 else
2235 case $cross_compiling:$ac_tool_warned in
2236 yes:)
2237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2238 whose name does not start with the host triplet. If you think this
2239 configuration is useful to you, please write to autoconf@gnu.org." >&5
2240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2241 whose name does not start with the host triplet. If you think this
2242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2243 ac_tool_warned=yes ;;
2244 esac
2245 STRIP=$ac_ct_STRIP
2247 else
2248 STRIP="$ac_cv_prog_STRIP"
2252 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2254 # We need awk for the "check" target. The system "awk" is bad on
2255 # some platforms.
2256 # Always define AMTAR for backward compatibility.
2258 AMTAR=${AMTAR-"${am_missing_run}tar"}
2260 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2267 ac_config_headers="$ac_config_headers config.h"
2270 # Make sure we can run config.sub.
2271 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2272 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2273 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2274 { (exit 1); exit 1; }; }
2276 { echo "$as_me:$LINENO: checking build system type" >&5
2277 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2278 if test "${ac_cv_build+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2280 else
2281 ac_build_alias=$build_alias
2282 test "x$ac_build_alias" = x &&
2283 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2284 test "x$ac_build_alias" = x &&
2285 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2286 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2287 { (exit 1); exit 1; }; }
2288 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2289 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2290 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2291 { (exit 1); exit 1; }; }
2294 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2295 echo "${ECHO_T}$ac_cv_build" >&6; }
2296 case $ac_cv_build in
2297 *-*-*) ;;
2298 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2299 echo "$as_me: error: invalid value of canonical build" >&2;}
2300 { (exit 1); exit 1; }; };;
2301 esac
2302 build=$ac_cv_build
2303 ac_save_IFS=$IFS; IFS='-'
2304 set x $ac_cv_build
2305 shift
2306 build_cpu=$1
2307 build_vendor=$2
2308 shift; shift
2309 # Remember, the first character of IFS is used to create $*,
2310 # except with old shells:
2311 build_os=$*
2312 IFS=$ac_save_IFS
2313 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2316 { echo "$as_me:$LINENO: checking host system type" >&5
2317 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2318 if test "${ac_cv_host+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 if test "x$host_alias" = x; then
2322 ac_cv_host=$ac_cv_build
2323 else
2324 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2325 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2326 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2327 { (exit 1); exit 1; }; }
2331 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2332 echo "${ECHO_T}$ac_cv_host" >&6; }
2333 case $ac_cv_host in
2334 *-*-*) ;;
2335 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2336 echo "$as_me: error: invalid value of canonical host" >&2;}
2337 { (exit 1); exit 1; }; };;
2338 esac
2339 host=$ac_cv_host
2340 ac_save_IFS=$IFS; IFS='-'
2341 set x $ac_cv_host
2342 shift
2343 host_cpu=$1
2344 host_vendor=$2
2345 shift; shift
2346 # Remember, the first character of IFS is used to create $*,
2347 # except with old shells:
2348 host_os=$*
2349 IFS=$ac_save_IFS
2350 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2353 case "$host" in
2354 *-*-*linux*)
2355 cat >>confdefs.h <<\_ACEOF
2356 #define LINUX 1
2357 _ACEOF
2359 ac_system_host=Linux
2361 *-*-*solaris*)
2363 cat >>confdefs.h <<\_ACEOF
2364 #define SOLARIS 1
2365 _ACEOF
2367 ac_system_host=Solaris
2369 *-*-*openbsd*)
2370 cat >>confdefs.h <<\_ACEOF
2371 #define OPENBSD 1
2372 _ACEOF
2374 ac_system_host=OpenBSD
2376 *-*-*netbsd*)
2378 cat >>confdefs.h <<\_ACEOF
2379 #define NETBSD 1
2380 _ACEOF
2382 ac_system_host=NetBSD
2384 *-*-*freebsd*)
2386 cat >>confdefs.h <<\_ACEOF
2387 #define FREEBSD 1
2388 _ACEOF
2390 ac_system_host=FreeBSD
2392 *-*-*darwin*)
2394 cat >>confdefs.h <<\_ACEOF
2395 #define DARWIN 1
2396 _ACEOF
2398 ac_system_host=Darwin
2400 esac
2402 cat >>confdefs.h <<_ACEOF
2403 #define SYSTEM_HOST $ac_system_host
2404 _ACEOF
2409 if test x$ac_system_host = xDarwin; then
2410 DARWIN_TRUE=
2411 DARWIN_FALSE='#'
2412 else
2413 DARWIN_TRUE='#'
2414 DARWIN_FALSE=
2418 { echo "$as_me:$LINENO: checking whether to enable debugging" >&5
2419 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
2420 # Check whether --enable-debug was given.
2421 if test "${enable_debug+set}" = set; then
2422 enableval=$enable_debug; if [ "$enableval" = "yes" ]; then
2424 cat >>confdefs.h <<\_ACEOF
2425 #define DEBUG 1
2426 _ACEOF
2428 debug="yes"
2429 else
2430 debug="no"
2432 else
2433 debug="no"
2437 { echo "$as_me:$LINENO: result: $debug" >&5
2438 echo "${ECHO_T}$debug" >&6; }
2440 if test $debug = "yes"; then
2441 CFLAGS="$CFLAGS -g"
2442 if ! echo " $CFLAGS" | grep -q -- " -O" ; then
2443 CFLAGS="$CFLAGS -O"
2445 else
2446 if ! echo " $CFLAGS" | grep -q -- " -O" ; then
2447 CFLAGS="$CFLAGS -O3"
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2478 done
2479 done
2480 IFS=$as_save_IFS
2484 CC=$ac_cv_prog_CC
2485 if test -n "$CC"; then
2486 { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2488 else
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2495 if test -z "$ac_cv_prog_CC"; then
2496 ac_ct_CC=$CC
2497 # Extract the first word of "gcc", so it can be a program name with args.
2498 set dummy gcc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 else
2504 if test -n "$ac_ct_CC"; then
2505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_ac_ct_CC="gcc"
2515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 break 2
2518 done
2519 done
2520 IFS=$as_save_IFS
2524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2525 if test -n "$ac_ct_CC"; then
2526 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2527 echo "${ECHO_T}$ac_ct_CC" >&6; }
2528 else
2529 { echo "$as_me:$LINENO: result: no" >&5
2530 echo "${ECHO_T}no" >&6; }
2533 if test "x$ac_ct_CC" = x; then
2534 CC=""
2535 else
2536 case $cross_compiling:$ac_tool_warned in
2537 yes:)
2538 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2539 whose name does not start with the host triplet. If you think this
2540 configuration is useful to you, please write to autoconf@gnu.org." >&5
2541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet. If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2544 ac_tool_warned=yes ;;
2545 esac
2546 CC=$ac_ct_CC
2548 else
2549 CC="$ac_cv_prog_CC"
2552 if test -z "$CC"; then
2553 if test -n "$ac_tool_prefix"; then
2554 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2555 set dummy ${ac_tool_prefix}cc; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 else
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_CC="${ac_tool_prefix}cc"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2575 done
2576 done
2577 IFS=$as_save_IFS
2581 CC=$ac_cv_prog_CC
2582 if test -n "$CC"; then
2583 { echo "$as_me:$LINENO: result: $CC" >&5
2584 echo "${ECHO_T}$CC" >&6; }
2585 else
2586 { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2593 if test -z "$CC"; then
2594 # Extract the first word of "cc", so it can be a program name with args.
2595 set dummy cc; ac_word=$2
2596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2598 if test "${ac_cv_prog_CC+set}" = set; then
2599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 else
2601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
2603 else
2604 ac_prog_rejected=no
2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2606 for as_dir in $PATH
2608 IFS=$as_save_IFS
2609 test -z "$as_dir" && as_dir=.
2610 for ac_exec_ext in '' $ac_executable_extensions; do
2611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2612 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2613 ac_prog_rejected=yes
2614 continue
2616 ac_cv_prog_CC="cc"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2620 done
2621 done
2622 IFS=$as_save_IFS
2624 if test $ac_prog_rejected = yes; then
2625 # We found a bogon in the path, so make sure we never use it.
2626 set dummy $ac_cv_prog_CC
2627 shift
2628 if test $# != 0; then
2629 # We chose a different compiler from the bogus one.
2630 # However, it has the same basename, so the bogon will be chosen
2631 # first if we set CC to just the basename; use the full file name.
2632 shift
2633 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2638 CC=$ac_cv_prog_CC
2639 if test -n "$CC"; then
2640 { echo "$as_me:$LINENO: result: $CC" >&5
2641 echo "${ECHO_T}$CC" >&6; }
2642 else
2643 { echo "$as_me:$LINENO: result: no" >&5
2644 echo "${ECHO_T}no" >&6; }
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 for ac_prog in cl.exe
2653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2657 if test "${ac_cv_prog_CC+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2674 done
2675 done
2676 IFS=$as_save_IFS
2680 CC=$ac_cv_prog_CC
2681 if test -n "$CC"; then
2682 { echo "$as_me:$LINENO: result: $CC" >&5
2683 echo "${ECHO_T}$CC" >&6; }
2684 else
2685 { echo "$as_me:$LINENO: result: no" >&5
2686 echo "${ECHO_T}no" >&6; }
2690 test -n "$CC" && break
2691 done
2693 if test -z "$CC"; then
2694 ac_ct_CC=$CC
2695 for ac_prog in cl.exe
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2702 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704 if test -n "$ac_ct_CC"; then
2705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_ac_ct_CC="$ac_prog"
2715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2718 done
2719 done
2720 IFS=$as_save_IFS
2724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2725 if test -n "$ac_ct_CC"; then
2726 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2727 echo "${ECHO_T}$ac_ct_CC" >&6; }
2728 else
2729 { echo "$as_me:$LINENO: result: no" >&5
2730 echo "${ECHO_T}no" >&6; }
2734 test -n "$ac_ct_CC" && break
2735 done
2737 if test "x$ac_ct_CC" = x; then
2738 CC=""
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741 yes:)
2742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2743 whose name does not start with the host triplet. If you think this
2744 configuration is useful to you, please write to autoconf@gnu.org." >&5
2745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2746 whose name does not start with the host triplet. If you think this
2747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2748 ac_tool_warned=yes ;;
2749 esac
2750 CC=$ac_ct_CC
2757 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2758 See \`config.log' for more details." >&5
2759 echo "$as_me: error: no acceptable C compiler found in \$PATH
2760 See \`config.log' for more details." >&2;}
2761 { (exit 1); exit 1; }; }
2763 # Provide some information about the compiler.
2764 echo "$as_me:$LINENO: checking for C compiler version" >&5
2765 ac_compiler=`set X $ac_compile; echo $2`
2766 { (ac_try="$ac_compiler --version >&5"
2767 case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770 esac
2771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_compiler --version >&5") 2>&5
2773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2776 { (ac_try="$ac_compiler -v >&5"
2777 case "(($ac_try" in
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2780 esac
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compiler -v >&5") 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }
2786 { (ac_try="$ac_compiler -V >&5"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compiler -V >&5") 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }
2797 cat >conftest.$ac_ext <<_ACEOF
2798 /* confdefs.h. */
2799 _ACEOF
2800 cat confdefs.h >>conftest.$ac_ext
2801 cat >>conftest.$ac_ext <<_ACEOF
2802 /* end confdefs.h. */
2805 main ()
2809 return 0;
2811 _ACEOF
2812 ac_clean_files_save=$ac_clean_files
2813 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2814 # Try to create an executable without -o first, disregard a.out.
2815 # It will help us diagnose broken compilers, and finding out an intuition
2816 # of exeext.
2817 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2818 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2819 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2821 # List of possible output files, starting from the most likely.
2822 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2823 # only as a last resort. b.out is created by i960 compilers.
2824 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2826 # The IRIX 6 linker writes into existing files which may not be
2827 # executable, retaining their permissions. Remove them first so a
2828 # subsequent execution test works.
2829 ac_rmfiles=
2830 for ac_file in $ac_files
2832 case $ac_file in
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2834 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2835 esac
2836 done
2837 rm -f $ac_rmfiles
2839 if { (ac_try="$ac_link_default"
2840 case "(($ac_try" in
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2843 esac
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_link_default") 2>&5
2846 ac_status=$?
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; then
2849 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2850 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2851 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2852 # so that the user can short-circuit this test for compilers unknown to
2853 # Autoconf.
2854 for ac_file in $ac_files ''
2856 test -f "$ac_file" || continue
2857 case $ac_file in
2858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2860 [ab].out )
2861 # We found the default executable, but exeext='' is most
2862 # certainly right.
2863 break;;
2864 *.* )
2865 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2866 then :; else
2867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 # We set ac_cv_exeext here because the later test for it is not
2870 # safe: cross compilers may not add the suffix if given an `-o'
2871 # argument, so we may need to know it at that point already.
2872 # Even if this section looks crufty: it has the advantage of
2873 # actually working.
2874 break;;
2876 break;;
2877 esac
2878 done
2879 test "$ac_cv_exeext" = no && ac_cv_exeext=
2881 else
2882 ac_file=''
2885 { echo "$as_me:$LINENO: result: $ac_file" >&5
2886 echo "${ECHO_T}$ac_file" >&6; }
2887 if test -z "$ac_file"; then
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2891 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2892 See \`config.log' for more details." >&5
2893 echo "$as_me: error: C compiler cannot create executables
2894 See \`config.log' for more details." >&2;}
2895 { (exit 77); exit 77; }; }
2898 ac_exeext=$ac_cv_exeext
2900 # Check that the compiler produces executables we can run. If not, either
2901 # the compiler is broken, or we cross compile.
2902 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2903 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2904 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2905 # If not cross compiling, check that we can run a simple program.
2906 if test "$cross_compiling" != yes; then
2907 if { ac_try='./$ac_file'
2908 { (case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_try") 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2917 cross_compiling=no
2918 else
2919 if test "$cross_compiling" = maybe; then
2920 cross_compiling=yes
2921 else
2922 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2923 If you meant to cross compile, use \`--host'.
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot run C compiled programs.
2926 If you meant to cross compile, use \`--host'.
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2932 { echo "$as_me:$LINENO: result: yes" >&5
2933 echo "${ECHO_T}yes" >&6; }
2935 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2936 ac_clean_files=$ac_clean_files_save
2937 # Check that the compiler produces executables we can run. If not, either
2938 # the compiler is broken, or we cross compile.
2939 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2940 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2941 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2942 echo "${ECHO_T}$cross_compiling" >&6; }
2944 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2945 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2946 if { (ac_try="$ac_link"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2952 (eval "$ac_link") 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; then
2956 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2957 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2958 # work properly (i.e., refer to `conftest.exe'), while it won't with
2959 # `rm'.
2960 for ac_file in conftest.exe conftest conftest.*; do
2961 test -f "$ac_file" || continue
2962 case $ac_file in
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2964 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 break;;
2966 * ) break;;
2967 esac
2968 done
2969 else
2970 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2971 See \`config.log' for more details." >&5
2972 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2973 See \`config.log' for more details." >&2;}
2974 { (exit 1); exit 1; }; }
2977 rm -f conftest$ac_cv_exeext
2978 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2979 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2981 rm -f conftest.$ac_ext
2982 EXEEXT=$ac_cv_exeext
2983 ac_exeext=$EXEEXT
2984 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2985 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2986 if test "${ac_cv_objext+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h. */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2997 main ()
3001 return 0;
3003 _ACEOF
3004 rm -f conftest.o conftest.obj
3005 if { (ac_try="$ac_compile"
3006 case "(($ac_try" in
3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008 *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011 (eval "$ac_compile") 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; then
3015 for ac_file in conftest.o conftest.obj conftest.*; do
3016 test -f "$ac_file" || continue;
3017 case $ac_file in
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3019 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3020 break;;
3021 esac
3022 done
3023 else
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3027 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3028 See \`config.log' for more details." >&5
3029 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }
3034 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3036 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3037 echo "${ECHO_T}$ac_cv_objext" >&6; }
3038 OBJEXT=$ac_cv_objext
3039 ac_objext=$OBJEXT
3040 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3041 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3042 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3053 main ()
3055 #ifndef __GNUC__
3056 choke me
3057 #endif
3060 return 0;
3062 _ACEOF
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_compile") 2>conftest.er1
3071 ac_status=$?
3072 grep -v '^ *+' conftest.er1 >conftest.err
3073 rm -f conftest.er1
3074 cat conftest.err >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); } && {
3077 test -z "$ac_c_werror_flag" ||
3078 test ! -s conftest.err
3079 } && test -s conftest.$ac_objext; then
3080 ac_compiler_gnu=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 ac_compiler_gnu=no
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3092 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3093 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3094 GCC=`test $ac_compiler_gnu = yes && echo yes`
3095 ac_test_CFLAGS=${CFLAGS+set}
3096 ac_save_CFLAGS=$CFLAGS
3097 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3099 if test "${ac_cv_prog_cc_g+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
3101 else
3102 ac_save_c_werror_flag=$ac_c_werror_flag
3103 ac_c_werror_flag=yes
3104 ac_cv_prog_cc_g=no
3105 CFLAGS="-g"
3106 cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h. */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3114 main ()
3118 return 0;
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
3138 ac_cv_prog_cc_g=yes
3139 else
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 CFLAGS=""
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3152 main ()
3156 return 0;
3158 _ACEOF
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3177 else
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3182 CFLAGS="-g"
3183 cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3191 main ()
3195 return 0;
3197 _ACEOF
3198 rm -f conftest.$ac_objext
3199 if { (ac_try="$ac_compile"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
3206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } && {
3212 test -z "$ac_c_werror_flag" ||
3213 test ! -s conftest.err
3214 } && test -s conftest.$ac_objext; then
3215 ac_cv_prog_cc_g=yes
3216 else
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
3239 else
3240 CFLAGS="-g"
3242 else
3243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
3245 else
3246 CFLAGS=
3249 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3250 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 ac_cv_prog_cc_c89=no
3255 ac_save_CC=$CC
3256 cat >conftest.$ac_ext <<_ACEOF
3257 /* confdefs.h. */
3258 _ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3262 #include <stdarg.h>
3263 #include <stdio.h>
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270 char **p;
3271 int i;
3273 return p[i];
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296 #define FOO(x) 'x'
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3306 main ()
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 return 0;
3312 _ACEOF
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3334 ac_cv_prog_cc_c89=$ac_arg
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3342 rm -f core conftest.err conftest.$ac_objext
3343 test "x$ac_cv_prog_cc_c89" != "xno" && break
3344 done
3345 rm -f conftest.$ac_ext
3346 CC=$ac_save_CC
3349 # AC_CACHE_VAL
3350 case "x$ac_cv_prog_cc_c89" in
3352 { echo "$as_me:$LINENO: result: none needed" >&5
3353 echo "${ECHO_T}none needed" >&6; } ;;
3354 xno)
3355 { echo "$as_me:$LINENO: result: unsupported" >&5
3356 echo "${ECHO_T}unsupported" >&6; } ;;
3358 CC="$CC $ac_cv_prog_cc_c89"
3359 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3360 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3361 esac
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 DEPDIR="${am__leading_dot}deps"
3371 ac_config_commands="$ac_config_commands depfiles"
3374 am_make=${MAKE-make}
3375 cat > confinc << 'END'
3376 am__doit:
3377 @echo done
3378 .PHONY: am__doit
3380 # If we don't find an include directive, just comment out the code.
3381 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3382 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3383 am__include="#"
3384 am__quote=
3385 _am_result=none
3386 # First try GNU make style include.
3387 echo "include confinc" > confmf
3388 # We grep out `Entering directory' and `Leaving directory'
3389 # messages which can occur if `w' ends up in MAKEFLAGS.
3390 # In particular we don't look at `^make:' because GNU make might
3391 # be invoked under some other name (usually "gmake"), in which
3392 # case it prints its new name instead of `make'.
3393 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3394 am__include=include
3395 am__quote=
3396 _am_result=GNU
3398 # Now try BSD make style include.
3399 if test "$am__include" = "#"; then
3400 echo '.include "confinc"' > confmf
3401 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3402 am__include=.include
3403 am__quote="\""
3404 _am_result=BSD
3409 { echo "$as_me:$LINENO: result: $_am_result" >&5
3410 echo "${ECHO_T}$_am_result" >&6; }
3411 rm -f confinc confmf
3413 # Check whether --enable-dependency-tracking was given.
3414 if test "${enable_dependency_tracking+set}" = set; then
3415 enableval=$enable_dependency_tracking;
3418 if test "x$enable_dependency_tracking" != xno; then
3419 am_depcomp="$ac_aux_dir/depcomp"
3420 AMDEPBACKSLASH='\'
3424 if test "x$enable_dependency_tracking" != xno; then
3425 AMDEP_TRUE=
3426 AMDEP_FALSE='#'
3427 else
3428 AMDEP_TRUE='#'
3429 AMDEP_FALSE=
3435 depcc="$CC" am_compiler_list=
3437 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3438 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3439 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3443 # We make a subdir and do the tests there. Otherwise we can end up
3444 # making bogus files that we don't know about and never remove. For
3445 # instance it was reported that on HP-UX the gcc test will end up
3446 # making a dummy file named `D' -- because `-MD' means `put the output
3447 # in D'.
3448 mkdir conftest.dir
3449 # Copy depcomp to subdir because otherwise we won't find it if we're
3450 # using a relative directory.
3451 cp "$am_depcomp" conftest.dir
3452 cd conftest.dir
3453 # We will build objects and dependencies in a subdirectory because
3454 # it helps to detect inapplicable dependency modes. For instance
3455 # both Tru64's cc and ICC support -MD to output dependencies as a
3456 # side effect of compilation, but ICC will put the dependencies in
3457 # the current directory while Tru64 will put them in the object
3458 # directory.
3459 mkdir sub
3461 am_cv_CC_dependencies_compiler_type=none
3462 if test "$am_compiler_list" = ""; then
3463 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3465 for depmode in $am_compiler_list; do
3466 # Setup a source with many dependencies, because some compilers
3467 # like to wrap large dependency lists on column 80 (with \), and
3468 # we should not choose a depcomp mode which is confused by this.
3470 # We need to recreate these files for each test, as the compiler may
3471 # overwrite some of them when testing with obscure command lines.
3472 # This happens at least with the AIX C compiler.
3473 : > sub/conftest.c
3474 for i in 1 2 3 4 5 6; do
3475 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3476 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3477 # Solaris 8's {/usr,}/bin/sh.
3478 touch sub/conftst$i.h
3479 done
3480 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3482 case $depmode in
3483 nosideeffect)
3484 # after this tag, mechanisms are not by side-effect, so they'll
3485 # only be used when explicitly requested
3486 if test "x$enable_dependency_tracking" = xyes; then
3487 continue
3488 else
3489 break
3492 none) break ;;
3493 esac
3494 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3495 # mode. It turns out that the SunPro C++ compiler does not properly
3496 # handle `-M -o', and we need to detect this.
3497 if depmode=$depmode \
3498 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3499 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3500 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3501 >/dev/null 2>conftest.err &&
3502 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3503 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3504 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3505 # icc doesn't choke on unknown options, it will just issue warnings
3506 # or remarks (even with -Werror). So we grep stderr for any message
3507 # that says an option was ignored or not supported.
3508 # When given -MP, icc 7.0 and 7.1 complain thusly:
3509 # icc: Command line warning: ignoring option '-M'; no argument required
3510 # The diagnosis changed in icc 8.0:
3511 # icc: Command line remark: option '-MP' not supported
3512 if (grep 'ignoring option' conftest.err ||
3513 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3514 am_cv_CC_dependencies_compiler_type=$depmode
3515 break
3518 done
3520 cd ..
3521 rm -rf conftest.dir
3522 else
3523 am_cv_CC_dependencies_compiler_type=none
3527 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3528 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3529 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3534 test "x$enable_dependency_tracking" != xno \
3535 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3536 am__fastdepCC_TRUE=
3537 am__fastdepCC_FALSE='#'
3538 else
3539 am__fastdepCC_TRUE='#'
3540 am__fastdepCC_FALSE=
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3550 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3551 # On Suns, sometimes $CPP names a directory.
3552 if test -n "$CPP" && test -d "$CPP"; then
3553 CPP=
3555 if test -z "$CPP"; then
3556 if test "${ac_cv_prog_CPP+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 # Double quotes because CPP needs to be expanded
3560 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3562 ac_preproc_ok=false
3563 for ac_c_preproc_warn_flag in '' yes
3565 # Use a header file that comes with gcc, so configuring glibc
3566 # with a fresh cross-compiler works.
3567 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3568 # <limits.h> exists even on freestanding compilers.
3569 # On the NeXT, cc -E runs the code through the compiler's parser,
3570 # not just through cpp. "Syntax error" is here to catch this case.
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #ifdef __STDC__
3578 # include <limits.h>
3579 #else
3580 # include <assert.h>
3581 #endif
3582 Syntax error
3583 _ACEOF
3584 if { (ac_try="$ac_cpp conftest.$ac_ext"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3591 ac_status=$?
3592 grep -v '^ *+' conftest.er1 >conftest.err
3593 rm -f conftest.er1
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); } >/dev/null && {
3597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 }; then
3601 else
3602 echo "$as_me: failed program was:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3605 # Broken: fails on valid input.
3606 continue
3609 rm -f conftest.err conftest.$ac_ext
3611 # OK, works on sane cases. Now check whether nonexistent headers
3612 # can be detected and how.
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3619 #include <ac_nonexistent.h>
3620 _ACEOF
3621 if { (ac_try="$ac_cpp conftest.$ac_ext"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } >/dev/null && {
3634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 }; then
3637 # Broken: success on invalid input.
3638 continue
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 # Passes both tests.
3644 ac_preproc_ok=:
3645 break
3648 rm -f conftest.err conftest.$ac_ext
3650 done
3651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652 rm -f conftest.err conftest.$ac_ext
3653 if $ac_preproc_ok; then
3654 break
3657 done
3658 ac_cv_prog_CPP=$CPP
3661 CPP=$ac_cv_prog_CPP
3662 else
3663 ac_cv_prog_CPP=$CPP
3665 { echo "$as_me:$LINENO: result: $CPP" >&5
3666 echo "${ECHO_T}$CPP" >&6; }
3667 ac_preproc_ok=false
3668 for ac_c_preproc_warn_flag in '' yes
3670 # Use a header file that comes with gcc, so configuring glibc
3671 # with a fresh cross-compiler works.
3672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3673 # <limits.h> exists even on freestanding compilers.
3674 # On the NeXT, cc -E runs the code through the compiler's parser,
3675 # not just through cpp. "Syntax error" is here to catch this case.
3676 cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h. */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h. */
3682 #ifdef __STDC__
3683 # include <limits.h>
3684 #else
3685 # include <assert.h>
3686 #endif
3687 Syntax error
3688 _ACEOF
3689 if { (ac_try="$ac_cpp conftest.$ac_ext"
3690 case "(($ac_try" in
3691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3692 *) ac_try_echo=$ac_try;;
3693 esac
3694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3696 ac_status=$?
3697 grep -v '^ *+' conftest.er1 >conftest.err
3698 rm -f conftest.er1
3699 cat conftest.err >&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); } >/dev/null && {
3702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3703 test ! -s conftest.err
3704 }; then
3706 else
3707 echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 # Broken: fails on valid input.
3711 continue
3714 rm -f conftest.err conftest.$ac_ext
3716 # OK, works on sane cases. Now check whether nonexistent headers
3717 # can be detected and how.
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3724 #include <ac_nonexistent.h>
3725 _ACEOF
3726 if { (ac_try="$ac_cpp conftest.$ac_ext"
3727 case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3733 ac_status=$?
3734 grep -v '^ *+' conftest.er1 >conftest.err
3735 rm -f conftest.er1
3736 cat conftest.err >&5
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } >/dev/null && {
3739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3740 test ! -s conftest.err
3741 }; then
3742 # Broken: success on invalid input.
3743 continue
3744 else
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 # Passes both tests.
3749 ac_preproc_ok=:
3750 break
3753 rm -f conftest.err conftest.$ac_ext
3755 done
3756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757 rm -f conftest.err conftest.$ac_ext
3758 if $ac_preproc_ok; then
3760 else
3761 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3762 See \`config.log' for more details." >&5
3763 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3764 See \`config.log' for more details." >&2;}
3765 { (exit 1); exit 1; }; }
3768 ac_ext=c
3769 ac_cpp='$CPP $CPPFLAGS'
3770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774 # Find a good install program. We prefer a C program (faster),
3775 # so one script is as good as another. But avoid the broken or
3776 # incompatible versions:
3777 # SysV /etc/install, /usr/sbin/install
3778 # SunOS /usr/etc/install
3779 # IRIX /sbin/install
3780 # AIX /bin/install
3781 # AmigaOS /C/install, which installs bootblocks on floppy discs
3782 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3783 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3784 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3785 # OS/2's system install, which has a completely different semantic
3786 # ./install, which can be erroneously created by make from ./install.sh.
3787 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3788 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3789 if test -z "$INSTALL"; then
3790 if test "${ac_cv_path_install+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 # Account for people who put trailing slashes in PATH elements.
3799 case $as_dir/ in
3800 ./ | .// | /cC/* | \
3801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3802 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3803 /usr/ucb/* ) ;;
3805 # OSF1 and SCO ODT 3.0 have their own names for install.
3806 # Don't use installbsd from OSF since it installs stuff as root
3807 # by default.
3808 for ac_prog in ginstall scoinst install; do
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3811 if test $ac_prog = install &&
3812 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3813 # AIX install. It has an incompatible calling convention.
3815 elif test $ac_prog = install &&
3816 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817 # program-specific install script used by HP pwplus--don't use.
3819 else
3820 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3821 break 3
3824 done
3825 done
3827 esac
3828 done
3829 IFS=$as_save_IFS
3833 if test "${ac_cv_path_install+set}" = set; then
3834 INSTALL=$ac_cv_path_install
3835 else
3836 # As a last resort, use the slow shell script. Don't cache a
3837 # value for INSTALL within a source directory, because that will
3838 # break other packages using the cache if that directory is
3839 # removed, or if the value is a relative name.
3840 INSTALL=$ac_install_sh
3843 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3844 echo "${ECHO_T}$INSTALL" >&6; }
3846 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3847 # It thinks the first close brace ends the variable substitution.
3848 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3850 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3852 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3856 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3859 if test "${ac_cv_prog_RANLIB+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 else
3862 if test -n "$RANLIB"; then
3863 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3864 else
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866 for as_dir in $PATH
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3872 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3876 done
3877 done
3878 IFS=$as_save_IFS
3882 RANLIB=$ac_cv_prog_RANLIB
3883 if test -n "$RANLIB"; then
3884 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3885 echo "${ECHO_T}$RANLIB" >&6; }
3886 else
3887 { echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6; }
3893 if test -z "$ac_cv_prog_RANLIB"; then
3894 ac_ct_RANLIB=$RANLIB
3895 # Extract the first word of "ranlib", so it can be a program name with args.
3896 set dummy ranlib; ac_word=$2
3897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3899 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 else
3902 if test -n "$ac_ct_RANLIB"; then
3903 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3912 ac_cv_prog_ac_ct_RANLIB="ranlib"
3913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3916 done
3917 done
3918 IFS=$as_save_IFS
3922 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3923 if test -n "$ac_ct_RANLIB"; then
3924 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3925 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3926 else
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3931 if test "x$ac_ct_RANLIB" = x; then
3932 RANLIB=":"
3933 else
3934 case $cross_compiling:$ac_tool_warned in
3935 yes:)
3936 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3937 whose name does not start with the host triplet. If you think this
3938 configuration is useful to you, please write to autoconf@gnu.org." >&5
3939 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3940 whose name does not start with the host triplet. If you think this
3941 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3942 ac_tool_warned=yes ;;
3943 esac
3944 RANLIB=$ac_ct_RANLIB
3946 else
3947 RANLIB="$ac_cv_prog_RANLIB"
3951 CFLAGS="-Wall $CFLAGS"
3953 { echo "$as_me:$LINENO: checking CFLAGS for gcc -Wno-unused-function" >&5
3954 echo $ECHO_N "checking CFLAGS for gcc -Wno-unused-function... $ECHO_C" >&6; }
3955 if test "${ac_cv_cflags_gcc_option__Wno_unused_function+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 else
3958 ac_cv_cflags_gcc_option__Wno_unused_function="no, unknown"
3960 ac_ext=c
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966 ac_save_CFLAGS="$CFLAGS"
3967 for ac_arg in "-pedantic % -Wno-unused-function" #
3968 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3977 main ()
3979 return 0;
3981 return 0;
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3986 case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989 esac
3990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest.$ac_objext; then
4001 ac_cv_cflags_gcc_option__Wno_unused_function=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
4002 else
4003 echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 done
4011 CFLAGS="$ac_save_CFLAGS"
4012 ac_ext=c
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4020 { echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wno_unused_function" >&5
4021 echo "${ECHO_T}$ac_cv_cflags_gcc_option__Wno_unused_function" >&6; }
4022 case ".$ac_cv_cflags_gcc_option__Wno_unused_function" in
4023 .ok|.ok,*) ;;
4024 .|.no|.no,*) ;;
4026 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wno_unused_function " 2>&1 >/dev/null
4027 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wno_unused_function") >&5
4028 (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wno_unused_function) 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }
4032 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wno_unused_function\"") >&5
4033 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wno_unused_function") 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }
4037 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wno_unused_function"
4040 esac
4042 { echo "$as_me:$LINENO: checking CFLAGS for gcc -ftrampolines" >&5
4043 echo $ECHO_N "checking CFLAGS for gcc -ftrampolines... $ECHO_C" >&6; }
4044 if test "${ac_cv_cflags_gcc_option__ftrampolines+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 ac_cv_cflags_gcc_option__ftrampolines="no, unknown"
4049 ac_ext=c
4050 ac_cpp='$CPP $CPPFLAGS'
4051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055 ac_save_CFLAGS="$CFLAGS"
4056 for ac_arg in "-pedantic % -ftrampolines" #
4057 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
4058 cat >conftest.$ac_ext <<_ACEOF
4059 /* confdefs.h. */
4060 _ACEOF
4061 cat confdefs.h >>conftest.$ac_ext
4062 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */
4066 main ()
4068 return 0;
4070 return 0;
4072 _ACEOF
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4075 case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078 esac
4079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } && {
4087 test -z "$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 } && test -s conftest.$ac_objext; then
4090 ac_cv_cflags_gcc_option__ftrampolines=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
4091 else
4092 echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 done
4100 CFLAGS="$ac_save_CFLAGS"
4101 ac_ext=c
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 { echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__ftrampolines" >&5
4110 echo "${ECHO_T}$ac_cv_cflags_gcc_option__ftrampolines" >&6; }
4111 case ".$ac_cv_cflags_gcc_option__ftrampolines" in
4112 .ok|.ok,*) ;;
4113 .|.no|.no,*) ;;
4115 if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__ftrampolines " 2>&1 >/dev/null
4116 then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__ftrampolines") >&5
4117 (: CFLAGS does contain $ac_cv_cflags_gcc_option__ftrampolines) 2>&5
4118 ac_status=$?
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }
4121 else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__ftrampolines\"") >&5
4122 (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__ftrampolines") 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); }
4126 CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__ftrampolines"
4129 esac
4131 export CFLAGS
4133 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4134 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4135 if test "${ac_cv_func_gethostbyname+set}" = set; then
4136 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138 cat >conftest.$ac_ext <<_ACEOF
4139 /* confdefs.h. */
4140 _ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4144 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4146 #define gethostbyname innocuous_gethostbyname
4148 /* System header to define __stub macros and hopefully few prototypes,
4149 which can conflict with char gethostbyname (); below.
4150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4151 <limits.h> exists even on freestanding compilers. */
4153 #ifdef __STDC__
4154 # include <limits.h>
4155 #else
4156 # include <assert.h>
4157 #endif
4159 #undef gethostbyname
4161 /* Override any GCC internal prototype to avoid an error.
4162 Use char because int might match the return type of a GCC
4163 builtin and then its argument prototype would still apply. */
4164 #ifdef __cplusplus
4165 extern "C"
4166 #endif
4167 char gethostbyname ();
4168 /* The GNU C library defines this for functions which it implements
4169 to always fail with ENOSYS. Some functions are actually named
4170 something starting with __ and the normal name is an alias. */
4171 #if defined __stub_gethostbyname || defined __stub___gethostbyname
4172 choke me
4173 #endif
4176 main ()
4178 return gethostbyname ();
4180 return 0;
4182 _ACEOF
4183 rm -f conftest.$ac_objext conftest$ac_exeext
4184 if { (ac_try="$ac_link"
4185 case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188 esac
4189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_link") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196 (exit $ac_status); } && {
4197 test -z "$ac_c_werror_flag" ||
4198 test ! -s conftest.err
4199 } && test -s conftest$ac_exeext &&
4200 $as_test_x conftest$ac_exeext; then
4201 ac_cv_func_gethostbyname=yes
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_func_gethostbyname=no
4209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4210 conftest$ac_exeext conftest.$ac_ext
4212 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4213 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4214 if test $ac_cv_func_gethostbyname = yes; then
4216 else
4218 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4219 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4220 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 ac_check_lib_save_LIBS=$LIBS
4224 LIBS="-lnsl $LIBS"
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4232 /* Override any GCC internal prototype to avoid an error.
4233 Use char because int might match the return type of a GCC
4234 builtin and then its argument prototype would still apply. */
4235 #ifdef __cplusplus
4236 extern "C"
4237 #endif
4238 char gethostbyname ();
4240 main ()
4242 return gethostbyname ();
4244 return 0;
4246 _ACEOF
4247 rm -f conftest.$ac_objext conftest$ac_exeext
4248 if { (ac_try="$ac_link"
4249 case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_link") 2>conftest.er1
4255 ac_status=$?
4256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } && {
4261 test -z "$ac_c_werror_flag" ||
4262 test ! -s conftest.err
4263 } && test -s conftest$ac_exeext &&
4264 $as_test_x conftest$ac_exeext; then
4265 ac_cv_lib_nsl_gethostbyname=yes
4266 else
4267 echo "$as_me: failed program was:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 ac_cv_lib_nsl_gethostbyname=no
4273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4274 conftest$ac_exeext conftest.$ac_ext
4275 LIBS=$ac_check_lib_save_LIBS
4277 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4278 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4279 if test $ac_cv_lib_nsl_gethostbyname = yes; then
4280 cat >>confdefs.h <<_ACEOF
4281 #define HAVE_LIBNSL 1
4282 _ACEOF
4284 LIBS="-lnsl $LIBS"
4290 { echo "$as_me:$LINENO: checking for connect" >&5
4291 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4292 if test "${ac_cv_func_connect+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295 cat >conftest.$ac_ext <<_ACEOF
4296 /* confdefs.h. */
4297 _ACEOF
4298 cat confdefs.h >>conftest.$ac_ext
4299 cat >>conftest.$ac_ext <<_ACEOF
4300 /* end confdefs.h. */
4301 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4303 #define connect innocuous_connect
4305 /* System header to define __stub macros and hopefully few prototypes,
4306 which can conflict with char connect (); below.
4307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4308 <limits.h> exists even on freestanding compilers. */
4310 #ifdef __STDC__
4311 # include <limits.h>
4312 #else
4313 # include <assert.h>
4314 #endif
4316 #undef connect
4318 /* Override any GCC internal prototype to avoid an error.
4319 Use char because int might match the return type of a GCC
4320 builtin and then its argument prototype would still apply. */
4321 #ifdef __cplusplus
4322 extern "C"
4323 #endif
4324 char connect ();
4325 /* The GNU C library defines this for functions which it implements
4326 to always fail with ENOSYS. Some functions are actually named
4327 something starting with __ and the normal name is an alias. */
4328 #if defined __stub_connect || defined __stub___connect
4329 choke me
4330 #endif
4333 main ()
4335 return connect ();
4337 return 0;
4339 _ACEOF
4340 rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (ac_try="$ac_link"
4342 case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_link") 2>conftest.er1
4348 ac_status=$?
4349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); } && {
4354 test -z "$ac_c_werror_flag" ||
4355 test ! -s conftest.err
4356 } && test -s conftest$ac_exeext &&
4357 $as_test_x conftest$ac_exeext; then
4358 ac_cv_func_connect=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4363 ac_cv_func_connect=no
4366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4367 conftest$ac_exeext conftest.$ac_ext
4369 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4370 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4371 if test $ac_cv_func_connect = yes; then
4373 else
4375 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4376 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4377 if test "${ac_cv_lib_socket_connect+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 else
4380 ac_check_lib_save_LIBS=$LIBS
4381 LIBS="-lsocket $LIBS"
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4389 /* Override any GCC internal prototype to avoid an error.
4390 Use char because int might match the return type of a GCC
4391 builtin and then its argument prototype would still apply. */
4392 #ifdef __cplusplus
4393 extern "C"
4394 #endif
4395 char connect ();
4397 main ()
4399 return connect ();
4401 return 0;
4403 _ACEOF
4404 rm -f conftest.$ac_objext conftest$ac_exeext
4405 if { (ac_try="$ac_link"
4406 case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4409 esac
4410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4411 (eval "$ac_link") 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } && {
4418 test -z "$ac_c_werror_flag" ||
4419 test ! -s conftest.err
4420 } && test -s conftest$ac_exeext &&
4421 $as_test_x conftest$ac_exeext; then
4422 ac_cv_lib_socket_connect=yes
4423 else
4424 echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4427 ac_cv_lib_socket_connect=no
4430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4431 conftest$ac_exeext conftest.$ac_ext
4432 LIBS=$ac_check_lib_save_LIBS
4434 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4435 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4436 if test $ac_cv_lib_socket_connect = yes; then
4437 cat >>confdefs.h <<_ACEOF
4438 #define HAVE_LIBSOCKET 1
4439 _ACEOF
4441 LIBS="-lsocket $LIBS"
4447 { echo "$as_me:$LINENO: checking for inet_aton" >&5
4448 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; }
4449 if test "${ac_cv_func_inet_aton+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
4459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4460 #define inet_aton innocuous_inet_aton
4462 /* System header to define __stub macros and hopefully few prototypes,
4463 which can conflict with char inet_aton (); below.
4464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4465 <limits.h> exists even on freestanding compilers. */
4467 #ifdef __STDC__
4468 # include <limits.h>
4469 #else
4470 # include <assert.h>
4471 #endif
4473 #undef inet_aton
4475 /* Override any GCC internal prototype to avoid an error.
4476 Use char because int might match the return type of a GCC
4477 builtin and then its argument prototype would still apply. */
4478 #ifdef __cplusplus
4479 extern "C"
4480 #endif
4481 char inet_aton ();
4482 /* The GNU C library defines this for functions which it implements
4483 to always fail with ENOSYS. Some functions are actually named
4484 something starting with __ and the normal name is an alias. */
4485 #if defined __stub_inet_aton || defined __stub___inet_aton
4486 choke me
4487 #endif
4490 main ()
4492 return inet_aton ();
4494 return 0;
4496 _ACEOF
4497 rm -f conftest.$ac_objext conftest$ac_exeext
4498 if { (ac_try="$ac_link"
4499 case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4502 esac
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_link") 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } && {
4511 test -z "$ac_c_werror_flag" ||
4512 test ! -s conftest.err
4513 } && test -s conftest$ac_exeext &&
4514 $as_test_x conftest$ac_exeext; then
4515 ac_cv_func_inet_aton=yes
4516 else
4517 echo "$as_me: failed program was:" >&5
4518 sed 's/^/| /' conftest.$ac_ext >&5
4520 ac_cv_func_inet_aton=no
4523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4524 conftest$ac_exeext conftest.$ac_ext
4526 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
4527 echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; }
4528 if test $ac_cv_func_inet_aton = yes; then
4530 else
4532 { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
4533 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
4534 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 else
4537 ac_check_lib_save_LIBS=$LIBS
4538 LIBS="-lresolv $LIBS"
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4546 /* Override any GCC internal prototype to avoid an error.
4547 Use char because int might match the return type of a GCC
4548 builtin and then its argument prototype would still apply. */
4549 #ifdef __cplusplus
4550 extern "C"
4551 #endif
4552 char inet_aton ();
4554 main ()
4556 return inet_aton ();
4558 return 0;
4560 _ACEOF
4561 rm -f conftest.$ac_objext conftest$ac_exeext
4562 if { (ac_try="$ac_link"
4563 case "(($ac_try" in
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4566 esac
4567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4568 (eval "$ac_link") 2>conftest.er1
4569 ac_status=$?
4570 grep -v '^ *+' conftest.er1 >conftest.err
4571 rm -f conftest.er1
4572 cat conftest.err >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && {
4575 test -z "$ac_c_werror_flag" ||
4576 test ! -s conftest.err
4577 } && test -s conftest$ac_exeext &&
4578 $as_test_x conftest$ac_exeext; then
4579 ac_cv_lib_resolv_inet_aton=yes
4580 else
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 ac_cv_lib_resolv_inet_aton=no
4587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4588 conftest$ac_exeext conftest.$ac_ext
4589 LIBS=$ac_check_lib_save_LIBS
4591 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
4592 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
4593 if test $ac_cv_lib_resolv_inet_aton = yes; then
4594 cat >>confdefs.h <<_ACEOF
4595 #define HAVE_LIBRESOLV 1
4596 _ACEOF
4598 LIBS="-lresolv $LIBS"
4605 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
4606 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
4607 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 ac_check_lib_save_LIBS=$LIBS
4611 LIBS="-lkstat $LIBS"
4612 cat >conftest.$ac_ext <<_ACEOF
4613 /* confdefs.h. */
4614 _ACEOF
4615 cat confdefs.h >>conftest.$ac_ext
4616 cat >>conftest.$ac_ext <<_ACEOF
4617 /* end confdefs.h. */
4619 /* Override any GCC internal prototype to avoid an error.
4620 Use char because int might match the return type of a GCC
4621 builtin and then its argument prototype would still apply. */
4622 #ifdef __cplusplus
4623 extern "C"
4624 #endif
4625 char kstat_open ();
4627 main ()
4629 return kstat_open ();
4631 return 0;
4633 _ACEOF
4634 rm -f conftest.$ac_objext conftest$ac_exeext
4635 if { (ac_try="$ac_link"
4636 case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639 esac
4640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 (eval "$ac_link") 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } && {
4648 test -z "$ac_c_werror_flag" ||
4649 test ! -s conftest.err
4650 } && test -s conftest$ac_exeext &&
4651 $as_test_x conftest$ac_exeext; then
4652 ac_cv_lib_kstat_kstat_open=yes
4653 else
4654 echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 ac_cv_lib_kstat_kstat_open=no
4660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4661 conftest$ac_exeext conftest.$ac_ext
4662 LIBS=$ac_check_lib_save_LIBS
4664 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
4665 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
4666 if test $ac_cv_lib_kstat_kstat_open = yes; then
4667 cat >>confdefs.h <<_ACEOF
4668 #define HAVE_LIBKSTAT 1
4669 _ACEOF
4671 LIBS="-lkstat $LIBS"
4676 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
4677 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
4678 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 ac_check_lib_save_LIBS=$LIBS
4682 LIBS="-lposix4 $LIBS"
4683 cat >conftest.$ac_ext <<_ACEOF
4684 /* confdefs.h. */
4685 _ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4690 /* Override any GCC internal prototype to avoid an error.
4691 Use char because int might match the return type of a GCC
4692 builtin and then its argument prototype would still apply. */
4693 #ifdef __cplusplus
4694 extern "C"
4695 #endif
4696 char nanosleep ();
4698 main ()
4700 return nanosleep ();
4702 return 0;
4704 _ACEOF
4705 rm -f conftest.$ac_objext conftest$ac_exeext
4706 if { (ac_try="$ac_link"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4712 (eval "$ac_link") 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest$ac_exeext &&
4722 $as_test_x conftest$ac_exeext; then
4723 ac_cv_lib_posix4_nanosleep=yes
4724 else
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_cv_lib_posix4_nanosleep=no
4731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4732 conftest$ac_exeext conftest.$ac_ext
4733 LIBS=$ac_check_lib_save_LIBS
4735 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
4736 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
4737 if test $ac_cv_lib_posix4_nanosleep = yes; then
4738 cat >>confdefs.h <<_ACEOF
4739 #define HAVE_LIBPOSIX4 1
4740 _ACEOF
4742 LIBS="-lposix4 $LIBS"
4748 for ac_func in getloadavg swapctl
4750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756 cat >conftest.$ac_ext <<_ACEOF
4757 /* confdefs.h. */
4758 _ACEOF
4759 cat confdefs.h >>conftest.$ac_ext
4760 cat >>conftest.$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4764 #define $ac_func innocuous_$ac_func
4766 /* System header to define __stub macros and hopefully few prototypes,
4767 which can conflict with char $ac_func (); below.
4768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769 <limits.h> exists even on freestanding compilers. */
4771 #ifdef __STDC__
4772 # include <limits.h>
4773 #else
4774 # include <assert.h>
4775 #endif
4777 #undef $ac_func
4779 /* Override any GCC internal prototype to avoid an error.
4780 Use char because int might match the return type of a GCC
4781 builtin and then its argument prototype would still apply. */
4782 #ifdef __cplusplus
4783 extern "C"
4784 #endif
4785 char $ac_func ();
4786 /* The GNU C library defines this for functions which it implements
4787 to always fail with ENOSYS. Some functions are actually named
4788 something starting with __ and the normal name is an alias. */
4789 #if defined __stub_$ac_func || defined __stub___$ac_func
4790 choke me
4791 #endif
4794 main ()
4796 return $ac_func ();
4798 return 0;
4800 _ACEOF
4801 rm -f conftest.$ac_objext conftest$ac_exeext
4802 if { (ac_try="$ac_link"
4803 case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806 esac
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_link") 2>conftest.er1
4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } && {
4815 test -z "$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4817 } && test -s conftest$ac_exeext &&
4818 $as_test_x conftest$ac_exeext; then
4819 eval "$as_ac_var=yes"
4820 else
4821 echo "$as_me: failed program was:" >&5
4822 sed 's/^/| /' conftest.$ac_ext >&5
4824 eval "$as_ac_var=no"
4827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4828 conftest$ac_exeext conftest.$ac_ext
4830 ac_res=`eval echo '${'$as_ac_var'}'`
4831 { echo "$as_me:$LINENO: result: $ac_res" >&5
4832 echo "${ECHO_T}$ac_res" >&6; }
4833 if test `eval echo '${'$as_ac_var'}'` = yes; then
4834 cat >>confdefs.h <<_ACEOF
4835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4836 _ACEOF
4839 done
4842 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4843 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4844 if test "${ac_cv_path_GREP+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 else
4847 # Extract the first word of "grep ggrep" to use in msg output
4848 if test -z "$GREP"; then
4849 set dummy grep ggrep; ac_prog_name=$2
4850 if test "${ac_cv_path_GREP+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 ac_path_GREP_found=false
4854 # Loop through the user's path and test for each of PROGNAME-LIST
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_prog in grep ggrep; do
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4863 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4864 # Check for GNU ac_path_GREP and select it if it is found.
4865 # Check for GNU $ac_path_GREP
4866 case `"$ac_path_GREP" --version 2>&1` in
4867 *GNU*)
4868 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4870 ac_count=0
4871 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4872 while :
4874 cat "conftest.in" "conftest.in" >"conftest.tmp"
4875 mv "conftest.tmp" "conftest.in"
4876 cp "conftest.in" "conftest.nl"
4877 echo 'GREP' >> "conftest.nl"
4878 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4880 ac_count=`expr $ac_count + 1`
4881 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4882 # Best one so far, save it but keep looking for a better one
4883 ac_cv_path_GREP="$ac_path_GREP"
4884 ac_path_GREP_max=$ac_count
4886 # 10*(2^10) chars as input seems more than enough
4887 test $ac_count -gt 10 && break
4888 done
4889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4890 esac
4893 $ac_path_GREP_found && break 3
4894 done
4895 done
4897 done
4898 IFS=$as_save_IFS
4903 GREP="$ac_cv_path_GREP"
4904 if test -z "$GREP"; then
4905 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4906 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4907 { (exit 1); exit 1; }; }
4910 else
4911 ac_cv_path_GREP=$GREP
4916 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4917 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4918 GREP="$ac_cv_path_GREP"
4921 { echo "$as_me:$LINENO: checking for egrep" >&5
4922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4923 if test "${ac_cv_path_EGREP+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4927 then ac_cv_path_EGREP="$GREP -E"
4928 else
4929 # Extract the first word of "egrep" to use in msg output
4930 if test -z "$EGREP"; then
4931 set dummy egrep; ac_prog_name=$2
4932 if test "${ac_cv_path_EGREP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 ac_path_EGREP_found=false
4936 # Loop through the user's path and test for each of PROGNAME-LIST
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_prog in egrep; do
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4945 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4946 # Check for GNU ac_path_EGREP and select it if it is found.
4947 # Check for GNU $ac_path_EGREP
4948 case `"$ac_path_EGREP" --version 2>&1` in
4949 *GNU*)
4950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4952 ac_count=0
4953 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4954 while :
4956 cat "conftest.in" "conftest.in" >"conftest.tmp"
4957 mv "conftest.tmp" "conftest.in"
4958 cp "conftest.in" "conftest.nl"
4959 echo 'EGREP' >> "conftest.nl"
4960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4962 ac_count=`expr $ac_count + 1`
4963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4964 # Best one so far, save it but keep looking for a better one
4965 ac_cv_path_EGREP="$ac_path_EGREP"
4966 ac_path_EGREP_max=$ac_count
4968 # 10*(2^10) chars as input seems more than enough
4969 test $ac_count -gt 10 && break
4970 done
4971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4972 esac
4975 $ac_path_EGREP_found && break 3
4976 done
4977 done
4979 done
4980 IFS=$as_save_IFS
4985 EGREP="$ac_cv_path_EGREP"
4986 if test -z "$EGREP"; then
4987 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4988 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4989 { (exit 1); exit 1; }; }
4992 else
4993 ac_cv_path_EGREP=$EGREP
4999 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5000 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5001 EGREP="$ac_cv_path_EGREP"
5004 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5005 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5006 if test "${ac_cv_header_stdc+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h. */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5015 #include <stdlib.h>
5016 #include <stdarg.h>
5017 #include <string.h>
5018 #include <float.h>
5021 main ()
5025 return 0;
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5030 case "(($ac_try" in
5031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032 *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035 (eval "$ac_compile") 2>conftest.er1
5036 ac_status=$?
5037 grep -v '^ *+' conftest.er1 >conftest.err
5038 rm -f conftest.er1
5039 cat conftest.err >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); } && {
5042 test -z "$ac_c_werror_flag" ||
5043 test ! -s conftest.err
5044 } && test -s conftest.$ac_objext; then
5045 ac_cv_header_stdc=yes
5046 else
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5050 ac_cv_header_stdc=no
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 if test $ac_cv_header_stdc = yes; then
5056 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5057 cat >conftest.$ac_ext <<_ACEOF
5058 /* confdefs.h. */
5059 _ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5063 #include <string.h>
5065 _ACEOF
5066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5067 $EGREP "memchr" >/dev/null 2>&1; then
5069 else
5070 ac_cv_header_stdc=no
5072 rm -f conftest*
5076 if test $ac_cv_header_stdc = yes; then
5077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5078 cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h. */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h. */
5084 #include <stdlib.h>
5086 _ACEOF
5087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5088 $EGREP "free" >/dev/null 2>&1; then
5090 else
5091 ac_cv_header_stdc=no
5093 rm -f conftest*
5097 if test $ac_cv_header_stdc = yes; then
5098 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5099 if test "$cross_compiling" = yes; then
5101 else
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <ctype.h>
5109 #include <stdlib.h>
5110 #if ((' ' & 0x0FF) == 0x020)
5111 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5112 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5113 #else
5114 # define ISLOWER(c) \
5115 (('a' <= (c) && (c) <= 'i') \
5116 || ('j' <= (c) && (c) <= 'r') \
5117 || ('s' <= (c) && (c) <= 'z'))
5118 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5119 #endif
5121 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5123 main ()
5125 int i;
5126 for (i = 0; i < 256; i++)
5127 if (XOR (islower (i), ISLOWER (i))
5128 || toupper (i) != TOUPPER (i))
5129 return 2;
5130 return 0;
5132 _ACEOF
5133 rm -f conftest$ac_exeext
5134 if { (ac_try="$ac_link"
5135 case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138 esac
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140 (eval "$ac_link") 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5144 { (case "(($ac_try" in
5145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5146 *) ac_try_echo=$ac_try;;
5147 esac
5148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5149 (eval "$ac_try") 2>&5
5150 ac_status=$?
5151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152 (exit $ac_status); }; }; then
5154 else
5155 echo "$as_me: program exited with status $ac_status" >&5
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 ( exit $ac_status )
5160 ac_cv_header_stdc=no
5162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5168 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5169 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5170 if test $ac_cv_header_stdc = yes; then
5172 cat >>confdefs.h <<\_ACEOF
5173 #define STDC_HEADERS 1
5174 _ACEOF
5178 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5188 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5189 inttypes.h stdint.h unistd.h
5191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 else
5197 cat >conftest.$ac_ext <<_ACEOF
5198 /* confdefs.h. */
5199 _ACEOF
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 $ac_includes_default
5205 #include <$ac_header>
5206 _ACEOF
5207 rm -f conftest.$ac_objext
5208 if { (ac_try="$ac_compile"
5209 case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212 esac
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_compile") 2>conftest.er1
5215 ac_status=$?
5216 grep -v '^ *+' conftest.er1 >conftest.err
5217 rm -f conftest.er1
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } && {
5221 test -z "$ac_c_werror_flag" ||
5222 test ! -s conftest.err
5223 } && test -s conftest.$ac_objext; then
5224 eval "$as_ac_Header=yes"
5225 else
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5229 eval "$as_ac_Header=no"
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 ac_res=`eval echo '${'$as_ac_Header'}'`
5235 { echo "$as_me:$LINENO: result: $ac_res" >&5
5236 echo "${ECHO_T}$ac_res" >&6; }
5237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5238 cat >>confdefs.h <<_ACEOF
5239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240 _ACEOF
5244 done
5251 for ac_header in procfs.h sys/procfs.h sys/loadavg.h utmpx.h
5253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5258 echo $ECHO_N "(cached) $ECHO_C" >&6
5260 ac_res=`eval echo '${'$as_ac_Header'}'`
5261 { echo "$as_me:$LINENO: result: $ac_res" >&5
5262 echo "${ECHO_T}$ac_res" >&6; }
5263 else
5264 # Is the header compilable?
5265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5267 cat >conftest.$ac_ext <<_ACEOF
5268 /* confdefs.h. */
5269 _ACEOF
5270 cat confdefs.h >>conftest.$ac_ext
5271 cat >>conftest.$ac_ext <<_ACEOF
5272 /* end confdefs.h. */
5273 $ac_includes_default
5274 #include <$ac_header>
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (ac_try="$ac_compile"
5278 case "(($ac_try" in
5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280 *) ac_try_echo=$ac_try;;
5281 esac
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283 (eval "$ac_compile") 2>conftest.er1
5284 ac_status=$?
5285 grep -v '^ *+' conftest.er1 >conftest.err
5286 rm -f conftest.er1
5287 cat conftest.err >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); } && {
5290 test -z "$ac_c_werror_flag" ||
5291 test ! -s conftest.err
5292 } && test -s conftest.$ac_objext; then
5293 ac_header_compiler=yes
5294 else
5295 echo "$as_me: failed program was:" >&5
5296 sed 's/^/| /' conftest.$ac_ext >&5
5298 ac_header_compiler=no
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5303 echo "${ECHO_T}$ac_header_compiler" >&6; }
5305 # Is the header present?
5306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <$ac_header>
5315 _ACEOF
5316 if { (ac_try="$ac_cpp conftest.$ac_ext"
5317 case "(($ac_try" in
5318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5319 *) ac_try_echo=$ac_try;;
5320 esac
5321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } >/dev/null && {
5329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5330 test ! -s conftest.err
5331 }; then
5332 ac_header_preproc=yes
5333 else
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 ac_header_preproc=no
5340 rm -f conftest.err conftest.$ac_ext
5341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5342 echo "${ECHO_T}$ac_header_preproc" >&6; }
5344 # So? What about this header?
5345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5346 yes:no: )
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5351 ac_header_preproc=yes
5353 no:yes:* )
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5366 ( cat <<\_ASBOX
5367 ## ------------------------------------------- ##
5368 ## Report this to lcdproc@lists.omnipotent.net ##
5369 ## ------------------------------------------- ##
5370 _ASBOX
5371 ) | sed "s/^/$as_me: WARNING: /" >&2
5373 esac
5374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 else
5379 eval "$as_ac_Header=\$ac_header_preproc"
5381 ac_res=`eval echo '${'$as_ac_Header'}'`
5382 { echo "$as_me:$LINENO: result: $ac_res" >&5
5383 echo "${ECHO_T}$ac_res" >&6; }
5386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389 _ACEOF
5393 done
5396 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
5397 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
5398 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 else
5401 ac_check_lib_save_LIBS=$LIBS
5402 LIBS="-lkvm $LIBS"
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5410 /* Override any GCC internal prototype to avoid an error.
5411 Use char because int might match the return type of a GCC
5412 builtin and then its argument prototype would still apply. */
5413 #ifdef __cplusplus
5414 extern "C"
5415 #endif
5416 char kvm_open ();
5418 main ()
5420 return kvm_open ();
5422 return 0;
5424 _ACEOF
5425 rm -f conftest.$ac_objext conftest$ac_exeext
5426 if { (ac_try="$ac_link"
5427 case "(($ac_try" in
5428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5429 *) ac_try_echo=$ac_try;;
5430 esac
5431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5432 (eval "$ac_link") 2>conftest.er1
5433 ac_status=$?
5434 grep -v '^ *+' conftest.er1 >conftest.err
5435 rm -f conftest.er1
5436 cat conftest.err >&5
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && {
5439 test -z "$ac_c_werror_flag" ||
5440 test ! -s conftest.err
5441 } && test -s conftest$ac_exeext &&
5442 $as_test_x conftest$ac_exeext; then
5443 ac_cv_lib_kvm_kvm_open=yes
5444 else
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 ac_cv_lib_kvm_kvm_open=no
5451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5452 conftest$ac_exeext conftest.$ac_ext
5453 LIBS=$ac_check_lib_save_LIBS
5455 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
5456 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
5457 if test $ac_cv_lib_kvm_kvm_open = yes; then
5459 LIBS="-lkvm $LIBS"
5461 else
5462 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm with -lelf" >&5
5463 echo $ECHO_N "checking for kvm_open in -lkvm with -lelf... $ECHO_C" >&6; }
5464 if test "${ac_cv_lib_kvm_with_elf+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 else
5467 ac_save_LIBS="$LIBS"
5468 LIBS="-lkvm -lelf $LIBS"
5469 cat >conftest.$ac_ext <<_ACEOF
5470 /* confdefs.h. */
5471 _ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5475 char kvm_open();
5477 main ()
5479 kvm_open()
5481 return 0;
5483 _ACEOF
5484 rm -f conftest.$ac_objext conftest$ac_exeext
5485 if { (ac_try="$ac_link"
5486 case "(($ac_try" in
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5489 esac
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_link") 2>conftest.er1
5492 ac_status=$?
5493 grep -v '^ *+' conftest.er1 >conftest.err
5494 rm -f conftest.er1
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest$ac_exeext &&
5501 $as_test_x conftest$ac_exeext; then
5502 ac_cv_lib_kvm_with_elf=yes
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5507 ac_cv_lib_kvm_with_elf=no
5510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5511 conftest$ac_exeext conftest.$ac_ext
5512 LIBS="$ac_save_LIBS"
5516 if test "$ac_cv_lib_kvm_with_elf" = "yes"; then
5517 { echo "$as_me:$LINENO: result: yes" >&5
5518 echo "${ECHO_T}yes" >&6; }
5519 LIBS="-lkvm -lelf $LIBS"
5520 else
5521 { echo "$as_me:$LINENO: result: no" >&5
5522 echo "${ECHO_T}no" >&6; }
5535 for ac_header in sched.h sys/sched.h machine/cpufunc.h sys/types.h machine/pio.h machine/sysarch.h sys/cpuvar.h
5537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 ac_res=`eval echo '${'$as_ac_Header'}'`
5545 { echo "$as_me:$LINENO: result: $ac_res" >&5
5546 echo "${ECHO_T}$ac_res" >&6; }
5547 else
5548 # Is the header compilable?
5549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 $ac_includes_default
5558 #include <$ac_header>
5559 _ACEOF
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_header_compiler=yes
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5582 ac_header_compiler=no
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5587 echo "${ECHO_T}$ac_header_compiler" >&6; }
5589 # Is the header present?
5590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5592 cat >conftest.$ac_ext <<_ACEOF
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 #include <$ac_header>
5599 _ACEOF
5600 if { (ac_try="$ac_cpp conftest.$ac_ext"
5601 case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } >/dev/null && {
5613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 }; then
5616 ac_header_preproc=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5621 ac_header_preproc=no
5624 rm -f conftest.err conftest.$ac_ext
5625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5626 echo "${ECHO_T}$ac_header_preproc" >&6; }
5628 # So? What about this header?
5629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5630 yes:no: )
5631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5635 ac_header_preproc=yes
5637 no:yes:* )
5638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5650 ( cat <<\_ASBOX
5651 ## ------------------------------------------- ##
5652 ## Report this to lcdproc@lists.omnipotent.net ##
5653 ## ------------------------------------------- ##
5654 _ASBOX
5655 ) | sed "s/^/$as_me: WARNING: /" >&2
5657 esac
5658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 else
5663 eval "$as_ac_Header=\$ac_header_preproc"
5665 ac_res=`eval echo '${'$as_ac_Header'}'`
5666 { echo "$as_me:$LINENO: result: $ac_res" >&5
5667 echo "${ECHO_T}$ac_res" >&6; }
5670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5671 cat >>confdefs.h <<_ACEOF
5672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5673 _ACEOF
5677 done
5680 { echo "$as_me:$LINENO: checking for System V IPC headers" >&5
5681 echo $ECHO_N "checking for System V IPC headers... $ECHO_C" >&6; }
5682 if test "${ac_cv_sysv_ipc+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5686 cat >conftest.$ac_ext <<_ACEOF
5687 /* confdefs.h. */
5688 _ACEOF
5689 cat confdefs.h >>conftest.$ac_ext
5690 cat >>conftest.$ac_ext <<_ACEOF
5691 /* end confdefs.h. */
5693 #include <sys/types.h>
5694 #include <sys/ipc.h>
5695 #include <sys/msg.h>
5696 #include <sys/sem.h>
5697 #include <sys/shm.h>
5700 main ()
5704 return 0;
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (ac_try="$ac_compile"
5709 case "(($ac_try" in
5710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711 *) ac_try_echo=$ac_try;;
5712 esac
5713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5714 (eval "$ac_compile") 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && {
5721 test -z "$ac_c_werror_flag" ||
5722 test ! -s conftest.err
5723 } && test -s conftest.$ac_objext; then
5724 ac_cv_sysv_ipc=yes
5725 else
5726 echo "$as_me: failed program was:" >&5
5727 sed 's/^/| /' conftest.$ac_ext >&5
5729 ac_cv_sysv_ipc=no
5732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 { echo "$as_me:$LINENO: result: $ac_cv_sysv_ipc" >&5
5736 echo "${ECHO_T}$ac_cv_sysv_ipc" >&6; }
5738 if test x"$ac_cv_sysv_ipc" = "xyes"
5739 then
5741 cat >>confdefs.h <<\_ACEOF
5742 #define HAVE_SYSV_IPC 1
5743 _ACEOF
5748 { echo "$as_me:$LINENO: checking for union semun" >&5
5749 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
5750 if test "${ac_cv_union_semun+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5761 #include <sys/types.h>
5762 #include <sys/ipc.h>
5763 #include <sys/sem.h>
5766 main ()
5768 union semun s
5770 return 0;
5772 _ACEOF
5773 rm -f conftest.$ac_objext
5774 if { (ac_try="$ac_compile"
5775 case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && {
5787 test -z "$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5789 } && test -s conftest.$ac_objext; then
5790 ac_cv_union_semun=yes
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 ac_cv_union_semun=no
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5801 { echo "$as_me:$LINENO: result: $ac_cv_union_semun" >&5
5802 echo "${ECHO_T}$ac_cv_union_semun" >&6; }
5804 if test x"$ac_cv_union_semun" = "xyes"
5805 then
5807 cat >>confdefs.h <<\_ACEOF
5808 #define HAVE_UNION_SEMUN 1
5809 _ACEOF
5815 for ac_func in sched_setscheduler
5817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5831 #define $ac_func innocuous_$ac_func
5833 /* System header to define __stub macros and hopefully few prototypes,
5834 which can conflict with char $ac_func (); below.
5835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5836 <limits.h> exists even on freestanding compilers. */
5838 #ifdef __STDC__
5839 # include <limits.h>
5840 #else
5841 # include <assert.h>
5842 #endif
5844 #undef $ac_func
5846 /* Override any GCC internal prototype to avoid an error.
5847 Use char because int might match the return type of a GCC
5848 builtin and then its argument prototype would still apply. */
5849 #ifdef __cplusplus
5850 extern "C"
5851 #endif
5852 char $ac_func ();
5853 /* The GNU C library defines this for functions which it implements
5854 to always fail with ENOSYS. Some functions are actually named
5855 something starting with __ and the normal name is an alias. */
5856 #if defined __stub_$ac_func || defined __stub___$ac_func
5857 choke me
5858 #endif
5861 main ()
5863 return $ac_func ();
5865 return 0;
5867 _ACEOF
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (ac_try="$ac_link"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_link") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest$ac_exeext &&
5885 $as_test_x conftest$ac_exeext; then
5886 eval "$as_ac_var=yes"
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 eval "$as_ac_var=no"
5894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5895 conftest$ac_exeext conftest.$ac_ext
5897 ac_res=`eval echo '${'$as_ac_var'}'`
5898 { echo "$as_me:$LINENO: result: $ac_res" >&5
5899 echo "${ECHO_T}$ac_res" >&6; }
5900 if test `eval echo '${'$as_ac_var'}'` = yes; then
5901 cat >>confdefs.h <<_ACEOF
5902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5903 _ACEOF
5906 done
5908 { echo "$as_me:$LINENO: checking for sched_setscheduler in -lposix4" >&5
5909 echo $ECHO_N "checking for sched_setscheduler in -lposix4... $ECHO_C" >&6; }
5910 if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913 ac_check_lib_save_LIBS=$LIBS
5914 LIBS="-lposix4 $LIBS"
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5922 /* Override any GCC internal prototype to avoid an error.
5923 Use char because int might match the return type of a GCC
5924 builtin and then its argument prototype would still apply. */
5925 #ifdef __cplusplus
5926 extern "C"
5927 #endif
5928 char sched_setscheduler ();
5930 main ()
5932 return sched_setscheduler ();
5934 return 0;
5936 _ACEOF
5937 rm -f conftest.$ac_objext conftest$ac_exeext
5938 if { (ac_try="$ac_link"
5939 case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942 esac
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_link") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest$ac_exeext &&
5954 $as_test_x conftest$ac_exeext; then
5955 ac_cv_lib_posix4_sched_setscheduler=yes
5956 else
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5960 ac_cv_lib_posix4_sched_setscheduler=no
5963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5964 conftest$ac_exeext conftest.$ac_ext
5965 LIBS=$ac_check_lib_save_LIBS
5967 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
5968 echo "${ECHO_T}$ac_cv_lib_posix4_sched_setscheduler" >&6; }
5969 if test $ac_cv_lib_posix4_sched_setscheduler = yes; then
5972 cat >>confdefs.h <<\_ACEOF
5973 #define HAVE_SCHED_SETSCHEDULER 1
5974 _ACEOF
5979 { echo "$as_me:$LINENO: checking for sched_setscheduler in -lrt" >&5
5980 echo $ECHO_N "checking for sched_setscheduler in -lrt... $ECHO_C" >&6; }
5981 if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 ac_check_lib_save_LIBS=$LIBS
5985 LIBS="-lrt $LIBS"
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5993 /* Override any GCC internal prototype to avoid an error.
5994 Use char because int might match the return type of a GCC
5995 builtin and then its argument prototype would still apply. */
5996 #ifdef __cplusplus
5997 extern "C"
5998 #endif
5999 char sched_setscheduler ();
6001 main ()
6003 return sched_setscheduler ();
6005 return 0;
6007 _ACEOF
6008 rm -f conftest.$ac_objext conftest$ac_exeext
6009 if { (ac_try="$ac_link"
6010 case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015 (eval "$ac_link") 2>conftest.er1
6016 ac_status=$?
6017 grep -v '^ *+' conftest.er1 >conftest.err
6018 rm -f conftest.er1
6019 cat conftest.err >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); } && {
6022 test -z "$ac_c_werror_flag" ||
6023 test ! -s conftest.err
6024 } && test -s conftest$ac_exeext &&
6025 $as_test_x conftest$ac_exeext; then
6026 ac_cv_lib_rt_sched_setscheduler=yes
6027 else
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 ac_cv_lib_rt_sched_setscheduler=no
6034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6035 conftest$ac_exeext conftest.$ac_ext
6036 LIBS=$ac_check_lib_save_LIBS
6038 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_setscheduler" >&5
6039 echo "${ECHO_T}$ac_cv_lib_rt_sched_setscheduler" >&6; }
6040 if test $ac_cv_lib_rt_sched_setscheduler = yes; then
6043 cat >>confdefs.h <<\_ACEOF
6044 #define HAVE_SCHED_SETSCHEDULER 1
6045 _ACEOF
6051 { echo "$as_me:$LINENO: checking for i386_get_ioperm in -li386" >&5
6052 echo $ECHO_N "checking for i386_get_ioperm in -li386... $ECHO_C" >&6; }
6053 if test "${ac_cv_lib_i386_i386_get_ioperm+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 ac_check_lib_save_LIBS=$LIBS
6057 LIBS="-li386 $LIBS"
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6065 /* Override any GCC internal prototype to avoid an error.
6066 Use char because int might match the return type of a GCC
6067 builtin and then its argument prototype would still apply. */
6068 #ifdef __cplusplus
6069 extern "C"
6070 #endif
6071 char i386_get_ioperm ();
6073 main ()
6075 return i386_get_ioperm ();
6077 return 0;
6079 _ACEOF
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (ac_try="$ac_link"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_link") 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_c_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest$ac_exeext &&
6097 $as_test_x conftest$ac_exeext; then
6098 ac_cv_lib_i386_i386_get_ioperm=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_cv_lib_i386_i386_get_ioperm=no
6106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6107 conftest$ac_exeext conftest.$ac_ext
6108 LIBS=$ac_check_lib_save_LIBS
6110 { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_get_ioperm" >&5
6111 echo "${ECHO_T}$ac_cv_lib_i386_i386_get_ioperm" >&6; }
6112 if test $ac_cv_lib_i386_i386_get_ioperm = yes; then
6113 LIBS="-li386 $LIBS"
6115 cat >>confdefs.h <<\_ACEOF
6116 #define HAVE_I386_IOPERM_NETBSD 1
6117 _ACEOF
6119 else
6121 { echo "$as_me:$LINENO: checking for i386_get_ioperm in -lc" >&5
6122 echo $ECHO_N "checking for i386_get_ioperm in -lc... $ECHO_C" >&6; }
6123 if test "${ac_cv_lib_c_i386_get_ioperm+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 ac_check_lib_save_LIBS=$LIBS
6127 LIBS="-lc $LIBS"
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6135 /* Override any GCC internal prototype to avoid an error.
6136 Use char because int might match the return type of a GCC
6137 builtin and then its argument prototype would still apply. */
6138 #ifdef __cplusplus
6139 extern "C"
6140 #endif
6141 char i386_get_ioperm ();
6143 main ()
6145 return i386_get_ioperm ();
6147 return 0;
6149 _ACEOF
6150 rm -f conftest.$ac_objext conftest$ac_exeext
6151 if { (ac_try="$ac_link"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_link") 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } && {
6164 test -z "$ac_c_werror_flag" ||
6165 test ! -s conftest.err
6166 } && test -s conftest$ac_exeext &&
6167 $as_test_x conftest$ac_exeext; then
6168 ac_cv_lib_c_i386_get_ioperm=yes
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6173 ac_cv_lib_c_i386_get_ioperm=no
6176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6177 conftest$ac_exeext conftest.$ac_ext
6178 LIBS=$ac_check_lib_save_LIBS
6180 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_i386_get_ioperm" >&5
6181 echo "${ECHO_T}$ac_cv_lib_c_i386_get_ioperm" >&6; }
6182 if test $ac_cv_lib_c_i386_get_ioperm = yes; then
6184 cat >>confdefs.h <<\_ACEOF
6185 #define HAVE_I386_IOPERM_FREEBSD 1
6186 _ACEOF
6195 for ac_func in iopl
6197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6211 #define $ac_func innocuous_$ac_func
6213 /* System header to define __stub macros and hopefully few prototypes,
6214 which can conflict with char $ac_func (); below.
6215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6216 <limits.h> exists even on freestanding compilers. */
6218 #ifdef __STDC__
6219 # include <limits.h>
6220 #else
6221 # include <assert.h>
6222 #endif
6224 #undef $ac_func
6226 /* Override any GCC internal prototype to avoid an error.
6227 Use char because int might match the return type of a GCC
6228 builtin and then its argument prototype would still apply. */
6229 #ifdef __cplusplus
6230 extern "C"
6231 #endif
6232 char $ac_func ();
6233 /* The GNU C library defines this for functions which it implements
6234 to always fail with ENOSYS. Some functions are actually named
6235 something starting with __ and the normal name is an alias. */
6236 #if defined __stub_$ac_func || defined __stub___$ac_func
6237 choke me
6238 #endif
6241 main ()
6243 return $ac_func ();
6245 return 0;
6247 _ACEOF
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (ac_try="$ac_link"
6250 case "(($ac_try" in
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6253 esac
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_link") 2>conftest.er1
6256 ac_status=$?
6257 grep -v '^ *+' conftest.er1 >conftest.err
6258 rm -f conftest.er1
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && {
6262 test -z "$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 } && test -s conftest$ac_exeext &&
6265 $as_test_x conftest$ac_exeext; then
6266 eval "$as_ac_var=yes"
6267 else
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6271 eval "$as_ac_var=no"
6274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6275 conftest$ac_exeext conftest.$ac_ext
6277 ac_res=`eval echo '${'$as_ac_var'}'`
6278 { echo "$as_me:$LINENO: result: $ac_res" >&5
6279 echo "${ECHO_T}$ac_res" >&6; }
6280 if test `eval echo '${'$as_ac_var'}'` = yes; then
6281 cat >>confdefs.h <<_ACEOF
6282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6283 _ACEOF
6286 done
6289 for ac_func in ioperm
6291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6305 #define $ac_func innocuous_$ac_func
6307 /* System header to define __stub macros and hopefully few prototypes,
6308 which can conflict with char $ac_func (); below.
6309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6310 <limits.h> exists even on freestanding compilers. */
6312 #ifdef __STDC__
6313 # include <limits.h>
6314 #else
6315 # include <assert.h>
6316 #endif
6318 #undef $ac_func
6320 /* Override any GCC internal prototype to avoid an error.
6321 Use char because int might match the return type of a GCC
6322 builtin and then its argument prototype would still apply. */
6323 #ifdef __cplusplus
6324 extern "C"
6325 #endif
6326 char $ac_func ();
6327 /* The GNU C library defines this for functions which it implements
6328 to always fail with ENOSYS. Some functions are actually named
6329 something starting with __ and the normal name is an alias. */
6330 #if defined __stub_$ac_func || defined __stub___$ac_func
6331 choke me
6332 #endif
6335 main ()
6337 return $ac_func ();
6339 return 0;
6341 _ACEOF
6342 rm -f conftest.$ac_objext conftest$ac_exeext
6343 if { (ac_try="$ac_link"
6344 case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_link") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest$ac_exeext &&
6359 $as_test_x conftest$ac_exeext; then
6360 eval "$as_ac_var=yes"
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 eval "$as_ac_var=no"
6368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6369 conftest$ac_exeext conftest.$ac_ext
6371 ac_res=`eval echo '${'$as_ac_var'}'`
6372 { echo "$as_me:$LINENO: result: $ac_res" >&5
6373 echo "${ECHO_T}$ac_res" >&6; }
6374 if test `eval echo '${'$as_ac_var'}'` = yes; then
6375 cat >>confdefs.h <<_ACEOF
6376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6377 _ACEOF
6380 done
6383 for ac_header in sys/io.h
6385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 ac_res=`eval echo '${'$as_ac_Header'}'`
6393 { echo "$as_me:$LINENO: result: $ac_res" >&5
6394 echo "${ECHO_T}$ac_res" >&6; }
6395 else
6396 # Is the header compilable?
6397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6399 cat >conftest.$ac_ext <<_ACEOF
6400 /* confdefs.h. */
6401 _ACEOF
6402 cat confdefs.h >>conftest.$ac_ext
6403 cat >>conftest.$ac_ext <<_ACEOF
6404 /* end confdefs.h. */
6405 $ac_includes_default
6406 #include <$ac_header>
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (ac_try="$ac_compile"
6410 case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413 esac
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_compile") 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } && {
6422 test -z "$ac_c_werror_flag" ||
6423 test ! -s conftest.err
6424 } && test -s conftest.$ac_objext; then
6425 ac_header_compiler=yes
6426 else
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6430 ac_header_compiler=no
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6435 echo "${ECHO_T}$ac_header_compiler" >&6; }
6437 # Is the header present?
6438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h. */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6446 #include <$ac_header>
6447 _ACEOF
6448 if { (ac_try="$ac_cpp conftest.$ac_ext"
6449 case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452 esac
6453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6455 ac_status=$?
6456 grep -v '^ *+' conftest.er1 >conftest.err
6457 rm -f conftest.er1
6458 cat conftest.err >&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } >/dev/null && {
6461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6463 }; then
6464 ac_header_preproc=yes
6465 else
6466 echo "$as_me: failed program was:" >&5
6467 sed 's/^/| /' conftest.$ac_ext >&5
6469 ac_header_preproc=no
6472 rm -f conftest.err conftest.$ac_ext
6473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6474 echo "${ECHO_T}$ac_header_preproc" >&6; }
6476 # So? What about this header?
6477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6478 yes:no: )
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6483 ac_header_preproc=yes
6485 no:yes:* )
6486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6498 ( cat <<\_ASBOX
6499 ## ------------------------------------------- ##
6500 ## Report this to lcdproc@lists.omnipotent.net ##
6501 ## ------------------------------------------- ##
6502 _ASBOX
6503 ) | sed "s/^/$as_me: WARNING: /" >&2
6505 esac
6506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 else
6511 eval "$as_ac_Header=\$ac_header_preproc"
6513 ac_res=`eval echo '${'$as_ac_Header'}'`
6514 { echo "$as_me:$LINENO: result: $ac_res" >&5
6515 echo "${ECHO_T}$ac_res" >&6; }
6518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6519 cat >>confdefs.h <<_ACEOF
6520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6521 _ACEOF
6525 done
6528 { echo "$as_me:$LINENO: checking for a parallel port" >&5
6529 echo $ECHO_N "checking for a parallel port... $ECHO_C" >&6; }
6530 if test "${ac_cv_port_have_lpt+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 cat >conftest.$ac_ext <<_ACEOF
6534 /* confdefs.h. */
6535 _ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 #include "${srcdir}/server/drivers/port.h"
6541 main ()
6543 char val = port_in(0x350)
6545 return 0;
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6550 case "(($ac_try" in
6551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552 *) ac_try_echo=$ac_try;;
6553 esac
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_compile") 2>conftest.er1
6556 ac_status=$?
6557 grep -v '^ *+' conftest.er1 >conftest.err
6558 rm -f conftest.er1
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest.$ac_objext; then
6565 ac_cv_port_have_lpt=yes
6566 else
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 ac_cv_port_have_lpt=no
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 { echo "$as_me:$LINENO: result: $ac_cv_port_have_lpt" >&5
6576 echo "${ECHO_T}$ac_cv_port_have_lpt" >&6; }
6578 if test "$ac_cv_port_have_lpt" = yes
6579 then
6581 cat >>confdefs.h <<\_ACEOF
6582 #define HAVE_PCSTYLE_LPT_CONTROL 1
6583 _ACEOF
6585 else
6586 { echo "$as_me:$LINENO: WARNING: Can't talk to the parallel port, disabling drivers that use it." >&5
6587 echo "$as_me: WARNING: Can't talk to the parallel port, disabling drivers that use it." >&2;}
6595 ac_header_dirent=no
6596 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6597 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6598 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6599 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
6600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603 cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h. */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <sys/types.h>
6610 #include <$ac_hdr>
6613 main ()
6615 if ((DIR *) 0)
6616 return 0;
6618 return 0;
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (ac_try="$ac_compile"
6623 case "(($ac_try" in
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6626 esac
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.$ac_objext; then
6638 eval "$as_ac_Header=yes"
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 eval "$as_ac_Header=no"
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 ac_res=`eval echo '${'$as_ac_Header'}'`
6649 { echo "$as_me:$LINENO: result: $ac_res" >&5
6650 echo "${ECHO_T}$ac_res" >&6; }
6651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6652 cat >>confdefs.h <<_ACEOF
6653 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6654 _ACEOF
6656 ac_header_dirent=$ac_hdr; break
6659 done
6660 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6661 if test $ac_header_dirent = dirent.h; then
6662 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6664 if test "${ac_cv_search_opendir+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 ac_func_search_save_LIBS=$LIBS
6668 cat >conftest.$ac_ext <<_ACEOF
6669 /* confdefs.h. */
6670 _ACEOF
6671 cat confdefs.h >>conftest.$ac_ext
6672 cat >>conftest.$ac_ext <<_ACEOF
6673 /* end confdefs.h. */
6675 /* Override any GCC internal prototype to avoid an error.
6676 Use char because int might match the return type of a GCC
6677 builtin and then its argument prototype would still apply. */
6678 #ifdef __cplusplus
6679 extern "C"
6680 #endif
6681 char opendir ();
6683 main ()
6685 return opendir ();
6687 return 0;
6689 _ACEOF
6690 for ac_lib in '' dir; do
6691 if test -z "$ac_lib"; then
6692 ac_res="none required"
6693 else
6694 ac_res=-l$ac_lib
6695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>conftest.er1
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); } && {
6711 test -z "$ac_c_werror_flag" ||
6712 test ! -s conftest.err
6713 } && test -s conftest$ac_exeext &&
6714 $as_test_x conftest$ac_exeext; then
6715 ac_cv_search_opendir=$ac_res
6716 else
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6724 conftest$ac_exeext
6725 if test "${ac_cv_search_opendir+set}" = set; then
6726 break
6728 done
6729 if test "${ac_cv_search_opendir+set}" = set; then
6731 else
6732 ac_cv_search_opendir=no
6734 rm conftest.$ac_ext
6735 LIBS=$ac_func_search_save_LIBS
6737 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6738 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6739 ac_res=$ac_cv_search_opendir
6740 if test "$ac_res" != no; then
6741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6745 else
6746 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
6747 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
6748 if test "${ac_cv_search_opendir+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751 ac_func_search_save_LIBS=$LIBS
6752 cat >conftest.$ac_ext <<_ACEOF
6753 /* confdefs.h. */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6759 /* Override any GCC internal prototype to avoid an error.
6760 Use char because int might match the return type of a GCC
6761 builtin and then its argument prototype would still apply. */
6762 #ifdef __cplusplus
6763 extern "C"
6764 #endif
6765 char opendir ();
6767 main ()
6769 return opendir ();
6771 return 0;
6773 _ACEOF
6774 for ac_lib in '' x; do
6775 if test -z "$ac_lib"; then
6776 ac_res="none required"
6777 else
6778 ac_res=-l$ac_lib
6779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6781 rm -f conftest.$ac_objext conftest$ac_exeext
6782 if { (ac_try="$ac_link"
6783 case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786 esac
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_link") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest$ac_exeext &&
6798 $as_test_x conftest$ac_exeext; then
6799 ac_cv_search_opendir=$ac_res
6800 else
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6808 conftest$ac_exeext
6809 if test "${ac_cv_search_opendir+set}" = set; then
6810 break
6812 done
6813 if test "${ac_cv_search_opendir+set}" = set; then
6815 else
6816 ac_cv_search_opendir=no
6818 rm conftest.$ac_ext
6819 LIBS=$ac_func_search_save_LIBS
6821 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6822 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6823 ac_res=$ac_cv_search_opendir
6824 if test "$ac_res" != no; then
6825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6831 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6833 if test "${ac_cv_header_stdc+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 else
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h. */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 #include <stdlib.h>
6843 #include <stdarg.h>
6844 #include <string.h>
6845 #include <float.h>
6848 main ()
6852 return 0;
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (ac_try="$ac_compile"
6857 case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 ac_cv_header_stdc=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_cv_header_stdc=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 if test $ac_cv_header_stdc = yes; then
6883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 #include <string.h>
6892 _ACEOF
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "memchr" >/dev/null 2>&1; then
6896 else
6897 ac_cv_header_stdc=no
6899 rm -f conftest*
6903 if test $ac_cv_header_stdc = yes; then
6904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6905 cat >conftest.$ac_ext <<_ACEOF
6906 /* confdefs.h. */
6907 _ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6911 #include <stdlib.h>
6913 _ACEOF
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "free" >/dev/null 2>&1; then
6917 else
6918 ac_cv_header_stdc=no
6920 rm -f conftest*
6924 if test $ac_cv_header_stdc = yes; then
6925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6926 if test "$cross_compiling" = yes; then
6928 else
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <ctype.h>
6936 #include <stdlib.h>
6937 #if ((' ' & 0x0FF) == 0x020)
6938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6940 #else
6941 # define ISLOWER(c) \
6942 (('a' <= (c) && (c) <= 'i') \
6943 || ('j' <= (c) && (c) <= 'r') \
6944 || ('s' <= (c) && (c) <= 'z'))
6945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6946 #endif
6948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6950 main ()
6952 int i;
6953 for (i = 0; i < 256; i++)
6954 if (XOR (islower (i), ISLOWER (i))
6955 || toupper (i) != TOUPPER (i))
6956 return 2;
6957 return 0;
6959 _ACEOF
6960 rm -f conftest$ac_exeext
6961 if { (ac_try="$ac_link"
6962 case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965 esac
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_link") 2>&5
6968 ac_status=$?
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6971 { (case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_try") 2>&5
6977 ac_status=$?
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; }; then
6981 else
6982 echo "$as_me: program exited with status $ac_status" >&5
6983 echo "$as_me: failed program was:" >&5
6984 sed 's/^/| /' conftest.$ac_ext >&5
6986 ( exit $ac_status )
6987 ac_cv_header_stdc=no
6989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6995 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6996 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6997 if test $ac_cv_header_stdc = yes; then
6999 cat >>confdefs.h <<\_ACEOF
7000 #define STDC_HEADERS 1
7001 _ACEOF
7011 for ac_header in fcntl.h sys/ioctl.h sys/time.h unistd.h sys/io.h errno.h
7013 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 ac_res=`eval echo '${'$as_ac_Header'}'`
7021 { echo "$as_me:$LINENO: result: $ac_res" >&5
7022 echo "${ECHO_T}$ac_res" >&6; }
7023 else
7024 # Is the header compilable?
7025 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7026 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7027 cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h. */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7033 $ac_includes_default
7034 #include <$ac_header>
7035 _ACEOF
7036 rm -f conftest.$ac_objext
7037 if { (ac_try="$ac_compile"
7038 case "(($ac_try" in
7039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7041 esac
7042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7043 (eval "$ac_compile") 2>conftest.er1
7044 ac_status=$?
7045 grep -v '^ *+' conftest.er1 >conftest.err
7046 rm -f conftest.er1
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && {
7050 test -z "$ac_c_werror_flag" ||
7051 test ! -s conftest.err
7052 } && test -s conftest.$ac_objext; then
7053 ac_header_compiler=yes
7054 else
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ac_header_compiler=no
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7063 echo "${ECHO_T}$ac_header_compiler" >&6; }
7065 # Is the header present?
7066 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #include <$ac_header>
7075 _ACEOF
7076 if { (ac_try="$ac_cpp conftest.$ac_ext"
7077 case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } >/dev/null && {
7089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 }; then
7092 ac_header_preproc=yes
7093 else
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_header_preproc=no
7100 rm -f conftest.err conftest.$ac_ext
7101 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7102 echo "${ECHO_T}$ac_header_preproc" >&6; }
7104 # So? What about this header?
7105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7106 yes:no: )
7107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7111 ac_header_preproc=yes
7113 no:yes:* )
7114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7126 ( cat <<\_ASBOX
7127 ## ------------------------------------------- ##
7128 ## Report this to lcdproc@lists.omnipotent.net ##
7129 ## ------------------------------------------- ##
7130 _ASBOX
7131 ) | sed "s/^/$as_me: WARNING: /" >&2
7133 esac
7134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 eval "$as_ac_Header=\$ac_header_preproc"
7141 ac_res=`eval echo '${'$as_ac_Header'}'`
7142 { echo "$as_me:$LINENO: result: $ac_res" >&5
7143 echo "${ECHO_T}$ac_res" >&6; }
7146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7147 cat >>confdefs.h <<_ACEOF
7148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7149 _ACEOF
7153 done
7159 for ac_header in limits.h kvm.h sys/param.h sys/dkstat.h
7161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 ac_res=`eval echo '${'$as_ac_Header'}'`
7169 { echo "$as_me:$LINENO: result: $ac_res" >&5
7170 echo "${ECHO_T}$ac_res" >&6; }
7171 else
7172 # Is the header compilable?
7173 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 $ac_includes_default
7182 #include <$ac_header>
7183 _ACEOF
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7186 case "(($ac_try" in
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7189 esac
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.$ac_objext; then
7201 ac_header_compiler=yes
7202 else
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 ac_header_compiler=no
7209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7211 echo "${ECHO_T}$ac_header_compiler" >&6; }
7213 # Is the header present?
7214 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #include <$ac_header>
7223 _ACEOF
7224 if { (ac_try="$ac_cpp conftest.$ac_ext"
7225 case "(($ac_try" in
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } >/dev/null && {
7237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 }; then
7240 ac_header_preproc=yes
7241 else
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7245 ac_header_preproc=no
7248 rm -f conftest.err conftest.$ac_ext
7249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7250 echo "${ECHO_T}$ac_header_preproc" >&6; }
7252 # So? What about this header?
7253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7254 yes:no: )
7255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7259 ac_header_preproc=yes
7261 no:yes:* )
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7274 ( cat <<\_ASBOX
7275 ## ------------------------------------------- ##
7276 ## Report this to lcdproc@lists.omnipotent.net ##
7277 ## ------------------------------------------- ##
7278 _ASBOX
7279 ) | sed "s/^/$as_me: WARNING: /" >&2
7281 esac
7282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 eval "$as_ac_Header=\$ac_header_preproc"
7289 ac_res=`eval echo '${'$as_ac_Header'}'`
7290 { echo "$as_me:$LINENO: result: $ac_res" >&5
7291 echo "${ECHO_T}$ac_res" >&6; }
7294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7295 cat >>confdefs.h <<_ACEOF
7296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7297 _ACEOF
7301 done
7305 for ac_header in sys/sysctl.h
7307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 else
7313 cat >conftest.$ac_ext <<_ACEOF
7314 /* confdefs.h. */
7315 _ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #if HAVE_SYS_PARAM_H
7320 # include <sys/param.h>
7321 #endif
7324 #include <$ac_header>
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (ac_try="$ac_compile"
7328 case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7331 esac
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_compile") 2>conftest.er1
7334 ac_status=$?
7335 grep -v '^ *+' conftest.er1 >conftest.err
7336 rm -f conftest.er1
7337 cat conftest.err >&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } && {
7340 test -z "$ac_c_werror_flag" ||
7341 test ! -s conftest.err
7342 } && test -s conftest.$ac_objext; then
7343 eval "$as_ac_Header=yes"
7344 else
7345 echo "$as_me: failed program was:" >&5
7346 sed 's/^/| /' conftest.$ac_ext >&5
7348 eval "$as_ac_Header=no"
7351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353 ac_res=`eval echo '${'$as_ac_Header'}'`
7354 { echo "$as_me:$LINENO: result: $ac_res" >&5
7355 echo "${ECHO_T}$ac_res" >&6; }
7356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7357 cat >>confdefs.h <<_ACEOF
7358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7359 _ACEOF
7363 done
7367 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7368 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7369 if test "${ac_cv_c_const+set}" = set; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7380 main ()
7382 /* FIXME: Include the comments suggested by Paul. */
7383 #ifndef __cplusplus
7384 /* Ultrix mips cc rejects this. */
7385 typedef int charset[2];
7386 const charset cs;
7387 /* SunOS 4.1.1 cc rejects this. */
7388 char const *const *pcpcc;
7389 char **ppc;
7390 /* NEC SVR4.0.2 mips cc rejects this. */
7391 struct point {int x, y;};
7392 static struct point const zero = {0,0};
7393 /* AIX XL C 1.02.0.0 rejects this.
7394 It does not let you subtract one const X* pointer from another in
7395 an arm of an if-expression whose if-part is not a constant
7396 expression */
7397 const char *g = "string";
7398 pcpcc = &g + (g ? g-g : 0);
7399 /* HPUX 7.0 cc rejects these. */
7400 ++pcpcc;
7401 ppc = (char**) pcpcc;
7402 pcpcc = (char const *const *) ppc;
7403 { /* SCO 3.2v4 cc rejects this. */
7404 char *t;
7405 char const *s = 0 ? (char *) 0 : (char const *) 0;
7407 *t++ = 0;
7408 if (s) return 0;
7410 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7411 int x[] = {25, 17};
7412 const int *foo = &x[0];
7413 ++foo;
7415 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7416 typedef const int *iptr;
7417 iptr p = 0;
7418 ++p;
7420 { /* AIX XL C 1.02.0.0 rejects this saying
7421 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7422 struct s { int j; const int *ap[3]; };
7423 struct s *b; b->j = 5;
7425 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7426 const int foo = 10;
7427 if (!foo) return 0;
7429 return !cs[0] && !zero.x;
7430 #endif
7433 return 0;
7435 _ACEOF
7436 rm -f conftest.$ac_objext
7437 if { (ac_try="$ac_compile"
7438 case "(($ac_try" in
7439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440 *) ac_try_echo=$ac_try;;
7441 esac
7442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443 (eval "$ac_compile") 2>conftest.er1
7444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } && {
7450 test -z "$ac_c_werror_flag" ||
7451 test ! -s conftest.err
7452 } && test -s conftest.$ac_objext; then
7453 ac_cv_c_const=yes
7454 else
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 ac_cv_c_const=no
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7464 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7465 if test $ac_cv_c_const = no; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define const
7469 _ACEOF
7473 { echo "$as_me:$LINENO: checking for inline" >&5
7474 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7475 if test "${ac_cv_c_inline+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478 ac_cv_c_inline=no
7479 for ac_kw in inline __inline__ __inline; do
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #ifndef __cplusplus
7487 typedef int foo_t;
7488 static $ac_kw foo_t static_foo () {return 0; }
7489 $ac_kw foo_t foo () {return 0; }
7490 #endif
7492 _ACEOF
7493 rm -f conftest.$ac_objext
7494 if { (ac_try="$ac_compile"
7495 case "(($ac_try" in
7496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497 *) ac_try_echo=$ac_try;;
7498 esac
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500 (eval "$ac_compile") 2>conftest.er1
7501 ac_status=$?
7502 grep -v '^ *+' conftest.er1 >conftest.err
7503 rm -f conftest.er1
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } && {
7507 test -z "$ac_c_werror_flag" ||
7508 test ! -s conftest.err
7509 } && test -s conftest.$ac_objext; then
7510 ac_cv_c_inline=$ac_kw
7511 else
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7519 test "$ac_cv_c_inline" != no && break
7520 done
7523 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7524 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7527 case $ac_cv_c_inline in
7528 inline | yes) ;;
7530 case $ac_cv_c_inline in
7531 no) ac_val=;;
7532 *) ac_val=$ac_cv_c_inline;;
7533 esac
7534 cat >>confdefs.h <<_ACEOF
7535 #ifndef __cplusplus
7536 #define inline $ac_val
7537 #endif
7538 _ACEOF
7540 esac
7542 { echo "$as_me:$LINENO: checking for size_t" >&5
7543 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7544 if test "${ac_cv_type_size_t+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 cat >conftest.$ac_ext <<_ACEOF
7548 /* confdefs.h. */
7549 _ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 $ac_includes_default
7554 typedef size_t ac__type_new_;
7556 main ()
7558 if ((ac__type_new_ *) 0)
7559 return 0;
7560 if (sizeof (ac__type_new_))
7561 return 0;
7563 return 0;
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7568 case "(($ac_try" in
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7571 esac
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_compile") 2>conftest.er1
7574 ac_status=$?
7575 grep -v '^ *+' conftest.er1 >conftest.err
7576 rm -f conftest.er1
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest.$ac_objext; then
7583 ac_cv_type_size_t=yes
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 ac_cv_type_size_t=no
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7594 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7595 if test $ac_cv_type_size_t = yes; then
7597 else
7599 cat >>confdefs.h <<_ACEOF
7600 #define size_t unsigned int
7601 _ACEOF
7605 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7606 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7607 if test "${ac_cv_header_time+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609 else
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h. */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h. */
7616 #include <sys/types.h>
7617 #include <sys/time.h>
7618 #include <time.h>
7621 main ()
7623 if ((struct tm *) 0)
7624 return 0;
7626 return 0;
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (ac_try="$ac_compile"
7631 case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
7646 ac_cv_header_time=yes
7647 else
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 ac_cv_header_time=no
7654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7657 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7658 if test $ac_cv_header_time = yes; then
7660 cat >>confdefs.h <<\_ACEOF
7661 #define TIME_WITH_SYS_TIME 1
7662 _ACEOF
7666 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7667 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7668 if test "${ac_cv_struct_tm+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 #include <sys/types.h>
7678 #include <time.h>
7681 main ()
7683 struct tm tm;
7684 int *p = &tm.tm_sec;
7685 return !p;
7687 return 0;
7689 _ACEOF
7690 rm -f conftest.$ac_objext
7691 if { (ac_try="$ac_compile"
7692 case "(($ac_try" in
7693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7695 esac
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7698 ac_status=$?
7699 grep -v '^ *+' conftest.er1 >conftest.err
7700 rm -f conftest.er1
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7707 ac_cv_struct_tm=time.h
7708 else
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 ac_cv_struct_tm=sys/time.h
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7718 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7719 if test $ac_cv_struct_tm = sys/time.h; then
7721 cat >>confdefs.h <<\_ACEOF
7722 #define TM_IN_SYS_TIME 1
7723 _ACEOF
7727 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7728 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7729 if test "${ac_cv_type_uid_t+set}" = set; then
7730 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h. */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 #include <sys/types.h>
7740 _ACEOF
7741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7742 $EGREP "uid_t" >/dev/null 2>&1; then
7743 ac_cv_type_uid_t=yes
7744 else
7745 ac_cv_type_uid_t=no
7747 rm -f conftest*
7750 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7751 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7752 if test $ac_cv_type_uid_t = no; then
7754 cat >>confdefs.h <<\_ACEOF
7755 #define uid_t int
7756 _ACEOF
7759 cat >>confdefs.h <<\_ACEOF
7760 #define gid_t int
7761 _ACEOF
7766 if test $ac_cv_c_compiler_gnu = yes; then
7767 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
7768 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
7769 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 else
7772 ac_pattern="Autoconf.*'x'"
7773 cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h. */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <sgtty.h>
7780 Autoconf TIOCGETP
7781 _ACEOF
7782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7783 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7784 ac_cv_prog_gcc_traditional=yes
7785 else
7786 ac_cv_prog_gcc_traditional=no
7788 rm -f conftest*
7791 if test $ac_cv_prog_gcc_traditional = no; then
7792 cat >conftest.$ac_ext <<_ACEOF
7793 /* confdefs.h. */
7794 _ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7798 #include <termio.h>
7799 Autoconf TCGETA
7800 _ACEOF
7801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7802 $EGREP "$ac_pattern" >/dev/null 2>&1; then
7803 ac_cv_prog_gcc_traditional=yes
7805 rm -f conftest*
7809 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
7810 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
7811 if test $ac_cv_prog_gcc_traditional = yes; then
7812 CC="$CC -traditional"
7816 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7817 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7818 if test "${ac_cv_type_signal+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827 #include <sys/types.h>
7828 #include <signal.h>
7831 main ()
7833 return *(signal (0, 0)) (0) == 1;
7835 return 0;
7837 _ACEOF
7838 rm -f conftest.$ac_objext
7839 if { (ac_try="$ac_compile"
7840 case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_compile") 2>conftest.er1
7846 ac_status=$?
7847 grep -v '^ *+' conftest.er1 >conftest.err
7848 rm -f conftest.er1
7849 cat conftest.err >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); } && {
7852 test -z "$ac_c_werror_flag" ||
7853 test ! -s conftest.err
7854 } && test -s conftest.$ac_objext; then
7855 ac_cv_type_signal=int
7856 else
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7860 ac_cv_type_signal=void
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7866 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7868 cat >>confdefs.h <<_ACEOF
7869 #define RETSIGTYPE $ac_cv_type_signal
7870 _ACEOF
7881 for ac_func in select socket strdup strerror strtol uname cfmakeraw snprintf
7883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7897 #define $ac_func innocuous_$ac_func
7899 /* System header to define __stub macros and hopefully few prototypes,
7900 which can conflict with char $ac_func (); below.
7901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902 <limits.h> exists even on freestanding compilers. */
7904 #ifdef __STDC__
7905 # include <limits.h>
7906 #else
7907 # include <assert.h>
7908 #endif
7910 #undef $ac_func
7912 /* Override any GCC internal prototype to avoid an error.
7913 Use char because int might match the return type of a GCC
7914 builtin and then its argument prototype would still apply. */
7915 #ifdef __cplusplus
7916 extern "C"
7917 #endif
7918 char $ac_func ();
7919 /* The GNU C library defines this for functions which it implements
7920 to always fail with ENOSYS. Some functions are actually named
7921 something starting with __ and the normal name is an alias. */
7922 #if defined __stub_$ac_func || defined __stub___$ac_func
7923 choke me
7924 #endif
7927 main ()
7929 return $ac_func ();
7931 return 0;
7933 _ACEOF
7934 rm -f conftest.$ac_objext conftest$ac_exeext
7935 if { (ac_try="$ac_link"
7936 case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_link") 2>conftest.er1
7942 ac_status=$?
7943 grep -v '^ *+' conftest.er1 >conftest.err
7944 rm -f conftest.er1
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest$ac_exeext &&
7951 $as_test_x conftest$ac_exeext; then
7952 eval "$as_ac_var=yes"
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 eval "$as_ac_var=no"
7960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext conftest.$ac_ext
7963 ac_res=`eval echo '${'$as_ac_var'}'`
7964 { echo "$as_me:$LINENO: result: $ac_res" >&5
7965 echo "${ECHO_T}$ac_res" >&6; }
7966 if test `eval echo '${'$as_ac_var'}'` = yes; then
7967 cat >>confdefs.h <<_ACEOF
7968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7969 _ACEOF
7972 done
7976 { echo "$as_me:$LINENO: checking for getopt_long" >&5
7977 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
7978 if test "${ac_cv_func_getopt_long+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
7988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7989 #define getopt_long innocuous_getopt_long
7991 /* System header to define __stub macros and hopefully few prototypes,
7992 which can conflict with char getopt_long (); below.
7993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7994 <limits.h> exists even on freestanding compilers. */
7996 #ifdef __STDC__
7997 # include <limits.h>
7998 #else
7999 # include <assert.h>
8000 #endif
8002 #undef getopt_long
8004 /* Override any GCC internal prototype to avoid an error.
8005 Use char because int might match the return type of a GCC
8006 builtin and then its argument prototype would still apply. */
8007 #ifdef __cplusplus
8008 extern "C"
8009 #endif
8010 char getopt_long ();
8011 /* The GNU C library defines this for functions which it implements
8012 to always fail with ENOSYS. Some functions are actually named
8013 something starting with __ and the normal name is an alias. */
8014 #if defined __stub_getopt_long || defined __stub___getopt_long
8015 choke me
8016 #endif
8019 main ()
8021 return getopt_long ();
8023 return 0;
8025 _ACEOF
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (ac_try="$ac_link"
8028 case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031 esac
8032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_link") 2>conftest.er1
8034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } && {
8040 test -z "$ac_c_werror_flag" ||
8041 test ! -s conftest.err
8042 } && test -s conftest$ac_exeext &&
8043 $as_test_x conftest$ac_exeext; then
8044 ac_cv_func_getopt_long=yes
8045 else
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 ac_cv_func_getopt_long=no
8052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8053 conftest$ac_exeext conftest.$ac_ext
8055 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
8056 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
8057 if test $ac_cv_func_getopt_long = yes; then
8060 # Check whether --with-included-getopt was given.
8061 if test "${with_included_getopt+set}" = set; then
8062 withval=$with_included_getopt; with_getopt=$withval
8063 else
8064 with_getopt=$no
8067 if test "x$with_getopt" = xyes; then
8068 case " $LIBOBJS " in
8069 *" getopt.$ac_objext "* ) ;;
8070 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
8072 esac
8074 case " $LIBOBJS " in
8075 *" getopt1.$ac_objext "* ) ;;
8076 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
8078 esac
8082 else
8084 case " $LIBOBJS " in
8085 *" getopt.$ac_objext "* ) ;;
8086 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
8088 esac
8090 case " $LIBOBJS " in
8091 *" getopt1.$ac_objext "* ) ;;
8092 *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
8094 esac
8102 { echo "$as_me:$LINENO: checking for your mounted filesystem table" >&5
8103 echo $ECHO_N "checking for your mounted filesystem table... $ECHO_C" >&6; }
8104 if test "${ac_cv_mtab_file+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8108 if test -f "/etc/mtab"; then
8109 ac_cv_mtab_file=/etc/mtab
8110 else
8111 if test -f "/etc/mnttab"; then
8112 ac_cv_mtab_file=/etc/mnttab
8113 else
8114 if test -f "/etc/fstab"; then
8115 ac_cv_mtab_file=/etc/fstab
8121 { echo "$as_me:$LINENO: result: $ac_cv_mtab_file" >&5
8122 echo "${ECHO_T}$ac_cv_mtab_file" >&6; }
8123 if test ! -z "$ac_cv_mtab_file"; then
8125 cat >>confdefs.h <<_ACEOF
8126 #define MTAB_FILE "$ac_cv_mtab_file"
8127 _ACEOF
8137 for ac_header in fcntl.h sys/dustat.h sys/param.h sys/statfs.h sys/fstyp.h
8139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 ac_res=`eval echo '${'$as_ac_Header'}'`
8147 { echo "$as_me:$LINENO: result: $ac_res" >&5
8148 echo "${ECHO_T}$ac_res" >&6; }
8149 else
8150 # Is the header compilable?
8151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8153 cat >conftest.$ac_ext <<_ACEOF
8154 /* confdefs.h. */
8155 _ACEOF
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 $ac_includes_default
8160 #include <$ac_header>
8161 _ACEOF
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_header_compiler=yes
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_header_compiler=no
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8189 echo "${ECHO_T}$ac_header_compiler" >&6; }
8191 # Is the header present?
8192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8194 cat >conftest.$ac_ext <<_ACEOF
8195 /* confdefs.h. */
8196 _ACEOF
8197 cat confdefs.h >>conftest.$ac_ext
8198 cat >>conftest.$ac_ext <<_ACEOF
8199 /* end confdefs.h. */
8200 #include <$ac_header>
8201 _ACEOF
8202 if { (ac_try="$ac_cpp conftest.$ac_ext"
8203 case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206 esac
8207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } >/dev/null && {
8215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8216 test ! -s conftest.err
8217 }; then
8218 ac_header_preproc=yes
8219 else
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 ac_header_preproc=no
8226 rm -f conftest.err conftest.$ac_ext
8227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8228 echo "${ECHO_T}$ac_header_preproc" >&6; }
8230 # So? What about this header?
8231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8232 yes:no: )
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8237 ac_header_preproc=yes
8239 no:yes:* )
8240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8252 ( cat <<\_ASBOX
8253 ## ------------------------------------------- ##
8254 ## Report this to lcdproc@lists.omnipotent.net ##
8255 ## ------------------------------------------- ##
8256 _ASBOX
8257 ) | sed "s/^/$as_me: WARNING: /" >&2
8259 esac
8260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265 eval "$as_ac_Header=\$ac_header_preproc"
8267 ac_res=`eval echo '${'$as_ac_Header'}'`
8268 { echo "$as_me:$LINENO: result: $ac_res" >&5
8269 echo "${ECHO_T}$ac_res" >&6; }
8272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8273 cat >>confdefs.h <<_ACEOF
8274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8275 _ACEOF
8279 done
8286 for ac_header in mnttab.h mntent.h utime.h sys/statvfs.h sys/vfs.h
8288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 ac_res=`eval echo '${'$as_ac_Header'}'`
8296 { echo "$as_me:$LINENO: result: $ac_res" >&5
8297 echo "${ECHO_T}$ac_res" >&6; }
8298 else
8299 # Is the header compilable?
8300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8302 cat >conftest.$ac_ext <<_ACEOF
8303 /* confdefs.h. */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8308 $ac_includes_default
8309 #include <$ac_header>
8310 _ACEOF
8311 rm -f conftest.$ac_objext
8312 if { (ac_try="$ac_compile"
8313 case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_compile") 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest.$ac_objext; then
8328 ac_header_compiler=yes
8329 else
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 ac_header_compiler=no
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8338 echo "${ECHO_T}$ac_header_compiler" >&6; }
8340 # Is the header present?
8341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349 #include <$ac_header>
8350 _ACEOF
8351 if { (ac_try="$ac_cpp conftest.$ac_ext"
8352 case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8358 ac_status=$?
8359 grep -v '^ *+' conftest.er1 >conftest.err
8360 rm -f conftest.er1
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } >/dev/null && {
8364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8365 test ! -s conftest.err
8366 }; then
8367 ac_header_preproc=yes
8368 else
8369 echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8372 ac_header_preproc=no
8375 rm -f conftest.err conftest.$ac_ext
8376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8377 echo "${ECHO_T}$ac_header_preproc" >&6; }
8379 # So? What about this header?
8380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8381 yes:no: )
8382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8386 ac_header_preproc=yes
8388 no:yes:* )
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8401 ( cat <<\_ASBOX
8402 ## ------------------------------------------- ##
8403 ## Report this to lcdproc@lists.omnipotent.net ##
8404 ## ------------------------------------------- ##
8405 _ASBOX
8406 ) | sed "s/^/$as_me: WARNING: /" >&2
8408 esac
8409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 else
8414 eval "$as_ac_Header=\$ac_header_preproc"
8416 ac_res=`eval echo '${'$as_ac_Header'}'`
8417 { echo "$as_me:$LINENO: result: $ac_res" >&5
8418 echo "${ECHO_T}$ac_res" >&6; }
8421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8424 _ACEOF
8428 done
8432 for ac_header in sys/filsys.h sys/fs_types.h
8434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8441 ac_res=`eval echo '${'$as_ac_Header'}'`
8442 { echo "$as_me:$LINENO: result: $ac_res" >&5
8443 echo "${ECHO_T}$ac_res" >&6; }
8444 else
8445 # Is the header compilable?
8446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8448 cat >conftest.$ac_ext <<_ACEOF
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 $ac_includes_default
8455 #include <$ac_header>
8456 _ACEOF
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8459 case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462 esac
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.$ac_objext; then
8474 ac_header_compiler=yes
8475 else
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 ac_header_compiler=no
8482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8484 echo "${ECHO_T}$ac_header_compiler" >&6; }
8486 # Is the header present?
8487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8489 cat >conftest.$ac_ext <<_ACEOF
8490 /* confdefs.h. */
8491 _ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 #include <$ac_header>
8496 _ACEOF
8497 if { (ac_try="$ac_cpp conftest.$ac_ext"
8498 case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501 esac
8502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8504 ac_status=$?
8505 grep -v '^ *+' conftest.er1 >conftest.err
8506 rm -f conftest.er1
8507 cat conftest.err >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); } >/dev/null && {
8510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8511 test ! -s conftest.err
8512 }; then
8513 ac_header_preproc=yes
8514 else
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 ac_header_preproc=no
8521 rm -f conftest.err conftest.$ac_ext
8522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8523 echo "${ECHO_T}$ac_header_preproc" >&6; }
8525 # So? What about this header?
8526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8527 yes:no: )
8528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8532 ac_header_preproc=yes
8534 no:yes:* )
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8547 ( cat <<\_ASBOX
8548 ## ------------------------------------------- ##
8549 ## Report this to lcdproc@lists.omnipotent.net ##
8550 ## ------------------------------------------- ##
8551 _ASBOX
8552 ) | sed "s/^/$as_me: WARNING: /" >&2
8554 esac
8555 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560 eval "$as_ac_Header=\$ac_header_preproc"
8562 ac_res=`eval echo '${'$as_ac_Header'}'`
8563 { echo "$as_me:$LINENO: result: $ac_res" >&5
8564 echo "${ECHO_T}$ac_res" >&6; }
8567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8568 cat >>confdefs.h <<_ACEOF
8569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8570 _ACEOF
8574 done
8577 for ac_header in sys/mount.h
8579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 #if HAVE_SYS_PARAM_H
8592 #include <sys/param.h>
8593 #endif
8596 #include <$ac_header>
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8600 case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_compile") 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest.$ac_objext; then
8615 eval "$as_ac_Header=yes"
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 eval "$as_ac_Header=no"
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 ac_res=`eval echo '${'$as_ac_Header'}'`
8626 { echo "$as_me:$LINENO: result: $ac_res" >&5
8627 echo "${ECHO_T}$ac_res" >&6; }
8628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8629 cat >>confdefs.h <<_ACEOF
8630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8631 _ACEOF
8635 done
8638 for ac_func in getmntinfo
8640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 /* confdefs.h. */
8648 _ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8654 #define $ac_func innocuous_$ac_func
8656 /* System header to define __stub macros and hopefully few prototypes,
8657 which can conflict with char $ac_func (); below.
8658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8659 <limits.h> exists even on freestanding compilers. */
8661 #ifdef __STDC__
8662 # include <limits.h>
8663 #else
8664 # include <assert.h>
8665 #endif
8667 #undef $ac_func
8669 /* Override any GCC internal prototype to avoid an error.
8670 Use char because int might match the return type of a GCC
8671 builtin and then its argument prototype would still apply. */
8672 #ifdef __cplusplus
8673 extern "C"
8674 #endif
8675 char $ac_func ();
8676 /* The GNU C library defines this for functions which it implements
8677 to always fail with ENOSYS. Some functions are actually named
8678 something starting with __ and the normal name is an alias. */
8679 #if defined __stub_$ac_func || defined __stub___$ac_func
8680 choke me
8681 #endif
8684 main ()
8686 return $ac_func ();
8688 return 0;
8690 _ACEOF
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (ac_try="$ac_link"
8693 case "(($ac_try" in
8694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695 *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_link") 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && {
8705 test -z "$ac_c_werror_flag" ||
8706 test ! -s conftest.err
8707 } && test -s conftest$ac_exeext &&
8708 $as_test_x conftest$ac_exeext; then
8709 eval "$as_ac_var=yes"
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 eval "$as_ac_var=no"
8717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8718 conftest$ac_exeext conftest.$ac_ext
8720 ac_res=`eval echo '${'$as_ac_var'}'`
8721 { echo "$as_me:$LINENO: result: $ac_res" >&5
8722 echo "${ECHO_T}$ac_res" >&6; }
8723 if test `eval echo '${'$as_ac_var'}'` = yes; then
8724 cat >>confdefs.h <<_ACEOF
8725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8726 _ACEOF
8729 done
8732 { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
8733 echo "$as_me: checking how to get filesystem space usage..." >&6;}
8734 space=no
8736 # Here we'll compromise a little (and perform only the link test)
8737 # since it seems there are no variants of the statvfs function.
8738 if test $space = no; then
8739 # SVR4
8741 for ac_func in statvfs
8743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 else
8749 cat >conftest.$ac_ext <<_ACEOF
8750 /* confdefs.h. */
8751 _ACEOF
8752 cat confdefs.h >>conftest.$ac_ext
8753 cat >>conftest.$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8757 #define $ac_func innocuous_$ac_func
8759 /* System header to define __stub macros and hopefully few prototypes,
8760 which can conflict with char $ac_func (); below.
8761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762 <limits.h> exists even on freestanding compilers. */
8764 #ifdef __STDC__
8765 # include <limits.h>
8766 #else
8767 # include <assert.h>
8768 #endif
8770 #undef $ac_func
8772 /* Override any GCC internal prototype to avoid an error.
8773 Use char because int might match the return type of a GCC
8774 builtin and then its argument prototype would still apply. */
8775 #ifdef __cplusplus
8776 extern "C"
8777 #endif
8778 char $ac_func ();
8779 /* The GNU C library defines this for functions which it implements
8780 to always fail with ENOSYS. Some functions are actually named
8781 something starting with __ and the normal name is an alias. */
8782 #if defined __stub_$ac_func || defined __stub___$ac_func
8783 choke me
8784 #endif
8787 main ()
8789 return $ac_func ();
8791 return 0;
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (ac_try="$ac_link"
8796 case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799 esac
8800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_link") 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest$ac_exeext &&
8811 $as_test_x conftest$ac_exeext; then
8812 eval "$as_ac_var=yes"
8813 else
8814 echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 eval "$as_ac_var=no"
8820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8821 conftest$ac_exeext conftest.$ac_ext
8823 ac_res=`eval echo '${'$as_ac_var'}'`
8824 { echo "$as_me:$LINENO: result: $ac_res" >&5
8825 echo "${ECHO_T}$ac_res" >&6; }
8826 if test `eval echo '${'$as_ac_var'}'` = yes; then
8827 cat >>confdefs.h <<_ACEOF
8828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8829 _ACEOF
8832 done
8834 if test $ac_cv_func_statvfs = yes; then
8835 space=yes
8837 cat >>confdefs.h <<\_ACEOF
8838 #define STAT_STATVFS 1
8839 _ACEOF
8844 if test $space = no; then
8845 # DEC Alpha running OSF/1
8846 { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
8847 echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
8848 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 else
8851 if test "$cross_compiling" = yes; then
8852 fu_cv_sys_stat_statfs3_osf1=no
8853 else
8854 cat >conftest.$ac_ext <<_ACEOF
8855 /* confdefs.h. */
8856 _ACEOF
8857 cat confdefs.h >>conftest.$ac_ext
8858 cat >>conftest.$ac_ext <<_ACEOF
8859 /* end confdefs.h. */
8861 #include <sys/param.h>
8862 #include <sys/types.h>
8863 #include <sys/mount.h>
8864 main ()
8866 struct statfs fsd;
8867 fsd.f_fsize = 0;
8868 exit (statfs (".", &fsd, sizeof (struct statfs)));
8870 _ACEOF
8871 rm -f conftest$ac_exeext
8872 if { (ac_try="$ac_link"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8878 (eval "$ac_link") 2>&5
8879 ac_status=$?
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8882 { (case "(($ac_try" in
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8885 esac
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_try") 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 fu_cv_sys_stat_statfs3_osf1=yes
8892 else
8893 echo "$as_me: program exited with status $ac_status" >&5
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8897 ( exit $ac_status )
8898 fu_cv_sys_stat_statfs3_osf1=no
8900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8906 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs3_osf1" >&5
8907 echo "${ECHO_T}$fu_cv_sys_stat_statfs3_osf1" >&6; }
8908 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
8909 space=yes
8911 cat >>confdefs.h <<\_ACEOF
8912 #define STAT_STATFS3_OSF1 1
8913 _ACEOF
8918 if test $space = no; then
8919 # AIX
8920 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
8921 echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
8922 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924 else
8925 if test "$cross_compiling" = yes; then
8926 fu_cv_sys_stat_statfs2_bsize=no
8927 else
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h. */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8935 #ifdef HAVE_SYS_PARAM_H
8936 #include <sys/param.h>
8937 #endif
8938 #ifdef HAVE_SYS_MOUNT_H
8939 #include <sys/mount.h>
8940 #endif
8941 #ifdef HAVE_SYS_VFS_H
8942 #include <sys/vfs.h>
8943 #endif
8944 main ()
8946 struct statfs fsd;
8947 fsd.f_bsize = 0;
8948 exit (statfs (".", &fsd));
8950 _ACEOF
8951 rm -f conftest$ac_exeext
8952 if { (ac_try="$ac_link"
8953 case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_link") 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8962 { (case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_try") 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 fu_cv_sys_stat_statfs2_bsize=yes
8972 else
8973 echo "$as_me: program exited with status $ac_status" >&5
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ( exit $ac_status )
8978 fu_cv_sys_stat_statfs2_bsize=no
8980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8986 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
8987 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
8988 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
8989 space=yes
8991 cat >>confdefs.h <<\_ACEOF
8992 #define STAT_STATFS2_BSIZE 1
8993 _ACEOF
8998 if test $space = no; then
8999 # SVR3
9000 { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9001 echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
9002 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005 if test "$cross_compiling" = yes; then
9006 fu_cv_sys_stat_statfs4=no
9007 else
9008 cat >conftest.$ac_ext <<_ACEOF
9009 /* confdefs.h. */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 #include <sys/types.h>
9015 #include <sys/statfs.h>
9016 main ()
9018 struct statfs fsd;
9019 exit (statfs (".", &fsd, sizeof fsd, 0));
9021 _ACEOF
9022 rm -f conftest$ac_exeext
9023 if { (ac_try="$ac_link"
9024 case "(($ac_try" in
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9027 esac
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029 (eval "$ac_link") 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9033 { (case "(($ac_try" in
9034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9036 esac
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_try") 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 fu_cv_sys_stat_statfs4=yes
9043 else
9044 echo "$as_me: program exited with status $ac_status" >&5
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 ( exit $ac_status )
9049 fu_cv_sys_stat_statfs4=no
9051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9057 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
9058 echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
9059 if test $fu_cv_sys_stat_statfs4 = yes; then
9060 space=yes
9062 cat >>confdefs.h <<\_ACEOF
9063 #define STAT_STATFS4 1
9064 _ACEOF
9068 if test $space = no; then
9069 # 4.4BSD and NetBSD
9070 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9071 echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
9072 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075 if test "$cross_compiling" = yes; then
9076 fu_cv_sys_stat_statfs2_fsize=no
9077 else
9078 cat >conftest.$ac_ext <<_ACEOF
9079 /* confdefs.h. */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 #include <sys/types.h>
9085 #ifdef HAVE_SYS_PARAM_H
9086 #include <sys/param.h>
9087 #endif
9088 #ifdef HAVE_SYS_MOUNT_H
9089 #include <sys/mount.h>
9090 #endif
9091 main ()
9093 struct statfs fsd;
9094 fsd.f_fsize = 0;
9095 exit (statfs (".", &fsd));
9097 _ACEOF
9098 rm -f conftest$ac_exeext
9099 if { (ac_try="$ac_link"
9100 case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9103 esac
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_link") 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9109 { (case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_try") 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 fu_cv_sys_stat_statfs2_fsize=yes
9119 else
9120 echo "$as_me: program exited with status $ac_status" >&5
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ( exit $ac_status )
9125 fu_cv_sys_stat_statfs2_fsize=no
9127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9133 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
9134 echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
9135 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9136 space=yes
9138 cat >>confdefs.h <<\_ACEOF
9139 #define STAT_STATFS2_FSIZE 1
9140 _ACEOF
9145 if test $space = no; then
9146 # Ultrix
9147 { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9148 echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
9149 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
9150 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 else
9152 if test "$cross_compiling" = yes; then
9153 fu_cv_sys_stat_fs_data=no
9154 else
9155 cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h. */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9162 #include <sys/types.h>
9163 #ifdef HAVE_SYS_PARAM_H
9164 #include <sys/param.h>
9165 #endif
9166 #ifdef HAVE_SYS_MOUNT_H
9167 #include <sys/mount.h>
9168 #endif
9169 #ifdef HAVE_SYS_FS_TYPES_H
9170 #include <sys/fs_types.h>
9171 #endif
9172 main ()
9174 struct fs_data fsd;
9175 /* Ultrix's statfs returns 1 for success,
9176 0 for not mounted, -1 for failure. */
9177 exit (statfs (".", &fsd) != 1);
9179 _ACEOF
9180 rm -f conftest$ac_exeext
9181 if { (ac_try="$ac_link"
9182 case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_link") 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9191 { (case "(($ac_try" in
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9194 esac
9195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196 (eval "$ac_try") 2>&5
9197 ac_status=$?
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 fu_cv_sys_stat_fs_data=yes
9201 else
9202 echo "$as_me: program exited with status $ac_status" >&5
9203 echo "$as_me: failed program was:" >&5
9204 sed 's/^/| /' conftest.$ac_ext >&5
9206 ( exit $ac_status )
9207 fu_cv_sys_stat_fs_data=no
9209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9215 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
9216 echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
9217 if test $fu_cv_sys_stat_fs_data = yes; then
9218 space=yes
9220 cat >>confdefs.h <<\_ACEOF
9221 #define STAT_STATFS2_FS_DATA 1
9222 _ACEOF
9231 # Check whether --with-lcdport was given.
9232 if test "${with_lcdport+set}" = set; then
9233 withval=$with_lcdport; LCDPORT=$withval
9234 else
9235 LCDPORT="13666"
9240 cat >>confdefs.h <<_ACEOF
9241 #define LCDPORT $LCDPORT
9242 _ACEOF
9246 cat >>confdefs.h <<_ACEOF
9247 #define PROTOCOL_VERSION "0.3"
9248 _ACEOF
9252 cat >>confdefs.h <<_ACEOF
9253 #define API_VERSION "0.5"
9254 _ACEOF
9259 { echo "$as_me:$LINENO: checking module extension" >&5
9260 echo $ECHO_N "checking module extension... $ECHO_C" >&6; }
9261 case $host in
9262 hp*|HP*)
9263 SO=.sl;;
9264 *cygwin*)
9265 SO=.dll;;
9267 SO=.so;;
9268 esac
9270 cat >>confdefs.h <<_ACEOF
9271 #define MODULE_EXTENSION "$SO"
9272 _ACEOF
9274 { echo "$as_me:$LINENO: result: $SO" >&5
9275 echo "${ECHO_T}$SO" >&6; }
9278 CCSHARED="-fPIC"
9279 LDSHARED="-shared"
9280 case "$host" in
9281 SunOS/4*)
9282 LDSHARED=""
9284 SunOS/5*)
9285 if test ! "$GCC" = "yes" ; then
9286 LDSHARED="-G";
9289 hp*|HP*)
9290 if test ! "$GCC" = "yes"; then
9291 CCSHARED="+z";
9292 LDSHARED="-b"
9295 *cygwin*)
9296 CCSHARED="-DUSE_DL_IMPORT"
9297 LDSHARED="-shared -Wl,--enable-auto-image-base"
9299 BSD/OS*/4*)
9300 CCSHARED="-fpic"
9302 *darwin*)
9303 LDSHARED="-bundle -flat_namespace -undefined suppress"
9305 esac
9308 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9309 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9310 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313 ac_check_lib_save_LIBS=$LIBS
9314 LIBS="-ldl $LIBS"
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h. */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9322 /* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 char dlopen ();
9330 main ()
9332 return dlopen ();
9334 return 0;
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9339 case "(($ac_try" in
9340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341 *) ac_try_echo=$ac_try;;
9342 esac
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344 (eval "$ac_link") 2>conftest.er1
9345 ac_status=$?
9346 grep -v '^ *+' conftest.er1 >conftest.err
9347 rm -f conftest.er1
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } && {
9351 test -z "$ac_c_werror_flag" ||
9352 test ! -s conftest.err
9353 } && test -s conftest$ac_exeext &&
9354 $as_test_x conftest$ac_exeext; then
9355 ac_cv_lib_dl_dlopen=yes
9356 else
9357 echo "$as_me: failed program was:" >&5
9358 sed 's/^/| /' conftest.$ac_ext >&5
9360 ac_cv_lib_dl_dlopen=no
9363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9364 conftest$ac_exeext conftest.$ac_ext
9365 LIBS=$ac_check_lib_save_LIBS
9367 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9368 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9369 if test $ac_cv_lib_dl_dlopen = yes; then
9370 cat >>confdefs.h <<_ACEOF
9371 #define HAVE_LIBDL 1
9372 _ACEOF
9374 LIBS="-ldl $LIBS"
9377 # Dynamic linking for Linux, *BSD, SunOS/Solaris and SYSV
9379 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9380 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9381 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384 ac_check_lib_save_LIBS=$LIBS
9385 LIBS="-ldld $LIBS"
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9393 /* Override any GCC internal prototype to avoid an error.
9394 Use char because int might match the return type of a GCC
9395 builtin and then its argument prototype would still apply. */
9396 #ifdef __cplusplus
9397 extern "C"
9398 #endif
9399 char shl_load ();
9401 main ()
9403 return shl_load ();
9405 return 0;
9407 _ACEOF
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9410 case "(($ac_try" in
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_link") 2>conftest.er1
9416 ac_status=$?
9417 grep -v '^ *+' conftest.er1 >conftest.err
9418 rm -f conftest.er1
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } && {
9422 test -z "$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 } && test -s conftest$ac_exeext &&
9425 $as_test_x conftest$ac_exeext; then
9426 ac_cv_lib_dld_shl_load=yes
9427 else
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 ac_cv_lib_dld_shl_load=no
9434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435 conftest$ac_exeext conftest.$ac_ext
9436 LIBS=$ac_check_lib_save_LIBS
9438 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9439 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9440 if test $ac_cv_lib_dld_shl_load = yes; then
9441 cat >>confdefs.h <<_ACEOF
9442 #define HAVE_LIBDLD 1
9443 _ACEOF
9445 LIBS="-ldld $LIBS"
9448 # Dynamic linking for HP-UX
9460 { echo "$as_me:$LINENO: checking if libusb support has been enabled" >&5
9461 echo $ECHO_N "checking if libusb support has been enabled... $ECHO_C" >&6; };
9462 # Check whether --enable-libusb was given.
9463 if test "${enable_libusb+set}" = set; then
9464 enableval=$enable_libusb;
9465 if test "$enableval" != "no"; then
9466 enable_libusb="yes"
9469 else
9470 enable_libusb="yes"
9474 { echo "$as_me:$LINENO: result: $enable_libusb" >&5
9475 echo "${ECHO_T}$enable_libusb" >&6; }
9477 if test "$enable_libusb" = "yes"; then
9478 # Extract the first word of "libusb-config", so it can be a program name with args.
9479 set dummy libusb-config; ac_word=$2
9480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9482 if test "${ac_cv_path_libusb_config+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485 case $libusb_config in
9486 [\\/]* | ?:[\\/]*)
9487 ac_cv_path_libusb_config="$libusb_config" # Let the user override the test with a path.
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497 ac_cv_path_libusb_config="$as_dir/$ac_word$ac_exec_ext"
9498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9501 done
9502 done
9503 IFS=$as_save_IFS
9505 test -z "$ac_cv_path_libusb_config" && ac_cv_path_libusb_config=":"
9507 esac
9509 libusb_config=$ac_cv_path_libusb_config
9510 if test -n "$libusb_config"; then
9511 { echo "$as_me:$LINENO: result: $libusb_config" >&5
9512 echo "${ECHO_T}$libusb_config" >&6; }
9513 else
9514 { echo "$as_me:$LINENO: result: no" >&5
9515 echo "${ECHO_T}no" >&6; }
9521 # Check whether --with-libusb-includes was given.
9522 if test "${with_libusb_includes+set}" = set; then
9523 withval=$with_libusb_includes;
9524 if test "$withval" != "no"; then
9525 libusb_includepath="$withval"
9526 libusb_cflags="-I$withval"
9529 else
9531 { echo "$as_me:$LINENO: checking libusb CFLAGS" >&5
9532 echo $ECHO_N "checking libusb CFLAGS... $ECHO_C" >&6; }
9533 if test "x$libusb_config" != x ; then
9534 libusb_cflags=`$libusb_config --cflags`
9535 else
9536 for libusb_includepath in /usr/include /usr/local/include \
9537 /usr/include/libusb /usr/local/include/libusb \
9538 /usr/include/usb /usr/local/include/usb ; do \
9539 if test -f "${libusb_includepath}/usb.h" ; then
9540 libusb_cflags="-I$libusb_includepath"
9541 break
9543 done
9545 { echo "$as_me:$LINENO: result: $libusb_cflags" >&5
9546 echo "${ECHO_T}$libusb_cflags" >&6; }
9552 if test x$libusb_includepath != x ; then
9553 as_ac_File=`echo "ac_cv_file_$libusb_includepath/usb.h" | $as_tr_sh`
9554 { echo "$as_me:$LINENO: checking for $libusb_includepath/usb.h" >&5
9555 echo $ECHO_N "checking for $libusb_includepath/usb.h... $ECHO_C" >&6; }
9556 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 else
9559 test "$cross_compiling" = yes &&
9560 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9561 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9562 { (exit 1); exit 1; }; }
9563 if test -r "$libusb_includepath/usb.h"; then
9564 eval "$as_ac_File=yes"
9565 else
9566 eval "$as_ac_File=no"
9569 ac_res=`eval echo '${'$as_ac_File'}'`
9570 { echo "$as_me:$LINENO: result: $ac_res" >&5
9571 echo "${ECHO_T}$ac_res" >&6; }
9572 if test `eval echo '${'$as_ac_File'}'` = yes; then
9574 else
9575 enable_libusb="no"
9582 if test "$enable_libusb" = "yes"; then
9584 # Check whether --with-libusb-libraries was given.
9585 if test "${with_libusb_libraries+set}" = set; then
9586 withval=$with_libusb_libraries;
9587 if test "$withval" != "no"; then
9588 libusb_libs="-L$withval -lusb"
9591 else
9593 { echo "$as_me:$LINENO: checking libusb library path" >&5
9594 echo $ECHO_N "checking libusb library path... $ECHO_C" >&6; }
9595 if test "x$libusb_config" != x ; then
9596 libusb_libs=`$libusb_config --libs`
9597 else
9598 for libusb_libpath in /lib /usr/lib /usr/local/lib \
9599 /lib/libusb /usr/lib/libusb /usr/local/lib/libusb \
9600 /lib/usb /usr/lib/usb /usr/local/lib/usb ; do
9601 if test -f "${libusb_libpath}/libusb.a" -o -f "${libusb_libpath}/libusb.so"; then
9602 libusb_libs="-L$libusb_libpath -lusb"
9603 break
9605 done
9607 { echo "$as_me:$LINENO: result: $libusb_libs" >&5
9608 echo "${ECHO_T}$libusb_libs" >&6; }
9614 { echo "$as_me:$LINENO: checking for main in -lusb" >&5
9615 echo $ECHO_N "checking for main in -lusb... $ECHO_C" >&6; }
9616 if test "${ac_cv_lib_usb_main+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619 ac_check_lib_save_LIBS=$LIBS
9620 LIBS="-lusb $libusb_libs
9621 $LIBS"
9622 cat >conftest.$ac_ext <<_ACEOF
9623 /* confdefs.h. */
9624 _ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9631 main ()
9633 return main ();
9635 return 0;
9637 _ACEOF
9638 rm -f conftest.$ac_objext conftest$ac_exeext
9639 if { (ac_try="$ac_link"
9640 case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643 esac
9644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_link") 2>conftest.er1
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } && {
9652 test -z "$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9654 } && test -s conftest$ac_exeext &&
9655 $as_test_x conftest$ac_exeext; then
9656 ac_cv_lib_usb_main=yes
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9661 ac_cv_lib_usb_main=no
9664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9665 conftest$ac_exeext conftest.$ac_ext
9666 LIBS=$ac_check_lib_save_LIBS
9668 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_main" >&5
9669 echo "${ECHO_T}$ac_cv_lib_usb_main" >&6; }
9670 if test $ac_cv_lib_usb_main = yes; then
9672 else
9673 enable_libusb="no"
9678 if test "$enable_libusb" = "yes"; then
9680 cat >>confdefs.h <<\_ACEOF
9681 #define HAVE_LIBUSB 1
9682 _ACEOF
9684 else
9685 libusb_libs="";
9686 libusb_cflags="";
9691 { echo "$as_me:$LINENO: checking for which drivers to compile..." >&5
9692 echo "$as_me: checking for which drivers to compile..." >&6;}
9694 # Check whether --enable-drivers was given.
9695 if test "${enable_drivers+set}" = set; then
9696 enableval=$enable_drivers; drivers="$enableval"
9697 else
9698 drivers=bayrad,CFontz,CFontz633,curses,CwLnx,glk,lb216,lcdm001,MtxOrb,pyramid,text
9702 allDrivers=bayrad,CFontz,CFontz633,CFontzPacket,curses,CwLnx,ea65,EyeboxOne,g15,glcdlib,glk,hd44780,icp_a106,imon,IOWarrior,irman,joy,lb216,lcdm001,lcterm,lirc,MD8800,ms6931,mtc_s16209x,MtxOrb,NoritakeVFD,picolcd,pyramid,sed1330,sed1520,serialPOS,serialVFD,sli,stv5730,svga,t6963,text,tyan,ula200,xosd
9704 drivers=`echo $drivers | sed -e 's/,/ /g'`
9706 drivers=" $drivers "
9707 drivers=`echo " $drivers " | sed -e "s/ all,/ ${allDrivers} /"`
9708 drivers=`echo " $drivers " | sed -e "s/ all / ${allDrivers} /"`
9709 drivers=`echo $drivers | sed -e 's/,/ /g'`
9711 selectdrivers=" "
9712 for driver in $drivers ; do
9713 case $driver in
9715 driver=`echo "$driver" | sed -e 's/^.//'`
9716 selectdrivers=`echo " $selectdrivers " | sed -r -e "s/ $driver / /g"`
9719 selectdrivers="$selectdrivers $driver "
9721 esac
9722 done
9724 for driver in $selectdrivers ; do
9725 case "$driver" in
9726 bayrad)
9727 DRIVERS="$DRIVERS bayrad${SO}"
9728 actdrivers="$actdrivers bayrad"
9730 CFontz)
9731 DRIVERS="$DRIVERS CFontz${SO}"
9732 actdrivers="$actdrivers CFontz"
9734 CFontz633)
9735 DRIVERS="$DRIVERS CFontz633${SO}"
9736 actdrivers="$actdrivers CFontz633"
9738 for ac_func in select
9740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 else
9746 cat >conftest.$ac_ext <<_ACEOF
9747 /* confdefs.h. */
9748 _ACEOF
9749 cat confdefs.h >>conftest.$ac_ext
9750 cat >>conftest.$ac_ext <<_ACEOF
9751 /* end confdefs.h. */
9752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9754 #define $ac_func innocuous_$ac_func
9756 /* System header to define __stub macros and hopefully few prototypes,
9757 which can conflict with char $ac_func (); below.
9758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9759 <limits.h> exists even on freestanding compilers. */
9761 #ifdef __STDC__
9762 # include <limits.h>
9763 #else
9764 # include <assert.h>
9765 #endif
9767 #undef $ac_func
9769 /* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
9772 #ifdef __cplusplus
9773 extern "C"
9774 #endif
9775 char $ac_func ();
9776 /* The GNU C library defines this for functions which it implements
9777 to always fail with ENOSYS. Some functions are actually named
9778 something starting with __ and the normal name is an alias. */
9779 #if defined __stub_$ac_func || defined __stub___$ac_func
9780 choke me
9781 #endif
9784 main ()
9786 return $ac_func ();
9788 return 0;
9790 _ACEOF
9791 rm -f conftest.$ac_objext conftest$ac_exeext
9792 if { (ac_try="$ac_link"
9793 case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796 esac
9797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_link") 2>conftest.er1
9799 ac_status=$?
9800 grep -v '^ *+' conftest.er1 >conftest.err
9801 rm -f conftest.er1
9802 cat conftest.err >&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } && {
9805 test -z "$ac_c_werror_flag" ||
9806 test ! -s conftest.err
9807 } && test -s conftest$ac_exeext &&
9808 $as_test_x conftest$ac_exeext; then
9809 eval "$as_ac_var=yes"
9810 else
9811 echo "$as_me: failed program was:" >&5
9812 sed 's/^/| /' conftest.$ac_ext >&5
9814 eval "$as_ac_var=no"
9817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9818 conftest$ac_exeext conftest.$ac_ext
9820 ac_res=`eval echo '${'$as_ac_var'}'`
9821 { echo "$as_me:$LINENO: result: $ac_res" >&5
9822 echo "${ECHO_T}$ac_res" >&6; }
9823 if test `eval echo '${'$as_ac_var'}'` = yes; then
9824 cat >>confdefs.h <<_ACEOF
9825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9826 _ACEOF
9829 for ac_header in sys/select.h
9831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_res=`eval echo '${'$as_ac_Header'}'`
9839 { echo "$as_me:$LINENO: result: $ac_res" >&5
9840 echo "${ECHO_T}$ac_res" >&6; }
9841 else
9842 # Is the header compilable?
9843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9845 cat >conftest.$ac_ext <<_ACEOF
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 $ac_includes_default
9852 #include <$ac_header>
9853 _ACEOF
9854 rm -f conftest.$ac_objext
9855 if { (ac_try="$ac_compile"
9856 case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_compile") 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } && {
9868 test -z "$ac_c_werror_flag" ||
9869 test ! -s conftest.err
9870 } && test -s conftest.$ac_objext; then
9871 ac_header_compiler=yes
9872 else
9873 echo "$as_me: failed program was:" >&5
9874 sed 's/^/| /' conftest.$ac_ext >&5
9876 ac_header_compiler=no
9879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9881 echo "${ECHO_T}$ac_header_compiler" >&6; }
9883 # Is the header present?
9884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9886 cat >conftest.$ac_ext <<_ACEOF
9887 /* confdefs.h. */
9888 _ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892 #include <$ac_header>
9893 _ACEOF
9894 if { (ac_try="$ac_cpp conftest.$ac_ext"
9895 case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9898 esac
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } >/dev/null && {
9907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 }; then
9910 ac_header_preproc=yes
9911 else
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 ac_header_preproc=no
9918 rm -f conftest.err conftest.$ac_ext
9919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9920 echo "${ECHO_T}$ac_header_preproc" >&6; }
9922 # So? What about this header?
9923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9924 yes:no: )
9925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9929 ac_header_preproc=yes
9931 no:yes:* )
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9935 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9939 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9944 ( cat <<\_ASBOX
9945 ## ------------------------------------------- ##
9946 ## Report this to lcdproc@lists.omnipotent.net ##
9947 ## ------------------------------------------- ##
9948 _ASBOX
9949 ) | sed "s/^/$as_me: WARNING: /" >&2
9951 esac
9952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 eval "$as_ac_Header=\$ac_header_preproc"
9959 ac_res=`eval echo '${'$as_ac_Header'}'`
9960 { echo "$as_me:$LINENO: result: $ac_res" >&5
9961 echo "${ECHO_T}$ac_res" >&6; }
9964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9967 _ACEOF
9971 done
9974 else
9976 { echo "$as_me:$LINENO: WARNING: The CFontz633 driver needs the select() function" >&5
9977 echo "$as_me: WARNING: The CFontz633 driver needs the select() function" >&2;}
9980 done
9983 CFontzPacket)
9984 DRIVERS="$DRIVERS CFontzPacket${SO}"
9985 actdrivers="$actdrivers CFontzPacket"
9987 for ac_func in select
9989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9993 echo $ECHO_N "(cached) $ECHO_C" >&6
9994 else
9995 cat >conftest.$ac_ext <<_ACEOF
9996 /* confdefs.h. */
9997 _ACEOF
9998 cat confdefs.h >>conftest.$ac_ext
9999 cat >>conftest.$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10003 #define $ac_func innocuous_$ac_func
10005 /* System header to define __stub macros and hopefully few prototypes,
10006 which can conflict with char $ac_func (); below.
10007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10008 <limits.h> exists even on freestanding compilers. */
10010 #ifdef __STDC__
10011 # include <limits.h>
10012 #else
10013 # include <assert.h>
10014 #endif
10016 #undef $ac_func
10018 /* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
10021 #ifdef __cplusplus
10022 extern "C"
10023 #endif
10024 char $ac_func ();
10025 /* The GNU C library defines this for functions which it implements
10026 to always fail with ENOSYS. Some functions are actually named
10027 something starting with __ and the normal name is an alias. */
10028 #if defined __stub_$ac_func || defined __stub___$ac_func
10029 choke me
10030 #endif
10033 main ()
10035 return $ac_func ();
10037 return 0;
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest$ac_exeext &&
10057 $as_test_x conftest$ac_exeext; then
10058 eval "$as_ac_var=yes"
10059 else
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 eval "$as_ac_var=no"
10066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10067 conftest$ac_exeext conftest.$ac_ext
10069 ac_res=`eval echo '${'$as_ac_var'}'`
10070 { echo "$as_me:$LINENO: result: $ac_res" >&5
10071 echo "${ECHO_T}$ac_res" >&6; }
10072 if test `eval echo '${'$as_ac_var'}'` = yes; then
10073 cat >>confdefs.h <<_ACEOF
10074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10075 _ACEOF
10078 for ac_header in sys/select.h
10080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 ac_res=`eval echo '${'$as_ac_Header'}'`
10088 { echo "$as_me:$LINENO: result: $ac_res" >&5
10089 echo "${ECHO_T}$ac_res" >&6; }
10090 else
10091 # Is the header compilable?
10092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h. */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100 $ac_includes_default
10101 #include <$ac_header>
10102 _ACEOF
10103 rm -f conftest.$ac_objext
10104 if { (ac_try="$ac_compile"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_compile") 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest.$ac_objext; then
10120 ac_header_compiler=yes
10121 else
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10125 ac_header_compiler=no
10128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10130 echo "${ECHO_T}$ac_header_compiler" >&6; }
10132 # Is the header present?
10133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10135 cat >conftest.$ac_ext <<_ACEOF
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141 #include <$ac_header>
10142 _ACEOF
10143 if { (ac_try="$ac_cpp conftest.$ac_ext"
10144 case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10150 ac_status=$?
10151 grep -v '^ *+' conftest.er1 >conftest.err
10152 rm -f conftest.er1
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } >/dev/null && {
10156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10157 test ! -s conftest.err
10158 }; then
10159 ac_header_preproc=yes
10160 else
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10164 ac_header_preproc=no
10167 rm -f conftest.err conftest.$ac_ext
10168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10169 echo "${ECHO_T}$ac_header_preproc" >&6; }
10171 # So? What about this header?
10172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10173 yes:no: )
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10178 ac_header_preproc=yes
10180 no:yes:* )
10181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10193 ( cat <<\_ASBOX
10194 ## ------------------------------------------- ##
10195 ## Report this to lcdproc@lists.omnipotent.net ##
10196 ## ------------------------------------------- ##
10197 _ASBOX
10198 ) | sed "s/^/$as_me: WARNING: /" >&2
10200 esac
10201 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 eval "$as_ac_Header=\$ac_header_preproc"
10208 ac_res=`eval echo '${'$as_ac_Header'}'`
10209 { echo "$as_me:$LINENO: result: $ac_res" >&5
10210 echo "${ECHO_T}$ac_res" >&6; }
10213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10214 cat >>confdefs.h <<_ACEOF
10215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10216 _ACEOF
10220 done
10223 else
10225 { echo "$as_me:$LINENO: WARNING: The CFontzPacket driver needs the select() function" >&5
10226 echo "$as_me: WARNING: The CFontzPacket driver needs the select() function" >&2;}
10229 done
10232 curses)
10235 for ac_header in ncurses.h curses.h
10237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10244 ac_res=`eval echo '${'$as_ac_Header'}'`
10245 { echo "$as_me:$LINENO: result: $ac_res" >&5
10246 echo "${ECHO_T}$ac_res" >&6; }
10247 else
10248 # Is the header compilable?
10249 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10251 cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h. */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h. */
10257 $ac_includes_default
10258 #include <$ac_header>
10259 _ACEOF
10260 rm -f conftest.$ac_objext
10261 if { (ac_try="$ac_compile"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_compile") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest.$ac_objext; then
10277 ac_header_compiler=yes
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10282 ac_header_compiler=no
10285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10287 echo "${ECHO_T}$ac_header_compiler" >&6; }
10289 # Is the header present?
10290 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h. */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298 #include <$ac_header>
10299 _ACEOF
10300 if { (ac_try="$ac_cpp conftest.$ac_ext"
10301 case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10304 esac
10305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10307 ac_status=$?
10308 grep -v '^ *+' conftest.er1 >conftest.err
10309 rm -f conftest.er1
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } >/dev/null && {
10313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10314 test ! -s conftest.err
10315 }; then
10316 ac_header_preproc=yes
10317 else
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10321 ac_header_preproc=no
10324 rm -f conftest.err conftest.$ac_ext
10325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10326 echo "${ECHO_T}$ac_header_preproc" >&6; }
10328 # So? What about this header?
10329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10330 yes:no: )
10331 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10335 ac_header_preproc=yes
10337 no:yes:* )
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10345 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10350 ( cat <<\_ASBOX
10351 ## ------------------------------------------- ##
10352 ## Report this to lcdproc@lists.omnipotent.net ##
10353 ## ------------------------------------------- ##
10354 _ASBOX
10355 ) | sed "s/^/$as_me: WARNING: /" >&2
10357 esac
10358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 else
10363 eval "$as_ac_Header=\$ac_header_preproc"
10365 ac_res=`eval echo '${'$as_ac_Header'}'`
10366 { echo "$as_me:$LINENO: result: $ac_res" >&5
10367 echo "${ECHO_T}$ac_res" >&6; }
10370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10371 cat >>confdefs.h <<_ACEOF
10372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10373 _ACEOF
10377 done
10379 { echo "$as_me:$LINENO: checking for main in -lncurses" >&5
10380 echo $ECHO_N "checking for main in -lncurses... $ECHO_C" >&6; }
10381 if test "${ac_cv_lib_ncurses_main+set}" = set; then
10382 echo $ECHO_N "(cached) $ECHO_C" >&6
10383 else
10384 ac_check_lib_save_LIBS=$LIBS
10385 LIBS="-lncurses $LIBS"
10386 cat >conftest.$ac_ext <<_ACEOF
10387 /* confdefs.h. */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10395 main ()
10397 return main ();
10399 return 0;
10401 _ACEOF
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (ac_try="$ac_link"
10404 case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
10420 ac_cv_lib_ncurses_main=yes
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_cv_lib_ncurses_main=no
10428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10430 LIBS=$ac_check_lib_save_LIBS
10432 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_main" >&5
10433 echo "${ECHO_T}$ac_cv_lib_ncurses_main" >&6; }
10434 if test $ac_cv_lib_ncurses_main = yes; then
10436 if test "${ac_cv_header_ncurses_h+set}" = set; then
10437 { echo "$as_me:$LINENO: checking for ncurses.h" >&5
10438 echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6; }
10439 if test "${ac_cv_header_ncurses_h+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 { echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5
10443 echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6; }
10444 else
10445 # Is the header compilable?
10446 { echo "$as_me:$LINENO: checking ncurses.h usability" >&5
10447 echo $ECHO_N "checking ncurses.h usability... $ECHO_C" >&6; }
10448 cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h. */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454 $ac_includes_default
10455 #include <ncurses.h>
10456 _ACEOF
10457 rm -f conftest.$ac_objext
10458 if { (ac_try="$ac_compile"
10459 case "(($ac_try" in
10460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10462 esac
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_compile") 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } && {
10471 test -z "$ac_c_werror_flag" ||
10472 test ! -s conftest.err
10473 } && test -s conftest.$ac_objext; then
10474 ac_header_compiler=yes
10475 else
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10479 ac_header_compiler=no
10482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10484 echo "${ECHO_T}$ac_header_compiler" >&6; }
10486 # Is the header present?
10487 { echo "$as_me:$LINENO: checking ncurses.h presence" >&5
10488 echo $ECHO_N "checking ncurses.h presence... $ECHO_C" >&6; }
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h. */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 #include <ncurses.h>
10496 _ACEOF
10497 if { (ac_try="$ac_cpp conftest.$ac_ext"
10498 case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10501 esac
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10504 ac_status=$?
10505 grep -v '^ *+' conftest.er1 >conftest.err
10506 rm -f conftest.er1
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } >/dev/null && {
10510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10511 test ! -s conftest.err
10512 }; then
10513 ac_header_preproc=yes
10514 else
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10518 ac_header_preproc=no
10521 rm -f conftest.err conftest.$ac_ext
10522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10523 echo "${ECHO_T}$ac_header_preproc" >&6; }
10525 # So? What about this header?
10526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10527 yes:no: )
10528 { echo "$as_me:$LINENO: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&5
10529 echo "$as_me: WARNING: ncurses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the compiler's result" >&5
10531 echo "$as_me: WARNING: ncurses.h: proceeding with the compiler's result" >&2;}
10532 ac_header_preproc=yes
10534 no:yes:* )
10535 { echo "$as_me:$LINENO: WARNING: ncurses.h: present but cannot be compiled" >&5
10536 echo "$as_me: WARNING: ncurses.h: present but cannot be compiled" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: ncurses.h: check for missing prerequisite headers?" >&5
10538 echo "$as_me: WARNING: ncurses.h: check for missing prerequisite headers?" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: ncurses.h: see the Autoconf documentation" >&5
10540 echo "$as_me: WARNING: ncurses.h: see the Autoconf documentation" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&5
10542 echo "$as_me: WARNING: ncurses.h: section \"Present But Cannot Be Compiled\"" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: ncurses.h: proceeding with the preprocessor's result" >&5
10544 echo "$as_me: WARNING: ncurses.h: proceeding with the preprocessor's result" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: ncurses.h: in the future, the compiler will take precedence" >&5
10546 echo "$as_me: WARNING: ncurses.h: in the future, the compiler will take precedence" >&2;}
10547 ( cat <<\_ASBOX
10548 ## ------------------------------------------- ##
10549 ## Report this to lcdproc@lists.omnipotent.net ##
10550 ## ------------------------------------------- ##
10551 _ASBOX
10552 ) | sed "s/^/$as_me: WARNING: /" >&2
10554 esac
10555 { echo "$as_me:$LINENO: checking for ncurses.h" >&5
10556 echo $ECHO_N "checking for ncurses.h... $ECHO_C" >&6; }
10557 if test "${ac_cv_header_ncurses_h+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560 ac_cv_header_ncurses_h=$ac_header_preproc
10562 { echo "$as_me:$LINENO: result: $ac_cv_header_ncurses_h" >&5
10563 echo "${ECHO_T}$ac_cv_header_ncurses_h" >&6; }
10566 if test $ac_cv_header_ncurses_h = yes; then
10568 LIBCURSES="-lncurses"
10569 DRIVERS="$DRIVERS curses${SO}"
10570 actdrivers="$actdrivers curses"
10572 else
10574 { echo "$as_me:$LINENO: WARNING: Could not find ncurses.h" >&5
10575 echo "$as_me: WARNING: Could not find ncurses.h" >&2;}
10580 else
10582 { echo "$as_me:$LINENO: checking for main in -lcurses" >&5
10583 echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6; }
10584 if test "${ac_cv_lib_curses_main+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10586 else
10587 ac_check_lib_save_LIBS=$LIBS
10588 LIBS="-lcurses $LIBS"
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h. */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h. */
10598 main ()
10600 return main ();
10602 return 0;
10604 _ACEOF
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (ac_try="$ac_link"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_link") 2>conftest.er1
10613 ac_status=$?
10614 grep -v '^ *+' conftest.er1 >conftest.err
10615 rm -f conftest.er1
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest$ac_exeext &&
10622 $as_test_x conftest$ac_exeext; then
10623 ac_cv_lib_curses_main=yes
10624 else
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 ac_cv_lib_curses_main=no
10631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10632 conftest$ac_exeext conftest.$ac_ext
10633 LIBS=$ac_check_lib_save_LIBS
10635 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
10636 echo "${ECHO_T}$ac_cv_lib_curses_main" >&6; }
10637 if test $ac_cv_lib_curses_main = yes; then
10639 if test "${ac_cv_header_curses_h+set}" = set; then
10640 { echo "$as_me:$LINENO: checking for curses.h" >&5
10641 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
10642 if test "${ac_cv_header_curses_h+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
10646 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
10647 else
10648 # Is the header compilable?
10649 { echo "$as_me:$LINENO: checking curses.h usability" >&5
10650 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
10651 cat >conftest.$ac_ext <<_ACEOF
10652 /* confdefs.h. */
10653 _ACEOF
10654 cat confdefs.h >>conftest.$ac_ext
10655 cat >>conftest.$ac_ext <<_ACEOF
10656 /* end confdefs.h. */
10657 $ac_includes_default
10658 #include <curses.h>
10659 _ACEOF
10660 rm -f conftest.$ac_objext
10661 if { (ac_try="$ac_compile"
10662 case "(($ac_try" in
10663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10664 *) ac_try_echo=$ac_try;;
10665 esac
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667 (eval "$ac_compile") 2>conftest.er1
10668 ac_status=$?
10669 grep -v '^ *+' conftest.er1 >conftest.err
10670 rm -f conftest.er1
10671 cat conftest.err >&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && {
10674 test -z "$ac_c_werror_flag" ||
10675 test ! -s conftest.err
10676 } && test -s conftest.$ac_objext; then
10677 ac_header_compiler=yes
10678 else
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ac_header_compiler=no
10685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10687 echo "${ECHO_T}$ac_header_compiler" >&6; }
10689 # Is the header present?
10690 { echo "$as_me:$LINENO: checking curses.h presence" >&5
10691 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
10692 cat >conftest.$ac_ext <<_ACEOF
10693 /* confdefs.h. */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 #include <curses.h>
10699 _ACEOF
10700 if { (ac_try="$ac_cpp conftest.$ac_ext"
10701 case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704 esac
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10707 ac_status=$?
10708 grep -v '^ *+' conftest.er1 >conftest.err
10709 rm -f conftest.er1
10710 cat conftest.err >&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } >/dev/null && {
10713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10714 test ! -s conftest.err
10715 }; then
10716 ac_header_preproc=yes
10717 else
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 ac_header_preproc=no
10724 rm -f conftest.err conftest.$ac_ext
10725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10726 echo "${ECHO_T}$ac_header_preproc" >&6; }
10728 # So? What about this header?
10729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10730 yes:no: )
10731 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
10732 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
10734 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
10735 ac_header_preproc=yes
10737 no:yes:* )
10738 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
10739 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
10740 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
10741 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
10742 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
10743 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
10744 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
10745 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
10746 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
10747 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
10748 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
10749 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
10750 ( cat <<\_ASBOX
10751 ## ------------------------------------------- ##
10752 ## Report this to lcdproc@lists.omnipotent.net ##
10753 ## ------------------------------------------- ##
10754 _ASBOX
10755 ) | sed "s/^/$as_me: WARNING: /" >&2
10757 esac
10758 { echo "$as_me:$LINENO: checking for curses.h" >&5
10759 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
10760 if test "${ac_cv_header_curses_h+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762 else
10763 ac_cv_header_curses_h=$ac_header_preproc
10765 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
10766 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
10769 if test $ac_cv_header_curses_h = yes; then
10771 LIBCURSES="-lcurses"
10772 DRIVERS="$DRIVERS curses${SO}"
10773 actdrivers="$actdrivers curses"
10775 else
10777 { echo "$as_me:$LINENO: WARNING: Could not find curses.h" >&5
10778 echo "$as_me: WARNING: Could not find curses.h" >&2;}
10783 else
10785 { echo "$as_me:$LINENO: WARNING: The curses driver needs the curses (or ncurses) library." >&5
10786 echo "$as_me: WARNING: The curses driver needs the curses (or ncurses) library." >&2;}
10794 { echo "$as_me:$LINENO: checking for acs_map in curses.h" >&5
10795 echo $ECHO_N "checking for acs_map in curses.h... $ECHO_C" >&6; }
10796 if test "${ac_cv_curses_acs_map+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 cat >conftest.$ac_ext <<_ACEOF
10800 /* confdefs.h. */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10805 #include <curses.h>
10807 main ()
10809 char map = acs_map['p']
10811 return 0;
10813 _ACEOF
10814 rm -f conftest.$ac_objext
10815 if { (ac_try="$ac_compile"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_compile") 2>conftest.er1
10822 ac_status=$?
10823 grep -v '^ *+' conftest.er1 >conftest.err
10824 rm -f conftest.er1
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && {
10828 test -z "$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10830 } && test -s conftest.$ac_objext; then
10831 ac_cv_curses_acs_map=yes
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_curses_acs_map=no
10839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10841 { echo "$as_me:$LINENO: result: $ac_cv_curses_acs_map" >&5
10842 echo "${ECHO_T}$ac_cv_curses_acs_map" >&6; }
10844 if test "$ac_cv_curses_acs_map" = yes
10845 then
10847 cat >>confdefs.h <<\_ACEOF
10848 #define CURSES_HAS_ACS_MAP 1
10849 _ACEOF
10851 else
10853 { echo "$as_me:$LINENO: checking for _acs_char in curses.h" >&5
10854 echo $ECHO_N "checking for _acs_char in curses.h... $ECHO_C" >&6; }
10855 if test "${ac_cv_curses__acs_char+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 else
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h. */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <curses.h>
10866 main ()
10868 char map = _acs_char['p']
10870 return 0;
10872 _ACEOF
10873 rm -f conftest.$ac_objext
10874 if { (ac_try="$ac_compile"
10875 case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_compile") 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest.$ac_objext; then
10890 ac_cv_curses__acs_char=yes
10891 else
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10895 ac_cv_curses__acs_char=no
10898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 { echo "$as_me:$LINENO: result: $ac_cv_curses__acs_char" >&5
10901 echo "${ECHO_T}$ac_cv_curses__acs_char" >&6; }
10903 if test "$ac_cv_curses__acs_char" = yes
10904 then
10906 cat >>confdefs.h <<\_ACEOF
10907 #define CURSES_HAS__ACS_CHAR 1
10908 _ACEOF
10915 { echo "$as_me:$LINENO: checking for redrawwin() in curses" >&5
10916 echo $ECHO_N "checking for redrawwin() in curses... $ECHO_C" >&6; }
10917 if test "${ac_cv_curses_redrawwin+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920 oldlibs="$LIBS"
10921 LIBS="$LIBS $LIBCURSES"
10922 cat >conftest.$ac_ext <<_ACEOF
10923 /* confdefs.h. */
10924 _ACEOF
10925 cat confdefs.h >>conftest.$ac_ext
10926 cat >>conftest.$ac_ext <<_ACEOF
10927 /* end confdefs.h. */
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char redrawwin ();
10937 main ()
10939 return redrawwin ();
10941 return 0;
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (ac_try="$ac_link"
10946 case "(($ac_try" in
10947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948 *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_link") 2>conftest.er1
10952 ac_status=$?
10953 grep -v '^ *+' conftest.er1 >conftest.err
10954 rm -f conftest.er1
10955 cat conftest.err >&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } && {
10958 test -z "$ac_c_werror_flag" ||
10959 test ! -s conftest.err
10960 } && test -s conftest$ac_exeext &&
10961 $as_test_x conftest$ac_exeext; then
10962 ac_cv_curses_redrawwin=yes
10963 else
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_cv_curses_redrawwin=no
10970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10971 conftest$ac_exeext conftest.$ac_ext
10972 LIBS="$oldlibs"
10975 { echo "$as_me:$LINENO: result: $ac_cv_curses_redrawwin" >&5
10976 echo "${ECHO_T}$ac_cv_curses_redrawwin" >&6; }
10977 if test "$ac_cv_curses_redrawwin" = yes; then
10979 cat >>confdefs.h <<\_ACEOF
10980 #define CURSES_HAS_REDRAWWIN 1
10981 _ACEOF
10985 { echo "$as_me:$LINENO: checking for wcolor_set() in curses" >&5
10986 echo $ECHO_N "checking for wcolor_set() in curses... $ECHO_C" >&6; }
10987 if test "${ac_cv_curses_wcolor_set+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 else
10990 oldlibs="$LIBS"
10991 LIBS="$LIBS $LIBCURSES"
10992 cat >conftest.$ac_ext <<_ACEOF
10993 /* confdefs.h. */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char wcolor_set ();
11007 main ()
11009 return wcolor_set ();
11011 return 0;
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (ac_try="$ac_link"
11016 case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019 esac
11020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11021 (eval "$ac_link") 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && {
11028 test -z "$ac_c_werror_flag" ||
11029 test ! -s conftest.err
11030 } && test -s conftest$ac_exeext &&
11031 $as_test_x conftest$ac_exeext; then
11032 ac_cv_curses_wcolor_set=yes
11033 else
11034 echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11037 ac_cv_curses_wcolor_set=no
11040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11041 conftest$ac_exeext conftest.$ac_ext
11042 LIBS="$oldlibs"
11045 { echo "$as_me:$LINENO: result: $ac_cv_curses_wcolor_set" >&5
11046 echo "${ECHO_T}$ac_cv_curses_wcolor_set" >&6; }
11047 if test "$ac_cv_curses_wcolor_set" = yes; then
11049 cat >>confdefs.h <<\_ACEOF
11050 #define CURSES_HAS_WCOLOR_SET 1
11051 _ACEOF
11055 CwLnx)
11056 DRIVERS="$DRIVERS CwLnx${SO}"
11057 actdrivers="$actdrivers CwLnx"
11059 ea65)
11060 DRIVERS="$DRIVERS ea65${SO}"
11061 actdrivers="$actdrivers ea65"
11063 EyeboxOne)
11064 DRIVERS="$DRIVERS EyeboxOne${SO}"
11065 actdrivers="$actdrivers EyeboxOne"
11067 g15)
11069 for ac_header in g15daemon_client.h
11071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 ac_res=`eval echo '${'$as_ac_Header'}'`
11079 { echo "$as_me:$LINENO: result: $ac_res" >&5
11080 echo "${ECHO_T}$ac_res" >&6; }
11081 else
11082 # Is the header compilable?
11083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11085 cat >conftest.$ac_ext <<_ACEOF
11086 /* confdefs.h. */
11087 _ACEOF
11088 cat confdefs.h >>conftest.$ac_ext
11089 cat >>conftest.$ac_ext <<_ACEOF
11090 /* end confdefs.h. */
11091 $ac_includes_default
11092 #include <$ac_header>
11093 _ACEOF
11094 rm -f conftest.$ac_objext
11095 if { (ac_try="$ac_compile"
11096 case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099 esac
11100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_compile") 2>conftest.er1
11102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && {
11108 test -z "$ac_c_werror_flag" ||
11109 test ! -s conftest.err
11110 } && test -s conftest.$ac_objext; then
11111 ac_header_compiler=yes
11112 else
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11116 ac_header_compiler=no
11119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11121 echo "${ECHO_T}$ac_header_compiler" >&6; }
11123 # Is the header present?
11124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11126 cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h. */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 #include <$ac_header>
11133 _ACEOF
11134 if { (ac_try="$ac_cpp conftest.$ac_ext"
11135 case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11141 ac_status=$?
11142 grep -v '^ *+' conftest.er1 >conftest.err
11143 rm -f conftest.er1
11144 cat conftest.err >&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } >/dev/null && {
11147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11148 test ! -s conftest.err
11149 }; then
11150 ac_header_preproc=yes
11151 else
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_header_preproc=no
11158 rm -f conftest.err conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11160 echo "${ECHO_T}$ac_header_preproc" >&6; }
11162 # So? What about this header?
11163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11164 yes:no: )
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11169 ac_header_preproc=yes
11171 no:yes:* )
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11184 ( cat <<\_ASBOX
11185 ## ------------------------------------------- ##
11186 ## Report this to lcdproc@lists.omnipotent.net ##
11187 ## ------------------------------------------- ##
11188 _ASBOX
11189 ) | sed "s/^/$as_me: WARNING: /" >&2
11191 esac
11192 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 else
11197 eval "$as_ac_Header=\$ac_header_preproc"
11199 ac_res=`eval echo '${'$as_ac_Header'}'`
11200 { echo "$as_me:$LINENO: result: $ac_res" >&5
11201 echo "${ECHO_T}$ac_res" >&6; }
11204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11207 _ACEOF
11209 { echo "$as_me:$LINENO: checking for new_g15_screen in -lg15daemon_client" >&5
11210 echo $ECHO_N "checking for new_g15_screen in -lg15daemon_client... $ECHO_C" >&6; }
11211 if test "${ac_cv_lib_g15daemon_client_new_g15_screen+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214 ac_check_lib_save_LIBS=$LIBS
11215 LIBS="-lg15daemon_client -lg15daemon_client
11216 $LIBS"
11217 cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 char new_g15_screen ();
11232 main ()
11234 return new_g15_screen ();
11236 return 0;
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (ac_try="$ac_link"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_link") 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } && {
11253 test -z "$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 } && test -s conftest$ac_exeext &&
11256 $as_test_x conftest$ac_exeext; then
11257 ac_cv_lib_g15daemon_client_new_g15_screen=yes
11258 else
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11262 ac_cv_lib_g15daemon_client_new_g15_screen=no
11265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11266 conftest$ac_exeext conftest.$ac_ext
11267 LIBS=$ac_check_lib_save_LIBS
11269 { echo "$as_me:$LINENO: result: $ac_cv_lib_g15daemon_client_new_g15_screen" >&5
11270 echo "${ECHO_T}$ac_cv_lib_g15daemon_client_new_g15_screen" >&6; }
11271 if test $ac_cv_lib_g15daemon_client_new_g15_screen = yes; then
11273 LIBG15="-lg15daemon_client"
11275 else
11277 { echo "$as_me:$LINENO: WARNING: The g15 driver needs libg15daemon_client-1.2 or better" >&5
11278 echo "$as_me: WARNING: The g15 driver needs libg15daemon_client-1.2 or better" >&2;}
11283 else
11285 { echo "$as_me:$LINENO: WARNING: The g15 driver needs g15daemon_client.h" >&5
11286 echo "$as_me: WARNING: The g15 driver needs g15daemon_client.h" >&2;}
11290 done
11293 for ac_header in libg15render.h
11295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 ac_res=`eval echo '${'$as_ac_Header'}'`
11303 { echo "$as_me:$LINENO: result: $ac_res" >&5
11304 echo "${ECHO_T}$ac_res" >&6; }
11305 else
11306 # Is the header compilable?
11307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h. */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h. */
11315 $ac_includes_default
11316 #include <$ac_header>
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (ac_try="$ac_compile"
11320 case "(($ac_try" in
11321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322 *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325 (eval "$ac_compile") 2>conftest.er1
11326 ac_status=$?
11327 grep -v '^ *+' conftest.er1 >conftest.err
11328 rm -f conftest.er1
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } && {
11332 test -z "$ac_c_werror_flag" ||
11333 test ! -s conftest.err
11334 } && test -s conftest.$ac_objext; then
11335 ac_header_compiler=yes
11336 else
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_header_compiler=no
11343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11345 echo "${ECHO_T}$ac_header_compiler" >&6; }
11347 # Is the header present?
11348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 #include <$ac_header>
11357 _ACEOF
11358 if { (ac_try="$ac_cpp conftest.$ac_ext"
11359 case "(($ac_try" in
11360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11361 *) ac_try_echo=$ac_try;;
11362 esac
11363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11365 ac_status=$?
11366 grep -v '^ *+' conftest.er1 >conftest.err
11367 rm -f conftest.er1
11368 cat conftest.err >&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); } >/dev/null && {
11371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11372 test ! -s conftest.err
11373 }; then
11374 ac_header_preproc=yes
11375 else
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11379 ac_header_preproc=no
11382 rm -f conftest.err conftest.$ac_ext
11383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11384 echo "${ECHO_T}$ac_header_preproc" >&6; }
11386 # So? What about this header?
11387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11388 yes:no: )
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11393 ac_header_preproc=yes
11395 no:yes:* )
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11408 ( cat <<\_ASBOX
11409 ## ------------------------------------------- ##
11410 ## Report this to lcdproc@lists.omnipotent.net ##
11411 ## ------------------------------------------- ##
11412 _ASBOX
11413 ) | sed "s/^/$as_me: WARNING: /" >&2
11415 esac
11416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 eval "$as_ac_Header=\$ac_header_preproc"
11423 ac_res=`eval echo '${'$as_ac_Header'}'`
11424 { echo "$as_me:$LINENO: result: $ac_res" >&5
11425 echo "${ECHO_T}$ac_res" >&6; }
11428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11429 cat >>confdefs.h <<_ACEOF
11430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11431 _ACEOF
11433 { echo "$as_me:$LINENO: checking for g15r_initCanvas in -lg15render" >&5
11434 echo $ECHO_N "checking for g15r_initCanvas in -lg15render... $ECHO_C" >&6; }
11435 if test "${ac_cv_lib_g15render_g15r_initCanvas+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438 ac_check_lib_save_LIBS=$LIBS
11439 LIBS="-lg15render -lg15render
11440 $LIBS"
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11448 /* Override any GCC internal prototype to avoid an error.
11449 Use char because int might match the return type of a GCC
11450 builtin and then its argument prototype would still apply. */
11451 #ifdef __cplusplus
11452 extern "C"
11453 #endif
11454 char g15r_initCanvas ();
11456 main ()
11458 return g15r_initCanvas ();
11460 return 0;
11462 _ACEOF
11463 rm -f conftest.$ac_objext conftest$ac_exeext
11464 if { (ac_try="$ac_link"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470 (eval "$ac_link") 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } && {
11477 test -z "$ac_c_werror_flag" ||
11478 test ! -s conftest.err
11479 } && test -s conftest$ac_exeext &&
11480 $as_test_x conftest$ac_exeext; then
11481 ac_cv_lib_g15render_g15r_initCanvas=yes
11482 else
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 ac_cv_lib_g15render_g15r_initCanvas=no
11489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_lib_save_LIBS
11493 { echo "$as_me:$LINENO: result: $ac_cv_lib_g15render_g15r_initCanvas" >&5
11494 echo "${ECHO_T}$ac_cv_lib_g15render_g15r_initCanvas" >&6; }
11495 if test $ac_cv_lib_g15render_g15r_initCanvas = yes; then
11497 LIBG15="$LIBG15 -lg15render"
11498 DRIVERS="$DRIVERS g15${SO}"
11499 actdrivers="$actdrivers g15"
11501 else
11503 { echo "$as_me:$LINENO: WARNING: the g15 driver needs libg15render" >&5
11504 echo "$as_me: WARNING: the g15 driver needs libg15render" >&2;}
11509 else
11511 { echo "$as_me:$LINENO: WARNING: The g15driver needs libg15render.h" >&5
11512 echo "$as_me: WARNING: The g15driver needs libg15render.h" >&2;}
11516 done
11519 glcdlib)
11521 for ac_header in glcdproclib/glcdprocdriver.h
11523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 ac_res=`eval echo '${'$as_ac_Header'}'`
11531 { echo "$as_me:$LINENO: result: $ac_res" >&5
11532 echo "${ECHO_T}$ac_res" >&6; }
11533 else
11534 # Is the header compilable?
11535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h. */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 $ac_includes_default
11544 #include <$ac_header>
11545 _ACEOF
11546 rm -f conftest.$ac_objext
11547 if { (ac_try="$ac_compile"
11548 case "(($ac_try" in
11549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11550 *) ac_try_echo=$ac_try;;
11551 esac
11552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11553 (eval "$ac_compile") 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } && {
11560 test -z "$ac_c_werror_flag" ||
11561 test ! -s conftest.err
11562 } && test -s conftest.$ac_objext; then
11563 ac_header_compiler=yes
11564 else
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 ac_header_compiler=no
11571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11573 echo "${ECHO_T}$ac_header_compiler" >&6; }
11575 # Is the header present?
11576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h. */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11584 #include <$ac_header>
11585 _ACEOF
11586 if { (ac_try="$ac_cpp conftest.$ac_ext"
11587 case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590 esac
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11593 ac_status=$?
11594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } >/dev/null && {
11599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11600 test ! -s conftest.err
11601 }; then
11602 ac_header_preproc=yes
11603 else
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11607 ac_header_preproc=no
11610 rm -f conftest.err conftest.$ac_ext
11611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11612 echo "${ECHO_T}$ac_header_preproc" >&6; }
11614 # So? What about this header?
11615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11616 yes:no: )
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11621 ac_header_preproc=yes
11623 no:yes:* )
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11636 ( cat <<\_ASBOX
11637 ## ------------------------------------------- ##
11638 ## Report this to lcdproc@lists.omnipotent.net ##
11639 ## ------------------------------------------- ##
11640 _ASBOX
11641 ) | sed "s/^/$as_me: WARNING: /" >&2
11643 esac
11644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11647 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 else
11649 eval "$as_ac_Header=\$ac_header_preproc"
11651 ac_res=`eval echo '${'$as_ac_Header'}'`
11652 { echo "$as_me:$LINENO: result: $ac_res" >&5
11653 echo "${ECHO_T}$ac_res" >&6; }
11656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11657 cat >>confdefs.h <<_ACEOF
11658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11659 _ACEOF
11661 { echo "$as_me:$LINENO: checking for main in -lglcdprocdriver" >&5
11662 echo $ECHO_N "checking for main in -lglcdprocdriver... $ECHO_C" >&6; }
11663 if test "${ac_cv_lib_glcdprocdriver_main+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 else
11666 ac_check_lib_save_LIBS=$LIBS
11667 LIBS="-lglcdprocdriver -lglcddrivers -lglcdgraphics -lglcdprocdriver
11668 $LIBS"
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11678 main ()
11680 return main ();
11682 return 0;
11684 _ACEOF
11685 rm -f conftest.$ac_objext conftest$ac_exeext
11686 if { (ac_try="$ac_link"
11687 case "(($ac_try" in
11688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689 *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692 (eval "$ac_link") 2>conftest.er1
11693 ac_status=$?
11694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } && {
11699 test -z "$ac_c_werror_flag" ||
11700 test ! -s conftest.err
11701 } && test -s conftest$ac_exeext &&
11702 $as_test_x conftest$ac_exeext; then
11703 ac_cv_lib_glcdprocdriver_main=yes
11704 else
11705 echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11708 ac_cv_lib_glcdprocdriver_main=no
11711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11712 conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11715 { echo "$as_me:$LINENO: result: $ac_cv_lib_glcdprocdriver_main" >&5
11716 echo "${ECHO_T}$ac_cv_lib_glcdprocdriver_main" >&6; }
11717 if test $ac_cv_lib_glcdprocdriver_main = yes; then
11719 LIBGLCD="-lglcddrivers -lglcdgraphics -lglcdprocdriver"
11720 DRIVERS="$DRIVERS glcdlib${SO}"
11721 actdrivers="$actdrivers glcdlib"
11723 else
11725 { echo "$as_me:$LINENO: WARNING: The glcdlib driver needs the glcdprocdriver library" >&5
11726 echo "$as_me: WARNING: The glcdlib driver needs the glcdprocdriver library" >&2;}
11731 else
11733 { echo "$as_me:$LINENO: WARNING: The glcdlib driver needs glcdproclib/glcdprocdriver.h" >&5
11734 echo "$as_me: WARNING: The glcdlib driver needs glcdproclib/glcdprocdriver.h" >&2;}
11738 done
11741 glk)
11742 DRIVERS="$DRIVERS glk${SO}"
11743 actdrivers="$actdrivers glk"
11745 hd44780)
11746 HD44780_DRIVERS="hd44780-hd44780-serial.o hd44780-hd44780-lis2.o"
11747 if test "$ac_cv_port_have_lpt" = yes ; then
11748 HD44780_DRIVERS="$HD44780_DRIVERS hd44780-hd44780-4bit.o hd44780-hd44780-ext8bit.o hd44780-lcd_sem.o hd44780-hd44780-winamp.o hd44780-hd44780-serialLpt.o"
11750 if test "$enable_libusb" = yes ; then
11751 HD44780_DRIVERS="$HD44780_DRIVERS hd44780-hd44780-bwct-usb.o hd44780-hd44780-lcd2usb.o"
11753 if test "${ac_cv_header_linux_i2c_dev_h+set}" = set; then
11754 { echo "$as_me:$LINENO: checking for linux/i2c-dev.h" >&5
11755 echo $ECHO_N "checking for linux/i2c-dev.h... $ECHO_C" >&6; }
11756 if test "${ac_cv_header_linux_i2c_dev_h+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_i2c_dev_h" >&5
11760 echo "${ECHO_T}$ac_cv_header_linux_i2c_dev_h" >&6; }
11761 else
11762 # Is the header compilable?
11763 { echo "$as_me:$LINENO: checking linux/i2c-dev.h usability" >&5
11764 echo $ECHO_N "checking linux/i2c-dev.h usability... $ECHO_C" >&6; }
11765 cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h. */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h. */
11771 $ac_includes_default
11772 #include <linux/i2c-dev.h>
11773 _ACEOF
11774 rm -f conftest.$ac_objext
11775 if { (ac_try="$ac_compile"
11776 case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_compile") 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } && {
11788 test -z "$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 } && test -s conftest.$ac_objext; then
11791 ac_header_compiler=yes
11792 else
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_header_compiler=no
11799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11801 echo "${ECHO_T}$ac_header_compiler" >&6; }
11803 # Is the header present?
11804 { echo "$as_me:$LINENO: checking linux/i2c-dev.h presence" >&5
11805 echo $ECHO_N "checking linux/i2c-dev.h presence... $ECHO_C" >&6; }
11806 cat >conftest.$ac_ext <<_ACEOF
11807 /* confdefs.h. */
11808 _ACEOF
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 #include <linux/i2c-dev.h>
11813 _ACEOF
11814 if { (ac_try="$ac_cpp conftest.$ac_ext"
11815 case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } >/dev/null && {
11827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 }; then
11830 ac_header_preproc=yes
11831 else
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.$ac_ext >&5
11835 ac_header_preproc=no
11838 rm -f conftest.err conftest.$ac_ext
11839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11840 echo "${ECHO_T}$ac_header_preproc" >&6; }
11842 # So? What about this header?
11843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11844 yes:no: )
11845 { echo "$as_me:$LINENO: WARNING: linux/i2c-dev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11846 echo "$as_me: WARNING: linux/i2c-dev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: linux/i2c-dev.h: proceeding with the compiler's result" >&5
11848 echo "$as_me: WARNING: linux/i2c-dev.h: proceeding with the compiler's result" >&2;}
11849 ac_header_preproc=yes
11851 no:yes:* )
11852 { echo "$as_me:$LINENO: WARNING: linux/i2c-dev.h: present but cannot be compiled" >&5
11853 echo "$as_me: WARNING: linux/i2c-dev.h: present but cannot be compiled" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: linux/i2c-dev.h: check for missing prerequisite headers?" >&5
11855 echo "$as_me: WARNING: linux/i2c-dev.h: check for missing prerequisite headers?" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: linux/i2c-dev.h: see the Autoconf documentation" >&5
11857 echo "$as_me: WARNING: linux/i2c-dev.h: see the Autoconf documentation" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: linux/i2c-dev.h: section \"Present But Cannot Be Compiled\"" >&5
11859 echo "$as_me: WARNING: linux/i2c-dev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: linux/i2c-dev.h: proceeding with the preprocessor's result" >&5
11861 echo "$as_me: WARNING: linux/i2c-dev.h: proceeding with the preprocessor's result" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: linux/i2c-dev.h: in the future, the compiler will take precedence" >&5
11863 echo "$as_me: WARNING: linux/i2c-dev.h: in the future, the compiler will take precedence" >&2;}
11864 ( cat <<\_ASBOX
11865 ## ------------------------------------------- ##
11866 ## Report this to lcdproc@lists.omnipotent.net ##
11867 ## ------------------------------------------- ##
11868 _ASBOX
11869 ) | sed "s/^/$as_me: WARNING: /" >&2
11871 esac
11872 { echo "$as_me:$LINENO: checking for linux/i2c-dev.h" >&5
11873 echo $ECHO_N "checking for linux/i2c-dev.h... $ECHO_C" >&6; }
11874 if test "${ac_cv_header_linux_i2c_dev_h+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 else
11877 ac_cv_header_linux_i2c_dev_h=$ac_header_preproc
11879 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_i2c_dev_h" >&5
11880 echo "${ECHO_T}$ac_cv_header_linux_i2c_dev_h" >&6; }
11883 if test $ac_cv_header_linux_i2c_dev_h = yes; then
11884 HD44780_DRIVERS="$HD44780_DRIVERS hd44780-i2c.o"
11886 cat >>confdefs.h <<\_ACEOF
11887 #define HAVE_I2C 1
11888 _ACEOF
11894 DRIVERS="$DRIVERS hd44780${SO}"
11895 actdrivers="$actdrivers hd44780"
11897 icp_a106)
11898 DRIVERS="$DRIVERS icp_a106${SO}"
11899 actdrivers="$actdrivers icp_a106"
11901 imon)
11902 DRIVERS="$DRIVERS imon${SO}"
11903 actdrivers="$actdrivers imon"
11905 IOWarrior)
11906 if test "$enable_libusb" = yes ; then
11907 DRIVERS="$DRIVERS IOWarrior${SO}"
11908 actdrivers="$actdrivers IOWarrior"
11909 else
11910 { echo "$as_me:$LINENO: WARNING: The IOWarrior driver needs the libusb library." >&5
11911 echo "$as_me: WARNING: The IOWarrior driver needs the libusb library." >&2;}
11914 irman)
11915 { echo "$as_me:$LINENO: checking for main in -lirman" >&5
11916 echo $ECHO_N "checking for main in -lirman... $ECHO_C" >&6; }
11917 if test "${ac_cv_lib_irman_main+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 ac_check_lib_save_LIBS=$LIBS
11921 LIBS="-lirman $LIBS"
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h. */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11931 main ()
11933 return main ();
11935 return 0;
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (ac_try="$ac_link"
11940 case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11943 esac
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945 (eval "$ac_link") 2>conftest.er1
11946 ac_status=$?
11947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } && {
11952 test -z "$ac_c_werror_flag" ||
11953 test ! -s conftest.err
11954 } && test -s conftest$ac_exeext &&
11955 $as_test_x conftest$ac_exeext; then
11956 ac_cv_lib_irman_main=yes
11957 else
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 ac_cv_lib_irman_main=no
11964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11965 conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11968 { echo "$as_me:$LINENO: result: $ac_cv_lib_irman_main" >&5
11969 echo "${ECHO_T}$ac_cv_lib_irman_main" >&6; }
11970 if test $ac_cv_lib_irman_main = yes; then
11972 LIBIRMAN="-lirman"
11973 DRIVERS="$DRIVERS irman${SO}"
11974 actdrivers="$actdrivers irman"
11976 else
11978 { echo "$as_me:$LINENO: WARNING: The irman driver needs the irman library." >&5
11979 echo "$as_me: WARNING: The irman driver needs the irman library." >&2;}
11984 joy)
11985 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11986 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
11987 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
11988 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
11992 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
11993 else
11994 # Is the header compilable?
11995 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
11996 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h. */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h. */
12003 $ac_includes_default
12004 #include <linux/joystick.h>
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } && {
12020 test -z "$ac_c_werror_flag" ||
12021 test ! -s conftest.err
12022 } && test -s conftest.$ac_objext; then
12023 ac_header_compiler=yes
12024 else
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 ac_header_compiler=no
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12033 echo "${ECHO_T}$ac_header_compiler" >&6; }
12035 # Is the header present?
12036 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
12037 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
12038 cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h. */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h. */
12044 #include <linux/joystick.h>
12045 _ACEOF
12046 if { (ac_try="$ac_cpp conftest.$ac_ext"
12047 case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050 esac
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12053 ac_status=$?
12054 grep -v '^ *+' conftest.er1 >conftest.err
12055 rm -f conftest.er1
12056 cat conftest.err >&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } >/dev/null && {
12059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 }; then
12062 ac_header_preproc=yes
12063 else
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_header_preproc=no
12070 rm -f conftest.err conftest.$ac_ext
12071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12072 echo "${ECHO_T}$ac_header_preproc" >&6; }
12074 # So? What about this header?
12075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12076 yes:no: )
12077 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
12078 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
12080 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
12081 ac_header_preproc=yes
12083 no:yes:* )
12084 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
12085 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
12087 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
12089 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
12091 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
12093 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
12095 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
12096 ( cat <<\_ASBOX
12097 ## ------------------------------------------- ##
12098 ## Report this to lcdproc@lists.omnipotent.net ##
12099 ## ------------------------------------------- ##
12100 _ASBOX
12101 ) | sed "s/^/$as_me: WARNING: /" >&2
12103 esac
12104 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
12105 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
12106 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 else
12109 ac_cv_header_linux_joystick_h=$ac_header_preproc
12111 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
12112 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
12115 if test $ac_cv_header_linux_joystick_h = yes; then
12117 DRIVERS="$DRIVERS joy${SO}"
12118 actdrivers="$actdrivers joy"
12120 else
12122 { echo "$as_me:$LINENO: WARNING: The joy driver needs header file linux/joystick.h." >&5
12123 echo "$as_me: WARNING: The joy driver needs header file linux/joystick.h." >&2;}
12129 lb216)
12130 DRIVERS="$DRIVERS lb216${SO}"
12131 actdrivers="$actdrivers lb216"
12133 lcdm001)
12134 DRIVERS="$DRIVERS lcdm001${SO}"
12135 actdrivers="$actdrivers lcdm001"
12137 lcterm)
12138 DRIVERS="$DRIVERS lcterm${SO}"
12139 actdrivers="$actdrivers lcterm"
12141 lirc)
12142 { echo "$as_me:$LINENO: checking for main in -llirc_client" >&5
12143 echo $ECHO_N "checking for main in -llirc_client... $ECHO_C" >&6; }
12144 if test "${ac_cv_lib_lirc_client_main+set}" = set; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147 ac_check_lib_save_LIBS=$LIBS
12148 LIBS="-llirc_client $LIBS"
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12158 main ()
12160 return main ();
12162 return 0;
12164 _ACEOF
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (ac_try="$ac_link"
12167 case "(($ac_try" in
12168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169 *) ac_try_echo=$ac_try;;
12170 esac
12171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12172 (eval "$ac_link") 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest$ac_exeext &&
12182 $as_test_x conftest$ac_exeext; then
12183 ac_cv_lib_lirc_client_main=yes
12184 else
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_cv_lib_lirc_client_main=no
12191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12192 conftest$ac_exeext conftest.$ac_ext
12193 LIBS=$ac_check_lib_save_LIBS
12195 { echo "$as_me:$LINENO: result: $ac_cv_lib_lirc_client_main" >&5
12196 echo "${ECHO_T}$ac_cv_lib_lirc_client_main" >&6; }
12197 if test $ac_cv_lib_lirc_client_main = yes; then
12199 LIBLIRC_CLIENT="-llirc_client"
12200 DRIVERS="$DRIVERS lirc${SO}"
12201 actdrivers="$actdrivers lirc"
12203 else
12205 { echo "$as_me:$LINENO: WARNING: The lirc driver needs the lirc client library" >&5
12206 echo "$as_me: WARNING: The lirc driver needs the lirc client library" >&2;}
12211 MD8800)
12212 DRIVERS="$DRIVERS MD8800${SO}"
12213 actdrivers="$actdrivers MD8800"
12215 ms6931)
12216 DRIVERS="$DRIVERS ms6931${SO}"
12217 actdrivers="$actdrivers ms6931"
12219 mtc_s16209x)
12220 DRIVERS="$DRIVERS mtc_s16209x${SO}"
12221 actdrivers="$actdrivers mtc_s16209x"
12223 MtxOrb)
12224 DRIVERS="$DRIVERS MtxOrb${SO}"
12225 actdrivers="$actdrivers MtxOrb"
12227 NoritakeVFD)
12228 DRIVERS="$DRIVERS NoritakeVFD${SO}"
12229 actdrivers="$actdrivers NoritakeVFD"
12231 picolcd)
12233 for ac_header in usblcd.h
12235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 ac_res=`eval echo '${'$as_ac_Header'}'`
12243 { echo "$as_me:$LINENO: result: $ac_res" >&5
12244 echo "${ECHO_T}$ac_res" >&6; }
12245 else
12246 # Is the header compilable?
12247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 $ac_includes_default
12256 #include <$ac_header>
12257 _ACEOF
12258 rm -f conftest.$ac_objext
12259 if { (ac_try="$ac_compile"
12260 case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_compile") 2>conftest.er1
12266 ac_status=$?
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest.$ac_objext; then
12275 ac_header_compiler=yes
12276 else
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_header_compiler=no
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12285 echo "${ECHO_T}$ac_header_compiler" >&6; }
12287 # Is the header present?
12288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12296 #include <$ac_header>
12297 _ACEOF
12298 if { (ac_try="$ac_cpp conftest.$ac_ext"
12299 case "(($ac_try" in
12300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301 *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12305 ac_status=$?
12306 grep -v '^ *+' conftest.er1 >conftest.err
12307 rm -f conftest.er1
12308 cat conftest.err >&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } >/dev/null && {
12311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12312 test ! -s conftest.err
12313 }; then
12314 ac_header_preproc=yes
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_header_preproc=no
12322 rm -f conftest.err conftest.$ac_ext
12323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12324 echo "${ECHO_T}$ac_header_preproc" >&6; }
12326 # So? What about this header?
12327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12328 yes:no: )
12329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12333 ac_header_preproc=yes
12335 no:yes:* )
12336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12348 ( cat <<\_ASBOX
12349 ## ------------------------------------------- ##
12350 ## Report this to lcdproc@lists.omnipotent.net ##
12351 ## ------------------------------------------- ##
12352 _ASBOX
12353 ) | sed "s/^/$as_me: WARNING: /" >&2
12355 esac
12356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 eval "$as_ac_Header=\$ac_header_preproc"
12363 ac_res=`eval echo '${'$as_ac_Header'}'`
12364 { echo "$as_me:$LINENO: result: $ac_res" >&5
12365 echo "${ECHO_T}$ac_res" >&6; }
12368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12369 cat >>confdefs.h <<_ACEOF
12370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12371 _ACEOF
12373 { echo "$as_me:$LINENO: checking for main in -lusblcd" >&5
12374 echo $ECHO_N "checking for main in -lusblcd... $ECHO_C" >&6; }
12375 if test "${ac_cv_lib_usblcd_main+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378 ac_check_lib_save_LIBS=$LIBS
12379 LIBS="-lusblcd -lusblcd
12380 $LIBS"
12381 cat >conftest.$ac_ext <<_ACEOF
12382 /* confdefs.h. */
12383 _ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12390 main ()
12392 return main ();
12394 return 0;
12396 _ACEOF
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (ac_try="$ac_link"
12399 case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_link") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest$ac_exeext &&
12414 $as_test_x conftest$ac_exeext; then
12415 ac_cv_lib_usblcd_main=yes
12416 else
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 ac_cv_lib_usblcd_main=no
12423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12427 { echo "$as_me:$LINENO: result: $ac_cv_lib_usblcd_main" >&5
12428 echo "${ECHO_T}$ac_cv_lib_usblcd_main" >&6; }
12429 if test $ac_cv_lib_usblcd_main = yes; then
12431 LIBUSBLCD="-lusblcd"
12432 DRIVERS="$DRIVERS picolcd${SO}"
12433 actdrivers="$actdrivers picolcd"
12435 else
12437 { echo "$as_me:$LINENO: WARNING: The picolcd driver needs the usblcd library" >&5
12438 echo "$as_me: WARNING: The picolcd driver needs the usblcd library" >&2;}
12443 else
12445 { echo "$as_me:$LINENO: WARNING: The picolcd driver needs widgets.h, usblcd.h and usblcd_util.h from the usblcd package" >&5
12446 echo "$as_me: WARNING: The picolcd driver needs widgets.h, usblcd.h and usblcd_util.h from the usblcd package" >&2;}
12450 done
12453 pyramid)
12454 DRIVERS="$DRIVERS pyramid${SO}"
12455 actdrivers="$actdrivers pyramid"
12457 sed1330)
12458 if test "$ac_cv_port_have_lpt" = yes
12459 then
12460 DRIVERS="$DRIVERS sed1330${SO}"
12461 actdrivers="$actdrivers sed1330"
12462 else
12463 { echo "$as_me:$LINENO: WARNING: The sed1330 driver needs a parallel port." >&5
12464 echo "$as_me: WARNING: The sed1330 driver needs a parallel port." >&2;}
12467 sed1520)
12468 if test "$ac_cv_port_have_lpt" = yes
12469 then
12470 DRIVERS="$DRIVERS sed1520${SO}"
12471 actdrivers="$actdrivers sed1520"
12472 else
12473 { echo "$as_me:$LINENO: WARNING: The sed1520 driver needs a parallel port." >&5
12474 echo "$as_me: WARNING: The sed1520 driver needs a parallel port." >&2;}
12477 serialPOS)
12478 DRIVERS="$DRIVERS serialPOS${SO}"
12479 actdrivers="$actdrivers serialPOS"
12481 serialVFD)
12482 DRIVERS="$DRIVERS serialVFD${SO}"
12483 actdrivers="$actdrivers serialVFD"
12485 sli)
12486 DRIVERS="$DRIVERS sli${SO}"
12487 actdrivers="$actdrivers sli"
12489 stv5730)
12490 if test "$ac_cv_port_have_lpt" = yes
12491 then
12492 DRIVERS="$DRIVERS stv5730${SO}"
12493 actdrivers="$actdrivers stv5730"
12494 else
12495 { echo "$as_me:$LINENO: WARNING: The stv5730 driver needs a parallel port." >&5
12496 echo "$as_me: WARNING: The stv5730 driver needs a parallel port." >&2;}
12499 svga)
12502 for ac_header in vga.h vgagl.h
12504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 ac_res=`eval echo '${'$as_ac_Header'}'`
12512 { echo "$as_me:$LINENO: result: $ac_res" >&5
12513 echo "${ECHO_T}$ac_res" >&6; }
12514 else
12515 # Is the header compilable?
12516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h. */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12524 $ac_includes_default
12525 #include <$ac_header>
12526 _ACEOF
12527 rm -f conftest.$ac_objext
12528 if { (ac_try="$ac_compile"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12532 esac
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_compile") 2>conftest.er1
12535 ac_status=$?
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && {
12541 test -z "$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12543 } && test -s conftest.$ac_objext; then
12544 ac_header_compiler=yes
12545 else
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 ac_header_compiler=no
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12554 echo "${ECHO_T}$ac_header_compiler" >&6; }
12556 # Is the header present?
12557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h. */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 #include <$ac_header>
12566 _ACEOF
12567 if { (ac_try="$ac_cpp conftest.$ac_ext"
12568 case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12571 esac
12572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12574 ac_status=$?
12575 grep -v '^ *+' conftest.er1 >conftest.err
12576 rm -f conftest.er1
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } >/dev/null && {
12580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12581 test ! -s conftest.err
12582 }; then
12583 ac_header_preproc=yes
12584 else
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 ac_header_preproc=no
12591 rm -f conftest.err conftest.$ac_ext
12592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12593 echo "${ECHO_T}$ac_header_preproc" >&6; }
12595 # So? What about this header?
12596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12597 yes:no: )
12598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12602 ac_header_preproc=yes
12604 no:yes:* )
12605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12617 ( cat <<\_ASBOX
12618 ## ------------------------------------------- ##
12619 ## Report this to lcdproc@lists.omnipotent.net ##
12620 ## ------------------------------------------- ##
12621 _ASBOX
12622 ) | sed "s/^/$as_me: WARNING: /" >&2
12624 esac
12625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12629 else
12630 eval "$as_ac_Header=\$ac_header_preproc"
12632 ac_res=`eval echo '${'$as_ac_Header'}'`
12633 { echo "$as_me:$LINENO: result: $ac_res" >&5
12634 echo "${ECHO_T}$ac_res" >&6; }
12637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12638 cat >>confdefs.h <<_ACEOF
12639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12640 _ACEOF
12642 { echo "$as_me:$LINENO: checking for main in -lvga" >&5
12643 echo $ECHO_N "checking for main in -lvga... $ECHO_C" >&6; }
12644 if test "${ac_cv_lib_vga_main+set}" = set; then
12645 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 else
12647 ac_check_lib_save_LIBS=$LIBS
12648 LIBS="-lvga $LIBS"
12649 cat >conftest.$ac_ext <<_ACEOF
12650 /* confdefs.h. */
12651 _ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12658 main ()
12660 return main ();
12662 return 0;
12664 _ACEOF
12665 rm -f conftest.$ac_objext conftest$ac_exeext
12666 if { (ac_try="$ac_link"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_link") 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } && {
12679 test -z "$ac_c_werror_flag" ||
12680 test ! -s conftest.err
12681 } && test -s conftest$ac_exeext &&
12682 $as_test_x conftest$ac_exeext; then
12683 ac_cv_lib_vga_main=yes
12684 else
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 ac_cv_lib_vga_main=no
12691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12692 conftest$ac_exeext conftest.$ac_ext
12693 LIBS=$ac_check_lib_save_LIBS
12695 { echo "$as_me:$LINENO: result: $ac_cv_lib_vga_main" >&5
12696 echo "${ECHO_T}$ac_cv_lib_vga_main" >&6; }
12697 if test $ac_cv_lib_vga_main = yes; then
12699 LIBSVGA="-lvga -lvgagl"
12700 DRIVERS="$DRIVERS svga${SO}"
12701 actdrivers="$actdrivers svga"
12703 else
12705 { echo "$as_me:$LINENO: WARNING: The svga driver needs the vga library" >&5
12706 echo "$as_me: WARNING: The svga driver needs the vga library" >&2;}
12711 else
12713 { echo "$as_me:$LINENO: WARNING: The svga driver needs vga.h and vgagl.h" >&5
12714 echo "$as_me: WARNING: The svga driver needs vga.h and vgagl.h" >&2;}
12718 done
12721 t6963)
12722 if test "$ac_cv_port_have_lpt" = yes
12723 then
12724 DRIVERS="$DRIVERS t6963${SO}"
12725 actdrivers="$actdrivers t6963"
12726 else
12727 { echo "$as_me:$LINENO: WARNING: The sed1330 driver needs a parallel port." >&5
12728 echo "$as_me: WARNING: The sed1330 driver needs a parallel port." >&2;}
12731 text)
12732 DRIVERS="$DRIVERS text${SO}"
12733 actdrivers="$actdrivers text"
12735 tyan)
12736 DRIVERS="$DRIVERS tyan${SO}"
12737 actdrivers="$actdrivers tyan"
12739 ula200)
12742 for ac_header in usb.h ftdi.h
12744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12746 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12751 ac_res=`eval echo '${'$as_ac_Header'}'`
12752 { echo "$as_me:$LINENO: result: $ac_res" >&5
12753 echo "${ECHO_T}$ac_res" >&6; }
12754 else
12755 # Is the header compilable?
12756 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 $ac_includes_default
12765 #include <$ac_header>
12766 _ACEOF
12767 rm -f conftest.$ac_objext
12768 if { (ac_try="$ac_compile"
12769 case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12772 esac
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_compile") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } && {
12781 test -z "$ac_c_werror_flag" ||
12782 test ! -s conftest.err
12783 } && test -s conftest.$ac_objext; then
12784 ac_header_compiler=yes
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 ac_header_compiler=no
12792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12794 echo "${ECHO_T}$ac_header_compiler" >&6; }
12796 # Is the header present?
12797 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h. */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805 #include <$ac_header>
12806 _ACEOF
12807 if { (ac_try="$ac_cpp conftest.$ac_ext"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12814 ac_status=$?
12815 grep -v '^ *+' conftest.er1 >conftest.err
12816 rm -f conftest.er1
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } >/dev/null && {
12820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 }; then
12823 ac_header_preproc=yes
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_header_preproc=no
12831 rm -f conftest.err conftest.$ac_ext
12832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12833 echo "${ECHO_T}$ac_header_preproc" >&6; }
12835 # So? What about this header?
12836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12837 yes:no: )
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12842 ac_header_preproc=yes
12844 no:yes:* )
12845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12857 ( cat <<\_ASBOX
12858 ## ------------------------------------------- ##
12859 ## Report this to lcdproc@lists.omnipotent.net ##
12860 ## ------------------------------------------- ##
12861 _ASBOX
12862 ) | sed "s/^/$as_me: WARNING: /" >&2
12864 esac
12865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 else
12870 eval "$as_ac_Header=\$ac_header_preproc"
12872 ac_res=`eval echo '${'$as_ac_Header'}'`
12873 { echo "$as_me:$LINENO: result: $ac_res" >&5
12874 echo "${ECHO_T}$ac_res" >&6; }
12877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12878 cat >>confdefs.h <<_ACEOF
12879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12880 _ACEOF
12882 { echo "$as_me:$LINENO: checking for ftdi_set_line_property in -lftdi" >&5
12883 echo $ECHO_N "checking for ftdi_set_line_property in -lftdi... $ECHO_C" >&6; }
12884 if test "${ac_cv_lib_ftdi_ftdi_set_line_property+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887 ac_check_lib_save_LIBS=$LIBS
12888 LIBS="-lftdi $LIBS"
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h. */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12896 /* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12899 #ifdef __cplusplus
12900 extern "C"
12901 #endif
12902 char ftdi_set_line_property ();
12904 main ()
12906 return ftdi_set_line_property ();
12908 return 0;
12910 _ACEOF
12911 rm -f conftest.$ac_objext conftest$ac_exeext
12912 if { (ac_try="$ac_link"
12913 case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916 esac
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_link") 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && {
12925 test -z "$ac_c_werror_flag" ||
12926 test ! -s conftest.err
12927 } && test -s conftest$ac_exeext &&
12928 $as_test_x conftest$ac_exeext; then
12929 ac_cv_lib_ftdi_ftdi_set_line_property=yes
12930 else
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12934 ac_cv_lib_ftdi_ftdi_set_line_property=no
12937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12938 conftest$ac_exeext conftest.$ac_ext
12939 LIBS=$ac_check_lib_save_LIBS
12941 { echo "$as_me:$LINENO: result: $ac_cv_lib_ftdi_ftdi_set_line_property" >&5
12942 echo "${ECHO_T}$ac_cv_lib_ftdi_ftdi_set_line_property" >&6; }
12943 if test $ac_cv_lib_ftdi_ftdi_set_line_property = yes; then
12945 LIBFTDI="-lusb -lftdi"
12946 DRIVERS="$DRIVERS ula200${SO}"
12947 actdrivers="$actdrivers ula200"
12949 else
12951 { echo "$as_me:$LINENO: WARNING: The ula200 driver needs the ftdi library in version 0.7" >&5
12952 echo "$as_me: WARNING: The ula200 driver needs the ftdi library in version 0.7" >&2;}
12957 else
12959 { echo "$as_me:$LINENO: WARNING: The ula200 driver needs ftdi.h and usb.h" >&5
12960 echo "$as_me: WARNING: The ula200 driver needs ftdi.h and usb.h" >&2;}
12964 done
12967 xosd)
12969 for ac_header in xosd.h
12971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 ac_res=`eval echo '${'$as_ac_Header'}'`
12979 { echo "$as_me:$LINENO: result: $ac_res" >&5
12980 echo "${ECHO_T}$ac_res" >&6; }
12981 else
12982 # Is the header compilable?
12983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12985 cat >conftest.$ac_ext <<_ACEOF
12986 /* confdefs.h. */
12987 _ACEOF
12988 cat confdefs.h >>conftest.$ac_ext
12989 cat >>conftest.$ac_ext <<_ACEOF
12990 /* end confdefs.h. */
12991 $ac_includes_default
12992 #include <$ac_header>
12993 _ACEOF
12994 rm -f conftest.$ac_objext
12995 if { (ac_try="$ac_compile"
12996 case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
12999 esac
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_compile") 2>conftest.er1
13002 ac_status=$?
13003 grep -v '^ *+' conftest.er1 >conftest.err
13004 rm -f conftest.er1
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } && {
13008 test -z "$ac_c_werror_flag" ||
13009 test ! -s conftest.err
13010 } && test -s conftest.$ac_objext; then
13011 ac_header_compiler=yes
13012 else
13013 echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13016 ac_header_compiler=no
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13021 echo "${ECHO_T}$ac_header_compiler" >&6; }
13023 # Is the header present?
13024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13026 cat >conftest.$ac_ext <<_ACEOF
13027 /* confdefs.h. */
13028 _ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 #include <$ac_header>
13033 _ACEOF
13034 if { (ac_try="$ac_cpp conftest.$ac_ext"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13041 ac_status=$?
13042 grep -v '^ *+' conftest.er1 >conftest.err
13043 rm -f conftest.er1
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } >/dev/null && {
13047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 }; then
13050 ac_header_preproc=yes
13051 else
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13055 ac_header_preproc=no
13058 rm -f conftest.err conftest.$ac_ext
13059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13060 echo "${ECHO_T}$ac_header_preproc" >&6; }
13062 # So? What about this header?
13063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13064 yes:no: )
13065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13069 ac_header_preproc=yes
13071 no:yes:* )
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13084 ( cat <<\_ASBOX
13085 ## ------------------------------------------- ##
13086 ## Report this to lcdproc@lists.omnipotent.net ##
13087 ## ------------------------------------------- ##
13088 _ASBOX
13089 ) | sed "s/^/$as_me: WARNING: /" >&2
13091 esac
13092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13096 else
13097 eval "$as_ac_Header=\$ac_header_preproc"
13099 ac_res=`eval echo '${'$as_ac_Header'}'`
13100 { echo "$as_me:$LINENO: result: $ac_res" >&5
13101 echo "${ECHO_T}$ac_res" >&6; }
13104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13105 cat >>confdefs.h <<_ACEOF
13106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13107 _ACEOF
13109 { echo "$as_me:$LINENO: checking for main in -lxosd" >&5
13110 echo $ECHO_N "checking for main in -lxosd... $ECHO_C" >&6; }
13111 if test "${ac_cv_lib_xosd_main+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114 ac_check_lib_save_LIBS=$LIBS
13115 LIBS="-lxosd $LIBS"
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h. */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13125 main ()
13127 return main ();
13129 return 0;
13131 _ACEOF
13132 rm -f conftest.$ac_objext conftest$ac_exeext
13133 if { (ac_try="$ac_link"
13134 case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137 esac
13138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_link") 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } && {
13146 test -z "$ac_c_werror_flag" ||
13147 test ! -s conftest.err
13148 } && test -s conftest$ac_exeext &&
13149 $as_test_x conftest$ac_exeext; then
13150 ac_cv_lib_xosd_main=yes
13151 else
13152 echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13155 ac_cv_lib_xosd_main=no
13158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13159 conftest$ac_exeext conftest.$ac_ext
13160 LIBS=$ac_check_lib_save_LIBS
13162 { echo "$as_me:$LINENO: result: $ac_cv_lib_xosd_main" >&5
13163 echo "${ECHO_T}$ac_cv_lib_xosd_main" >&6; }
13164 if test $ac_cv_lib_xosd_main = yes; then
13166 LIBXOSD=`xosd-config --libs`
13167 DRIVERS="$DRIVERS xosd${SO}"
13168 actdrivers="$actdrivers xosd"
13170 else
13172 { echo "$as_me:$LINENO: WARNING: The xosd driver needs the xosd library" >&5
13173 echo "$as_me: WARNING: The xosd driver needs the xosd library" >&2;}
13178 else
13180 { echo "$as_me:$LINENO: WARNING: The xosd driver needs xosd.h" >&5
13181 echo "$as_me: WARNING: The xosd driver needs xosd.h" >&2;}
13185 done
13189 { { echo "$as_me:$LINENO: error: Unknown driver $driver" >&5
13190 echo "$as_me: error: Unknown driver $driver" >&2;}
13191 { (exit 1); exit 1; }; }
13193 esac
13194 done
13196 actdrivers=`echo $actdrivers | sed -e 's/ /,/g'`
13197 { echo "$as_me:$LINENO: result: Will compile drivers: $actdrivers" >&5
13198 echo "${ECHO_T}Will compile drivers: $actdrivers" >&6; }
13214 # Features applicable to the server
13215 # Check whether --enable-seamless-hbars was given.
13216 if test "${enable_seamless_hbars+set}" = set; then
13217 enableval=$enable_seamless_hbars; if test "$enableval" = "yes" ; then
13219 cat >>confdefs.h <<\_ACEOF
13220 #define SEAMLESS_HBARS 1
13221 _ACEOF
13228 # Check whether --enable-testmenus was given.
13229 if test "${enable_testmenus+set}" = set; then
13230 enableval=$enable_testmenus; if test "$enableval" = "yes" ; then
13232 cat >>confdefs.h <<\_ACEOF
13233 #define LCDPROC_TESTMENUS 1
13234 _ACEOF
13241 # Check whether --enable-permissive_menu_goto was given.
13242 if test "${enable_permissive_menu_goto+set}" = set; then
13243 enableval=$enable_permissive_menu_goto; if test "$enableval" = "yes" ; then
13245 cat >>confdefs.h <<\_ACEOF
13246 #define LCDPROC_PERMISSIVE_MENU_GOTO 1
13247 _ACEOF
13254 # Check whether --enable-lcdproc-menus was given.
13255 if test "${enable_lcdproc_menus+set}" = set; then
13256 enableval=$enable_lcdproc_menus; if test "$enableval" = "yes" ; then
13258 cat >>confdefs.h <<\_ACEOF
13259 #define LCDPROC_MENUS 1
13260 _ACEOF
13267 # Check whether --enable-stat-nfs was given.
13268 if test "${enable_stat_nfs+set}" = set; then
13269 enableval=$enable_stat_nfs; if test "$enableval" = "yes" ; then
13271 cat >>confdefs.h <<\_ACEOF
13272 #define STAT_NFS 1
13273 _ACEOF
13280 # Check whether --enable-stat-smbfs was given.
13281 if test "${enable_stat_smbfs+set}" = set; then
13282 enableval=$enable_stat_smbfs; if test "$enableval" = "yes" ; then
13284 cat >>confdefs.h <<\_ACEOF
13285 #define STAT_SMBFS 1
13286 _ACEOF
13294 # check for doxygen
13296 # Check whether --enable-doxygen was given.
13297 if test "${enable_doxygen+set}" = set; then
13298 enableval=$enable_doxygen;
13301 # Check whether --enable-dot was given.
13302 if test "${enable_dot+set}" = set; then
13303 enableval=$enable_dot;
13306 # Check whether --enable-html-dox was given.
13307 if test "${enable_html_dox+set}" = set; then
13308 enableval=$enable_html_dox;
13309 else
13310 enable_html_dox=yes
13313 # Check whether --enable-latex-dox was given.
13314 if test "${enable_latex_dox+set}" = set; then
13315 enableval=$enable_latex_dox;
13316 else
13317 enable_latex_dox=no
13320 if test "x$enable_doxygen" = xno; then
13321 enable_dox=no
13322 else
13323 # Extract the first word of "doxygen", so it can be a program name with args.
13324 set dummy doxygen; ac_word=$2
13325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13327 if test "${ac_cv_path_DOXYGEN+set}" = set; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 else
13330 case $DOXYGEN in
13331 [\\/]* | ?:[\\/]*)
13332 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13338 IFS=$as_save_IFS
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13342 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
13343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13344 break 2
13346 done
13347 done
13348 IFS=$as_save_IFS
13351 esac
13353 DOXYGEN=$ac_cv_path_DOXYGEN
13354 if test -n "$DOXYGEN"; then
13355 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
13356 echo "${ECHO_T}$DOXYGEN" >&6; }
13357 else
13358 { echo "$as_me:$LINENO: result: no" >&5
13359 echo "${ECHO_T}no" >&6; }
13363 if test "x$DOXYGEN" = x; then
13364 if test "x$enable_doxygen" = xyes; then
13365 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
13366 echo "$as_me: error: could not find doxygen" >&2;}
13367 { (exit 1); exit 1; }; }
13369 enable_dox=no
13370 else
13371 enable_dox=yes
13372 # Extract the first word of "dot", so it can be a program name with args.
13373 set dummy dot; ac_word=$2
13374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13376 if test "${ac_cv_path_DOT+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379 case $DOT in
13380 [\\/]* | ?:[\\/]*)
13381 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
13384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13385 for as_dir in $PATH
13387 IFS=$as_save_IFS
13388 test -z "$as_dir" && as_dir=.
13389 for ac_exec_ext in '' $ac_executable_extensions; do
13390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13391 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
13392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13393 break 2
13395 done
13396 done
13397 IFS=$as_save_IFS
13400 esac
13402 DOT=$ac_cv_path_DOT
13403 if test -n "$DOT"; then
13404 { echo "$as_me:$LINENO: result: $DOT" >&5
13405 echo "${ECHO_T}$DOT" >&6; }
13406 else
13407 { echo "$as_me:$LINENO: result: no" >&5
13408 echo "${ECHO_T}no" >&6; }
13416 if test x$enable_dox = xyes; then
13417 DOX_TRUE=
13418 DOX_FALSE='#'
13419 else
13420 DOX_TRUE='#'
13421 DOX_FALSE=
13425 if test x$DOT = x; then
13426 if test "x$enable_dot" = xyes; then
13427 { { echo "$as_me:$LINENO: error: could not find dot" >&5
13428 echo "$as_me: error: could not find dot" >&2;}
13429 { (exit 1); exit 1; }; }
13431 enable_dot=no
13432 else
13433 enable_dot=yes
13440 ac_config_files="$ac_config_files Makefile shared/Makefile server/Makefile server/commands/Makefile server/drivers/Makefile clients/Makefile clients/lcdproc/Makefile clients/lcdexec/Makefile clients/lcdvc/Makefile clients/examples/Makefile clients/metar/Makefile docs/Makefile docs/Doxyfile docs/lcdproc-dev/Makefile docs/lcdproc-user/Makefile docs/lcdproc-user/drivers/Makefile scripts/Makefile scripts/init-LCDd.LSB scripts/init-lcdproc.LSB scripts/init-lcdexec.LSB scripts/init-lcdvc.LSB scripts/init-LCDd.debian scripts/init-lcdproc.debian scripts/init-lcdexec.debian scripts/init-lcdvc.debian scripts/init-LCDd.rpm scripts/init-lcdproc.rpm"
13442 cat >confcache <<\_ACEOF
13443 # This file is a shell script that caches the results of configure
13444 # tests run on this system so they can be shared between configure
13445 # scripts and configure runs, see configure's option --config-cache.
13446 # It is not useful on other systems. If it contains results you don't
13447 # want to keep, you may remove or edit it.
13449 # config.status only pays attention to the cache file if you give it
13450 # the --recheck option to rerun configure.
13452 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13453 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13454 # following values.
13456 _ACEOF
13458 # The following way of writing the cache mishandles newlines in values,
13459 # but we know of no workaround that is simple, portable, and efficient.
13460 # So, we kill variables containing newlines.
13461 # Ultrix sh set writes to stderr and can't be redirected directly,
13462 # and sets the high bit in the cache file unless we assign to the vars.
13464 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13465 eval ac_val=\$$ac_var
13466 case $ac_val in #(
13467 *${as_nl}*)
13468 case $ac_var in #(
13469 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13470 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13471 esac
13472 case $ac_var in #(
13473 _ | IFS | as_nl) ;; #(
13474 *) $as_unset $ac_var ;;
13475 esac ;;
13476 esac
13477 done
13479 (set) 2>&1 |
13480 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13481 *${as_nl}ac_space=\ *)
13482 # `set' does not quote correctly, so add quotes (double-quote
13483 # substitution turns \\\\ into \\, and sed turns \\ into \).
13484 sed -n \
13485 "s/'/'\\\\''/g;
13486 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13487 ;; #(
13489 # `set' quotes correctly as required by POSIX, so do not add quotes.
13490 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13492 esac |
13493 sort
13495 sed '
13496 /^ac_cv_env_/b end
13497 t clear
13498 :clear
13499 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13500 t end
13501 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13502 :end' >>confcache
13503 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13504 if test -w "$cache_file"; then
13505 test "x$cache_file" != "x/dev/null" &&
13506 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13507 echo "$as_me: updating cache $cache_file" >&6;}
13508 cat confcache >$cache_file
13509 else
13510 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13511 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13514 rm -f confcache
13516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13517 # Let make expand exec_prefix.
13518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13520 DEFS=-DHAVE_CONFIG_H
13522 ac_libobjs=
13523 ac_ltlibobjs=
13524 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13525 # 1. Remove the extension, and $U if already installed.
13526 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13527 ac_i=`echo "$ac_i" | sed "$ac_script"`
13528 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13529 # will be set to the directory where LIBOBJS objects are built.
13530 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13531 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13532 done
13533 LIBOBJS=$ac_libobjs
13535 LTLIBOBJS=$ac_ltlibobjs
13538 if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then
13539 { { echo "$as_me:$LINENO: error: conditional \"DARWIN\" was never defined.
13540 Usually this means the macro was only invoked conditionally." >&5
13541 echo "$as_me: error: conditional \"DARWIN\" was never defined.
13542 Usually this means the macro was only invoked conditionally." >&2;}
13543 { (exit 1); exit 1; }; }
13545 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13546 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13547 Usually this means the macro was only invoked conditionally." >&5
13548 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13549 Usually this means the macro was only invoked conditionally." >&2;}
13550 { (exit 1); exit 1; }; }
13552 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13553 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13554 Usually this means the macro was only invoked conditionally." >&5
13555 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13556 Usually this means the macro was only invoked conditionally." >&2;}
13557 { (exit 1); exit 1; }; }
13559 if test -z "${DOX_TRUE}" && test -z "${DOX_FALSE}"; then
13560 { { echo "$as_me:$LINENO: error: conditional \"DOX\" was never defined.
13561 Usually this means the macro was only invoked conditionally." >&5
13562 echo "$as_me: error: conditional \"DOX\" was never defined.
13563 Usually this means the macro was only invoked conditionally." >&2;}
13564 { (exit 1); exit 1; }; }
13567 : ${CONFIG_STATUS=./config.status}
13568 ac_clean_files_save=$ac_clean_files
13569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13570 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13571 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13572 cat >$CONFIG_STATUS <<_ACEOF
13573 #! $SHELL
13574 # Generated by $as_me.
13575 # Run this file to recreate the current configuration.
13576 # Compiler output produced by configure, useful for debugging
13577 # configure, is in config.log if it exists.
13579 debug=false
13580 ac_cs_recheck=false
13581 ac_cs_silent=false
13582 SHELL=\${CONFIG_SHELL-$SHELL}
13583 _ACEOF
13585 cat >>$CONFIG_STATUS <<\_ACEOF
13586 ## --------------------- ##
13587 ## M4sh Initialization. ##
13588 ## --------------------- ##
13590 # Be more Bourne compatible
13591 DUALCASE=1; export DUALCASE # for MKS sh
13592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13593 emulate sh
13594 NULLCMD=:
13595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13596 # is contrary to our usage. Disable this feature.
13597 alias -g '${1+"$@"}'='"$@"'
13598 setopt NO_GLOB_SUBST
13599 else
13600 case `(set -o) 2>/dev/null` in
13601 *posix*) set -o posix ;;
13602 esac
13609 # PATH needs CR
13610 # Avoid depending upon Character Ranges.
13611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13614 as_cr_digits='0123456789'
13615 as_cr_alnum=$as_cr_Letters$as_cr_digits
13617 # The user is always right.
13618 if test "${PATH_SEPARATOR+set}" != set; then
13619 echo "#! /bin/sh" >conf$$.sh
13620 echo "exit 0" >>conf$$.sh
13621 chmod +x conf$$.sh
13622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13623 PATH_SEPARATOR=';'
13624 else
13625 PATH_SEPARATOR=:
13627 rm -f conf$$.sh
13630 # Support unset when possible.
13631 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13632 as_unset=unset
13633 else
13634 as_unset=false
13638 # IFS
13639 # We need space, tab and new line, in precisely that order. Quoting is
13640 # there to prevent editors from complaining about space-tab.
13641 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13642 # splitting by setting IFS to empty value.)
13643 as_nl='
13645 IFS=" "" $as_nl"
13647 # Find who we are. Look in the path if we contain no directory separator.
13648 case $0 in
13649 *[\\/]* ) as_myself=$0 ;;
13650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651 for as_dir in $PATH
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
13655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13656 done
13657 IFS=$as_save_IFS
13660 esac
13661 # We did not find ourselves, most probably we were run as `sh COMMAND'
13662 # in which case we are not to be found in the path.
13663 if test "x$as_myself" = x; then
13664 as_myself=$0
13666 if test ! -f "$as_myself"; then
13667 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13668 { (exit 1); exit 1; }
13671 # Work around bugs in pre-3.0 UWIN ksh.
13672 for as_var in ENV MAIL MAILPATH
13673 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13674 done
13675 PS1='$ '
13676 PS2='> '
13677 PS4='+ '
13679 # NLS nuisances.
13680 for as_var in \
13681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13683 LC_TELEPHONE LC_TIME
13685 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13686 eval $as_var=C; export $as_var
13687 else
13688 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13690 done
13692 # Required to use basename.
13693 if expr a : '\(a\)' >/dev/null 2>&1 &&
13694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13695 as_expr=expr
13696 else
13697 as_expr=false
13700 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13701 as_basename=basename
13702 else
13703 as_basename=false
13707 # Name of the executable.
13708 as_me=`$as_basename -- "$0" ||
13709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13710 X"$0" : 'X\(//\)$' \| \
13711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13712 echo X/"$0" |
13713 sed '/^.*\/\([^/][^/]*\)\/*$/{
13714 s//\1/
13717 /^X\/\(\/\/\)$/{
13718 s//\1/
13721 /^X\/\(\/\).*/{
13722 s//\1/
13725 s/.*/./; q'`
13727 # CDPATH.
13728 $as_unset CDPATH
13732 as_lineno_1=$LINENO
13733 as_lineno_2=$LINENO
13734 test "x$as_lineno_1" != "x$as_lineno_2" &&
13735 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13737 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13738 # uniformly replaced by the line number. The first 'sed' inserts a
13739 # line-number line after each line using $LINENO; the second 'sed'
13740 # does the real work. The second script uses 'N' to pair each
13741 # line-number line with the line containing $LINENO, and appends
13742 # trailing '-' during substitution so that $LINENO is not a special
13743 # case at line end.
13744 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13745 # scripts with optimization help from Paolo Bonzini. Blame Lee
13746 # E. McMahon (1931-1989) for sed's syntax. :-)
13747 sed -n '
13749 /[$]LINENO/=
13750 ' <$as_myself |
13751 sed '
13752 s/[$]LINENO.*/&-/
13753 t lineno
13755 :lineno
13757 :loop
13758 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13759 t loop
13760 s/-\n.*//
13761 ' >$as_me.lineno &&
13762 chmod +x "$as_me.lineno" ||
13763 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13764 { (exit 1); exit 1; }; }
13766 # Don't try to exec as it changes $[0], causing all sort of problems
13767 # (the dirname of $[0] is not the place where we might find the
13768 # original and so on. Autoconf is especially sensitive to this).
13769 . "./$as_me.lineno"
13770 # Exit status is that of the last command.
13771 exit
13775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13776 as_dirname=dirname
13777 else
13778 as_dirname=false
13781 ECHO_C= ECHO_N= ECHO_T=
13782 case `echo -n x` in
13783 -n*)
13784 case `echo 'x\c'` in
13785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13786 *) ECHO_C='\c';;
13787 esac;;
13789 ECHO_N='-n';;
13790 esac
13792 if expr a : '\(a\)' >/dev/null 2>&1 &&
13793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13794 as_expr=expr
13795 else
13796 as_expr=false
13799 rm -f conf$$ conf$$.exe conf$$.file
13800 if test -d conf$$.dir; then
13801 rm -f conf$$.dir/conf$$.file
13802 else
13803 rm -f conf$$.dir
13804 mkdir conf$$.dir
13806 echo >conf$$.file
13807 if ln -s conf$$.file conf$$ 2>/dev/null; then
13808 as_ln_s='ln -s'
13809 # ... but there are two gotchas:
13810 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13811 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13812 # In both cases, we have to default to `cp -p'.
13813 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13814 as_ln_s='cp -p'
13815 elif ln conf$$.file conf$$ 2>/dev/null; then
13816 as_ln_s=ln
13817 else
13818 as_ln_s='cp -p'
13820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13821 rmdir conf$$.dir 2>/dev/null
13823 if mkdir -p . 2>/dev/null; then
13824 as_mkdir_p=:
13825 else
13826 test -d ./-p && rmdir ./-p
13827 as_mkdir_p=false
13830 if test -x / >/dev/null 2>&1; then
13831 as_test_x='test -x'
13832 else
13833 if ls -dL / >/dev/null 2>&1; then
13834 as_ls_L_option=L
13835 else
13836 as_ls_L_option=
13838 as_test_x='
13839 eval sh -c '\''
13840 if test -d "$1"; then
13841 test -d "$1/.";
13842 else
13843 case $1 in
13844 -*)set "./$1";;
13845 esac;
13846 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13847 ???[sx]*):;;*)false;;esac;fi
13848 '\'' sh
13851 as_executable_p=$as_test_x
13853 # Sed expression to map a string onto a valid CPP name.
13854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13856 # Sed expression to map a string onto a valid variable name.
13857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13860 exec 6>&1
13862 # Save the log message, to keep $[0] and so on meaningful, and to
13863 # report actual input values of CONFIG_FILES etc. instead of their
13864 # values after options handling.
13865 ac_log="
13866 This file was extended by lcdproc $as_me 0.5.2, which was
13867 generated by GNU Autoconf 2.61. Invocation command line was
13869 CONFIG_FILES = $CONFIG_FILES
13870 CONFIG_HEADERS = $CONFIG_HEADERS
13871 CONFIG_LINKS = $CONFIG_LINKS
13872 CONFIG_COMMANDS = $CONFIG_COMMANDS
13873 $ $0 $@
13875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13878 _ACEOF
13880 cat >>$CONFIG_STATUS <<_ACEOF
13881 # Files that config.status was made for.
13882 config_files="$ac_config_files"
13883 config_headers="$ac_config_headers"
13884 config_commands="$ac_config_commands"
13886 _ACEOF
13888 cat >>$CONFIG_STATUS <<\_ACEOF
13889 ac_cs_usage="\
13890 \`$as_me' instantiates files from templates according to the
13891 current configuration.
13893 Usage: $0 [OPTIONS] [FILE]...
13895 -h, --help print this help, then exit
13896 -V, --version print version number and configuration settings, then exit
13897 -q, --quiet do not print progress messages
13898 -d, --debug don't remove temporary files
13899 --recheck update $as_me by reconfiguring in the same conditions
13900 --file=FILE[:TEMPLATE]
13901 instantiate the configuration file FILE
13902 --header=FILE[:TEMPLATE]
13903 instantiate the configuration header FILE
13905 Configuration files:
13906 $config_files
13908 Configuration headers:
13909 $config_headers
13911 Configuration commands:
13912 $config_commands
13914 Report bugs to <bug-autoconf@gnu.org>."
13916 _ACEOF
13917 cat >>$CONFIG_STATUS <<_ACEOF
13918 ac_cs_version="\\
13919 lcdproc config.status 0.5.2
13920 configured by $0, generated by GNU Autoconf 2.61,
13921 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13923 Copyright (C) 2006 Free Software Foundation, Inc.
13924 This config.status script is free software; the Free Software Foundation
13925 gives unlimited permission to copy, distribute and modify it."
13927 ac_pwd='$ac_pwd'
13928 srcdir='$srcdir'
13929 INSTALL='$INSTALL'
13930 _ACEOF
13932 cat >>$CONFIG_STATUS <<\_ACEOF
13933 # If no file are specified by the user, then we need to provide default
13934 # value. By we need to know if files were specified by the user.
13935 ac_need_defaults=:
13936 while test $# != 0
13938 case $1 in
13939 --*=*)
13940 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13941 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13942 ac_shift=:
13945 ac_option=$1
13946 ac_optarg=$2
13947 ac_shift=shift
13949 esac
13951 case $ac_option in
13952 # Handling of the options.
13953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13954 ac_cs_recheck=: ;;
13955 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13956 echo "$ac_cs_version"; exit ;;
13957 --debug | --debu | --deb | --de | --d | -d )
13958 debug=: ;;
13959 --file | --fil | --fi | --f )
13960 $ac_shift
13961 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13962 ac_need_defaults=false;;
13963 --header | --heade | --head | --hea )
13964 $ac_shift
13965 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13966 ac_need_defaults=false;;
13967 --he | --h)
13968 # Conflict between --help and --header
13969 { echo "$as_me: error: ambiguous option: $1
13970 Try \`$0 --help' for more information." >&2
13971 { (exit 1); exit 1; }; };;
13972 --help | --hel | -h )
13973 echo "$ac_cs_usage"; exit ;;
13974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13976 ac_cs_silent=: ;;
13978 # This is an error.
13979 -*) { echo "$as_me: error: unrecognized option: $1
13980 Try \`$0 --help' for more information." >&2
13981 { (exit 1); exit 1; }; } ;;
13983 *) ac_config_targets="$ac_config_targets $1"
13984 ac_need_defaults=false ;;
13986 esac
13987 shift
13988 done
13990 ac_configure_extra_args=
13992 if $ac_cs_silent; then
13993 exec 6>/dev/null
13994 ac_configure_extra_args="$ac_configure_extra_args --silent"
13997 _ACEOF
13998 cat >>$CONFIG_STATUS <<_ACEOF
13999 if \$ac_cs_recheck; then
14000 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14001 CONFIG_SHELL=$SHELL
14002 export CONFIG_SHELL
14003 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14006 _ACEOF
14007 cat >>$CONFIG_STATUS <<\_ACEOF
14008 exec 5>>config.log
14010 echo
14011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14012 ## Running $as_me. ##
14013 _ASBOX
14014 echo "$ac_log"
14015 } >&5
14017 _ACEOF
14018 cat >>$CONFIG_STATUS <<_ACEOF
14020 # INIT-COMMANDS
14022 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14024 _ACEOF
14026 cat >>$CONFIG_STATUS <<\_ACEOF
14028 # Handling of arguments.
14029 for ac_config_target in $ac_config_targets
14031 case $ac_config_target in
14032 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14033 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14034 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14035 "shared/Makefile") CONFIG_FILES="$CONFIG_FILES shared/Makefile" ;;
14036 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
14037 "server/commands/Makefile") CONFIG_FILES="$CONFIG_FILES server/commands/Makefile" ;;
14038 "server/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES server/drivers/Makefile" ;;
14039 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile" ;;
14040 "clients/lcdproc/Makefile") CONFIG_FILES="$CONFIG_FILES clients/lcdproc/Makefile" ;;
14041 "clients/lcdexec/Makefile") CONFIG_FILES="$CONFIG_FILES clients/lcdexec/Makefile" ;;
14042 "clients/lcdvc/Makefile") CONFIG_FILES="$CONFIG_FILES clients/lcdvc/Makefile" ;;
14043 "clients/examples/Makefile") CONFIG_FILES="$CONFIG_FILES clients/examples/Makefile" ;;
14044 "clients/metar/Makefile") CONFIG_FILES="$CONFIG_FILES clients/metar/Makefile" ;;
14045 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
14046 "docs/Doxyfile") CONFIG_FILES="$CONFIG_FILES docs/Doxyfile" ;;
14047 "docs/lcdproc-dev/Makefile") CONFIG_FILES="$CONFIG_FILES docs/lcdproc-dev/Makefile" ;;
14048 "docs/lcdproc-user/Makefile") CONFIG_FILES="$CONFIG_FILES docs/lcdproc-user/Makefile" ;;
14049 "docs/lcdproc-user/drivers/Makefile") CONFIG_FILES="$CONFIG_FILES docs/lcdproc-user/drivers/Makefile" ;;
14050 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
14051 "scripts/init-LCDd.LSB") CONFIG_FILES="$CONFIG_FILES scripts/init-LCDd.LSB" ;;
14052 "scripts/init-lcdproc.LSB") CONFIG_FILES="$CONFIG_FILES scripts/init-lcdproc.LSB" ;;
14053 "scripts/init-lcdexec.LSB") CONFIG_FILES="$CONFIG_FILES scripts/init-lcdexec.LSB" ;;
14054 "scripts/init-lcdvc.LSB") CONFIG_FILES="$CONFIG_FILES scripts/init-lcdvc.LSB" ;;
14055 "scripts/init-LCDd.debian") CONFIG_FILES="$CONFIG_FILES scripts/init-LCDd.debian" ;;
14056 "scripts/init-lcdproc.debian") CONFIG_FILES="$CONFIG_FILES scripts/init-lcdproc.debian" ;;
14057 "scripts/init-lcdexec.debian") CONFIG_FILES="$CONFIG_FILES scripts/init-lcdexec.debian" ;;
14058 "scripts/init-lcdvc.debian") CONFIG_FILES="$CONFIG_FILES scripts/init-lcdvc.debian" ;;
14059 "scripts/init-LCDd.rpm") CONFIG_FILES="$CONFIG_FILES scripts/init-LCDd.rpm" ;;
14060 "scripts/init-lcdproc.rpm") CONFIG_FILES="$CONFIG_FILES scripts/init-lcdproc.rpm" ;;
14062 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14063 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14064 { (exit 1); exit 1; }; };;
14065 esac
14066 done
14069 # If the user did not use the arguments to specify the items to instantiate,
14070 # then the envvar interface is used. Set only those that are not.
14071 # We use the long form for the default assignment because of an extremely
14072 # bizarre bug on SunOS 4.1.3.
14073 if $ac_need_defaults; then
14074 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14075 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14076 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14079 # Have a temporary directory for convenience. Make it in the build tree
14080 # simply because there is no reason against having it here, and in addition,
14081 # creating and moving files from /tmp can sometimes cause problems.
14082 # Hook for its removal unless debugging.
14083 # Note that there is a small window in which the directory will not be cleaned:
14084 # after its creation but before its name has been assigned to `$tmp'.
14085 $debug ||
14087 tmp=
14088 trap 'exit_status=$?
14089 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14091 trap '{ (exit 1); exit 1; }' 1 2 13 15
14093 # Create a (secure) tmp directory for tmp files.
14096 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14097 test -n "$tmp" && test -d "$tmp"
14098 } ||
14100 tmp=./conf$$-$RANDOM
14101 (umask 077 && mkdir "$tmp")
14102 } ||
14104 echo "$me: cannot create a temporary directory in ." >&2
14105 { (exit 1); exit 1; }
14109 # Set up the sed scripts for CONFIG_FILES section.
14112 # No need to generate the scripts if there are no CONFIG_FILES.
14113 # This happens for instance when ./config.status config.h
14114 if test -n "$CONFIG_FILES"; then
14116 _ACEOF
14120 ac_delim='%!_!# '
14121 for ac_last_try in false false false false false :; do
14122 cat >conf$$subs.sed <<_ACEOF
14123 SHELL!$SHELL$ac_delim
14124 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14125 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14126 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14127 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14128 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14129 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14130 exec_prefix!$exec_prefix$ac_delim
14131 prefix!$prefix$ac_delim
14132 program_transform_name!$program_transform_name$ac_delim
14133 bindir!$bindir$ac_delim
14134 sbindir!$sbindir$ac_delim
14135 libexecdir!$libexecdir$ac_delim
14136 datarootdir!$datarootdir$ac_delim
14137 datadir!$datadir$ac_delim
14138 sysconfdir!$sysconfdir$ac_delim
14139 sharedstatedir!$sharedstatedir$ac_delim
14140 localstatedir!$localstatedir$ac_delim
14141 includedir!$includedir$ac_delim
14142 oldincludedir!$oldincludedir$ac_delim
14143 docdir!$docdir$ac_delim
14144 infodir!$infodir$ac_delim
14145 htmldir!$htmldir$ac_delim
14146 dvidir!$dvidir$ac_delim
14147 pdfdir!$pdfdir$ac_delim
14148 psdir!$psdir$ac_delim
14149 libdir!$libdir$ac_delim
14150 localedir!$localedir$ac_delim
14151 mandir!$mandir$ac_delim
14152 DEFS!$DEFS$ac_delim
14153 ECHO_C!$ECHO_C$ac_delim
14154 ECHO_N!$ECHO_N$ac_delim
14155 ECHO_T!$ECHO_T$ac_delim
14156 LIBS!$LIBS$ac_delim
14157 build_alias!$build_alias$ac_delim
14158 host_alias!$host_alias$ac_delim
14159 target_alias!$target_alias$ac_delim
14160 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14161 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14162 INSTALL_DATA!$INSTALL_DATA$ac_delim
14163 CYGPATH_W!$CYGPATH_W$ac_delim
14164 PACKAGE!$PACKAGE$ac_delim
14165 VERSION!$VERSION$ac_delim
14166 ACLOCAL!$ACLOCAL$ac_delim
14167 AUTOCONF!$AUTOCONF$ac_delim
14168 AUTOMAKE!$AUTOMAKE$ac_delim
14169 AUTOHEADER!$AUTOHEADER$ac_delim
14170 MAKEINFO!$MAKEINFO$ac_delim
14171 install_sh!$install_sh$ac_delim
14172 STRIP!$STRIP$ac_delim
14173 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
14174 mkdir_p!$mkdir_p$ac_delim
14175 AWK!$AWK$ac_delim
14176 SET_MAKE!$SET_MAKE$ac_delim
14177 am__leading_dot!$am__leading_dot$ac_delim
14178 AMTAR!$AMTAR$ac_delim
14179 am__tar!$am__tar$ac_delim
14180 am__untar!$am__untar$ac_delim
14181 build!$build$ac_delim
14182 build_cpu!$build_cpu$ac_delim
14183 build_vendor!$build_vendor$ac_delim
14184 build_os!$build_os$ac_delim
14185 host!$host$ac_delim
14186 host_cpu!$host_cpu$ac_delim
14187 host_vendor!$host_vendor$ac_delim
14188 host_os!$host_os$ac_delim
14189 DARWIN_TRUE!$DARWIN_TRUE$ac_delim
14190 DARWIN_FALSE!$DARWIN_FALSE$ac_delim
14191 CC!$CC$ac_delim
14192 CFLAGS!$CFLAGS$ac_delim
14193 LDFLAGS!$LDFLAGS$ac_delim
14194 CPPFLAGS!$CPPFLAGS$ac_delim
14195 ac_ct_CC!$ac_ct_CC$ac_delim
14196 EXEEXT!$EXEEXT$ac_delim
14197 OBJEXT!$OBJEXT$ac_delim
14198 DEPDIR!$DEPDIR$ac_delim
14199 am__include!$am__include$ac_delim
14200 am__quote!$am__quote$ac_delim
14201 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
14202 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
14203 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
14204 CCDEPMODE!$CCDEPMODE$ac_delim
14205 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
14206 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14207 CPP!$CPP$ac_delim
14208 RANLIB!$RANLIB$ac_delim
14209 GREP!$GREP$ac_delim
14210 EGREP!$EGREP$ac_delim
14211 LIBOBJS!$LIBOBJS$ac_delim
14212 SO!$SO$ac_delim
14213 CCSHARED!$CCSHARED$ac_delim
14214 LDSHARED!$LDSHARED$ac_delim
14215 libusb_libs!$libusb_libs$ac_delim
14216 libusb_cflags!$libusb_cflags$ac_delim
14217 libusb_config!$libusb_config$ac_delim
14218 LIBCURSES!$LIBCURSES$ac_delim
14219 LIBIRMAN!$LIBIRMAN$ac_delim
14220 _ACEOF
14222 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14223 break
14224 elif $ac_last_try; then
14225 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14226 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14227 { (exit 1); exit 1; }; }
14228 else
14229 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14231 done
14233 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14234 if test -n "$ac_eof"; then
14235 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14236 ac_eof=`expr $ac_eof + 1`
14239 cat >>$CONFIG_STATUS <<_ACEOF
14240 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14242 _ACEOF
14243 sed '
14244 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14245 s/^/s,@/; s/!/@,|#_!!_#|/
14248 s/'"$ac_delim"'$/,g/; t
14249 s/$/\\/; p
14250 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14251 ' >>$CONFIG_STATUS <conf$$subs.sed
14252 rm -f conf$$subs.sed
14253 cat >>$CONFIG_STATUS <<_ACEOF
14254 CEOF$ac_eof
14255 _ACEOF
14258 ac_delim='%!_!# '
14259 for ac_last_try in false false false false false :; do
14260 cat >conf$$subs.sed <<_ACEOF
14261 LIBLIRC_CLIENT!$LIBLIRC_CLIENT$ac_delim
14262 LIBSVGA!$LIBSVGA$ac_delim
14263 DRIVERS!$DRIVERS$ac_delim
14264 HD44780_DRIVERS!$HD44780_DRIVERS$ac_delim
14265 LIBG15!$LIBG15$ac_delim
14266 LIBGLCD!$LIBGLCD$ac_delim
14267 LIBFTDI!$LIBFTDI$ac_delim
14268 LIBXOSD!$LIBXOSD$ac_delim
14269 LIBUSBLCD!$LIBUSBLCD$ac_delim
14270 DOXYGEN!$DOXYGEN$ac_delim
14271 DOT!$DOT$ac_delim
14272 DOX_TRUE!$DOX_TRUE$ac_delim
14273 DOX_FALSE!$DOX_FALSE$ac_delim
14274 enable_dot!$enable_dot$ac_delim
14275 enable_html_dox!$enable_html_dox$ac_delim
14276 enable_latex_dox!$enable_latex_dox$ac_delim
14277 LTLIBOBJS!$LTLIBOBJS$ac_delim
14278 _ACEOF
14280 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
14281 break
14282 elif $ac_last_try; then
14283 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14284 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14285 { (exit 1); exit 1; }; }
14286 else
14287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14289 done
14291 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14292 if test -n "$ac_eof"; then
14293 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14294 ac_eof=`expr $ac_eof + 1`
14297 cat >>$CONFIG_STATUS <<_ACEOF
14298 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14299 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14300 _ACEOF
14301 sed '
14302 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14303 s/^/s,@/; s/!/@,|#_!!_#|/
14306 s/'"$ac_delim"'$/,g/; t
14307 s/$/\\/; p
14308 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14309 ' >>$CONFIG_STATUS <conf$$subs.sed
14310 rm -f conf$$subs.sed
14311 cat >>$CONFIG_STATUS <<_ACEOF
14312 :end
14313 s/|#_!!_#|//g
14314 CEOF$ac_eof
14315 _ACEOF
14318 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14319 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14320 # trailing colons and then remove the whole line if VPATH becomes empty
14321 # (actually we leave an empty line to preserve line numbers).
14322 if test "x$srcdir" = x.; then
14323 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14324 s/:*\$(srcdir):*/:/
14325 s/:*\${srcdir}:*/:/
14326 s/:*@srcdir@:*/:/
14327 s/^\([^=]*=[ ]*\):*/\1/
14328 s/:*$//
14329 s/^[^=]*=[ ]*$//
14333 cat >>$CONFIG_STATUS <<\_ACEOF
14334 fi # test -n "$CONFIG_FILES"
14337 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14339 case $ac_tag in
14340 :[FHLC]) ac_mode=$ac_tag; continue;;
14341 esac
14342 case $ac_mode$ac_tag in
14343 :[FHL]*:*);;
14344 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14345 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14346 { (exit 1); exit 1; }; };;
14347 :[FH]-) ac_tag=-:-;;
14348 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14349 esac
14350 ac_save_IFS=$IFS
14351 IFS=:
14352 set x $ac_tag
14353 IFS=$ac_save_IFS
14354 shift
14355 ac_file=$1
14356 shift
14358 case $ac_mode in
14359 :L) ac_source=$1;;
14360 :[FH])
14361 ac_file_inputs=
14362 for ac_f
14364 case $ac_f in
14365 -) ac_f="$tmp/stdin";;
14366 *) # Look for the file first in the build tree, then in the source tree
14367 # (if the path is not absolute). The absolute path cannot be DOS-style,
14368 # because $ac_f cannot contain `:'.
14369 test -f "$ac_f" ||
14370 case $ac_f in
14371 [\\/$]*) false;;
14372 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14373 esac ||
14374 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14375 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14376 { (exit 1); exit 1; }; };;
14377 esac
14378 ac_file_inputs="$ac_file_inputs $ac_f"
14379 done
14381 # Let's still pretend it is `configure' which instantiates (i.e., don't
14382 # use $as_me), people would be surprised to read:
14383 # /* config.h. Generated by config.status. */
14384 configure_input="Generated from "`IFS=:
14385 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14386 if test x"$ac_file" != x-; then
14387 configure_input="$ac_file. $configure_input"
14388 { echo "$as_me:$LINENO: creating $ac_file" >&5
14389 echo "$as_me: creating $ac_file" >&6;}
14392 case $ac_tag in
14393 *:-:* | *:-) cat >"$tmp/stdin";;
14394 esac
14396 esac
14398 ac_dir=`$as_dirname -- "$ac_file" ||
14399 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14400 X"$ac_file" : 'X\(//\)[^/]' \| \
14401 X"$ac_file" : 'X\(//\)$' \| \
14402 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14403 echo X"$ac_file" |
14404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14405 s//\1/
14408 /^X\(\/\/\)[^/].*/{
14409 s//\1/
14412 /^X\(\/\/\)$/{
14413 s//\1/
14416 /^X\(\/\).*/{
14417 s//\1/
14420 s/.*/./; q'`
14421 { as_dir="$ac_dir"
14422 case $as_dir in #(
14423 -*) as_dir=./$as_dir;;
14424 esac
14425 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14426 as_dirs=
14427 while :; do
14428 case $as_dir in #(
14429 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14430 *) as_qdir=$as_dir;;
14431 esac
14432 as_dirs="'$as_qdir' $as_dirs"
14433 as_dir=`$as_dirname -- "$as_dir" ||
14434 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14435 X"$as_dir" : 'X\(//\)[^/]' \| \
14436 X"$as_dir" : 'X\(//\)$' \| \
14437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14438 echo X"$as_dir" |
14439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14440 s//\1/
14443 /^X\(\/\/\)[^/].*/{
14444 s//\1/
14447 /^X\(\/\/\)$/{
14448 s//\1/
14451 /^X\(\/\).*/{
14452 s//\1/
14455 s/.*/./; q'`
14456 test -d "$as_dir" && break
14457 done
14458 test -z "$as_dirs" || eval "mkdir $as_dirs"
14459 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14460 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14461 { (exit 1); exit 1; }; }; }
14462 ac_builddir=.
14464 case "$ac_dir" in
14465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14467 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14468 # A ".." for each directory in $ac_dir_suffix.
14469 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14470 case $ac_top_builddir_sub in
14471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14473 esac ;;
14474 esac
14475 ac_abs_top_builddir=$ac_pwd
14476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14477 # for backward compatibility:
14478 ac_top_builddir=$ac_top_build_prefix
14480 case $srcdir in
14481 .) # We are building in place.
14482 ac_srcdir=.
14483 ac_top_srcdir=$ac_top_builddir_sub
14484 ac_abs_top_srcdir=$ac_pwd ;;
14485 [\\/]* | ?:[\\/]* ) # Absolute name.
14486 ac_srcdir=$srcdir$ac_dir_suffix;
14487 ac_top_srcdir=$srcdir
14488 ac_abs_top_srcdir=$srcdir ;;
14489 *) # Relative name.
14490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14491 ac_top_srcdir=$ac_top_build_prefix$srcdir
14492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14493 esac
14494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14497 case $ac_mode in
14500 # CONFIG_FILE
14503 case $INSTALL in
14504 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14505 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14506 esac
14507 _ACEOF
14509 cat >>$CONFIG_STATUS <<\_ACEOF
14510 # If the template does not know about datarootdir, expand it.
14511 # FIXME: This hack should be removed a few years after 2.60.
14512 ac_datarootdir_hack=; ac_datarootdir_seen=
14514 case `sed -n '/datarootdir/ {
14518 /@datadir@/p
14519 /@docdir@/p
14520 /@infodir@/p
14521 /@localedir@/p
14522 /@mandir@/p
14523 ' $ac_file_inputs` in
14524 *datarootdir*) ac_datarootdir_seen=yes;;
14525 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14526 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14527 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14528 _ACEOF
14529 cat >>$CONFIG_STATUS <<_ACEOF
14530 ac_datarootdir_hack='
14531 s&@datadir@&$datadir&g
14532 s&@docdir@&$docdir&g
14533 s&@infodir@&$infodir&g
14534 s&@localedir@&$localedir&g
14535 s&@mandir@&$mandir&g
14536 s&\\\${datarootdir}&$datarootdir&g' ;;
14537 esac
14538 _ACEOF
14540 # Neutralize VPATH when `$srcdir' = `.'.
14541 # Shell code in configure.ac might set extrasub.
14542 # FIXME: do we really want to maintain this feature?
14543 cat >>$CONFIG_STATUS <<_ACEOF
14544 sed "$ac_vpsub
14545 $extrasub
14546 _ACEOF
14547 cat >>$CONFIG_STATUS <<\_ACEOF
14549 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14550 s&@configure_input@&$configure_input&;t t
14551 s&@top_builddir@&$ac_top_builddir_sub&;t t
14552 s&@srcdir@&$ac_srcdir&;t t
14553 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14554 s&@top_srcdir@&$ac_top_srcdir&;t t
14555 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14556 s&@builddir@&$ac_builddir&;t t
14557 s&@abs_builddir@&$ac_abs_builddir&;t t
14558 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14559 s&@INSTALL@&$ac_INSTALL&;t t
14560 $ac_datarootdir_hack
14561 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14563 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14564 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14566 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14567 which seems to be undefined. Please make sure it is defined." >&5
14568 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14569 which seems to be undefined. Please make sure it is defined." >&2;}
14571 rm -f "$tmp/stdin"
14572 case $ac_file in
14573 -) cat "$tmp/out"; rm -f "$tmp/out";;
14574 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14575 esac
14579 # CONFIG_HEADER
14581 _ACEOF
14583 # Transform confdefs.h into a sed script `conftest.defines', that
14584 # substitutes the proper values into config.h.in to produce config.h.
14585 rm -f conftest.defines conftest.tail
14586 # First, append a space to every undef/define line, to ease matching.
14587 echo 's/$/ /' >conftest.defines
14588 # Then, protect against being on the right side of a sed subst, or in
14589 # an unquoted here document, in config.status. If some macros were
14590 # called several times there might be several #defines for the same
14591 # symbol, which is useless. But do not sort them, since the last
14592 # AC_DEFINE must be honored.
14593 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14594 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14595 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14596 # PARAMS is the parameter list in the macro definition--in most cases, it's
14597 # just an empty string.
14598 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14599 ac_dB='\\)[ (].*,\\1define\\2'
14600 ac_dC=' '
14601 ac_dD=' ,'
14603 uniq confdefs.h |
14604 sed -n '
14605 t rset
14606 :rset
14607 s/^[ ]*#[ ]*define[ ][ ]*//
14608 t ok
14611 s/[\\&,]/\\&/g
14612 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14613 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14614 ' >>conftest.defines
14616 # Remove the space that was appended to ease matching.
14617 # Then replace #undef with comments. This is necessary, for
14618 # example, in the case of _POSIX_SOURCE, which is predefined and required
14619 # on some systems where configure will not decide to define it.
14620 # (The regexp can be short, since the line contains either #define or #undef.)
14621 echo 's/ $//
14622 s,^[ #]*u.*,/* & */,' >>conftest.defines
14624 # Break up conftest.defines:
14625 ac_max_sed_lines=50
14627 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14628 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14629 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14630 # et cetera.
14631 ac_in='$ac_file_inputs'
14632 ac_out='"$tmp/out1"'
14633 ac_nxt='"$tmp/out2"'
14635 while :
14637 # Write a here document:
14638 cat >>$CONFIG_STATUS <<_ACEOF
14639 # First, check the format of the line:
14640 cat >"\$tmp/defines.sed" <<\\CEOF
14641 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14642 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14644 :def
14645 _ACEOF
14646 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14647 echo 'CEOF
14648 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14649 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14650 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14651 grep . conftest.tail >/dev/null || break
14652 rm -f conftest.defines
14653 mv conftest.tail conftest.defines
14654 done
14655 rm -f conftest.defines conftest.tail
14657 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14658 cat >>$CONFIG_STATUS <<\_ACEOF
14659 if test x"$ac_file" != x-; then
14660 echo "/* $configure_input */" >"$tmp/config.h"
14661 cat "$ac_result" >>"$tmp/config.h"
14662 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14663 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14664 echo "$as_me: $ac_file is unchanged" >&6;}
14665 else
14666 rm -f $ac_file
14667 mv "$tmp/config.h" $ac_file
14669 else
14670 echo "/* $configure_input */"
14671 cat "$ac_result"
14673 rm -f "$tmp/out12"
14674 # Compute $ac_file's index in $config_headers.
14675 _am_stamp_count=1
14676 for _am_header in $config_headers :; do
14677 case $_am_header in
14678 $ac_file | $ac_file:* )
14679 break ;;
14681 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14682 esac
14683 done
14684 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14685 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14686 X$ac_file : 'X\(//\)[^/]' \| \
14687 X$ac_file : 'X\(//\)$' \| \
14688 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14689 echo X$ac_file |
14690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14691 s//\1/
14694 /^X\(\/\/\)[^/].*/{
14695 s//\1/
14698 /^X\(\/\/\)$/{
14699 s//\1/
14702 /^X\(\/\).*/{
14703 s//\1/
14706 s/.*/./; q'`/stamp-h$_am_stamp_count
14709 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14710 echo "$as_me: executing $ac_file commands" >&6;}
14712 esac
14715 case $ac_file$ac_mode in
14716 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14717 # Strip MF so we end up with the name of the file.
14718 mf=`echo "$mf" | sed -e 's/:.*$//'`
14719 # Check whether this is an Automake generated Makefile or not.
14720 # We used to match only the files named `Makefile.in', but
14721 # some people rename them; so instead we look at the file content.
14722 # Grep'ing the first line is not enough: some people post-process
14723 # each Makefile.in and add a new line on top of each file to say so.
14724 # So let's grep whole file.
14725 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14726 dirpart=`$as_dirname -- "$mf" ||
14727 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14728 X"$mf" : 'X\(//\)[^/]' \| \
14729 X"$mf" : 'X\(//\)$' \| \
14730 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14731 echo X"$mf" |
14732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14733 s//\1/
14736 /^X\(\/\/\)[^/].*/{
14737 s//\1/
14740 /^X\(\/\/\)$/{
14741 s//\1/
14744 /^X\(\/\).*/{
14745 s//\1/
14748 s/.*/./; q'`
14749 else
14750 continue
14752 # Extract the definition of DEPDIR, am__include, and am__quote
14753 # from the Makefile without running `make'.
14754 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14755 test -z "$DEPDIR" && continue
14756 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14757 test -z "am__include" && continue
14758 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14759 # When using ansi2knr, U may be empty or an underscore; expand it
14760 U=`sed -n 's/^U = //p' < "$mf"`
14761 # Find all dependency output files, they are included files with
14762 # $(DEPDIR) in their names. We invoke sed twice because it is the
14763 # simplest approach to changing $(DEPDIR) to its actual value in the
14764 # expansion.
14765 for file in `sed -n "
14766 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14767 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14768 # Make sure the directory exists.
14769 test -f "$dirpart/$file" && continue
14770 fdir=`$as_dirname -- "$file" ||
14771 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14772 X"$file" : 'X\(//\)[^/]' \| \
14773 X"$file" : 'X\(//\)$' \| \
14774 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14775 echo X"$file" |
14776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14777 s//\1/
14780 /^X\(\/\/\)[^/].*/{
14781 s//\1/
14784 /^X\(\/\/\)$/{
14785 s//\1/
14788 /^X\(\/\).*/{
14789 s//\1/
14792 s/.*/./; q'`
14793 { as_dir=$dirpart/$fdir
14794 case $as_dir in #(
14795 -*) as_dir=./$as_dir;;
14796 esac
14797 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14798 as_dirs=
14799 while :; do
14800 case $as_dir in #(
14801 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14802 *) as_qdir=$as_dir;;
14803 esac
14804 as_dirs="'$as_qdir' $as_dirs"
14805 as_dir=`$as_dirname -- "$as_dir" ||
14806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14807 X"$as_dir" : 'X\(//\)[^/]' \| \
14808 X"$as_dir" : 'X\(//\)$' \| \
14809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14810 echo X"$as_dir" |
14811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14812 s//\1/
14815 /^X\(\/\/\)[^/].*/{
14816 s//\1/
14819 /^X\(\/\/\)$/{
14820 s//\1/
14823 /^X\(\/\).*/{
14824 s//\1/
14827 s/.*/./; q'`
14828 test -d "$as_dir" && break
14829 done
14830 test -z "$as_dirs" || eval "mkdir $as_dirs"
14831 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14832 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14833 { (exit 1); exit 1; }; }; }
14834 # echo "creating $dirpart/$file"
14835 echo '# dummy' > "$dirpart/$file"
14836 done
14837 done
14840 esac
14841 done # for ac_tag
14844 { (exit 0); exit 0; }
14845 _ACEOF
14846 chmod +x $CONFIG_STATUS
14847 ac_clean_files=$ac_clean_files_save
14850 # configure is writing to config.log, and then calls config.status.
14851 # config.status does its own redirection, appending to config.log.
14852 # Unfortunately, on DOS this fails, as config.log is still kept open
14853 # by configure, so config.status won't be able to write to it; its
14854 # output is simply discarded. So we exec the FD to /dev/null,
14855 # effectively closing config.log, so it can be properly (re)opened and
14856 # appended to by config.status. When coming back to configure, we
14857 # need to make the FD available again.
14858 if test "$no_create" != yes; then
14859 ac_cs_success=:
14860 ac_config_status_args=
14861 test "$silent" = yes &&
14862 ac_config_status_args="$ac_config_status_args --quiet"
14863 exec 5>/dev/null
14864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14865 exec 5>>config.log
14866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14867 # would make configure fail if this is the last instruction.
14868 $ac_cs_success || { (exit 1); exit 1; }