2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.61.
5 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 @%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 @%:@ This configure script is free software; the Free Software Foundation
8 @%:@ gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="Developers"
580 ac_default_prefix=/opt/apcupsd
581 ac_default_prefix=/usr
582 # Factoring default headers for most tests.
583 ac_includes_default="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
765 ac_precious_vars='build_alias
783 # Initialize some variables set by options.
785 ac_init_version=false
786 # The variables have the same names as the options, with
787 # dashes changed to underlines.
795 program_transform_name=s,x,x,
803 # Installation directory options.
804 # These are left unexpanded so users can "make install exec_prefix=/foo"
805 # and all the variables that are supposed to be based on exec_prefix
806 # by default will actually change.
807 # Use braces instead of parens because sh, perl, etc. also accept them.
808 # (The list follows the same order as the GNU Coding Standards.)
809 bindir='${exec_prefix}/bin'
810 sbindir='${exec_prefix}/sbin'
811 libexecdir='${exec_prefix}/libexec'
812 datarootdir='${prefix}/share'
813 datadir='${datarootdir}'
814 sysconfdir='${prefix}/etc'
815 sharedstatedir='${prefix}/com'
816 localstatedir='${prefix}/var'
817 includedir='${prefix}/include'
818 oldincludedir='/usr/include'
819 docdir='${datarootdir}/doc/${PACKAGE}'
820 infodir='${datarootdir}/info'
825 libdir='${exec_prefix}/lib'
826 localedir='${datarootdir}/locale'
827 mandir='${datarootdir}/man'
833 # If the previous option needs an argument, assign it.
834 if test -n "$ac_prev"; then
835 eval $ac_prev=\$ac_option
841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
869 cache_file=config.cache ;;
871 -datadir | --datadir | --datadi | --datad)
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
883 -disable-* | --disable-*)
884 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
887 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
888 { (exit 1); exit 1; }; }
889 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
890 eval enable_$ac_feature=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902 -enable-* | --enable-*)
903 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
906 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
907 { (exit 1); exit 1; }; }
908 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
909 eval enable_$ac_feature=\$ac_optarg ;;
911 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
912 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
913 | --exec | --exe | --ex)
914 ac_prev=exec_prefix ;;
915 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
916 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
917 | --exec=* | --exe=* | --ex=*)
918 exec_prefix=$ac_optarg ;;
920 -gas | --gas | --ga | --g)
921 # Obsolete; use --with-gas.
924 -help | --help | --hel | --he | -h)
926 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
927 ac_init_help=recursive ;;
928 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
929 ac_init_help=short ;;
931 -host | --host | --hos | --ho)
932 ac_prev=host_alias ;;
933 -host=* | --host=* | --hos=* | --ho=*)
934 host_alias=$ac_optarg ;;
936 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940 htmldir=$ac_optarg ;;
942 -includedir | --includedir | --includedi | --included | --include \
943 | --includ | --inclu | --incl | --inc)
944 ac_prev=includedir ;;
945 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
946 | --includ=* | --inclu=* | --incl=* | --inc=*)
947 includedir=$ac_optarg ;;
949 -infodir | --infodir | --infodi | --infod | --info | --inf)
951 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
952 infodir=$ac_optarg ;;
954 -libdir | --libdir | --libdi | --libd)
956 -libdir=* | --libdir=* | --libdi=* | --libd=*)
959 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
960 | --libexe | --libex | --libe)
961 ac_prev=libexecdir ;;
962 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
963 | --libexe=* | --libex=* | --libe=*)
964 libexecdir=$ac_optarg ;;
966 -localedir | --localedir | --localedi | --localed | --locale)
968 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
969 localedir=$ac_optarg ;;
971 -localstatedir | --localstatedir | --localstatedi | --localstated \
972 | --localstate | --localstat | --localsta | --localst | --locals)
973 ac_prev=localstatedir ;;
974 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
975 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
976 localstatedir=$ac_optarg ;;
978 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 # Obsolete; use --without-fp.
987 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
988 | --no-cr | --no-c | -n)
991 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
992 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
996 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
997 | --oldin | --oldi | --old | --ol | --o)
998 ac_prev=oldincludedir ;;
999 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1000 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1001 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1002 oldincludedir=$ac_optarg ;;
1004 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1007 prefix=$ac_optarg ;;
1009 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1010 | --program-pre | --program-pr | --program-p)
1011 ac_prev=program_prefix ;;
1012 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1013 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1014 program_prefix=$ac_optarg ;;
1016 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1017 | --program-suf | --program-su | --program-s)
1018 ac_prev=program_suffix ;;
1019 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1020 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1021 program_suffix=$ac_optarg ;;
1023 -program-transform-name | --program-transform-name \
1024 | --program-transform-nam | --program-transform-na \
1025 | --program-transform-n | --program-transform- \
1026 | --program-transform | --program-transfor \
1027 | --program-transfo | --program-transf \
1028 | --program-trans | --program-tran \
1029 | --progr-tra | --program-tr | --program-t)
1030 ac_prev=program_transform_name ;;
1031 -program-transform-name=* | --program-transform-name=* \
1032 | --program-transform-nam=* | --program-transform-na=* \
1033 | --program-transform-n=* | --program-transform-=* \
1034 | --program-transform=* | --program-transfor=* \
1035 | --program-transfo=* | --program-transf=* \
1036 | --program-trans=* | --program-tran=* \
1037 | --progr-tra=* | --program-tr=* | --program-t=*)
1038 program_transform_name=$ac_optarg ;;
1040 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1043 pdfdir=$ac_optarg ;;
1045 -psdir | --psdir | --psdi | --psd | --ps)
1047 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1054 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058 sbindir=$ac_optarg ;;
1060 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1061 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1062 | --sharedst | --shareds | --shared | --share | --shar \
1064 ac_prev=sharedstatedir ;;
1065 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1066 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1067 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069 sharedstatedir=$ac_optarg ;;
1071 -site | --site | --sit)
1073 -site=* | --site=* | --sit=*)
1076 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1079 srcdir=$ac_optarg ;;
1081 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1082 | --syscon | --sysco | --sysc | --sys | --sy)
1083 ac_prev=sysconfdir ;;
1084 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1085 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1086 sysconfdir=$ac_optarg ;;
1088 -target | --target | --targe | --targ | --tar | --ta | --t)
1089 ac_prev=target_alias ;;
1090 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1091 target_alias=$ac_optarg ;;
1093 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096 -version | --version | --versio | --versi | --vers | -V)
1097 ac_init_version=: ;;
1100 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid package name: $ac_package" >&2
1104 { (exit 1); exit 1; }; }
1105 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1106 eval with_$ac_package=\$ac_optarg ;;
1108 -without-* | --without-*)
1109 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid package name: $ac_package" >&2
1113 { (exit 1); exit 1; }; }
1114 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115 eval with_$ac_package=no ;;
1118 # Obsolete; use --with-x.
1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122 | --x-incl | --x-inc | --x-in | --x-i)
1123 ac_prev=x_includes ;;
1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126 x_includes=$ac_optarg ;;
1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130 ac_prev=x_libraries ;;
1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133 x_libraries=$ac_optarg ;;
1135 -*) { echo "$as_me: error: unrecognized option: $ac_option
1136 Try \`$0 --help' for more information." >&2
1137 { (exit 1); exit 1; }; }
1141 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1145 { (exit 1); exit 1; }; }
1146 eval $ac_envvar=\$ac_optarg
1147 export $ac_envvar ;;
1150 # FIXME: should be removed in autoconf 3.0.
1151 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1160 if test -n "$ac_prev"; then
1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162 { echo "$as_me: error: missing argument to $ac_option" >&2
1163 { (exit 1); exit 1; }; }
1166 # Be sure to have absolute directory names.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1172 eval ac_val=\$$ac_var
1174 [\\/$]* | ?:[\\/]* ) continue;;
1175 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1178 { (exit 1); exit 1; }; }
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1186 target=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x; then
1190 if test "x$build_alias" = x; then
1191 cross_compiling=maybe
1192 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used." >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1200 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1202 test "$silent" = yes && exec 6>/dev/null
1205 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di=`ls -di .` &&
1207 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208 { echo "$as_me: error: Working directory cannot be determined" >&2
1209 { (exit 1); exit 1; }; }
1210 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1211 { echo "$as_me: error: pwd does not report name of working directory" >&2
1212 { (exit 1); exit 1; }; }
1215 # Find the source files, if location was not specified.
1216 if test -z "$srcdir"; then
1217 ac_srcdir_defaulted=yes
1218 # Try the directory containing this script, then the parent directory.
1219 ac_confdir=`$as_dirname -- "$0" ||
1220 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1221 X"$0" : 'X\(//\)[^/]' \| \
1222 X"$0" : 'X\(//\)$' \| \
1223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 if test ! -r "$srcdir/$ac_unique_file"; then
1247 ac_srcdir_defaulted=no
1249 if test ! -r "$srcdir/$ac_unique_file"; then
1250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1251 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1252 { (exit 1); exit 1; }; }
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1257 { (exit 1); exit 1; }; }
1259 # When building in place, set srcdir=.
1260 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 # Remove unnecessary trailing slashes from srcdir.
1264 # Double slashes in file names in object file debugging info
1265 # mess up M-x gdb in Emacs.
1267 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 for ac_var in $ac_precious_vars; do
1270 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_env_${ac_var}_value=\$${ac_var}
1272 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1277 # Report the --help message.
1279 if test "$ac_init_help" = "long"; then
1280 # Omit some internal or obsolete options to make the list less imposing.
1281 # This message is too long to be a string in the A/UX 3.1 sh.
1283 \`configure' configures this package to adapt to many kinds of systems.
1285 Usage: $0 [OPTION]... [VAR=VALUE]...
1287 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1288 VAR=VALUE. See below for descriptions of some of the useful variables.
1290 Defaults for the options are specified in brackets.
1293 -h, --help display this help and exit
1294 --help=short display options specific to this package
1295 --help=recursive display the short help of all the included packages
1296 -V, --version display version information and exit
1297 -q, --quiet, --silent do not print \`checking...' messages
1298 --cache-file=FILE cache test results in FILE [disabled]
1299 -C, --config-cache alias for \`--cache-file=config.cache'
1300 -n, --no-create do not create output files
1301 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1303 Installation directories:
1304 --prefix=PREFIX install architecture-independent files in PREFIX
1305 [$ac_default_prefix]
1306 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 By default, \`make install' will install all the files in
1310 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1311 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1312 for instance \`--prefix=\$HOME'.
1314 For better control, use the options below.
1316 Fine tuning of the installation directories:
1317 --bindir=DIR user executables [EPREFIX/bin]
1318 --sbindir=DIR system admin executables [EPREFIX/sbin]
1319 --libexecdir=DIR program executables [EPREFIX/libexec]
1320 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1321 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1322 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1323 --libdir=DIR object code libraries [EPREFIX/lib]
1324 --includedir=DIR C header files [PREFIX/include]
1325 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1326 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1327 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1328 --infodir=DIR info documentation [DATAROOTDIR/info]
1329 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1330 --mandir=DIR man documentation [DATAROOTDIR/man]
1331 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1332 --htmldir=DIR html documentation [DOCDIR]
1333 --dvidir=DIR dvi documentation [DOCDIR]
1334 --pdfdir=DIR pdf documentation [DOCDIR]
1335 --psdir=DIR ps documentation [DOCDIR]
1341 --x-includes=DIR X include files are in DIR
1342 --x-libraries=DIR X library files are in DIR
1345 --build=BUILD configure for building on BUILD [guessed]
1346 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350 if test -n "$ac_init_help"; then
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --enable-all Enable all optional modules
1359 --enable-cgi Compile CGI programs
1360 --disable-lgd Disable GD Library
1362 --enable-apcsmart Compile APC SmartUPS serial driver (default)
1363 --disable-apcsmart No APC SmartUPS serial driver
1365 --enable-dumb Compile dumb UPS driver (default)
1366 --disable-dumb No dumb UPS driver
1368 --enable-usb Compile USB UPS code
1369 --disable-usb No USB UPS code (default)
1371 --enable-net Compile networking driver for slaves (default)
1372 --disable-net No network driver for slaves
1374 --enable-snmp Compile SNMP driver (default)
1375 --disable-snmp No SNMP driver
1377 --enable-net-snmp Compile NET-SNMP UPS code (OBSOLETE)
1378 --disable-net-snmp No NET-SNMP UPS code (default)
1380 --enable-test Compile TEST driver code
1381 --disable-test No TEST driver (default)
1383 --enable-pcnet Compile PCNET driver code (default)
1384 --disable-pcnet No PCNET driver
1385 --enable-gapcmon Build GTK/GUI front-end to apcupsd (default=no)
1386 --enable-apcagent Build menubar app for Mac OS X (default=no)
1387 --enable-install-distdir
1388 Install distribution
1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1393 --with-x use the X Window System
1394 --with-halpolicydir=DIR HAL policy directory (default is platform dependent)
1395 --with-libwrap=DIR Compile in libwrap (tcp_wrappers) support
1396 --with-generic-usb Force use of generic USB driver
1397 --with-nisip=IP-ADDRESS Specify the IP address to bind to (default=0.0.0.0)
1398 --with-cgi-bin=DIR Specify cgi-bin directory (default=/etc/apcupsd)
1399 --with-distname=NAME Specify DISTNAME
1400 --with-nologin=DIR Specify nologin file directory (default /etc)
1401 --with-pid-dir=DIR Specify PIDDIR directory (default is OS dependent)
1402 --with-log-dir=DIR Specify EVENTS and STATUS directory (default is OS
1404 --with-lock-dir=DIR Specify serial port lock directory (default is OS
1406 --with-pwrfail-dir=DIR Specify power failure file directory (default is OS
1408 --with-serial-dev=DEV Specify serial port device
1409 --with-dev=DEV Specify port or device
1410 --with-nis-port=PORT Specify NIS (CGI) port (default 3551 except Debian)
1411 --with-upstype=TYPE Specify the UPS type
1412 --with-upscable=CABLE Specify the UPS cable
1414 Some influential environment variables:
1415 CXX C++ compiler command
1416 CXXFLAGS C++ compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
1419 LIBS libraries to pass to the linker, e.g. -l<library>
1420 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1421 you have headers in a nonstandard directory <include dir>
1422 CC C compiler command
1423 CFLAGS C compiler flags
1425 XMKMF Path to xmkmf, Makefile generator for X Window System
1426 PKG_CONFIG path to pkg-config utility
1428 C compiler flags for GAPCMON, overriding pkg-config
1430 linker flags for GAPCMON, overriding pkg-config
1432 Use these variables to override the choices made by `configure' or to help
1433 it to find libraries and programs with nonstandard names/locations.
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" || continue
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1449 # A ".." for each directory in $ac_dir_suffix.
1450 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1451 case $ac_top_builddir_sub in
1452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1462 .) # We are building in place.
1464 ac_top_srcdir=$ac_top_builddir_sub
1465 ac_abs_top_srcdir=$ac_pwd ;;
1466 [\\/]* | ?:[\\/]* ) # Absolute name.
1467 ac_srcdir=$srcdir$ac_dir_suffix;
1468 ac_top_srcdir=$srcdir
1469 ac_abs_top_srcdir=$srcdir ;;
1471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472 ac_top_srcdir=$ac_top_build_prefix$srcdir
1473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1477 cd "$ac_dir" || { ac_status=$?; continue; }
1478 # Check for guested configure.
1479 if test -f "$ac_srcdir/configure.gnu"; then
1481 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482 elif test -f "$ac_srcdir/configure"; then
1484 $SHELL "$ac_srcdir/configure" --help=recursive
1486 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1488 cd "$ac_pwd" || { ac_status=$?; break; }
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1496 generated by GNU Autoconf 2.61
1498 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1499 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1505 cat >config.log <<_ACEOF
1506 This file contains any messages produced by compilers while
1507 running configure, to aid debugging if configure makes a mistake.
1509 It was created by $as_me, which was
1510 generated by GNU Autoconf 2.61. Invocation command line was
1518 @%:@@%:@ --------- @%:@@%:@
1519 @%:@@%:@ Platform. @%:@@%:@
1520 @%:@@%:@ --------- @%:@@%:@
1522 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1523 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1524 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1525 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1526 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1528 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1529 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1531 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1532 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1533 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1534 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1535 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1536 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1537 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 test -z "$as_dir" && as_dir=.
1546 echo "PATH: $as_dir"
1555 @%:@@%:@ ----------- @%:@@%:@
1556 @%:@@%:@ Core tests. @%:@@%:@
1557 @%:@@%:@ ----------- @%:@@%:@
1562 # Keep a trace of the command line.
1563 # Strip out --no-create and --no-recursion so they do not pile up.
1564 # Strip out --silent because we don't want to record it for future runs.
1565 # Also quote any args containing shell meta-characters.
1566 # Make two passes to allow for proper duplicate-argument suppression.
1570 ac_must_keep_next=false
1576 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1578 | -silent | --silent | --silen | --sile | --sil)
1581 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1584 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1586 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1587 if test $ac_must_keep_next = true; then
1588 ac_must_keep_next=false # Got value, back to normal.
1591 *=* | --config-cache | -C | -disable-* | --disable-* \
1592 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1593 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1594 | -with-* | --with-* | -without-* | --without-* | --x)
1595 case "$ac_configure_args0 " in
1596 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1599 -* ) ac_must_keep_next=true ;;
1602 ac_configure_args="$ac_configure_args '$ac_arg'"
1607 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1608 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1610 # When interrupted or exit'd, cleanup temporary files, and complete
1611 # config.log. We remove comments because anyway the quotes in there
1612 # would cause problems or look ugly.
1613 # WARNING: Use '\'' to represent an apostrophe within the trap.
1614 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1615 trap 'exit_status=$?
1616 # Save into config.log some information that might help in debugging.
1621 @%:@@%:@ ---------------- @%:@@%:@
1622 @%:@@%:@ Cache variables. @%:@@%:@
1623 @%:@@%:@ ---------------- @%:@@%:@
1626 # The following way of writing the cache mishandles newlines in values,
1628 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1629 eval ac_val=\$$ac_var
1633 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1634 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1637 _ | IFS | as_nl) ;; #(
1638 *) $as_unset $ac_var ;;
1643 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1644 *${as_nl}ac_space=\ *)
1646 "s/'\''/'\''\\\\'\'''\''/g;
1647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1658 @%:@@%:@ ----------------- @%:@@%:@
1659 @%:@@%:@ Output variables. @%:@@%:@
1660 @%:@@%:@ ----------------- @%:@@%:@
1663 for ac_var in $ac_subst_vars
1665 eval ac_val=\$$ac_var
1667 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669 echo "$ac_var='\''$ac_val'\''"
1673 if test -n "$ac_subst_files"; then
1675 @%:@@%:@ ------------------- @%:@@%:@
1676 @%:@@%:@ File substitutions. @%:@@%:@
1677 @%:@@%:@ ------------------- @%:@@%:@
1680 for ac_var in $ac_subst_files
1682 eval ac_val=\$$ac_var
1684 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686 echo "$ac_var='\''$ac_val'\''"
1691 if test -s confdefs.h; then
1693 @%:@@%:@ ----------- @%:@@%:@
1694 @%:@@%:@ confdefs.h. @%:@@%:@
1695 @%:@@%:@ ----------- @%:@@%:@
1701 test "$ac_signal" != 0 &&
1702 echo "$as_me: caught signal $ac_signal"
1703 echo "$as_me: exit $exit_status"
1705 rm -f core *.core core.conftest.* &&
1706 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1709 for ac_signal in 1 2 13 15; do
1710 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1715 rm -f -r conftest* confdefs.h
1717 # Predefined preprocessor variables.
1719 cat >>confdefs.h <<_ACEOF
1720 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1724 cat >>confdefs.h <<_ACEOF
1725 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729 cat >>confdefs.h <<_ACEOF
1730 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1734 cat >>confdefs.h <<_ACEOF
1735 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1739 cat >>confdefs.h <<_ACEOF
1740 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744 # Let the site file select an alternate cache file if it wants to.
1745 # Prefer explicitly selected file to automatically selected ones.
1746 if test -n "$CONFIG_SITE"; then
1747 set x "$CONFIG_SITE"
1748 elif test "x$prefix" != xNONE; then
1749 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1751 set x "$ac_default_prefix/share/config.site" \
1752 "$ac_default_prefix/etc/config.site"
1757 if test -r "$ac_site_file"; then
1758 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1759 echo "$as_me: loading site script $ac_site_file" >&6;}
1760 sed 's/^/| /' "$ac_site_file" >&5
1765 if test -r "$cache_file"; then
1766 # Some versions of bash will fail to source /dev/null (special
1767 # files actually), so we avoid doing that.
1768 if test -f "$cache_file"; then
1769 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1770 echo "$as_me: loading cache $cache_file" >&6;}
1772 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1773 *) . "./$cache_file";;
1777 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1778 echo "$as_me: creating cache $cache_file" >&6;}
1782 # Check that the precious variables saved in the cache have kept the same
1784 ac_cache_corrupted=false
1785 for ac_var in $ac_precious_vars; do
1786 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1787 eval ac_new_set=\$ac_env_${ac_var}_set
1788 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1789 eval ac_new_val=\$ac_env_${ac_var}_value
1790 case $ac_old_set,$ac_new_set in
1792 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1793 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1794 ac_cache_corrupted=: ;;
1796 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1797 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1798 ac_cache_corrupted=: ;;
1801 if test "x$ac_old_val" != "x$ac_new_val"; then
1802 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1803 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1804 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1805 echo "$as_me: former value: $ac_old_val" >&2;}
1806 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1807 echo "$as_me: current value: $ac_new_val" >&2;}
1808 ac_cache_corrupted=:
1811 # Pass precious variables to config.status.
1812 if test "$ac_new_set" = set; then
1814 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 *) ac_arg=$ac_var=$ac_new_val ;;
1817 case " $ac_configure_args " in
1818 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1819 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823 if $ac_cache_corrupted; then
1824 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1825 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1826 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1827 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1828 { (exit 1); exit 1; }; }
1848 ac_cpp='$CPP $CPPFLAGS'
1849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 ac_config_headers="$ac_config_headers include/config.h:autoconf/config.h.in"
1860 for ac_dir in ${topdir}/autoconf "$srcdir"/${topdir}/autoconf; do
1861 if test -f "$ac_dir/install-sh"; then
1863 ac_install_sh="$ac_aux_dir/install-sh -c"
1865 elif test -f "$ac_dir/install.sh"; then
1867 ac_install_sh="$ac_aux_dir/install.sh -c"
1869 elif test -f "$ac_dir/shtool"; then
1871 ac_install_sh="$ac_aux_dir/shtool install -c"
1875 if test -z "$ac_aux_dir"; then
1876 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${topdir}/autoconf \"$srcdir\"/${topdir}/autoconf" >&5
1877 echo "$as_me: error: cannot find install-sh or install.sh in ${topdir}/autoconf \"$srcdir\"/${topdir}/autoconf" >&2;}
1878 { (exit 1); exit 1; }; }
1881 # These three variables are undocumented and unsupported,
1882 # and are intended to be withdrawn in a future Autoconf release.
1883 # They can cause serious problems if a builder's source tree is in a directory
1884 # whose full name contains unusual characters.
1885 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1886 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1887 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1900 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/include/version.h`
1903 DATE=`sed -n -e 's/^.* \t*ADATE.*"\(.*\)"$/\1/p' ${srcdir}/include/version.h`
1908 # Extract the first word of "$ac_prog", so it can be a program name with args.
1909 set dummy $ac_prog; ac_word=$2
1910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1912 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1927 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938 TRUEPRG=$ac_cv_path_TRUEPRG
1939 if test -n "$TRUEPRG"; then
1940 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1941 echo "${ECHO_T}$TRUEPRG" >&6; }
1943 { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1948 test -n "$TRUEPRG" && break
1950 test -n "$TRUEPRG" || TRUEPRG=":"
1952 for ac_prog in false
1954 # Extract the first word of "$ac_prog", so it can be a program name with args.
1955 set dummy $ac_prog; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1973 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 FALSEPRG=$ac_cv_path_FALSEPRG
1985 if test -n "$FALSEPRG"; then
1986 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1987 echo "${ECHO_T}$FALSEPRG" >&6; }
1989 { echo "$as_me:$LINENO: result: no" >&5
1990 echo "${ECHO_T}no" >&6; }
1994 test -n "$FALSEPRG" && break
1996 test -n "$FALSEPRG" || FALSEPRG=":"
1999 #PATH=$PATH:/bin:/sbin:/etc:/usr/bin:/usr/bin/X11:/usr/sbin:/usr/local/bin:/usr/local/sbin
2003 CPPFLAGS="${CPPFLAGS}"
2004 LDFLAGS="${LDFLAGS}"
2006 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
2009 if test x$sysconfdir = x'${prefix}/etc' ; then
2010 sysconfdir='/etc/opt/apcupsd'
2012 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2013 sbindir='/etc/opt/apcupsd/sbin'
2016 CPPFLAGS="${CPPFLAGS} -I/usr/sfw/include"
2017 LDFLAGS="${LDFLAGS} -L/usr/sfw/lib"
2020 if test x$sysconfdir = x'${prefix}/etc' ; then
2021 sysconfdir='/etc/apcupsd'
2024 if test x$sbindir = x'${exec_prefix}/sbin' ; then
2029 # Make sure we can run config.sub.
2030 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2031 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2032 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2033 { (exit 1); exit 1; }; }
2035 { echo "$as_me:$LINENO: checking build system type" >&5
2036 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2037 if test "${ac_cv_build+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 ac_build_alias=$build_alias
2041 test "x$ac_build_alias" = x &&
2042 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2043 test "x$ac_build_alias" = x &&
2044 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2045 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2046 { (exit 1); exit 1; }; }
2047 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2048 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2049 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2050 { (exit 1); exit 1; }; }
2053 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2054 echo "${ECHO_T}$ac_cv_build" >&6; }
2055 case $ac_cv_build in
2057 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2058 echo "$as_me: error: invalid value of canonical build" >&2;}
2059 { (exit 1); exit 1; }; };;
2062 ac_save_IFS=$IFS; IFS='-'
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2072 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2075 { echo "$as_me:$LINENO: checking host system type" >&5
2076 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2077 if test "${ac_cv_host+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test "x$host_alias" = x; then
2081 ac_cv_host=$ac_cv_build
2083 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2084 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2085 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2086 { (exit 1); exit 1; }; }
2090 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2091 echo "${ECHO_T}$ac_cv_host" >&6; }
2094 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2095 echo "$as_me: error: invalid value of canonical host" >&2;}
2096 { (exit 1); exit 1; }; };;
2099 ac_save_IFS=$IFS; IFS='-'
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2109 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2115 ac_cpp='$CXXCPP $CPPFLAGS'
2116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2119 if test -z "$CXX"; then
2120 if test -n "$CCC"; then
2123 if test -n "$ac_tool_prefix"; then
2124 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130 if test "${ac_cv_prog_CXX+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test -n "$CXX"; then
2134 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2143 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 if test -n "$CXX"; then
2155 { echo "$as_me:$LINENO: result: $CXX" >&5
2156 echo "${ECHO_T}$CXX" >&6; }
2158 { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2163 test -n "$CXX" && break
2166 if test -z "$CXX"; then
2168 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2170 # Extract the first word of "$ac_prog", so it can be a program name with args.
2171 set dummy $ac_prog; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test -n "$ac_ct_CXX"; then
2178 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 test -z "$as_dir" && as_dir=.
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187 ac_cv_prog_ac_ct_CXX="$ac_prog"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2198 if test -n "$ac_ct_CXX"; then
2199 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2200 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2202 { echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6; }
2207 test -n "$ac_ct_CXX" && break
2210 if test "x$ac_ct_CXX" = x; then
2213 case $cross_compiling:$ac_tool_warned in
2215 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2216 whose name does not start with the host triplet. If you think this
2217 configuration is useful to you, please write to autoconf@gnu.org." >&5
2218 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2219 whose name does not start with the host triplet. If you think this
2220 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2221 ac_tool_warned=yes ;;
2229 # Provide some information about the compiler.
2230 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2231 ac_compiler=`set X $ac_compile; echo $2`
2232 { (ac_try="$ac_compiler --version >&5"
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2238 (eval "$ac_compiler --version >&5") 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2242 { (ac_try="$ac_compiler -v >&5"
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_compiler -v >&5") 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2252 { (ac_try="$ac_compiler -V >&5"
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2258 (eval "$ac_compiler -V >&5") 2>&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }
2263 cat >conftest.$ac_ext <<_ACEOF
2266 cat confdefs.h >>conftest.$ac_ext
2267 cat >>conftest.$ac_ext <<_ACEOF
2268 /* end confdefs.h. */
2278 ac_clean_files_save=$ac_clean_files
2279 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2280 # Try to create an executable without -o first, disregard a.out.
2281 # It will help us diagnose broken compilers, and finding out an intuition
2283 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2284 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2285 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2287 # List of possible output files, starting from the most likely.
2288 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2289 # only as a last resort. b.out is created by i960 compilers.
2290 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2292 # The IRIX 6 linker writes into existing files which may not be
2293 # executable, retaining their permissions. Remove them first so a
2294 # subsequent execution test works.
2296 for ac_file in $ac_files
2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2300 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2305 if { (ac_try="$ac_link_default"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_link_default") 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2318 # so that the user can short-circuit this test for compilers unknown to
2320 for ac_file in $ac_files ''
2322 test -f "$ac_file" || continue
2324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2327 # We found the default executable, but exeext='' is most
2331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2335 # We set ac_cv_exeext here because the later test for it is not
2336 # safe: cross compilers may not add the suffix if given an `-o'
2337 # argument, so we may need to know it at that point already.
2338 # Even if this section looks crufty: it has the advantage of
2345 test "$ac_cv_exeext" = no && ac_cv_exeext=
2351 { echo "$as_me:$LINENO: result: $ac_file" >&5
2352 echo "${ECHO_T}$ac_file" >&6; }
2353 if test -z "$ac_file"; then
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2357 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2358 See \`config.log' for more details." >&5
2359 echo "$as_me: error: C++ compiler cannot create executables
2360 See \`config.log' for more details." >&2;}
2361 { (exit 77); exit 77; }; }
2364 ac_exeext=$ac_cv_exeext
2366 # Check that the compiler produces executables we can run. If not, either
2367 # the compiler is broken, or we cross compile.
2368 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2369 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2370 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2371 # If not cross compiling, check that we can run a simple program.
2372 if test "$cross_compiling" != yes; then
2373 if { ac_try='./$ac_file'
2374 { (case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_try") 2>&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2385 if test "$cross_compiling" = maybe; then
2388 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2389 If you meant to cross compile, use \`--host'.
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot run C++ compiled programs.
2392 If you meant to cross compile, use \`--host'.
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }
2398 { echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6; }
2401 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2402 ac_clean_files=$ac_clean_files_save
2403 # Check that the compiler produces executables we can run. If not, either
2404 # the compiler is broken, or we cross compile.
2405 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2406 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2407 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2408 echo "${ECHO_T}$cross_compiling" >&6; }
2410 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2411 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2412 if { (ac_try="$ac_link"
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_link") 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; then
2422 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2423 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2424 # work properly (i.e., refer to `conftest.exe'), while it won't with
2426 for ac_file in conftest.exe conftest conftest.*; do
2427 test -f "$ac_file" || continue
2429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2430 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2436 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2439 See \`config.log' for more details." >&2;}
2440 { (exit 1); exit 1; }; }
2443 rm -f conftest$ac_cv_exeext
2444 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2445 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2447 rm -f conftest.$ac_ext
2448 EXEEXT=$ac_cv_exeext
2450 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2451 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2452 if test "${ac_cv_objext+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 cat >conftest.$ac_ext <<_ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2470 rm -f conftest.o conftest.obj
2471 if { (ac_try="$ac_compile"
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_compile") 2>&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; then
2481 for ac_file in conftest.o conftest.obj conftest.*; do
2482 test -f "$ac_file" || continue;
2484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2485 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2493 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2494 See \`config.log' for more details." >&5
2495 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2496 See \`config.log' for more details." >&2;}
2497 { (exit 1); exit 1; }; }
2500 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2502 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2503 echo "${ECHO_T}$ac_cv_objext" >&6; }
2504 OBJEXT=$ac_cv_objext
2506 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2507 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2508 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 cat >conftest.$ac_ext <<_ACEOF
2514 cat confdefs.h >>conftest.$ac_ext
2515 cat >>conftest.$ac_ext <<_ACEOF
2516 /* end confdefs.h. */
2529 rm -f conftest.$ac_objext
2530 if { (ac_try="$ac_compile"
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_compile") 2>conftest.er1
2538 grep -v '^ *+' conftest.er1 >conftest.err
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } && {
2543 test -z "$ac_cxx_werror_flag" ||
2544 test ! -s conftest.err
2545 } && test -s conftest.$ac_objext; then
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2558 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2559 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2560 GXX=`test $ac_compiler_gnu = yes && echo yes`
2561 ac_test_CXXFLAGS=${CXXFLAGS+set}
2562 ac_save_CXXFLAGS=$CXXFLAGS
2563 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2564 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2565 if test "${ac_cv_prog_cxx_g+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2569 ac_cxx_werror_flag=yes
2572 cat >conftest.$ac_ext <<_ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2587 rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_compile") 2>conftest.er1
2596 grep -v '^ *+' conftest.er1 >conftest.err
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } && {
2601 test -z "$ac_cxx_werror_flag" ||
2602 test ! -s conftest.err
2603 } && test -s conftest.$ac_objext; then
2604 ac_cv_prog_cxx_g=yes
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2610 cat >conftest.$ac_ext <<_ACEOF
2613 cat confdefs.h >>conftest.$ac_ext
2614 cat >>conftest.$ac_ext <<_ACEOF
2615 /* end confdefs.h. */
2625 rm -f conftest.$ac_objext
2626 if { (ac_try="$ac_compile"
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2632 (eval "$ac_compile") 2>conftest.er1
2634 grep -v '^ *+' conftest.er1 >conftest.err
2636 cat conftest.err >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } && {
2639 test -z "$ac_cxx_werror_flag" ||
2640 test ! -s conftest.err
2641 } && test -s conftest.$ac_objext; then
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2647 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2649 cat >conftest.$ac_ext <<_ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2664 rm -f conftest.$ac_objext
2665 if { (ac_try="$ac_compile"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compile") 2>conftest.er1
2673 grep -v '^ *+' conftest.er1 >conftest.err
2675 cat conftest.err >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); } && {
2678 test -z "$ac_cxx_werror_flag" ||
2679 test ! -s conftest.err
2680 } && test -s conftest.$ac_objext; then
2681 ac_cv_prog_cxx_g=yes
2683 echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2698 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2699 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2700 if test "$ac_test_CXXFLAGS" = set; then
2701 CXXFLAGS=$ac_save_CXXFLAGS
2702 elif test $ac_cv_prog_cxx_g = yes; then
2703 if test "$GXX" = yes; then
2709 if test "$GXX" = yes; then
2716 ac_cpp='$CPP $CPPFLAGS'
2717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 if test -n "$ac_tool_prefix"; then
2726 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2727 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 if test -n "$CC"; then
2755 { echo "$as_me:$LINENO: result: $CC" >&5
2756 echo "${ECHO_T}$CC" >&6; }
2758 { echo "$as_me:$LINENO: result: no" >&5
2759 echo "${ECHO_T}no" >&6; }
2764 if test -z "$ac_cv_prog_CC"; then
2766 # Extract the first word of "gcc", so it can be a program name with args.
2767 set dummy gcc; ac_word=$2
2768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_ac_ct_CC="gcc"
2784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2796 echo "${ECHO_T}$ac_ct_CC" >&6; }
2798 { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2802 if test "x$ac_ct_CC" = x; then
2805 case $cross_compiling:$ac_tool_warned in
2807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2808 whose name does not start with the host triplet. If you think this
2809 configuration is useful to you, please write to autoconf@gnu.org." >&5
2810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2811 whose name does not start with the host triplet. If you think this
2812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2813 ac_tool_warned=yes ;;
2821 if test -z "$CC"; then
2822 if test -n "$ac_tool_prefix"; then
2823 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2824 set dummy ${ac_tool_prefix}cc; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$CC"; then
2831 ac_cv_prog_CC="$CC" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_CC="${ac_tool_prefix}cc"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 if test -n "$CC"; then
2852 { echo "$as_me:$LINENO: result: $CC" >&5
2853 echo "${ECHO_T}$CC" >&6; }
2855 { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2862 if test -z "$CC"; then
2863 # Extract the first word of "cc", so it can be a program name with args.
2864 set dummy cc; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_CC+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$CC"; then
2871 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2882 ac_prog_rejected=yes
2886 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 if test $ac_prog_rejected = yes; then
2894 # We found a bogon in the path, so make sure we never use it.
2895 set dummy $ac_cv_prog_CC
2897 if test $@%:@ != 0; then
2898 # We chose a different compiler from the bogus one.
2899 # However, it has the same basename, so the bogon will be chosen
2900 # first if we set CC to just the basename; use the full file name.
2902 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2908 if test -n "$CC"; then
2909 { echo "$as_me:$LINENO: result: $CC" >&5
2910 echo "${ECHO_T}$CC" >&6; }
2912 { echo "$as_me:$LINENO: result: no" >&5
2913 echo "${ECHO_T}no" >&6; }
2918 if test -z "$CC"; then
2919 if test -n "$ac_tool_prefix"; then
2920 for ac_prog in cl.exe
2922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2926 if test "${ac_cv_prog_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 if test -n "$CC"; then
2951 { echo "$as_me:$LINENO: result: $CC" >&5
2952 echo "${ECHO_T}$CC" >&6; }
2954 { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2959 test -n "$CC" && break
2962 if test -z "$CC"; then
2964 for ac_prog in cl.exe
2966 # Extract the first word of "$ac_prog", so it can be a program name with args.
2967 set dummy $ac_prog; ac_word=$2
2968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2970 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 if test -n "$ac_ct_CC"; then
2974 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_ac_ct_CC="$ac_prog"
2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2994 if test -n "$ac_ct_CC"; then
2995 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2996 echo "${ECHO_T}$ac_ct_CC" >&6; }
2998 { echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6; }
3003 test -n "$ac_ct_CC" && break
3006 if test "x$ac_ct_CC" = x; then
3009 case $cross_compiling:$ac_tool_warned in
3011 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3012 whose name does not start with the host triplet. If you think this
3013 configuration is useful to you, please write to autoconf@gnu.org." >&5
3014 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3015 whose name does not start with the host triplet. If you think this
3016 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3017 ac_tool_warned=yes ;;
3026 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: no acceptable C compiler found in \$PATH
3029 See \`config.log' for more details." >&2;}
3030 { (exit 1); exit 1; }; }
3032 # Provide some information about the compiler.
3033 echo "$as_me:$LINENO: checking for C compiler version" >&5
3034 ac_compiler=`set X $ac_compile; echo $2`
3035 { (ac_try="$ac_compiler --version >&5"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compiler --version >&5") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }
3045 { (ac_try="$ac_compiler -v >&5"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compiler -v >&5") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }
3055 { (ac_try="$ac_compiler -V >&5"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compiler -V >&5") 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3066 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } && {
3103 test -z "$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 } && test -s conftest.$ac_objext; then
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3118 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3119 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3120 GCC=`test $ac_compiler_gnu = yes && echo yes`
3121 ac_test_CFLAGS=${CFLAGS+set}
3122 ac_save_CFLAGS=$CFLAGS
3123 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3124 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3125 if test "${ac_cv_prog_cc_g+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 ac_save_c_werror_flag=$ac_c_werror_flag
3129 ac_c_werror_flag=yes
3132 cat >conftest.$ac_ext <<_ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3156 grep -v '^ *+' conftest.er1 >conftest.err
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } && {
3161 test -z "$ac_c_werror_flag" ||
3162 test ! -s conftest.err
3163 } && test -s conftest.$ac_objext; then
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3185 rm -f conftest.$ac_objext
3186 if { (ac_try="$ac_compile"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } && {
3199 test -z "$ac_c_werror_flag" ||
3200 test ! -s conftest.err
3201 } && test -s conftest.$ac_objext; then
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); } && {
3238 test -z "$ac_c_werror_flag" ||
3239 test ! -s conftest.err
3240 } && test -s conftest.$ac_objext; then
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 ac_c_werror_flag=$ac_save_c_werror_flag
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3260 if test "$ac_test_CFLAGS" = set; then
3261 CFLAGS=$ac_save_CFLAGS
3262 elif test $ac_cv_prog_cc_g = yes; then
3263 if test "$GCC" = yes; then
3269 if test "$GCC" = yes; then
3275 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3276 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_cc_c89+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 ac_cv_prog_cc_c89=no
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3290 #include <sys/types.h>
3291 #include <sys/stat.h>
3292 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3293 struct buf { int x; };
3294 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3295 static char *e (p, i)
3301 static char *f (char * (*g) (char **, int), char **p, ...)
3306 s = g (p, va_arg (v,int));
3311 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3312 function prototypes and stuff, but not '\xHH' hex character constants.
3313 These don't provoke an error unfortunately, instead are silently treated
3314 as 'x'. The following induces an error, until -std is added to get
3315 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3316 array size at least. It's necessary to write '\x00'==0 to get something
3317 that's true only with -std. */
3318 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3320 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3321 inside strings and character constants. */
3323 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3325 int test (int i, double x);
3326 struct s1 {int (*f) (int a);};
3327 struct s2 {int (*f) (double a);};
3328 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3334 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3339 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3340 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3342 CC="$ac_save_CC $ac_arg"
3343 rm -f conftest.$ac_objext
3344 if { (ac_try="$ac_compile"
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350 (eval "$ac_compile") 2>conftest.er1
3352 grep -v '^ *+' conftest.er1 >conftest.err
3354 cat conftest.err >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } && {
3357 test -z "$ac_c_werror_flag" ||
3358 test ! -s conftest.err
3359 } && test -s conftest.$ac_objext; then
3360 ac_cv_prog_cc_c89=$ac_arg
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3368 rm -f core conftest.err conftest.$ac_objext
3369 test "x$ac_cv_prog_cc_c89" != "xno" && break
3371 rm -f conftest.$ac_ext
3376 case "x$ac_cv_prog_cc_c89" in
3378 { echo "$as_me:$LINENO: result: none needed" >&5
3379 echo "${ECHO_T}none needed" >&6; } ;;
3381 { echo "$as_me:$LINENO: result: unsupported" >&5
3382 echo "${ECHO_T}unsupported" >&6; } ;;
3384 CC="$CC $ac_cv_prog_cc_c89"
3385 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3386 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 ac_cpp='$CPP $CPPFLAGS'
3397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3401 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3402 # On Suns, sometimes $CPP names a directory.
3403 if test -n "$CPP" && test -d "$CPP"; then
3406 if test -z "$CPP"; then
3407 if test "${ac_cv_prog_CPP+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 # Double quotes because CPP needs to be expanded
3411 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3414 for ac_c_preproc_warn_flag in '' yes
3416 # Use a header file that comes with gcc, so configuring glibc
3417 # with a fresh cross-compiler works.
3418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3419 # <limits.h> exists even on freestanding compilers.
3420 # On the NeXT, cc -E runs the code through the compiler's parser,
3421 # not just through cpp. "Syntax error" is here to catch this case.
3422 cat >conftest.$ac_ext <<_ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3429 @%:@ include <limits.h>
3431 @%:@ include <assert.h>
3435 if { (ac_try="$ac_cpp conftest.$ac_ext"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3443 grep -v '^ *+' conftest.er1 >conftest.err
3445 cat conftest.err >&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } >/dev/null && {
3448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3449 test ! -s conftest.err
3453 echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 @%:@include <ac_nonexistent.h>
3472 if { (ac_try="$ac_cpp conftest.$ac_ext"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } >/dev/null && {
3485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3486 test ! -s conftest.err
3488 # Broken: success on invalid input.
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 # Passes both tests.
3499 rm -f conftest.err conftest.$ac_ext
3502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3503 rm -f conftest.err conftest.$ac_ext
3504 if $ac_preproc_ok; then
3516 { echo "$as_me:$LINENO: result: $CPP" >&5
3517 echo "${ECHO_T}$CPP" >&6; }
3519 for ac_c_preproc_warn_flag in '' yes
3521 # Use a header file that comes with gcc, so configuring glibc
3522 # with a fresh cross-compiler works.
3523 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3524 # <limits.h> exists even on freestanding compilers.
3525 # On the NeXT, cc -E runs the code through the compiler's parser,
3526 # not just through cpp. "Syntax error" is here to catch this case.
3527 cat >conftest.$ac_ext <<_ACEOF
3530 cat confdefs.h >>conftest.$ac_ext
3531 cat >>conftest.$ac_ext <<_ACEOF
3532 /* end confdefs.h. */
3534 @%:@ include <limits.h>
3536 @%:@ include <assert.h>
3540 if { (ac_try="$ac_cpp conftest.$ac_ext"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3548 grep -v '^ *+' conftest.er1 >conftest.err
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } >/dev/null && {
3553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3554 test ! -s conftest.err
3558 echo "$as_me: failed program was:" >&5
3559 sed 's/^/| /' conftest.$ac_ext >&5
3561 # Broken: fails on valid input.
3565 rm -f conftest.err conftest.$ac_ext
3567 # OK, works on sane cases. Now check whether nonexistent headers
3568 # can be detected and how.
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3575 @%:@include <ac_nonexistent.h>
3577 if { (ac_try="$ac_cpp conftest.$ac_ext"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } >/dev/null && {
3590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3593 # Broken: success on invalid input.
3596 echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3599 # Passes both tests.
3604 rm -f conftest.err conftest.$ac_ext
3607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3608 rm -f conftest.err conftest.$ac_ext
3609 if $ac_preproc_ok; then
3612 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3613 See \`config.log' for more details." >&5
3614 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3615 See \`config.log' for more details." >&2;}
3616 { (exit 1); exit 1; }; }
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3624 # Find a good install program. We prefer a C program (faster),
3625 # so one script is as good as another. But avoid the broken or
3626 # incompatible versions:
3627 # SysV /etc/install, /usr/sbin/install
3628 # SunOS /usr/etc/install
3629 # IRIX /sbin/install
3631 # AmigaOS /C/install, which installs bootblocks on floppy discs
3632 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3633 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3634 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3635 # OS/2's system install, which has a completely different semantic
3636 # ./install, which can be erroneously created by make from ./install.sh.
3637 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3638 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3639 if test -z "$INSTALL"; then
3640 if test "${ac_cv_path_install+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir=.
3648 # Account for people who put trailing slashes in PATH elements.
3650 ./ | .// | /cC/* | \
3651 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3652 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3655 # OSF1 and SCO ODT 3.0 have their own names for install.
3656 # Don't use installbsd from OSF since it installs stuff as root
3658 for ac_prog in ginstall scoinst install; do
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3661 if test $ac_prog = install &&
3662 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3663 # AIX install. It has an incompatible calling convention.
3665 elif test $ac_prog = install &&
3666 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3667 # program-specific install script used by HP pwplus--don't use.
3670 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3683 if test "${ac_cv_path_install+set}" = set; then
3684 INSTALL=$ac_cv_path_install
3686 # As a last resort, use the slow shell script. Don't cache a
3687 # value for INSTALL within a source directory, because that will
3688 # break other packages using the cache if that directory is
3689 # removed, or if the value is a relative name.
3690 INSTALL=$ac_install_sh
3693 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3694 echo "${ECHO_T}$INSTALL" >&6; }
3696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3697 # It thinks the first close brace ends the variable substitution.
3698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3703 for ac_prog in gawk mawk nawk awk
3705 # Extract the first word of "$ac_prog", so it can be a program name with args.
3706 set dummy $ac_prog; ac_word=$2
3707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3709 if test "${ac_cv_prog_AWK+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 if test -n "$AWK"; then
3713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 test -z "$as_dir" && as_dir=.
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3722 ac_cv_prog_AWK="$ac_prog"
3723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 if test -n "$AWK"; then
3734 { echo "$as_me:$LINENO: result: $AWK" >&5
3735 echo "${ECHO_T}$AWK" >&6; }
3737 { echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6; }
3742 test -n "$AWK" && break
3746 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3747 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3748 if test "${ac_cv_search_strerror+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 ac_func_search_save_LIBS=$LIBS
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3759 /* Override any GCC internal prototype to avoid an error.
3760 Use char because int might match the return type of a GCC
3761 builtin and then its argument prototype would still apply. */
3774 for ac_lib in '' cposix; do
3775 if test -z "$ac_lib"; then
3776 ac_res="none required"
3779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3781 rm -f conftest.$ac_objext conftest$ac_exeext
3782 if { (ac_try="$ac_link"
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788 (eval "$ac_link") 2>conftest.er1
3790 grep -v '^ *+' conftest.er1 >conftest.err
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } && {
3795 test -z "$ac_c_werror_flag" ||
3796 test ! -s conftest.err
3797 } && test -s conftest$ac_exeext &&
3798 $as_test_x conftest$ac_exeext; then
3799 ac_cv_search_strerror=$ac_res
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3809 if test "${ac_cv_search_strerror+set}" = set; then
3813 if test "${ac_cv_search_strerror+set}" = set; then
3816 ac_cv_search_strerror=no
3819 LIBS=$ac_func_search_save_LIBS
3821 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3822 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3823 ac_res=$ac_cv_search_strerror
3824 if test "$ac_res" != no; then
3825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3830 if test x$GCC = xyes; then
3840 cat >>confdefs.h <<\_ACEOF
3841 @%:@define HAVE_GCC 1
3857 #if test x$LD = x ; then
3871 PTHREAD_LFLAGS="-lpthread"
3874 cat >>confdefs.h <<\_ACEOF
3875 @%:@define HAVE_PTHREADS 1
3888 for ac_prog in shutdown shutdown.bsd
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3894 if test "${ac_cv_path_SHUTDOWN+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 ac_cv_path_SHUTDOWN="$SHUTDOWN" # Let the user override the test with a path.
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_path_SHUTDOWN="$as_dir/$ac_word$ac_exec_ext"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 SHUTDOWN=$ac_cv_path_SHUTDOWN
3921 if test -n "$SHUTDOWN"; then
3922 { echo "$as_me:$LINENO: result: $SHUTDOWN" >&5
3923 echo "${ECHO_T}$SHUTDOWN" >&6; }
3925 { echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6; }
3930 test -n "$SHUTDOWN" && break
3933 if test "$SHUTDOWN" = "" ; then
3934 { { echo "$as_me:$LINENO: error: Missing required tool; need any one of: shutdown shutdown.bsd" >&5
3935 echo "$as_me: error: Missing required tool; need any one of: shutdown shutdown.bsd" >&2;}
3936 { (exit 1); exit 1; }; }
3942 # Extract the first word of "$ac_prog", so it can be a program name with args.
3943 set dummy $ac_prog; ac_word=$2
3944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3946 if test "${ac_cv_path_APCUPSD_MAIL+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 case $APCUPSD_MAIL in
3951 ac_cv_path_APCUPSD_MAIL="$APCUPSD_MAIL" # Let the user override the test with a path.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3961 ac_cv_path_APCUPSD_MAIL="$as_dir/$ac_word$ac_exec_ext"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 APCUPSD_MAIL=$ac_cv_path_APCUPSD_MAIL
3973 if test -n "$APCUPSD_MAIL"; then
3974 { echo "$as_me:$LINENO: result: $APCUPSD_MAIL" >&5
3975 echo "${ECHO_T}$APCUPSD_MAIL" >&6; }
3977 { echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6; }
3982 test -n "$APCUPSD_MAIL" && break
3984 test -n "$APCUPSD_MAIL" || APCUPSD_MAIL="no"
3986 if test "$APCUPSD_MAIL" = "no"
3988 { echo "$as_me:$LINENO: WARNING: mail program not found !" >&5
3989 echo "$as_me: WARNING: mail program not found !" >&2;}
3992 APCUPSD_MAIL="sendmail -S server.home -f root"
3996 # Extract the first word of "$ac_prog", so it can be a program name with args.
3997 set dummy $ac_prog; ac_word=$2
3998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4000 if test "${ac_cv_path_WALL+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 ac_cv_path_WALL="$WALL" # Let the user override the test with a path.
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_path_WALL="$as_dir/$ac_word$ac_exec_ext"
4016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 WALL=$ac_cv_path_WALL
4027 if test -n "$WALL"; then
4028 { echo "$as_me:$LINENO: result: $WALL" >&5
4029 echo "${ECHO_T}$WALL" >&6; }
4031 { echo "$as_me:$LINENO: result: no" >&5
4032 echo "${ECHO_T}no" >&6; }
4036 test -n "$WALL" && break
4039 if test "$WALL" = "" ; then
4040 { { echo "$as_me:$LINENO: error: Missing required tool; need any one of: wall" >&5
4041 echo "$as_me: error: Missing required tool; need any one of: wall" >&2;}
4042 { (exit 1); exit 1; }; }
4045 for ac_prog in sh bash
4047 # Extract the first word of "$ac_prog", so it can be a program name with args.
4048 set dummy $ac_prog; ac_word=$2
4049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4051 if test "${ac_cv_path_SCRIPTSHELL+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4054 case $SCRIPTSHELL in
4056 ac_cv_path_SCRIPTSHELL="$SCRIPTSHELL" # Let the user override the test with a path.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 ac_cv_path_SCRIPTSHELL="$as_dir/$ac_word$ac_exec_ext"
4067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077 SCRIPTSHELL=$ac_cv_path_SCRIPTSHELL
4078 if test -n "$SCRIPTSHELL"; then
4079 { echo "$as_me:$LINENO: result: $SCRIPTSHELL" >&5
4080 echo "${ECHO_T}$SCRIPTSHELL" >&6; }
4082 { echo "$as_me:$LINENO: result: no" >&5
4083 echo "${ECHO_T}no" >&6; }
4087 test -n "$SCRIPTSHELL" && break
4090 if test "$SCRIPTSHELL" = "" ; then
4091 { { echo "$as_me:$LINENO: error: Missing required tool; need any one of: sh bash" >&5
4092 echo "$as_me: error: Missing required tool; need any one of: sh bash" >&2;}
4093 { (exit 1); exit 1; }; }
4097 { echo "$as_me:$LINENO: checking for GNU make" >&5
4098 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
4099 if test "${_cv_gnu_make_command+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 _cv_gnu_make_command='' ;
4103 for a in "$MAKE" make gmake gnumake ; do
4104 if test -z "$a" ; then continue ; fi ;
4105 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
4106 _cv_gnu_make_command=$a ;
4112 { echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
4113 echo "${ECHO_T}$_cv_gnu_make_command" >&6; } ;
4114 MAKE=$_cv_gnu_make_command;
4115 if test -z "$_cv_gnu_make_command" ; then
4116 { { echo "$as_me:$LINENO: error: Could not find GNU make" >&5
4117 echo "$as_me: error: Could not find GNU make" >&2;}
4118 { (exit 1); exit 1; }; } ;
4121 for ac_prog in ranlib true
4123 # Extract the first word of "$ac_prog", so it can be a program name with args.
4124 set dummy $ac_prog; ac_word=$2
4125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_RANLIB+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153 RANLIB=$ac_cv_path_RANLIB
4154 if test -n "$RANLIB"; then
4155 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4156 echo "${ECHO_T}$RANLIB" >&6; }
4158 { echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6; }
4163 test -n "$RANLIB" && break
4166 if test "$RANLIB" = "" ; then
4167 { { echo "$as_me:$LINENO: error: Missing required tool; need any one of: ranlib true" >&5
4168 echo "$as_me: error: Missing required tool; need any one of: ranlib true" >&2;}
4169 { (exit 1); exit 1; }; }
4172 # Extract the first word of "rm", so it can be a program name with args.
4173 set dummy rm; ac_word=$2
4174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4176 if test "${ac_cv_path_RM+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$RM"; then
4204 { echo "$as_me:$LINENO: result: $RM" >&5
4205 echo "${ECHO_T}$RM" >&6; }
4207 { echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6; }
4212 if test "$RM" = "" ; then
4213 { { echo "$as_me:$LINENO: error: Missing required tool: rm" >&5
4214 echo "$as_me: error: Missing required tool: rm" >&2;}
4215 { (exit 1); exit 1; }; }
4218 # Extract the first word of "cp", so it can be a program name with args.
4219 set dummy cp; ac_word=$2
4220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4222 if test "${ac_cv_path_CP+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 if test -n "$CP"; then
4250 { echo "$as_me:$LINENO: result: $CP" >&5
4251 echo "${ECHO_T}$CP" >&6; }
4253 { echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6; }
4258 if test "$CP" = "" ; then
4259 { { echo "$as_me:$LINENO: error: Missing required tool: cp" >&5
4260 echo "$as_me: error: Missing required tool: cp" >&2;}
4261 { (exit 1); exit 1; }; }
4264 # Extract the first word of "echo", so it can be a program name with args.
4265 set dummy echo; ac_word=$2
4266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4268 if test "${ac_cv_path_ECHO+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 ECHO=$ac_cv_path_ECHO
4295 if test -n "$ECHO"; then
4296 { echo "$as_me:$LINENO: result: $ECHO" >&5
4297 echo "${ECHO_T}$ECHO" >&6; }
4299 { echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6; }
4304 if test "$ECHO" = "" ; then
4305 { { echo "$as_me:$LINENO: error: Missing required tool: echo" >&5
4306 echo "$as_me: error: Missing required tool: echo" >&2;}
4307 { (exit 1); exit 1; }; }
4310 # Extract the first word of "ln", so it can be a program name with args.
4311 set dummy ln; ac_word=$2
4312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4314 if test "${ac_cv_path_LN+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4329 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 if test -n "$LN"; then
4342 { echo "$as_me:$LINENO: result: $LN" >&5
4343 echo "${ECHO_T}$LN" >&6; }
4345 { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4350 if test "$LN" = "" ; then
4351 { { echo "$as_me:$LINENO: error: Missing required tool: ln" >&5
4352 echo "$as_me: error: Missing required tool: ln" >&2;}
4353 { (exit 1); exit 1; }; }
4356 # Extract the first word of "sed", so it can be a program name with args.
4357 set dummy sed; ac_word=$2
4358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4360 if test "${ac_cv_path_SED+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 if test -n "$SED"; then
4388 { echo "$as_me:$LINENO: result: $SED" >&5
4389 echo "${ECHO_T}$SED" >&6; }
4391 { echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6; }
4396 if test "$SED" = "" ; then
4397 { { echo "$as_me:$LINENO: error: Missing required tool: sed" >&5
4398 echo "$as_me: error: Missing required tool: sed" >&2;}
4399 { (exit 1); exit 1; }; }
4402 # Extract the first word of "ar", so it can be a program name with args.
4403 set dummy ar; ac_word=$2
4404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4406 if test "${ac_cv_path_AR+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 if test -n "$AR"; then
4434 { echo "$as_me:$LINENO: result: $AR" >&5
4435 echo "${ECHO_T}$AR" >&6; }
4437 { echo "$as_me:$LINENO: result: no" >&5
4438 echo "${ECHO_T}no" >&6; }
4442 if test "$AR" = "" ; then
4443 { { echo "$as_me:$LINENO: error: Missing required tool: ar" >&5
4444 echo "$as_me: error: Missing required tool: ar" >&2;}
4445 { (exit 1); exit 1; }; }
4448 # Extract the first word of "mv", so it can be a program name with args.
4449 set dummy mv; ac_word=$2
4450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452 if test "${ac_cv_path_MV+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 if test -n "$MV"; then
4480 { echo "$as_me:$LINENO: result: $MV" >&5
4481 echo "${ECHO_T}$MV" >&6; }
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4488 if test "$MV" = "" ; then
4489 { { echo "$as_me:$LINENO: error: Missing required tool: mv" >&5
4490 echo "$as_me: error: Missing required tool: mv" >&2;}
4491 { (exit 1); exit 1; }; }
4495 # Extract the first word of "rst2html.py", so it can be a program name with args.
4496 set dummy rst2html.py; ac_word=$2
4497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4499 if test "${ac_cv_path_RST2HTML+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 ac_cv_path_RST2HTML="$RST2HTML" # Let the user override the test with a path.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_path_RST2HTML="$as_dir/$ac_word$ac_exec_ext"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 RST2HTML=$ac_cv_path_RST2HTML
4526 if test -n "$RST2HTML"; then
4527 { echo "$as_me:$LINENO: result: $RST2HTML" >&5
4528 echo "${ECHO_T}$RST2HTML" >&6; }
4530 { echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6; }
4535 # Extract the first word of "rst2pdf", so it can be a program name with args.
4536 set dummy rst2pdf; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_path_RST2PDF+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 ac_cv_path_RST2PDF="$RST2PDF" # Let the user override the test with a path.
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_path_RST2PDF="$as_dir/$ac_word$ac_exec_ext"
4555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 RST2PDF=$ac_cv_path_RST2PDF
4566 if test -n "$RST2PDF"; then
4567 { echo "$as_me:$LINENO: result: $RST2PDF" >&5
4568 echo "${ECHO_T}$RST2PDF" >&6; }
4570 { echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6; }
4576 # -------------------------------------------------------------------------
4577 # If the user has not set --mandir, we default to /usr/share/man
4578 # -------------------------------------------------------------------------
4579 if test x$mandir = x'${prefix}/man' ; then
4580 mandir=/usr/share/man
4600 for ac_func in abort fork calloc getpid \
4601 ioctl kill rewind select setsid signal strerror strncmp \
4602 strncpy tcgetattr vfprintf setpgrp
4604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 cat >conftest.$ac_ext <<_ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4618 #define $ac_func innocuous_$ac_func
4620 /* System header to define __stub macros and hopefully few prototypes,
4621 which can conflict with char $ac_func (); below.
4622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4623 <limits.h> exists even on freestanding compilers. */
4626 # include <limits.h>
4628 # include <assert.h>
4633 /* Override any GCC internal prototype to avoid an error.
4634 Use char because int might match the return type of a GCC
4635 builtin and then its argument prototype would still apply. */
4640 /* The GNU C library defines this for functions which it implements
4641 to always fail with ENOSYS. Some functions are actually named
4642 something starting with __ and the normal name is an alias. */
4643 #if defined __stub_$ac_func || defined __stub___$ac_func
4655 rm -f conftest.$ac_objext conftest$ac_exeext
4656 if { (ac_try="$ac_link"
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_link") 2>conftest.er1
4664 grep -v '^ *+' conftest.er1 >conftest.err
4666 cat conftest.err >&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } && {
4669 test -z "$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4671 } && test -s conftest$ac_exeext &&
4672 $as_test_x conftest$ac_exeext; then
4673 eval "$as_ac_var=yes"
4675 echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4678 eval "$as_ac_var=no"
4681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4682 conftest$ac_exeext conftest.$ac_ext
4684 ac_res=`eval echo '${'$as_ac_var'}'`
4685 { echo "$as_me:$LINENO: result: $ac_res" >&5
4686 echo "${ECHO_T}$ac_res" >&6; }
4687 if test `eval echo '${'$as_ac_var'}'` = yes; then
4688 cat >>confdefs.h <<_ACEOF
4689 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4693 { { echo "$as_me:$LINENO: error: cannot find required function." >&5
4694 echo "$as_me: error: cannot find required function." >&2;}
4695 { (exit 1); exit 1; }; }
4703 for ac_func in snprintf vsnprintf
4705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 cat >conftest.$ac_ext <<_ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4719 #define $ac_func innocuous_$ac_func
4721 /* System header to define __stub macros and hopefully few prototypes,
4722 which can conflict with char $ac_func (); below.
4723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724 <limits.h> exists even on freestanding compilers. */
4727 # include <limits.h>
4729 # include <assert.h>
4734 /* Override any GCC internal prototype to avoid an error.
4735 Use char because int might match the return type of a GCC
4736 builtin and then its argument prototype would still apply. */
4741 /* The GNU C library defines this for functions which it implements
4742 to always fail with ENOSYS. Some functions are actually named
4743 something starting with __ and the normal name is an alias. */
4744 #if defined __stub_$ac_func || defined __stub___$ac_func
4756 rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (ac_try="$ac_link"
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_link") 2>conftest.er1
4765 grep -v '^ *+' conftest.er1 >conftest.err
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } && {
4770 test -z "$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4772 } && test -s conftest$ac_exeext &&
4773 $as_test_x conftest$ac_exeext; then
4774 eval "$as_ac_var=yes"
4776 echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4779 eval "$as_ac_var=no"
4782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4783 conftest$ac_exeext conftest.$ac_ext
4785 ac_res=`eval echo '${'$as_ac_var'}'`
4786 { echo "$as_me:$LINENO: result: $ac_res" >&5
4787 echo "${ECHO_T}$ac_res" >&6; }
4788 if test `eval echo '${'$as_ac_var'}'` = yes; then
4789 cat >>confdefs.h <<_ACEOF
4790 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4797 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
4798 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
4799 if test "${ac_cv_search_nanosleep+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 ac_func_search_save_LIBS=$LIBS
4803 cat >conftest.$ac_ext <<_ACEOF
4806 cat confdefs.h >>conftest.$ac_ext
4807 cat >>conftest.$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4810 /* Override any GCC internal prototype to avoid an error.
4811 Use char because int might match the return type of a GCC
4812 builtin and then its argument prototype would still apply. */
4820 return nanosleep ();
4825 for ac_lib in '' rt posix4; do
4826 if test -z "$ac_lib"; then
4827 ac_res="none required"
4830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4832 rm -f conftest.$ac_objext conftest$ac_exeext
4833 if { (ac_try="$ac_link"
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_link") 2>conftest.er1
4841 grep -v '^ *+' conftest.er1 >conftest.err
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } && {
4846 test -z "$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4848 } && test -s conftest$ac_exeext &&
4849 $as_test_x conftest$ac_exeext; then
4850 ac_cv_search_nanosleep=$ac_res
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.$ac_ext >&5
4858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4860 if test "${ac_cv_search_nanosleep+set}" = set; then
4864 if test "${ac_cv_search_nanosleep+set}" = set; then
4867 ac_cv_search_nanosleep=no
4870 LIBS=$ac_func_search_save_LIBS
4872 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
4873 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
4874 ac_res=$ac_cv_search_nanosleep
4875 if test "$ac_res" != no; then
4876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4878 cat >>confdefs.h <<\_ACEOF
4879 @%:@define HAVE_NANOSLEEP 1
4883 LIBEXTRAOBJ="$LIBEXTRAOBJ sleep.o"
4884 EXTRAOBJ="$EXTRAOBJ lib/sleep.o"
4888 { echo "$as_me:$LINENO: checking for syslog" >&5
4889 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4901 syslog(0, "%s", "test");
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (ac_try="$ac_link"
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_link") 2>conftest.er1
4915 grep -v '^ *+' conftest.er1 >conftest.err
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } && {
4920 test -z "$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 } && test -s conftest$ac_exeext &&
4923 $as_test_x conftest$ac_exeext; then
4924 { echo "$as_me:$LINENO: result: yes" >&5
4925 echo "${ECHO_T}yes" >&6; }
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4931 { echo "$as_me:$LINENO: checking for std_syslog in -lsocket" >&5
4932 echo $ECHO_N "checking for std_syslog in -lsocket... $ECHO_C" >&6; }
4933 if test "${ac_cv_lib_socket_std_syslog+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 ac_check_lib_save_LIBS=$LIBS
4937 LIBS="-lsocket $LIBS"
4938 cat >conftest.$ac_ext <<_ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4945 /* Override any GCC internal prototype to avoid an error.
4946 Use char because int might match the return type of a GCC
4947 builtin and then its argument prototype would still apply. */
4955 return std_syslog ();
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (ac_try="$ac_link"
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_link") 2>conftest.er1
4969 grep -v '^ *+' conftest.er1 >conftest.err
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 } && test -s conftest$ac_exeext &&
4977 $as_test_x conftest$ac_exeext; then
4978 ac_cv_lib_socket_std_syslog=yes
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 ac_cv_lib_socket_std_syslog=no
4986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4987 conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4990 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_std_syslog" >&5
4991 echo "${ECHO_T}$ac_cv_lib_socket_std_syslog" >&6; }
4992 if test $ac_cv_lib_socket_std_syslog = yes; then
4993 cat >>confdefs.h <<_ACEOF
4994 @%:@define HAVE_LIBSOCKET 1
4997 LIBS="-lsocket $LIBS"
5000 { { echo "$as_me:$LINENO: error: cannot find required function." >&5
5001 echo "$as_me: error: cannot find required function." >&2;}
5002 { (exit 1); exit 1; }; }
5005 cat >conftest.$ac_ext <<_ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5015 syslog(0, "%s", "test");
5020 rm -f conftest.$ac_objext conftest$ac_exeext
5021 if { (ac_try="$ac_link"
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_link") 2>conftest.er1
5029 grep -v '^ *+' conftest.er1 >conftest.err
5031 cat conftest.err >&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest$ac_exeext &&
5037 $as_test_x conftest$ac_exeext; then
5038 { echo "$as_me:$LINENO: result: yes" >&5
5039 echo "${ECHO_T}yes" >&6; }
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 { { echo "$as_me:$LINENO: error: cannot find required function." >&5
5045 echo "$as_me: error: cannot find required function." >&2;}
5046 { (exit 1); exit 1; }; }
5049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5050 conftest$ac_exeext conftest.$ac_ext
5054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5055 conftest$ac_exeext conftest.$ac_ext
5058 for ac_func in strftime
5060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5061 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5063 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 cat >conftest.$ac_ext <<_ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5074 #define $ac_func innocuous_$ac_func
5076 /* System header to define __stub macros and hopefully few prototypes,
5077 which can conflict with char $ac_func (); below.
5078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5079 <limits.h> exists even on freestanding compilers. */
5082 # include <limits.h>
5084 # include <assert.h>
5089 /* Override any GCC internal prototype to avoid an error.
5090 Use char because int might match the return type of a GCC
5091 builtin and then its argument prototype would still apply. */
5096 /* The GNU C library defines this for functions which it implements
5097 to always fail with ENOSYS. Some functions are actually named
5098 something starting with __ and the normal name is an alias. */
5099 #if defined __stub_$ac_func || defined __stub___$ac_func
5111 rm -f conftest.$ac_objext conftest$ac_exeext
5112 if { (ac_try="$ac_link"
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_link") 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } && {
5125 test -z "$ac_c_werror_flag" ||
5126 test ! -s conftest.err
5127 } && test -s conftest$ac_exeext &&
5128 $as_test_x conftest$ac_exeext; then
5129 eval "$as_ac_var=yes"
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 eval "$as_ac_var=no"
5137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5138 conftest$ac_exeext conftest.$ac_ext
5140 ac_res=`eval echo '${'$as_ac_var'}'`
5141 { echo "$as_me:$LINENO: result: $ac_res" >&5
5142 echo "${ECHO_T}$ac_res" >&6; }
5143 if test `eval echo '${'$as_ac_var'}'` = yes; then
5144 cat >>confdefs.h <<_ACEOF
5145 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5149 # strftime is in -lintl on SCO UNIX.
5150 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
5151 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
5152 if test "${ac_cv_lib_intl_strftime+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 ac_check_lib_save_LIBS=$LIBS
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5164 /* Override any GCC internal prototype to avoid an error.
5165 Use char because int might match the return type of a GCC
5166 builtin and then its argument prototype would still apply. */
5179 rm -f conftest.$ac_objext conftest$ac_exeext
5180 if { (ac_try="$ac_link"
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_link") 2>conftest.er1
5188 grep -v '^ *+' conftest.er1 >conftest.err
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && {
5193 test -z "$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 } && test -s conftest$ac_exeext &&
5196 $as_test_x conftest$ac_exeext; then
5197 ac_cv_lib_intl_strftime=yes
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5202 ac_cv_lib_intl_strftime=no
5205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5206 conftest$ac_exeext conftest.$ac_ext
5207 LIBS=$ac_check_lib_save_LIBS
5209 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
5210 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
5211 if test $ac_cv_lib_intl_strftime = yes; then
5212 cat >>confdefs.h <<\_ACEOF
5213 @%:@define HAVE_STRFTIME 1
5222 # Under sysV68, socket and friends are provided by the C library.
5223 # -linet does not provide socket, but causes multiple definition
5224 # errors at link-time. It is thus better to only use the C library.
5225 # So don't add -linet to the link list unless it's necessary
5227 # With Solaris socket and friends seem not to be in C library.
5228 # I hope that if socket is found, all the BSD friends are in the same library
5232 { echo "$as_me:$LINENO: checking for library containing socket" >&5
5233 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5234 if test "${ac_cv_search_socket+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 ac_func_search_save_LIBS=$LIBS
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5245 /* Override any GCC internal prototype to avoid an error.
5246 Use char because int might match the return type of a GCC
5247 builtin and then its argument prototype would still apply. */
5260 for ac_lib in '' xnet socket inet; do
5261 if test -z "$ac_lib"; then
5262 ac_res="none required"
5265 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5267 rm -f conftest.$ac_objext conftest$ac_exeext
5268 if { (ac_try="$ac_link"
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_link") 2>conftest.er1
5276 grep -v '^ *+' conftest.er1 >conftest.err
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } && {
5281 test -z "$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5283 } && test -s conftest$ac_exeext &&
5284 $as_test_x conftest$ac_exeext; then
5285 ac_cv_search_socket=$ac_res
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5295 if test "${ac_cv_search_socket+set}" = set; then
5299 if test "${ac_cv_search_socket+set}" = set; then
5302 ac_cv_search_socket=no
5305 LIBS=$ac_func_search_save_LIBS
5307 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5308 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5309 ac_res=$ac_cv_search_socket
5310 if test "$ac_res" != no; then
5311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5315 { echo "$as_me:$LINENO: checking for library containing gethostname" >&5
5316 echo $ECHO_N "checking for library containing gethostname... $ECHO_C" >&6; }
5317 if test "${ac_cv_search_gethostname+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
5320 ac_func_search_save_LIBS=$LIBS
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5328 /* Override any GCC internal prototype to avoid an error.
5329 Use char because int might match the return type of a GCC
5330 builtin and then its argument prototype would still apply. */
5334 char gethostname ();
5338 return gethostname ();
5343 for ac_lib in '' xnet socket inet; do
5344 if test -z "$ac_lib"; then
5345 ac_res="none required"
5348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5350 rm -f conftest.$ac_objext conftest$ac_exeext
5351 if { (ac_try="$ac_link"
5353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5354 *) ac_try_echo=$ac_try;;
5356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5357 (eval "$ac_link") 2>conftest.er1
5359 grep -v '^ *+' conftest.er1 >conftest.err
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } && {
5364 test -z "$ac_c_werror_flag" ||
5365 test ! -s conftest.err
5366 } && test -s conftest$ac_exeext &&
5367 $as_test_x conftest$ac_exeext; then
5368 ac_cv_search_gethostname=$ac_res
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5378 if test "${ac_cv_search_gethostname+set}" = set; then
5382 if test "${ac_cv_search_gethostname+set}" = set; then
5385 ac_cv_search_gethostname=no
5388 LIBS=$ac_func_search_save_LIBS
5390 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostname" >&5
5391 echo "${ECHO_T}$ac_cv_search_gethostname" >&6; }
5392 ac_res=$ac_cv_search_gethostname
5393 if test "$ac_res" != no; then
5394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5398 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5399 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
5400 if test "${ac_cv_search_gethostbyname+set}" = set; then
5401 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 ac_func_search_save_LIBS=$LIBS
5404 cat >conftest.$ac_ext <<_ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5411 /* Override any GCC internal prototype to avoid an error.
5412 Use char because int might match the return type of a GCC
5413 builtin and then its argument prototype would still apply. */
5417 char gethostbyname ();
5421 return gethostbyname ();
5426 for ac_lib in '' nsl resolv; do
5427 if test -z "$ac_lib"; then
5428 ac_res="none required"
5431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5433 rm -f conftest.$ac_objext conftest$ac_exeext
5434 if { (ac_try="$ac_link"
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_link") 2>conftest.er1
5442 grep -v '^ *+' conftest.er1 >conftest.err
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } && {
5447 test -z "$ac_c_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest$ac_exeext &&
5450 $as_test_x conftest$ac_exeext; then
5451 ac_cv_search_gethostbyname=$ac_res
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5461 if test "${ac_cv_search_gethostbyname+set}" = set; then
5465 if test "${ac_cv_search_gethostbyname+set}" = set; then
5468 ac_cv_search_gethostbyname=no
5471 LIBS=$ac_func_search_save_LIBS
5473 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5474 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
5475 ac_res=$ac_cv_search_gethostbyname
5476 if test "$ac_res" != no; then
5477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5481 { echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
5482 echo $ECHO_N "checking for library containing gethostbyname_r... $ECHO_C" >&6; }
5483 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5486 ac_func_search_save_LIBS=$LIBS
5487 cat >conftest.$ac_ext <<_ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5494 /* Override any GCC internal prototype to avoid an error.
5495 Use char because int might match the return type of a GCC
5496 builtin and then its argument prototype would still apply. */
5500 char gethostbyname_r ();
5504 return gethostbyname_r ();
5509 for ac_lib in '' nsl resolv; do
5510 if test -z "$ac_lib"; then
5511 ac_res="none required"
5514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5516 rm -f conftest.$ac_objext conftest$ac_exeext
5517 if { (ac_try="$ac_link"
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_link") 2>conftest.er1
5525 grep -v '^ *+' conftest.er1 >conftest.err
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } && {
5530 test -z "$ac_c_werror_flag" ||
5531 test ! -s conftest.err
5532 } && test -s conftest$ac_exeext &&
5533 $as_test_x conftest$ac_exeext; then
5534 ac_cv_search_gethostbyname_r=$ac_res
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5544 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
5548 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
5551 ac_cv_search_gethostbyname_r=no
5554 LIBS=$ac_func_search_save_LIBS
5556 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
5557 echo "${ECHO_T}$ac_cv_search_gethostbyname_r" >&6; }
5558 ac_res=$ac_cv_search_gethostbyname_r
5559 if test "$ac_res" != no; then
5560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5565 { echo "$as_me:$LINENO: checking for socklen_t" >&5
5566 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
5567 if test "${ba_cv_header_socklen_t+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 cat >conftest.$ac_ext <<_ACEOF
5573 cat confdefs.h >>conftest.$ac_ext
5574 cat >>conftest.$ac_ext <<_ACEOF
5575 /* end confdefs.h. */
5577 #include <sys/types.h>
5578 #include <sys/socket.h>
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5604 ba_cv_header_socklen_t=yes
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ba_cv_header_socklen_t=no
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
5615 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
5616 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
5617 @%:@define HAVE_SOCKLEN_T 1
5621 # The condition in this test copes with the presence of inet_addr in libc6.
5622 { echo "$as_me:$LINENO: checking for library containing inet_addr" >&5
5623 echo $ECHO_N "checking for library containing inet_addr... $ECHO_C" >&6; }
5624 if test "${ac_cv_search_inet_addr+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 ac_func_search_save_LIBS=$LIBS
5628 cat >conftest.$ac_ext <<_ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5635 /* Override any GCC internal prototype to avoid an error.
5636 Use char because int might match the return type of a GCC
5637 builtin and then its argument prototype would still apply. */
5645 return inet_addr ();
5650 for ac_lib in '' nsl; do
5651 if test -z "$ac_lib"; then
5652 ac_res="none required"
5655 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5657 rm -f conftest.$ac_objext conftest$ac_exeext
5658 if { (ac_try="$ac_link"
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_link") 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } && {
5671 test -z "$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 } && test -s conftest$ac_exeext &&
5674 $as_test_x conftest$ac_exeext; then
5675 ac_cv_search_inet_addr=$ac_res
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5685 if test "${ac_cv_search_inet_addr+set}" = set; then
5689 if test "${ac_cv_search_inet_addr+set}" = set; then
5692 ac_cv_search_inet_addr=no
5695 LIBS=$ac_func_search_save_LIBS
5697 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_addr" >&5
5698 echo "${ECHO_T}$ac_cv_search_inet_addr" >&6; }
5699 ac_res=$ac_cv_search_inet_addr
5700 if test "$ac_res" != no; then
5701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5706 { echo "$as_me:$LINENO: checking for strchr" >&5
5707 echo $ECHO_N "checking for strchr... $ECHO_C" >&6; }
5708 if test "${ac_cv_func_strchr+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 cat >conftest.$ac_ext <<_ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 /* Define strchr to an innocuous variant, in case <limits.h> declares strchr.
5718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5719 #define strchr innocuous_strchr
5721 /* System header to define __stub macros and hopefully few prototypes,
5722 which can conflict with char strchr (); below.
5723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724 <limits.h> exists even on freestanding compilers. */
5727 # include <limits.h>
5729 # include <assert.h>
5734 /* Override any GCC internal prototype to avoid an error.
5735 Use char because int might match the return type of a GCC
5736 builtin and then its argument prototype would still apply. */
5741 /* The GNU C library defines this for functions which it implements
5742 to always fail with ENOSYS. Some functions are actually named
5743 something starting with __ and the normal name is an alias. */
5744 #if defined __stub_strchr || defined __stub___strchr
5756 rm -f conftest.$ac_objext conftest$ac_exeext
5757 if { (ac_try="$ac_link"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_link") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest$ac_exeext &&
5773 $as_test_x conftest$ac_exeext; then
5774 ac_cv_func_strchr=yes
5776 echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5779 ac_cv_func_strchr=no
5782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5783 conftest$ac_exeext conftest.$ac_ext
5785 { echo "$as_me:$LINENO: result: $ac_cv_func_strchr" >&5
5786 echo "${ECHO_T}$ac_cv_func_strchr" >&6; }
5787 if test $ac_cv_func_strchr = yes; then
5788 { echo "$as_me:$LINENO: result: using libc's strchr" >&5
5789 echo "${ECHO_T}using libc's strchr" >&6; }
5791 { echo "$as_me:$LINENO: checking for strchr in -lcposix" >&5
5792 echo $ECHO_N "checking for strchr in -lcposix... $ECHO_C" >&6; }
5793 if test "${ac_cv_lib_cposix_strchr+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 ac_check_lib_save_LIBS=$LIBS
5797 LIBS="-lcposix $LIBS"
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5805 /* Override any GCC internal prototype to avoid an error.
5806 Use char because int might match the return type of a GCC
5807 builtin and then its argument prototype would still apply. */
5820 rm -f conftest.$ac_objext conftest$ac_exeext
5821 if { (ac_try="$ac_link"
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_link") 2>conftest.er1
5829 grep -v '^ *+' conftest.er1 >conftest.err
5831 cat conftest.err >&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } && {
5834 test -z "$ac_c_werror_flag" ||
5835 test ! -s conftest.err
5836 } && test -s conftest$ac_exeext &&
5837 $as_test_x conftest$ac_exeext; then
5838 ac_cv_lib_cposix_strchr=yes
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5843 ac_cv_lib_cposix_strchr=no
5846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5847 conftest$ac_exeext conftest.$ac_ext
5848 LIBS=$ac_check_lib_save_LIBS
5850 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strchr" >&5
5851 echo "${ECHO_T}$ac_cv_lib_cposix_strchr" >&6; }
5852 if test $ac_cv_lib_cposix_strchr = yes; then
5853 EXTRADEFS="$EXTRADEFS -D_SYSV3"
5854 LIBS="$LIBS -lcposix"
5860 { echo "$as_me:$LINENO: checking for strstr" >&5
5861 echo $ECHO_N "checking for strstr... $ECHO_C" >&6; }
5862 if test "${ac_cv_func_strstr+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 /* Define strstr to an innocuous variant, in case <limits.h> declares strstr.
5872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5873 #define strstr innocuous_strstr
5875 /* System header to define __stub macros and hopefully few prototypes,
5876 which can conflict with char strstr (); below.
5877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5878 <limits.h> exists even on freestanding compilers. */
5881 # include <limits.h>
5883 # include <assert.h>
5888 /* Override any GCC internal prototype to avoid an error.
5889 Use char because int might match the return type of a GCC
5890 builtin and then its argument prototype would still apply. */
5895 /* The GNU C library defines this for functions which it implements
5896 to always fail with ENOSYS. Some functions are actually named
5897 something starting with __ and the normal name is an alias. */
5898 #if defined __stub_strstr || defined __stub___strstr
5910 rm -f conftest.$ac_objext conftest$ac_exeext
5911 if { (ac_try="$ac_link"
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_link") 2>conftest.er1
5919 grep -v '^ *+' conftest.er1 >conftest.err
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } && {
5924 test -z "$ac_c_werror_flag" ||
5925 test ! -s conftest.err
5926 } && test -s conftest$ac_exeext &&
5927 $as_test_x conftest$ac_exeext; then
5928 ac_cv_func_strstr=yes
5930 echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5933 ac_cv_func_strstr=no
5936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5937 conftest$ac_exeext conftest.$ac_ext
5939 { echo "$as_me:$LINENO: result: $ac_cv_func_strstr" >&5
5940 echo "${ECHO_T}$ac_cv_func_strstr" >&6; }
5941 if test $ac_cv_func_strstr = yes; then
5942 cat >>confdefs.h <<\_ACEOF
5943 @%:@define HAVE_STRSTR 1
5947 LIBEXTRAOBJ="$LIBEXTRAOBJ strstr.o"
5948 EXTRAOBJ="$EXTRAOBJ lib/strstr.o"
5952 { echo "$as_me:$LINENO: checking for strcasecmp" >&5
5953 echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6; }
5954 if test "${ac_cv_func_strcasecmp+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 /* Define strcasecmp to an innocuous variant, in case <limits.h> declares strcasecmp.
5964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5965 #define strcasecmp innocuous_strcasecmp
5967 /* System header to define __stub macros and hopefully few prototypes,
5968 which can conflict with char strcasecmp (); below.
5969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5970 <limits.h> exists even on freestanding compilers. */
5973 # include <limits.h>
5975 # include <assert.h>
5980 /* Override any GCC internal prototype to avoid an error.
5981 Use char because int might match the return type of a GCC
5982 builtin and then its argument prototype would still apply. */
5987 /* The GNU C library defines this for functions which it implements
5988 to always fail with ENOSYS. Some functions are actually named
5989 something starting with __ and the normal name is an alias. */
5990 #if defined __stub_strcasecmp || defined __stub___strcasecmp
5997 return strcasecmp ();
6002 rm -f conftest.$ac_objext conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest$ac_exeext &&
6019 $as_test_x conftest$ac_exeext; then
6020 ac_cv_func_strcasecmp=yes
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 ac_cv_func_strcasecmp=no
6028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029 conftest$ac_exeext conftest.$ac_ext
6031 { echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5
6032 echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6; }
6033 if test $ac_cv_func_strcasecmp = yes; then
6034 cat >>confdefs.h <<\_ACEOF
6035 @%:@define HAVE_STRCASECMP 1
6039 LIBEXTRAOBJ="$LIBEXTRAOBJ strcasecmp.o"
6040 EXTRAOBJ="$EXTRAOBJ lib/strcasecmp.o"
6044 { echo "$as_me:$LINENO: checking for memmove" >&5
6045 echo $ECHO_N "checking for memmove... $ECHO_C" >&6; }
6046 if test "${ac_cv_func_memmove+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 /* Define memmove to an innocuous variant, in case <limits.h> declares memmove.
6056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6057 #define memmove innocuous_memmove
6059 /* System header to define __stub macros and hopefully few prototypes,
6060 which can conflict with char memmove (); below.
6061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6062 <limits.h> exists even on freestanding compilers. */
6065 # include <limits.h>
6067 # include <assert.h>
6072 /* Override any GCC internal prototype to avoid an error.
6073 Use char because int might match the return type of a GCC
6074 builtin and then its argument prototype would still apply. */
6079 /* The GNU C library defines this for functions which it implements
6080 to always fail with ENOSYS. Some functions are actually named
6081 something starting with __ and the normal name is an alias. */
6082 #if defined __stub_memmove || defined __stub___memmove
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (ac_try="$ac_link"
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_link") 2>conftest.er1
6103 grep -v '^ *+' conftest.er1 >conftest.err
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } && {
6108 test -z "$ac_c_werror_flag" ||
6109 test ! -s conftest.err
6110 } && test -s conftest$ac_exeext &&
6111 $as_test_x conftest$ac_exeext; then
6112 ac_cv_func_memmove=yes
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6117 ac_cv_func_memmove=no
6120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6121 conftest$ac_exeext conftest.$ac_ext
6123 { echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5
6124 echo "${ECHO_T}$ac_cv_func_memmove" >&6; }
6125 if test $ac_cv_func_memmove = yes; then
6126 cat >>confdefs.h <<\_ACEOF
6127 @%:@define HAVE_MEMMOVE 1
6131 LIBEXTRAOBJ="$LIBEXTRAOBJ memmove.o"
6132 EXTRAOBJ="$EXTRAOBJ lib/memmove.o"
6136 { echo "$as_me:$LINENO: checking for getopt_long" >&5
6137 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
6138 if test "${ac_cv_func_getopt_long+set}" = set; then
6139 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
6148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6149 #define getopt_long innocuous_getopt_long
6151 /* System header to define __stub macros and hopefully few prototypes,
6152 which can conflict with char getopt_long (); below.
6153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6154 <limits.h> exists even on freestanding compilers. */
6157 # include <limits.h>
6159 # include <assert.h>
6164 /* Override any GCC internal prototype to avoid an error.
6165 Use char because int might match the return type of a GCC
6166 builtin and then its argument prototype would still apply. */
6170 char getopt_long ();
6171 /* The GNU C library defines this for functions which it implements
6172 to always fail with ENOSYS. Some functions are actually named
6173 something starting with __ and the normal name is an alias. */
6174 #if defined __stub_getopt_long || defined __stub___getopt_long
6181 return getopt_long ();
6186 rm -f conftest.$ac_objext conftest$ac_exeext
6187 if { (ac_try="$ac_link"
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_link") 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && {
6200 test -z "$ac_c_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest$ac_exeext &&
6203 $as_test_x conftest$ac_exeext; then
6204 ac_cv_func_getopt_long=yes
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 ac_cv_func_getopt_long=no
6212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6213 conftest$ac_exeext conftest.$ac_ext
6215 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
6216 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
6217 if test $ac_cv_func_getopt_long = yes; then
6218 cat >>confdefs.h <<\_ACEOF
6219 @%:@define HAVE_GETOPTLONG 1
6223 LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
6224 EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"
6228 { echo "$as_me:$LINENO: checking for inet_pton" >&5
6229 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6; }
6230 if test "${ac_cv_func_inet_pton+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 /* Define inet_pton to an innocuous variant, in case <limits.h> declares inet_pton.
6240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6241 #define inet_pton innocuous_inet_pton
6243 /* System header to define __stub macros and hopefully few prototypes,
6244 which can conflict with char inet_pton (); below.
6245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6246 <limits.h> exists even on freestanding compilers. */
6249 # include <limits.h>
6251 # include <assert.h>
6256 /* Override any GCC internal prototype to avoid an error.
6257 Use char because int might match the return type of a GCC
6258 builtin and then its argument prototype would still apply. */
6263 /* The GNU C library defines this for functions which it implements
6264 to always fail with ENOSYS. Some functions are actually named
6265 something starting with __ and the normal name is an alias. */
6266 #if defined __stub_inet_pton || defined __stub___inet_pton
6273 return inet_pton ();
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (ac_try="$ac_link"
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_link") 2>conftest.er1
6287 grep -v '^ *+' conftest.er1 >conftest.err
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest$ac_exeext &&
6295 $as_test_x conftest$ac_exeext; then
6296 ac_cv_func_inet_pton=yes
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ac_cv_func_inet_pton=no
6304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6305 conftest$ac_exeext conftest.$ac_ext
6307 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_pton" >&5
6308 echo "${ECHO_T}$ac_cv_func_inet_pton" >&6; }
6309 if test $ac_cv_func_inet_pton = yes; then
6310 cat >>confdefs.h <<\_ACEOF
6311 @%:@define HAVE_INETPTON 1
6315 LIBEXTRAOBJ="$LIBEXTRAOBJ inet_pton.o"
6316 EXTRAOBJ="$EXTRAOBJ lib/inet_pton.o"
6320 { echo "$as_me:$LINENO: checking for localtime_r" >&5
6321 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
6322 if test "${ac_cv_func_localtime_r+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
6332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6333 #define localtime_r innocuous_localtime_r
6335 /* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char localtime_r (); below.
6337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6338 <limits.h> exists even on freestanding compilers. */
6341 # include <limits.h>
6343 # include <assert.h>
6348 /* Override any GCC internal prototype to avoid an error.
6349 Use char because int might match the return type of a GCC
6350 builtin and then its argument prototype would still apply. */
6354 char localtime_r ();
6355 /* The GNU C library defines this for functions which it implements
6356 to always fail with ENOSYS. Some functions are actually named
6357 something starting with __ and the normal name is an alias. */
6358 #if defined __stub_localtime_r || defined __stub___localtime_r
6365 return localtime_r ();
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (ac_try="$ac_link"
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6377 (eval "$ac_link") 2>conftest.er1
6379 grep -v '^ *+' conftest.er1 >conftest.err
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } && {
6384 test -z "$ac_c_werror_flag" ||
6385 test ! -s conftest.err
6386 } && test -s conftest$ac_exeext &&
6387 $as_test_x conftest$ac_exeext; then
6388 ac_cv_func_localtime_r=yes
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6393 ac_cv_func_localtime_r=no
6396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6397 conftest$ac_exeext conftest.$ac_ext
6399 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
6400 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
6401 if test $ac_cv_func_localtime_r = yes; then
6402 cat >>confdefs.h <<\_ACEOF
6403 @%:@define HAVE_LOCALTIME_R 1
6407 LIBEXTRAOBJ="$LIBEXTRAOBJ localtime_r.o"
6408 EXTRAOBJ="$EXTRAOBJ lib/localtime_r.o"
6413 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6414 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6415 if test "${ac_cv_path_GREP+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 # Extract the first word of "grep ggrep" to use in msg output
6419 if test -z "$GREP"; then
6420 set dummy grep ggrep; ac_prog_name=$2
6421 if test "${ac_cv_path_GREP+set}" = set; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 ac_path_GREP_found=false
6425 # Loop through the user's path and test for each of PROGNAME-LIST
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6430 test -z "$as_dir" && as_dir=.
6431 for ac_prog in grep ggrep; do
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6434 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6435 # Check for GNU ac_path_GREP and select it if it is found.
6436 # Check for GNU $ac_path_GREP
6437 case `"$ac_path_GREP" --version 2>&1` in
6439 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6442 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6445 cat "conftest.in" "conftest.in" >"conftest.tmp"
6446 mv "conftest.tmp" "conftest.in"
6447 cp "conftest.in" "conftest.nl"
6448 echo 'GREP' >> "conftest.nl"
6449 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6450 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6451 ac_count=`expr $ac_count + 1`
6452 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6453 # Best one so far, save it but keep looking for a better one
6454 ac_cv_path_GREP="$ac_path_GREP"
6455 ac_path_GREP_max=$ac_count
6457 # 10*(2^10) chars as input seems more than enough
6458 test $ac_count -gt 10 && break
6460 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6464 $ac_path_GREP_found && break 3
6474 GREP="$ac_cv_path_GREP"
6475 if test -z "$GREP"; then
6476 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6477 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6478 { (exit 1); exit 1; }; }
6482 ac_cv_path_GREP=$GREP
6487 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6488 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6489 GREP="$ac_cv_path_GREP"
6492 { echo "$as_me:$LINENO: checking for egrep" >&5
6493 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6494 if test "${ac_cv_path_EGREP+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6498 then ac_cv_path_EGREP="$GREP -E"
6500 # Extract the first word of "egrep" to use in msg output
6501 if test -z "$EGREP"; then
6502 set dummy egrep; ac_prog_name=$2
6503 if test "${ac_cv_path_EGREP+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 ac_path_EGREP_found=false
6507 # Loop through the user's path and test for each of PROGNAME-LIST
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6512 test -z "$as_dir" && as_dir=.
6513 for ac_prog in egrep; do
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6516 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6517 # Check for GNU ac_path_EGREP and select it if it is found.
6518 # Check for GNU $ac_path_EGREP
6519 case `"$ac_path_EGREP" --version 2>&1` in
6521 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6524 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6527 cat "conftest.in" "conftest.in" >"conftest.tmp"
6528 mv "conftest.tmp" "conftest.in"
6529 cp "conftest.in" "conftest.nl"
6530 echo 'EGREP' >> "conftest.nl"
6531 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6533 ac_count=`expr $ac_count + 1`
6534 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6535 # Best one so far, save it but keep looking for a better one
6536 ac_cv_path_EGREP="$ac_path_EGREP"
6537 ac_path_EGREP_max=$ac_count
6539 # 10*(2^10) chars as input seems more than enough
6540 test $ac_count -gt 10 && break
6542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6546 $ac_path_EGREP_found && break 3
6556 EGREP="$ac_cv_path_EGREP"
6557 if test -z "$EGREP"; then
6558 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6559 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6560 { (exit 1); exit 1; }; }
6564 ac_cv_path_EGREP=$EGREP
6570 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6571 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6572 EGREP="$ac_cv_path_EGREP"
6575 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6577 if test "${ac_cv_header_stdc+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6599 rm -f conftest.$ac_objext
6600 if { (ac_try="$ac_compile"
6602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6603 *) ac_try_echo=$ac_try;;
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_compile") 2>conftest.er1
6608 grep -v '^ *+' conftest.er1 >conftest.err
6610 cat conftest.err >&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } && {
6613 test -z "$ac_c_werror_flag" ||
6614 test ! -s conftest.err
6615 } && test -s conftest.$ac_objext; then
6616 ac_cv_header_stdc=yes
6618 echo "$as_me: failed program was:" >&5
6619 sed 's/^/| /' conftest.$ac_ext >&5
6621 ac_cv_header_stdc=no
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 if test $ac_cv_header_stdc = yes; then
6627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6628 cat >conftest.$ac_ext <<_ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h. */
6637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6638 $EGREP "memchr" >/dev/null 2>&1; then
6641 ac_cv_header_stdc=no
6647 if test $ac_cv_header_stdc = yes; then
6648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6649 cat >conftest.$ac_ext <<_ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6659 $EGREP "free" >/dev/null 2>&1; then
6662 ac_cv_header_stdc=no
6668 if test $ac_cv_header_stdc = yes; then
6669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6670 if test "$cross_compiling" = yes; then
6673 cat >conftest.$ac_ext <<_ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6681 #if ((' ' & 0x0FF) == 0x020)
6682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6685 # define ISLOWER(c) \
6686 (('a' <= (c) && (c) <= 'i') \
6687 || ('j' <= (c) && (c) <= 'r') \
6688 || ('s' <= (c) && (c) <= 'z'))
6689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6697 for (i = 0; i < 256; i++)
6698 if (XOR (islower (i), ISLOWER (i))
6699 || toupper (i) != TOUPPER (i))
6704 rm -f conftest$ac_exeext
6705 if { (ac_try="$ac_link"
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711 (eval "$ac_link") 2>&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6715 { (case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_try") 2>&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6726 echo "$as_me: program exited with status $ac_status" >&5
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6731 ac_cv_header_stdc=no
6733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6739 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6740 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6741 if test $ac_cv_header_stdc = yes; then
6743 cat >>confdefs.h <<\_ACEOF
6744 @%:@define STDC_HEADERS 1
6749 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6759 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6760 inttypes.h stdint.h unistd.h
6762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 $ac_includes_default
6776 @%:@include <$ac_header>
6778 rm -f conftest.$ac_objext
6779 if { (ac_try="$ac_compile"
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785 (eval "$ac_compile") 2>conftest.er1
6787 grep -v '^ *+' conftest.er1 >conftest.err
6789 cat conftest.err >&5
6790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest.$ac_objext; then
6795 eval "$as_ac_Header=yes"
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6800 eval "$as_ac_Header=no"
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 ac_res=`eval echo '${'$as_ac_Header'}'`
6806 { echo "$as_me:$LINENO: result: $ac_res" >&5
6807 echo "${ECHO_T}$ac_res" >&6; }
6808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6809 cat >>confdefs.h <<_ACEOF
6810 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838 for ac_header in arpa/inet.h ctype.h errno.h fcntl.h \
6839 limits.h netdb.h netinet/in.h pwd.h signal.h \
6840 stdarg.h stdio.h stdlib.h string.h strings.h sys/ioctl.h \
6841 sys/socket.h sys/types.h syslog.h termios.h \
6845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 ac_res=`eval echo '${'$as_ac_Header'}'`
6853 { echo "$as_me:$LINENO: result: $ac_res" >&5
6854 echo "${ECHO_T}$ac_res" >&6; }
6856 # Is the header compilable?
6857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 $ac_includes_default
6866 @%:@include <$ac_header>
6868 rm -f conftest.$ac_objext
6869 if { (ac_try="$ac_compile"
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6875 (eval "$ac_compile") 2>conftest.er1
6877 grep -v '^ *+' conftest.er1 >conftest.err
6879 cat conftest.err >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } && {
6882 test -z "$ac_c_werror_flag" ||
6883 test ! -s conftest.err
6884 } && test -s conftest.$ac_objext; then
6885 ac_header_compiler=yes
6887 echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6890 ac_header_compiler=no
6893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6895 echo "${ECHO_T}$ac_header_compiler" >&6; }
6897 # Is the header present?
6898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6900 cat >conftest.$ac_ext <<_ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 @%:@include <$ac_header>
6908 if { (ac_try="$ac_cpp conftest.$ac_ext"
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6916 grep -v '^ *+' conftest.er1 >conftest.err
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } >/dev/null && {
6921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6922 test ! -s conftest.err
6924 ac_header_preproc=yes
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 ac_header_preproc=no
6932 rm -f conftest.err conftest.$ac_ext
6933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6934 echo "${ECHO_T}$ac_header_preproc" >&6; }
6936 # So? What about this header?
6937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6943 ac_header_preproc=yes
6946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 eval "$as_ac_Header=\$ac_header_preproc"
6968 ac_res=`eval echo '${'$as_ac_Header'}'`
6969 { echo "$as_me:$LINENO: result: $ac_res" >&5
6970 echo "${ECHO_T}$ac_res" >&6; }
6973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6974 cat >>confdefs.h <<_ACEOF
6975 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6979 { echo "$as_me:$LINENO: WARNING: at least 1 header file is missing. This may not compile." >&5
6980 echo "$as_me: WARNING: at least 1 header file is missing. This may not compile." >&2;}
6987 for ac_header in arpa/nameser.h
6989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 ac_res=`eval echo '${'$as_ac_Header'}'`
6997 { echo "$as_me:$LINENO: result: $ac_res" >&5
6998 echo "${ECHO_T}$ac_res" >&6; }
7000 # Is the header compilable?
7001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7003 cat >conftest.$ac_ext <<_ACEOF
7006 cat confdefs.h >>conftest.$ac_ext
7007 cat >>conftest.$ac_ext <<_ACEOF
7008 /* end confdefs.h. */
7009 $ac_includes_default
7010 @%:@include <$ac_header>
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7021 grep -v '^ *+' conftest.er1 >conftest.err
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
7029 ac_header_compiler=yes
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 ac_header_compiler=no
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7039 echo "${ECHO_T}$ac_header_compiler" >&6; }
7041 # Is the header present?
7042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7044 cat >conftest.$ac_ext <<_ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7050 @%:@include <$ac_header>
7052 if { (ac_try="$ac_cpp conftest.$ac_ext"
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7060 grep -v '^ *+' conftest.er1 >conftest.err
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } >/dev/null && {
7065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7066 test ! -s conftest.err
7068 ac_header_preproc=yes
7070 echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7073 ac_header_preproc=no
7076 rm -f conftest.err conftest.$ac_ext
7077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7078 echo "${ECHO_T}$ac_header_preproc" >&6; }
7080 # So? What about this header?
7081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7087 ac_header_preproc=yes
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 eval "$as_ac_Header=\$ac_header_preproc"
7112 ac_res=`eval echo '${'$as_ac_Header'}'`
7113 { echo "$as_me:$LINENO: result: $ac_res" >&5
7114 echo "${ECHO_T}$ac_res" >&6; }
7117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7118 cat >>confdefs.h <<_ACEOF
7119 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7121 cat >>confdefs.h <<\_ACEOF
7122 @%:@define HAVE_NAMESER_H 1
7130 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7131 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
7132 if test "${ac_cv_header_stat_broken+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 cat >conftest.$ac_ext <<_ACEOF
7138 cat confdefs.h >>conftest.$ac_ext
7139 cat >>conftest.$ac_ext <<_ACEOF
7140 /* end confdefs.h. */
7141 #include <sys/types.h>
7142 #include <sys/stat.h>
7144 #if defined S_ISBLK && defined S_IFDIR
7145 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7148 #if defined S_ISBLK && defined S_IFCHR
7149 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7152 #if defined S_ISLNK && defined S_IFREG
7153 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7156 #if defined S_ISSOCK && defined S_IFREG
7157 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7161 rm -f conftest.$ac_objext
7162 if { (ac_try="$ac_compile"
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_compile") 2>conftest.er1
7170 grep -v '^ *+' conftest.er1 >conftest.err
7172 cat conftest.err >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); } && {
7175 test -z "$ac_c_werror_flag" ||
7176 test ! -s conftest.err
7177 } && test -s conftest.$ac_objext; then
7178 ac_cv_header_stat_broken=no
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_header_stat_broken=yes
7186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7189 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
7190 if test $ac_cv_header_stat_broken = yes; then
7192 cat >>confdefs.h <<\_ACEOF
7193 @%:@define STAT_MACROS_BROKEN 1
7197 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7198 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7199 if test "${ac_cv_header_time+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 #include <sys/types.h>
7209 #include <sys/time.h>
7215 if ((struct tm *) 0)
7221 rm -f conftest.$ac_objext
7222 if { (ac_try="$ac_compile"
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7228 (eval "$ac_compile") 2>conftest.er1
7230 grep -v '^ *+' conftest.er1 >conftest.err
7232 cat conftest.err >&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); } && {
7235 test -z "$ac_c_werror_flag" ||
7236 test ! -s conftest.err
7237 } && test -s conftest.$ac_objext; then
7238 ac_cv_header_time=yes
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7243 ac_cv_header_time=no
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7249 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7250 if test $ac_cv_header_time = yes; then
7252 cat >>confdefs.h <<\_ACEOF
7253 @%:@define TIME_WITH_SYS_TIME 1
7257 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7258 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7259 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 cat >conftest.$ac_ext <<_ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 #include <sys/types.h>
7269 #include <sys/wait.h>
7271 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7274 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7282 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7287 rm -f conftest.$ac_objext
7288 if { (ac_try="$ac_compile"
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7304 ac_cv_header_sys_wait_h=yes
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7309 ac_cv_header_sys_wait_h=no
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7315 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7316 if test $ac_cv_header_sys_wait_h = yes; then
7318 cat >>confdefs.h <<\_ACEOF
7319 @%:@define HAVE_SYS_WAIT_H 1
7324 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7325 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7326 if test "${ac_cv_struct_tm+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 #include <sys/types.h>
7342 int *p = &tm.tm_sec;
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_struct_tm=time.h
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_cv_struct_tm=sys/time.h
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7376 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7377 if test $ac_cv_struct_tm = sys/time.h; then
7379 cat >>confdefs.h <<\_ACEOF
7380 @%:@define TM_IN_SYS_TIME 1
7384 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7385 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7386 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 cat >conftest.$ac_ext <<_ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <sys/types.h>
7396 #include <$ac_cv_struct_tm>
7402 static struct tm ac_aggr;
7403 if (ac_aggr.tm_zone)
7409 rm -f conftest.$ac_objext
7410 if { (ac_try="$ac_compile"
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_compile") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest.$ac_objext; then
7426 ac_cv_member_struct_tm_tm_zone=yes
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 cat >conftest.$ac_ext <<_ACEOF
7434 cat confdefs.h >>conftest.$ac_ext
7435 cat >>conftest.$ac_ext <<_ACEOF
7436 /* end confdefs.h. */
7437 #include <sys/types.h>
7438 #include <$ac_cv_struct_tm>
7444 static struct tm ac_aggr;
7445 if (sizeof ac_aggr.tm_zone)
7451 rm -f conftest.$ac_objext
7452 if { (ac_try="$ac_compile"
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7458 (eval "$ac_compile") 2>conftest.er1
7460 grep -v '^ *+' conftest.er1 >conftest.err
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } && {
7465 test -z "$ac_c_werror_flag" ||
7466 test ! -s conftest.err
7467 } && test -s conftest.$ac_objext; then
7468 ac_cv_member_struct_tm_tm_zone=yes
7470 echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7473 ac_cv_member_struct_tm_tm_zone=no
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7482 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7483 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7485 cat >>confdefs.h <<_ACEOF
7486 @%:@define HAVE_STRUCT_TM_TM_ZONE 1
7492 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7494 cat >>confdefs.h <<\_ACEOF
7495 @%:@define HAVE_TM_ZONE 1
7499 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7500 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7501 if test "${ac_cv_have_decl_tzname+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7523 rm -f conftest.$ac_objext
7524 if { (ac_try="$ac_compile"
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_compile") 2>conftest.er1
7532 grep -v '^ *+' conftest.er1 >conftest.err
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && {
7537 test -z "$ac_c_werror_flag" ||
7538 test ! -s conftest.err
7539 } && test -s conftest.$ac_objext; then
7540 ac_cv_have_decl_tzname=yes
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7545 ac_cv_have_decl_tzname=no
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7551 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7552 if test $ac_cv_have_decl_tzname = yes; then
7554 cat >>confdefs.h <<_ACEOF
7555 @%:@define HAVE_DECL_TZNAME 1
7560 cat >>confdefs.h <<_ACEOF
7561 @%:@define HAVE_DECL_TZNAME 0
7568 { echo "$as_me:$LINENO: checking for tzname" >&5
7569 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7570 if test "${ac_cv_var_tzname+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7580 #if !HAVE_DECL_TZNAME
7581 extern char *tzname[];
7587 return tzname[0][0];
7592 rm -f conftest.$ac_objext conftest$ac_exeext
7593 if { (ac_try="$ac_link"
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_link") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1 >conftest.err
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest$ac_exeext &&
7609 $as_test_x conftest$ac_exeext; then
7610 ac_cv_var_tzname=yes
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7619 conftest$ac_exeext conftest.$ac_ext
7621 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7622 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7623 if test $ac_cv_var_tzname = yes; then
7625 cat >>confdefs.h <<\_ACEOF
7626 @%:@define HAVE_TZNAME 1
7632 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7633 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7634 if test "${ac_cv_type_uid_t+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <sys/types.h>
7646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7647 $EGREP "uid_t" >/dev/null 2>&1; then
7648 ac_cv_type_uid_t=yes
7655 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7656 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7657 if test $ac_cv_type_uid_t = no; then
7659 cat >>confdefs.h <<\_ACEOF
7660 @%:@define uid_t int
7664 cat >>confdefs.h <<\_ACEOF
7665 @%:@define gid_t int
7670 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
7671 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
7672 if test "${ac_cv_type_getgroups+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7675 if test "$cross_compiling" = yes; then
7676 ac_cv_type_getgroups=cross
7678 cat >conftest.$ac_ext <<_ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 /* Thanks to Mike Rendell for this test. */
7685 $ac_includes_default
7688 #define MAX(x, y) ((x) > (y) ? (x) : (y))
7695 union { gid_t gval; long int lval; } val;
7698 for (i = 0; i < NGID; i++)
7699 gidset[i] = val.gval;
7700 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
7702 /* Exit non-zero if getgroups seems to require an array of ints. This
7703 happens when gid_t is short int but getgroups modifies an array
7705 return n > 0 && gidset[n] != val.gval;
7708 rm -f conftest$ac_exeext
7709 if { (ac_try="$ac_link"
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7715 (eval "$ac_link") 2>&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7719 { (case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7724 (eval "$ac_try") 2>&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 ac_cv_type_getgroups=gid_t
7730 echo "$as_me: program exited with status $ac_status" >&5
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7735 ac_cv_type_getgroups=int
7737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7741 if test $ac_cv_type_getgroups = cross; then
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7752 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
7753 ac_cv_type_getgroups=gid_t
7755 ac_cv_type_getgroups=int
7761 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
7762 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
7764 cat >>confdefs.h <<_ACEOF
7765 @%:@define GETGROUPS_T $ac_cv_type_getgroups
7769 { echo "$as_me:$LINENO: checking for mode_t" >&5
7770 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7771 if test "${ac_cv_type_mode_t+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.$ac_ext <<_ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 $ac_includes_default
7781 typedef mode_t ac__type_new_;
7785 if ((ac__type_new_ *) 0)
7787 if (sizeof (ac__type_new_))
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7802 grep -v '^ *+' conftest.er1 >conftest.err
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_cv_type_mode_t=yes
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 ac_cv_type_mode_t=no
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7821 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7822 if test $ac_cv_type_mode_t = yes; then
7826 cat >>confdefs.h <<_ACEOF
7827 @%:@define mode_t int
7832 { echo "$as_me:$LINENO: checking for off_t" >&5
7833 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7834 if test "${ac_cv_type_off_t+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 $ac_includes_default
7844 typedef off_t ac__type_new_;
7848 if ((ac__type_new_ *) 0)
7850 if (sizeof (ac__type_new_))
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860 *) ac_try_echo=$ac_try;;
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863 (eval "$ac_compile") 2>conftest.er1
7865 grep -v '^ *+' conftest.er1 >conftest.err
7867 cat conftest.err >&5
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
7872 } && test -s conftest.$ac_objext; then
7873 ac_cv_type_off_t=yes
7875 echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7884 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7885 if test $ac_cv_type_off_t = yes; then
7889 cat >>confdefs.h <<_ACEOF
7890 @%:@define off_t long int
7895 { echo "$as_me:$LINENO: checking for pid_t" >&5
7896 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7897 if test "${ac_cv_type_pid_t+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7906 $ac_includes_default
7907 typedef pid_t ac__type_new_;
7911 if ((ac__type_new_ *) 0)
7913 if (sizeof (ac__type_new_))
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_cv_type_pid_t=yes
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7947 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7948 if test $ac_cv_type_pid_t = yes; then
7952 cat >>confdefs.h <<_ACEOF
7953 @%:@define pid_t int
7958 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7959 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7960 if test "${ac_cv_type_signal+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969 #include <sys/types.h>
7975 return *(signal (0, 0)) (0) == 1;
7980 rm -f conftest.$ac_objext
7981 if { (ac_try="$ac_compile"
7983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984 *) ac_try_echo=$ac_try;;
7986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7987 (eval "$ac_compile") 2>conftest.er1
7989 grep -v '^ *+' conftest.er1 >conftest.err
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } && {
7994 test -z "$ac_c_werror_flag" ||
7995 test ! -s conftest.err
7996 } && test -s conftest.$ac_objext; then
7997 ac_cv_type_signal=int
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_cv_type_signal=void
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8008 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8010 cat >>confdefs.h <<_ACEOF
8011 @%:@define RETSIGTYPE $ac_cv_type_signal
8015 { echo "$as_me:$LINENO: checking for size_t" >&5
8016 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8017 if test "${ac_cv_type_size_t+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 typedef size_t ac__type_new_;
8031 if ((ac__type_new_ *) 0)
8033 if (sizeof (ac__type_new_))
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8048 grep -v '^ *+' conftest.er1 >conftest.err
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_cv_type_size_t=yes
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_cv_type_size_t=no
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8067 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8068 if test $ac_cv_type_size_t = yes; then
8072 cat >>confdefs.h <<_ACEOF
8073 @%:@define size_t unsigned int
8078 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8079 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8080 if test "${ac_cv_type_uid_t+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 #include <sys/types.h>
8092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093 $EGREP "uid_t" >/dev/null 2>&1; then
8094 ac_cv_type_uid_t=yes
8101 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8102 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8103 if test $ac_cv_type_uid_t = no; then
8105 cat >>confdefs.h <<\_ACEOF
8106 @%:@define uid_t int
8110 cat >>confdefs.h <<\_ACEOF
8111 @%:@define gid_t int
8116 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8117 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8118 cat >conftest.$ac_ext <<_ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8125 #include <sys/types.h>
8126 #include <sys/socket.h>
8137 rm -f conftest.$ac_objext
8138 if { (ac_try="$ac_compile"
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_compile") 2>conftest.er1
8146 grep -v '^ *+' conftest.er1 >conftest.err
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && {
8151 test -z "$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8153 } && test -s conftest.$ac_objext; then
8154 { echo "$as_me:$LINENO: result: yes" >&5
8155 echo "${ECHO_T}yes" >&6; }
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8161 cat >conftest.$ac_ext <<_ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h. */
8168 #include <sys/types.h>
8169 #include <sys/socket.h>
8170 int accept (int, struct sockaddr *, size_t *);
8180 rm -f conftest.$ac_objext
8181 if { (ac_try="$ac_compile"
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_compile") 2>conftest.er1
8189 grep -v '^ *+' conftest.er1 >conftest.err
8191 cat conftest.err >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && {
8194 test -z "$ac_c_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest.$ac_objext; then
8198 { echo "$as_me:$LINENO: result: size_t" >&5
8199 echo "${ECHO_T}size_t" >&6; }
8200 cat >>confdefs.h <<\_ACEOF
8201 @%:@define socklen_t size_t
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8209 { echo "$as_me:$LINENO: result: int" >&5
8210 echo "${ECHO_T}int" >&6; }
8211 cat >>confdefs.h <<\_ACEOF
8212 @%:@define socklen_t int
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { echo "$as_me:$LINENO: checking for int32_t" >&5
8224 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
8225 if test "${ac_cv_type_int32_t+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8235 typedef int32_t ac__type_new_;
8239 if ((ac__type_new_ *) 0)
8241 if (sizeof (ac__type_new_))
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8256 grep -v '^ *+' conftest.er1 >conftest.err
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.$ac_objext; then
8264 ac_cv_type_int32_t=yes
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 ac_cv_type_int32_t=no
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8275 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
8276 if test $ac_cv_type_int32_t = yes; then
8280 cat >>confdefs.h <<_ACEOF
8281 @%:@define int32_t int
8287 { echo "$as_me:$LINENO: checking for X" >&5
8288 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8291 # Check whether --with-x was given.
8292 if test "${with_x+set}" = set; then
8296 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8297 if test "x$with_x" = xno; then
8298 # The user explicitly disabled X.
8301 case $x_includes,$x_libraries in #(
8302 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8303 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8304 { (exit 1); exit 1; }; };; #(
8305 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 # One or both of the vars are not set, and there is no cached value.
8309 ac_x_includes=no ac_x_libraries=no
8310 rm -f -r conftest.dir
8311 if mkdir conftest.dir; then
8313 cat >Imakefile <<'_ACEOF'
8315 @echo incroot='${INCROOT}'
8317 @echo usrlibdir='${USRLIBDIR}'
8319 @echo libdir='${LIBDIR}'
8321 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8323 for ac_var in incroot usrlibdir libdir; do
8324 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8326 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8327 for ac_extension in a so sl; do
8328 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8329 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8330 ac_im_usrlibdir=$ac_im_libdir; break
8333 # Screen out bogus values from the imake configuration. They are
8334 # bogus both because they are the default anyway, and because
8335 # using them would break gcc on systems where it needs fixed includes.
8336 case $ac_im_incroot in
8337 /usr/include) ac_x_includes= ;;
8338 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8340 case $ac_im_usrlibdir in
8342 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8346 rm -f -r conftest.dir
8349 # Standard set of common directories for X headers.
8350 # Check X11 before X11Rn because it is often a symlink to the current release.
8362 /usr/local/X11/include
8363 /usr/local/X11R6/include
8364 /usr/local/X11R5/include
8365 /usr/local/X11R4/include
8367 /usr/local/include/X11
8368 /usr/local/include/X11R6
8369 /usr/local/include/X11R5
8370 /usr/local/include/X11R4
8374 /usr/XFree86/include/X11
8378 /usr/unsupported/include
8380 /usr/local/x11r5/include
8381 /usr/lpp/Xamples/include
8383 /usr/openwin/include
8384 /usr/openwin/share/include'
8386 if test "$ac_x_includes" = no; then
8387 # Guess where to find include files, by looking for Xlib.h.
8388 # First, try using that file with no special directory specified.
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 @%:@include <X11/Xlib.h>
8397 if { (ac_try="$ac_cpp conftest.$ac_ext"
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8405 grep -v '^ *+' conftest.er1 >conftest.err
8407 cat conftest.err >&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } >/dev/null && {
8410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8413 # We can compile using X headers with no special include directory.
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8419 for ac_dir in $ac_x_header_dirs; do
8420 if test -r "$ac_dir/X11/Xlib.h"; then
8421 ac_x_includes=$ac_dir
8427 rm -f conftest.err conftest.$ac_ext
8428 fi # $ac_x_includes = no
8430 if test "$ac_x_libraries" = no; then
8431 # Check for the libraries.
8432 # See if we find them without any special options.
8433 # Don't add to $LIBS permanently.
8436 cat >conftest.$ac_ext <<_ACEOF
8439 cat confdefs.h >>conftest.$ac_ext
8440 cat >>conftest.$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 @%:@include <X11/Xlib.h>
8451 rm -f conftest.$ac_objext conftest$ac_exeext
8452 if { (ac_try="$ac_link"
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_link") 2>conftest.er1
8460 grep -v '^ *+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && {
8465 test -z "$ac_c_werror_flag" ||
8466 test ! -s conftest.err
8467 } && test -s conftest$ac_exeext &&
8468 $as_test_x conftest$ac_exeext; then
8470 # We can link X programs with no special library path.
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8477 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8479 # Don't even attempt the hair of trying to link an X program!
8480 for ac_extension in a so sl; do
8481 if test -r "$ac_dir/libX11.$ac_extension"; then
8482 ac_x_libraries=$ac_dir
8489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8490 conftest$ac_exeext conftest.$ac_ext
8491 fi # $ac_x_libraries = no
8493 case $ac_x_includes,$ac_x_libraries in #(
8495 # Didn't find X, or a directory has "'" in its name.
8496 ac_cv_have_x="have_x=no";; #(
8498 # Record where we found X for the cache.
8499 ac_cv_have_x="have_x=yes\
8500 ac_x_includes='$ac_x_includes'\
8501 ac_x_libraries='$ac_x_libraries'"
8507 eval "$ac_cv_have_x"
8510 if test "$have_x" != yes; then
8511 { echo "$as_me:$LINENO: result: $have_x" >&5
8512 echo "${ECHO_T}$have_x" >&6; }
8515 # If each of the values was on the command line, it overrides each guess.
8516 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8517 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8518 # Update the cache value to reflect the command line values.
8519 ac_cv_have_x="have_x=yes\
8520 ac_x_includes='$x_includes'\
8521 ac_x_libraries='$x_libraries'"
8522 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8523 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
8526 if test "$no_x" = yes; then
8527 # Not all programs may use this symbol, but it does not hurt to define it.
8529 cat >>confdefs.h <<\_ACEOF
8530 @%:@define X_DISPLAY_MISSING 1
8533 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8535 if test -n "$x_includes"; then
8536 X_CFLAGS="$X_CFLAGS -I$x_includes"
8539 # It would also be nice to do this for all -L options, not just this one.
8540 if test -n "$x_libraries"; then
8541 X_LIBS="$X_LIBS -L$x_libraries"
8542 # For Solaris; some versions of Sun CC require a space after -R and
8543 # others require no space. Words are not sufficient . . . .
8544 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8545 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
8546 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8547 ac_xsave_c_werror_flag=$ac_c_werror_flag
8548 ac_c_werror_flag=yes
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (ac_try="$ac_link"
8567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8568 *) ac_try_echo=$ac_try;;
8570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8571 (eval "$ac_link") 2>conftest.er1
8573 grep -v '^ *+' conftest.er1 >conftest.err
8575 cat conftest.err >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest$ac_exeext &&
8581 $as_test_x conftest$ac_exeext; then
8582 { echo "$as_me:$LINENO: result: no" >&5
8583 echo "${ECHO_T}no" >&6; }
8584 X_LIBS="$X_LIBS -R$x_libraries"
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 LIBS="$ac_xsave_LIBS -R $x_libraries"
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8605 rm -f conftest.$ac_objext conftest$ac_exeext
8606 if { (ac_try="$ac_link"
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_link") 2>conftest.er1
8614 grep -v '^ *+' conftest.er1 >conftest.err
8616 cat conftest.err >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest$ac_exeext &&
8622 $as_test_x conftest$ac_exeext; then
8623 { echo "$as_me:$LINENO: result: yes" >&5
8624 echo "${ECHO_T}yes" >&6; }
8625 X_LIBS="$X_LIBS -R $x_libraries"
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 { echo "$as_me:$LINENO: result: neither works" >&5
8631 echo "${ECHO_T}neither works" >&6; }
8634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8635 conftest$ac_exeext conftest.$ac_ext
8638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8639 conftest$ac_exeext conftest.$ac_ext
8640 ac_c_werror_flag=$ac_xsave_c_werror_flag
8644 # Check for system-dependent libraries X programs must link with.
8645 # Do this before checking for the system-independent R6 libraries
8646 # (-lICE), since we may need -lsocket or whatever for X linking.
8648 if test "$ISC" = yes; then
8649 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8651 # Martyn Johnson says this is needed for Ultrix, if the X
8652 # libraries were built with DECnet support. And Karl Berry says
8653 # the Alpha needs dnet_stub (dnet does not exist).
8654 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8655 cat >conftest.$ac_ext <<_ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h. */
8662 /* Override any GCC internal prototype to avoid an error.
8663 Use char because int might match the return type of a GCC
8664 builtin and then its argument prototype would still apply. */
8668 char XOpenDisplay ();
8672 return XOpenDisplay ();
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (ac_try="$ac_link"
8680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681 *) ac_try_echo=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_link") 2>conftest.er1
8686 grep -v '^ *+' conftest.er1 >conftest.err
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest$ac_exeext &&
8694 $as_test_x conftest$ac_exeext; then
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8701 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
8702 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 ac_check_lib_save_LIBS=$LIBS
8707 cat >conftest.$ac_ext <<_ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8724 return dnet_ntoa ();
8729 rm -f conftest.$ac_objext conftest$ac_exeext
8730 if { (ac_try="$ac_link"
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_link") 2>conftest.er1
8738 grep -v '^ *+' conftest.er1 >conftest.err
8740 cat conftest.err >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest$ac_exeext &&
8746 $as_test_x conftest$ac_exeext; then
8747 ac_cv_lib_dnet_dnet_ntoa=yes
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 ac_cv_lib_dnet_dnet_ntoa=no
8755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8756 conftest$ac_exeext conftest.$ac_ext
8757 LIBS=$ac_check_lib_save_LIBS
8759 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8760 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8761 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8762 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8765 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8766 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8767 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
8768 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 ac_check_lib_save_LIBS=$LIBS
8772 LIBS="-ldnet_stub $LIBS"
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8780 /* Override any GCC internal prototype to avoid an error.
8781 Use char because int might match the return type of a GCC
8782 builtin and then its argument prototype would still apply. */
8790 return dnet_ntoa ();
8795 rm -f conftest.$ac_objext conftest$ac_exeext
8796 if { (ac_try="$ac_link"
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8802 (eval "$ac_link") 2>conftest.er1
8804 grep -v '^ *+' conftest.er1 >conftest.err
8806 cat conftest.err >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && {
8809 test -z "$ac_c_werror_flag" ||
8810 test ! -s conftest.err
8811 } && test -s conftest$ac_exeext &&
8812 $as_test_x conftest$ac_exeext; then
8813 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8815 echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_cv_lib_dnet_stub_dnet_ntoa=no
8821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8822 conftest$ac_exeext conftest.$ac_ext
8823 LIBS=$ac_check_lib_save_LIBS
8825 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8826 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8827 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8828 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8835 conftest$ac_exeext conftest.$ac_ext
8836 LIBS="$ac_xsave_LIBS"
8838 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8839 # to get the SysV transport functions.
8840 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8842 # The nsl library prevents programs from opening the X display
8843 # on Irix 5.2, according to T.E. Dickey.
8844 # The functions gethostbyname, getservbyname, and inet_addr are
8845 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8846 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
8847 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
8848 if test "${ac_cv_func_gethostbyname+set}" = set; then
8849 echo $ECHO_N "(cached) $ECHO_C" >&6
8851 cat >conftest.$ac_ext <<_ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8859 #define gethostbyname innocuous_gethostbyname
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char gethostbyname (); below.
8863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8864 <limits.h> exists even on freestanding compilers. */
8867 # include <limits.h>
8869 # include <assert.h>
8872 #undef gethostbyname
8874 /* Override any GCC internal prototype to avoid an error.
8875 Use char because int might match the return type of a GCC
8876 builtin and then its argument prototype would still apply. */
8880 char gethostbyname ();
8881 /* The GNU C library defines this for functions which it implements
8882 to always fail with ENOSYS. Some functions are actually named
8883 something starting with __ and the normal name is an alias. */
8884 #if defined __stub_gethostbyname || defined __stub___gethostbyname
8891 return gethostbyname ();
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897 if { (ac_try="$ac_link"
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_link") 2>conftest.er1
8905 grep -v '^ *+' conftest.er1 >conftest.err
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && {
8910 test -z "$ac_c_werror_flag" ||
8911 test ! -s conftest.err
8912 } && test -s conftest$ac_exeext &&
8913 $as_test_x conftest$ac_exeext; then
8914 ac_cv_func_gethostbyname=yes
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_cv_func_gethostbyname=no
8922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8923 conftest$ac_exeext conftest.$ac_ext
8925 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8926 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
8928 if test $ac_cv_func_gethostbyname = no; then
8929 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8930 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
8931 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
8934 ac_check_lib_save_LIBS=$LIBS
8936 cat >conftest.$ac_ext <<_ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8943 /* Override any GCC internal prototype to avoid an error.
8944 Use char because int might match the return type of a GCC
8945 builtin and then its argument prototype would still apply. */
8949 char gethostbyname ();
8953 return gethostbyname ();
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } && {
8972 test -z "$ac_c_werror_flag" ||
8973 test ! -s conftest.err
8974 } && test -s conftest$ac_exeext &&
8975 $as_test_x conftest$ac_exeext; then
8976 ac_cv_lib_nsl_gethostbyname=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_cv_lib_nsl_gethostbyname=no
8984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8985 conftest$ac_exeext conftest.$ac_ext
8986 LIBS=$ac_check_lib_save_LIBS
8988 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8989 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
8990 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8991 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8994 if test $ac_cv_lib_nsl_gethostbyname = no; then
8995 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8996 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
8997 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9000 ac_check_lib_save_LIBS=$LIBS
9002 cat >conftest.$ac_ext <<_ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9009 /* Override any GCC internal prototype to avoid an error.
9010 Use char because int might match the return type of a GCC
9011 builtin and then its argument prototype would still apply. */
9015 char gethostbyname ();
9019 return gethostbyname ();
9024 rm -f conftest.$ac_objext conftest$ac_exeext
9025 if { (ac_try="$ac_link"
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_link") 2>conftest.er1
9033 grep -v '^ *+' conftest.er1 >conftest.err
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } && {
9038 test -z "$ac_c_werror_flag" ||
9039 test ! -s conftest.err
9040 } && test -s conftest$ac_exeext &&
9041 $as_test_x conftest$ac_exeext; then
9042 ac_cv_lib_bsd_gethostbyname=yes
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 ac_cv_lib_bsd_gethostbyname=no
9050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9051 conftest$ac_exeext conftest.$ac_ext
9052 LIBS=$ac_check_lib_save_LIBS
9054 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9055 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
9056 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9057 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9063 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9064 # socket/setsockopt and other routines are undefined under SCO ODT
9065 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9066 # on later versions), says Simon Leinen: it contains gethostby*
9067 # variants that don't use the name server (or something). -lsocket
9068 # must be given before -lnsl if both are needed. We assume that
9069 # if connect needs -lnsl, so does gethostbyname.
9070 { echo "$as_me:$LINENO: checking for connect" >&5
9071 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
9072 if test "${ac_cv_func_connect+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9083 #define connect innocuous_connect
9085 /* System header to define __stub macros and hopefully few prototypes,
9086 which can conflict with char connect (); below.
9087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9088 <limits.h> exists even on freestanding compilers. */
9091 # include <limits.h>
9093 # include <assert.h>
9098 /* Override any GCC internal prototype to avoid an error.
9099 Use char because int might match the return type of a GCC
9100 builtin and then its argument prototype would still apply. */
9105 /* The GNU C library defines this for functions which it implements
9106 to always fail with ENOSYS. Some functions are actually named
9107 something starting with __ and the normal name is an alias. */
9108 #if defined __stub_connect || defined __stub___connect
9120 rm -f conftest.$ac_objext conftest$ac_exeext
9121 if { (ac_try="$ac_link"
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_link") 2>conftest.er1
9129 grep -v '^ *+' conftest.er1 >conftest.err
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest$ac_exeext &&
9137 $as_test_x conftest$ac_exeext; then
9138 ac_cv_func_connect=yes
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.$ac_ext >&5
9143 ac_cv_func_connect=no
9146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9147 conftest$ac_exeext conftest.$ac_ext
9149 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9150 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
9152 if test $ac_cv_func_connect = no; then
9153 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9154 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
9155 if test "${ac_cv_lib_socket_connect+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 ac_check_lib_save_LIBS=$LIBS
9159 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9160 cat >conftest.$ac_ext <<_ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9167 /* Override any GCC internal prototype to avoid an error.
9168 Use char because int might match the return type of a GCC
9169 builtin and then its argument prototype would still apply. */
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (ac_try="$ac_link"
9185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9186 *) ac_try_echo=$ac_try;;
9188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9189 (eval "$ac_link") 2>conftest.er1
9191 grep -v '^ *+' conftest.er1 >conftest.err
9193 cat conftest.err >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); } && {
9196 test -z "$ac_c_werror_flag" ||
9197 test ! -s conftest.err
9198 } && test -s conftest$ac_exeext &&
9199 $as_test_x conftest$ac_exeext; then
9200 ac_cv_lib_socket_connect=yes
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9205 ac_cv_lib_socket_connect=no
9208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9209 conftest$ac_exeext conftest.$ac_ext
9210 LIBS=$ac_check_lib_save_LIBS
9212 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9213 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
9214 if test $ac_cv_lib_socket_connect = yes; then
9215 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9220 # Guillermo Gomez says -lposix is necessary on A/UX.
9221 { echo "$as_me:$LINENO: checking for remove" >&5
9222 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
9223 if test "${ac_cv_func_remove+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 cat >conftest.$ac_ext <<_ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h. */
9232 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9234 #define remove innocuous_remove
9236 /* System header to define __stub macros and hopefully few prototypes,
9237 which can conflict with char remove (); below.
9238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9239 <limits.h> exists even on freestanding compilers. */
9242 # include <limits.h>
9244 # include <assert.h>
9249 /* Override any GCC internal prototype to avoid an error.
9250 Use char because int might match the return type of a GCC
9251 builtin and then its argument prototype would still apply. */
9256 /* The GNU C library defines this for functions which it implements
9257 to always fail with ENOSYS. Some functions are actually named
9258 something starting with __ and the normal name is an alias. */
9259 #if defined __stub_remove || defined __stub___remove
9271 rm -f conftest.$ac_objext conftest$ac_exeext
9272 if { (ac_try="$ac_link"
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278 (eval "$ac_link") 2>conftest.er1
9280 grep -v '^ *+' conftest.er1 >conftest.err
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } && {
9285 test -z "$ac_c_werror_flag" ||
9286 test ! -s conftest.err
9287 } && test -s conftest$ac_exeext &&
9288 $as_test_x conftest$ac_exeext; then
9289 ac_cv_func_remove=yes
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9294 ac_cv_func_remove=no
9297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9298 conftest$ac_exeext conftest.$ac_ext
9300 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9301 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
9303 if test $ac_cv_func_remove = no; then
9304 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9305 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
9306 if test "${ac_cv_lib_posix_remove+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 ac_check_lib_save_LIBS=$LIBS
9310 LIBS="-lposix $LIBS"
9311 cat >conftest.$ac_ext <<_ACEOF
9314 cat confdefs.h >>conftest.$ac_ext
9315 cat >>conftest.$ac_ext <<_ACEOF
9316 /* end confdefs.h. */
9318 /* Override any GCC internal prototype to avoid an error.
9319 Use char because int might match the return type of a GCC
9320 builtin and then its argument prototype would still apply. */
9333 rm -f conftest.$ac_objext conftest$ac_exeext
9334 if { (ac_try="$ac_link"
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_link") 2>conftest.er1
9342 grep -v '^ *+' conftest.er1 >conftest.err
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest$ac_exeext &&
9350 $as_test_x conftest$ac_exeext; then
9351 ac_cv_lib_posix_remove=yes
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_cv_lib_posix_remove=no
9359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9360 conftest$ac_exeext conftest.$ac_ext
9361 LIBS=$ac_check_lib_save_LIBS
9363 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9364 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
9365 if test $ac_cv_lib_posix_remove = yes; then
9366 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9371 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9372 { echo "$as_me:$LINENO: checking for shmat" >&5
9373 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
9374 if test "${ac_cv_func_shmat+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9383 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9385 #define shmat innocuous_shmat
9387 /* System header to define __stub macros and hopefully few prototypes,
9388 which can conflict with char shmat (); below.
9389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9390 <limits.h> exists even on freestanding compilers. */
9393 # include <limits.h>
9395 # include <assert.h>
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9407 /* The GNU C library defines this for functions which it implements
9408 to always fail with ENOSYS. Some functions are actually named
9409 something starting with __ and the normal name is an alias. */
9410 #if defined __stub_shmat || defined __stub___shmat
9422 rm -f conftest.$ac_objext conftest$ac_exeext
9423 if { (ac_try="$ac_link"
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_link") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest$ac_exeext &&
9439 $as_test_x conftest$ac_exeext; then
9440 ac_cv_func_shmat=yes
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9449 conftest$ac_exeext conftest.$ac_ext
9451 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9452 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
9454 if test $ac_cv_func_shmat = no; then
9455 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9456 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
9457 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 ac_check_lib_save_LIBS=$LIBS
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9469 /* Override any GCC internal prototype to avoid an error.
9470 Use char because int might match the return type of a GCC
9471 builtin and then its argument prototype would still apply. */
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (ac_try="$ac_link"
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_link") 2>conftest.er1
9493 grep -v '^ *+' conftest.er1 >conftest.err
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } && {
9498 test -z "$ac_c_werror_flag" ||
9499 test ! -s conftest.err
9500 } && test -s conftest$ac_exeext &&
9501 $as_test_x conftest$ac_exeext; then
9502 ac_cv_lib_ipc_shmat=yes
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9507 ac_cv_lib_ipc_shmat=no
9510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9511 conftest$ac_exeext conftest.$ac_ext
9512 LIBS=$ac_check_lib_save_LIBS
9514 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9515 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
9516 if test $ac_cv_lib_ipc_shmat = yes; then
9517 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9523 # Check for libraries that X11R6 Xt/Xaw programs need.
9524 ac_save_LDFLAGS=$LDFLAGS
9525 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9526 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9527 # check for ICE first), but we must link in the order -lSM -lICE or
9528 # we get undefined symbols. So assume we have SM if we have ICE.
9529 # These have to be linked with before -lX11, unlike the other
9530 # libraries we check for below, so use a different variable.
9531 # John Interrante, Karl Berry
9532 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9533 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
9534 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 ac_check_lib_save_LIBS=$LIBS
9538 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9539 cat >conftest.$ac_ext <<_ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9546 /* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
9552 char IceConnectionNumber ();
9556 return IceConnectionNumber ();
9561 rm -f conftest.$ac_objext conftest$ac_exeext
9562 if { (ac_try="$ac_link"
9564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565 *) ac_try_echo=$ac_try;;
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568 (eval "$ac_link") 2>conftest.er1
9570 grep -v '^ *+' conftest.er1 >conftest.err
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } && {
9575 test -z "$ac_c_werror_flag" ||
9576 test ! -s conftest.err
9577 } && test -s conftest$ac_exeext &&
9578 $as_test_x conftest$ac_exeext; then
9579 ac_cv_lib_ICE_IceConnectionNumber=yes
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 ac_cv_lib_ICE_IceConnectionNumber=no
9587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9588 conftest$ac_exeext conftest.$ac_ext
9589 LIBS=$ac_check_lib_save_LIBS
9591 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9592 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9593 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9594 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9597 LDFLAGS=$ac_save_LDFLAGS
9600 { echo "$as_me:$LINENO: checking whether @%:@! works in shell scripts" >&5
9601 echo $ECHO_N "checking whether @%:@! works in shell scripts... $ECHO_C" >&6; }
9602 if test "${ac_cv_sys_interpreter+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
9610 if test $? -ne 69; then
9611 ac_cv_sys_interpreter=yes
9613 ac_cv_sys_interpreter=no
9617 { echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
9618 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6; }
9619 interpval=$ac_cv_sys_interpreter
9622 cat >>confdefs.h <<_ACEOF
9623 @%:@define EXEEXT "$EXEEXT"
9628 *-*-sunos*) cat >>confdefs.h <<\_ACEOF
9629 @%:@define HAVE_SUN_OS 1
9632 *-*-solaris*) cat >>confdefs.h <<\_ACEOF
9633 @%:@define HAVE_SUN_OS 1
9636 *-*-osf*) cat >>confdefs.h <<\_ACEOF
9637 @%:@define HAVE_OSF1_OS 1
9640 *-*-aix*) cat >>confdefs.h <<\_ACEOF
9641 @%:@define HAVE_AIX_OS 1
9644 *-*-hpux*) cat >>confdefs.h <<\_ACEOF
9645 @%:@define HAVE_HPUX_OS 1
9648 *-*-linux*) cat >>confdefs.h <<\_ACEOF
9649 @%:@define HAVE_LINUX_OS 1
9652 *-*-freebsd*) cat >>confdefs.h <<\_ACEOF
9653 @%:@define HAVE_FREEBSD_OS 1
9656 *-*-netbsd*) cat >>confdefs.h <<\_ACEOF
9657 @%:@define HAVE_NETBSD_OS 1
9660 *-*-openbsd*) cat >>confdefs.h <<\_ACEOF
9661 @%:@define HAVE_OPENBSD_OS 1
9664 *-*-bsdi*) cat >>confdefs.h <<\_ACEOF
9665 @%:@define HAVE_BSDI_OS 1
9668 *-*-irix*) cat >>confdefs.h <<\_ACEOF
9669 @%:@define HAVE_SGI_OS 1
9672 *-*-darwin*) cat >>confdefs.h <<\_ACEOF
9673 @%:@define HAVE_DARWIN_OS 1
9676 *-*-nto*) cat >>confdefs.h <<\_ACEOF
9677 @%:@define HAVE_QNX_OS 1
9683 # Check whether --enable-all was given.
9684 if test "${enable_all+set}" = set; then
9685 enableval=$enable_all; if test "$enableval" = "yes" ; then
9701 HALPOLICYDIR="/usr/share/hal/fdi/policy/20thirdparty"
9709 # Check whether --with-halpolicydir was given.
9710 if test "${with_halpolicydir+set}" = set; then
9711 withval=$with_halpolicydir; HALPOLICYDIR=$withval
9715 if test "x$HALPOLICYDIR" != "x" ; then
9716 { echo "$as_me:$LINENO: result: Using halpolicydir=$HALPOLICYDIR" >&5
9717 echo "${ECHO_T}Using halpolicydir=$HALPOLICYDIR" >&6; }
9719 { echo "$as_me:$LINENO: result: Will not install HAL policy file" >&5
9720 echo "${ECHO_T}Will not install HAL policy file" >&6; }
9724 #--------------------------------------------------------------------
9725 # Check for TCP wrapper support, code taken from Bacula KES-7Nov03
9726 #--------------------------------------------------------------------
9729 # Check whether --with-libwrap was given.
9730 if test "${with_libwrap+set}" = set; then
9731 withval=$with_libwrap;
9732 if test "x$withval" != "xno" ; then
9734 LIBS="$saved_LIBS -lwrap"
9735 { echo "$as_me:$LINENO: checking for libwrap" >&5
9736 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9744 int deny_severity = 0;
9745 int allow_severity = 0;
9746 struct request_info *req;
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (ac_try="$ac_link"
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_link") 2>conftest.er1
9764 grep -v '^ *+' conftest.er1 >conftest.err
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && {
9769 test -z "$ac_c_werror_flag" ||
9770 test ! -s conftest.err
9771 } && test -s conftest$ac_exeext &&
9772 $as_test_x conftest$ac_exeext; then
9773 { echo "$as_me:$LINENO: result: yes" >&5
9774 echo "${ECHO_T}yes" >&6; }
9775 cat >>confdefs.h <<\_ACEOF
9776 @%:@define HAVE_LIBWRAP 1
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 LIBS="$saved_LIBS -lwrap -lnsl"
9785 cat >conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9792 int deny_severity = 0;
9793 int allow_severity = 0;
9794 struct request_info *req;
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_link") 2>conftest.er1
9812 grep -v '^ *+' conftest.er1 >conftest.err
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } && {
9817 test -z "$ac_c_werror_flag" ||
9818 test ! -s conftest.err
9819 } && test -s conftest$ac_exeext &&
9820 $as_test_x conftest$ac_exeext; then
9821 { echo "$as_me:$LINENO: result: yes" >&5
9822 echo "${ECHO_T}yes" >&6; }
9823 cat >>confdefs.h <<\_ACEOF
9824 @%:@define HAVE_LIBWRAP 1
9829 echo "$as_me: failed program was:" >&5
9830 sed 's/^/| /' conftest.$ac_ext >&5
9832 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9833 echo "$as_me: error: *** libwrap missing" >&2;}
9834 { (exit 1); exit 1; }; }
9838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839 conftest$ac_exeext conftest.$ac_ext
9843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9844 conftest$ac_exeext conftest.$ac_ext
9857 # Check whether --enable-cgi was given.
9858 if test "${enable_cgi+set}" = set; then
9859 enableval=$enable_cgi; if test "$enableval" = "yes"
9864 # Check whether --enable-lgd was given.
9865 if test "${enable_lgd+set}" = set; then
9866 enableval=$enable_lgd; if test "$enableval" = "no"
9868 { echo "$as_me:$LINENO: result: Disabled GD Library (and associated checks)." >&5
9869 echo "${ECHO_T}Disabled GD Library (and associated checks)." >&6; }
9870 SKIP_GDHDR_CHECK=yes
9877 if test "${SYS_GD_FOUND}" = "no"
9879 { echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
9880 echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6; }
9881 if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 ac_check_lib_save_LIBS=$LIBS
9885 LIBS="-lgd ${X_LIBS} $LIBS"
9886 cat >conftest.$ac_ext <<_ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9893 /* Override any GCC internal prototype to avoid an error.
9894 Use char because int might match the return type of a GCC
9895 builtin and then its argument prototype would still apply. */
9903 return gdImagePng ();
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (ac_try="$ac_link"
9911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912 *) ac_try_echo=$ac_try;;
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915 (eval "$ac_link") 2>conftest.er1
9917 grep -v '^ *+' conftest.er1 >conftest.err
9919 cat conftest.err >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); } && {
9922 test -z "$ac_c_werror_flag" ||
9923 test ! -s conftest.err
9924 } && test -s conftest$ac_exeext &&
9925 $as_test_x conftest$ac_exeext; then
9926 ac_cv_lib_gd_gdImagePng=yes
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9931 ac_cv_lib_gd_gdImagePng=no
9934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9938 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
9939 echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6; }
9940 if test $ac_cv_lib_gd_gdImagePng = yes; then
9941 { echo "$as_me:$LINENO: result: using PNG file format (/usr/lib)." >&5
9942 echo "${ECHO_T}using PNG file format (/usr/lib)." >&6; }
9943 cat >>confdefs.h <<\_ACEOF
9944 @%:@define SYS_IMGFMT_PNG 1
9953 if test "${SYS_GD_FOUND}" = "no"
9955 { echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5
9956 echo $ECHO_N "checking for gdImageGif in -lgd... $ECHO_C" >&6; }
9957 if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 ac_check_lib_save_LIBS=$LIBS
9961 LIBS="-lgd ${X_LIBS} $LIBS"
9962 cat >conftest.$ac_ext <<_ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9969 /* Override any GCC internal prototype to avoid an error.
9970 Use char because int might match the return type of a GCC
9971 builtin and then its argument prototype would still apply. */
9979 return gdImageGif ();
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9993 grep -v '^ *+' conftest.er1 >conftest.err
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext &&
10001 $as_test_x conftest$ac_exeext; then
10002 ac_cv_lib_gd_gdImageGif=yes
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_cv_lib_gd_gdImageGif=no
10010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10011 conftest$ac_exeext conftest.$ac_ext
10012 LIBS=$ac_check_lib_save_LIBS
10014 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5
10015 echo "${ECHO_T}$ac_cv_lib_gd_gdImageGif" >&6; }
10016 if test $ac_cv_lib_gd_gdImageGif = yes; then
10017 { echo "$as_me:$LINENO: result: using GIF file format (/usr/lib)." >&5
10018 echo "${ECHO_T}using GIF file format (/usr/lib)." >&6; }
10019 cat >>confdefs.h <<\_ACEOF
10020 @%:@define SYS_IMGFMT_GIF 1
10029 if test "${SYS_GD_FOUND}" = "no"
10031 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
10032 LDFLAGS="${LDFLAGS} -L/usr/local/lib"
10034 unset ac_cv_lib_gd_gdImagePng
10035 { echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
10036 echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6; }
10037 if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-lgd ${X_LIBS} $LIBS"
10042 cat >conftest.$ac_ext <<_ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10049 /* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
10055 char gdImagePng ();
10059 return gdImagePng ();
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_link") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } && {
10078 test -z "$ac_c_werror_flag" ||
10079 test ! -s conftest.err
10080 } && test -s conftest$ac_exeext &&
10081 $as_test_x conftest$ac_exeext; then
10082 ac_cv_lib_gd_gdImagePng=yes
10084 echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 ac_cv_lib_gd_gdImagePng=no
10090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10094 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
10095 echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6; }
10096 if test $ac_cv_lib_gd_gdImagePng = yes; then
10097 { echo "$as_me:$LINENO: result: using PNG file format (/usr/local/lib)." >&5
10098 echo "${ECHO_T}using PNG file format (/usr/local/lib)." >&6; }
10099 cat >>confdefs.h <<\_ACEOF
10100 @%:@define SYS_IMGFMT_PNG 1
10109 if test "${SYS_GD_FOUND}" = "no"
10111 unset ac_cv_lib_gd_gdImageGif
10112 { echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5
10113 echo $ECHO_N "checking for gdImageGif in -lgd... $ECHO_C" >&6; }
10114 if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then
10115 echo $ECHO_N "(cached) $ECHO_C" >&6
10117 ac_check_lib_save_LIBS=$LIBS
10118 LIBS="-lgd ${X_LIBS} $LIBS"
10119 cat >conftest.$ac_ext <<_ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10126 /* Override any GCC internal prototype to avoid an error.
10127 Use char because int might match the return type of a GCC
10128 builtin and then its argument prototype would still apply. */
10132 char gdImageGif ();
10136 return gdImageGif ();
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (ac_try="$ac_link"
10143 case "(($ac_try" in
10144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10145 *) ac_try_echo=$ac_try;;
10147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10148 (eval "$ac_link") 2>conftest.er1
10150 grep -v '^ *+' conftest.er1 >conftest.err
10152 cat conftest.err >&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } && {
10155 test -z "$ac_c_werror_flag" ||
10156 test ! -s conftest.err
10157 } && test -s conftest$ac_exeext &&
10158 $as_test_x conftest$ac_exeext; then
10159 ac_cv_lib_gd_gdImageGif=yes
10161 echo "$as_me: failed program was:" >&5
10162 sed 's/^/| /' conftest.$ac_ext >&5
10164 ac_cv_lib_gd_gdImageGif=no
10167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10168 conftest$ac_exeext conftest.$ac_ext
10169 LIBS=$ac_check_lib_save_LIBS
10171 { echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5
10172 echo "${ECHO_T}$ac_cv_lib_gd_gdImageGif" >&6; }
10173 if test $ac_cv_lib_gd_gdImageGif = yes; then
10174 { echo "$as_me:$LINENO: result: using GIF file format (/usr/local/lib)." >&5
10175 echo "${ECHO_T}using GIF file format (/usr/local/lib)." >&6; }
10176 cat >>confdefs.h <<\_ACEOF
10177 @%:@define SYS_IMGFMT_GIF 1
10186 if test "${SYS_GD_FOUND}" = "no"
10188 { { echo "$as_me:$LINENO: error: Your system lacks the GD library which is needed for
10189 compiling the apcupsd CGI programs. Please install
10190 libgd and re-run the ./configure script.
10191 Alternatively you can disable the CGI support." >&5
10192 echo "$as_me: error: Your system lacks the GD library which is needed for
10193 compiling the apcupsd CGI programs. Please install
10194 libgd and re-run the ./configure script.
10195 Alternatively you can disable the CGI support." >&2;}
10196 { (exit 1); exit 1; }; }
10199 if test "${SKIP_GDHDR_CHECK}" = "no"
10201 if test "${ac_cv_header_gd_h+set}" = set; then
10202 { echo "$as_me:$LINENO: checking for gd.h" >&5
10203 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6; }
10204 if test "${ac_cv_header_gd_h+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 { echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
10208 echo "${ECHO_T}$ac_cv_header_gd_h" >&6; }
10210 # Is the header compilable?
10211 { echo "$as_me:$LINENO: checking gd.h usability" >&5
10212 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6; }
10213 cat >conftest.$ac_ext <<_ACEOF
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10219 $ac_includes_default
10222 rm -f conftest.$ac_objext
10223 if { (ac_try="$ac_compile"
10224 case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_compile") 2>conftest.er1
10231 grep -v '^ *+' conftest.er1 >conftest.err
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } && {
10236 test -z "$ac_c_werror_flag" ||
10237 test ! -s conftest.err
10238 } && test -s conftest.$ac_objext; then
10239 ac_header_compiler=yes
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10244 ac_header_compiler=no
10247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10249 echo "${ECHO_T}$ac_header_compiler" >&6; }
10251 # Is the header present?
10252 { echo "$as_me:$LINENO: checking gd.h presence" >&5
10253 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6; }
10254 cat >conftest.$ac_ext <<_ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10262 if { (ac_try="$ac_cpp conftest.$ac_ext"
10263 case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10270 grep -v '^ *+' conftest.er1 >conftest.err
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } >/dev/null && {
10275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10278 ac_header_preproc=yes
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ac_header_preproc=no
10286 rm -f conftest.err conftest.$ac_ext
10287 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10288 echo "${ECHO_T}$ac_header_preproc" >&6; }
10290 # So? What about this header?
10291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10293 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
10294 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
10296 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
10297 ac_header_preproc=yes
10300 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
10301 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
10302 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
10303 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
10304 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
10305 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
10306 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
10307 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
10308 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
10309 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
10310 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
10311 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
10315 { echo "$as_me:$LINENO: checking for gd.h" >&5
10316 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6; }
10317 if test "${ac_cv_header_gd_h+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 ac_cv_header_gd_h=$ac_header_preproc
10322 { echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
10323 echo "${ECHO_T}$ac_cv_header_gd_h" >&6; }
10326 if test $ac_cv_header_gd_h = yes; then
10329 if test "${ac_cv_header_gd_gd_h+set}" = set; then
10330 { echo "$as_me:$LINENO: checking for gd/gd.h" >&5
10331 echo $ECHO_N "checking for gd/gd.h... $ECHO_C" >&6; }
10332 if test "${ac_cv_header_gd_gd_h+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 { echo "$as_me:$LINENO: result: $ac_cv_header_gd_gd_h" >&5
10336 echo "${ECHO_T}$ac_cv_header_gd_gd_h" >&6; }
10338 # Is the header compilable?
10339 { echo "$as_me:$LINENO: checking gd/gd.h usability" >&5
10340 echo $ECHO_N "checking gd/gd.h usability... $ECHO_C" >&6; }
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 $ac_includes_default
10348 @%:@include <gd/gd.h>
10350 rm -f conftest.$ac_objext
10351 if { (ac_try="$ac_compile"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10357 (eval "$ac_compile") 2>conftest.er1
10359 grep -v '^ *+' conftest.er1 >conftest.err
10361 cat conftest.err >&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && {
10364 test -z "$ac_c_werror_flag" ||
10365 test ! -s conftest.err
10366 } && test -s conftest.$ac_objext; then
10367 ac_header_compiler=yes
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10372 ac_header_compiler=no
10375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10377 echo "${ECHO_T}$ac_header_compiler" >&6; }
10379 # Is the header present?
10380 { echo "$as_me:$LINENO: checking gd/gd.h presence" >&5
10381 echo $ECHO_N "checking gd/gd.h presence... $ECHO_C" >&6; }
10382 cat >conftest.$ac_ext <<_ACEOF
10385 cat confdefs.h >>conftest.$ac_ext
10386 cat >>conftest.$ac_ext <<_ACEOF
10387 /* end confdefs.h. */
10388 @%:@include <gd/gd.h>
10390 if { (ac_try="$ac_cpp conftest.$ac_ext"
10391 case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10398 grep -v '^ *+' conftest.er1 >conftest.err
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } >/dev/null && {
10403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10404 test ! -s conftest.err
10406 ac_header_preproc=yes
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 ac_header_preproc=no
10414 rm -f conftest.err conftest.$ac_ext
10415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10416 echo "${ECHO_T}$ac_header_preproc" >&6; }
10418 # So? What about this header?
10419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10421 { echo "$as_me:$LINENO: WARNING: gd/gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
10422 echo "$as_me: WARNING: gd/gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: gd/gd.h: proceeding with the compiler's result" >&5
10424 echo "$as_me: WARNING: gd/gd.h: proceeding with the compiler's result" >&2;}
10425 ac_header_preproc=yes
10428 { echo "$as_me:$LINENO: WARNING: gd/gd.h: present but cannot be compiled" >&5
10429 echo "$as_me: WARNING: gd/gd.h: present but cannot be compiled" >&2;}
10430 { echo "$as_me:$LINENO: WARNING: gd/gd.h: check for missing prerequisite headers?" >&5
10431 echo "$as_me: WARNING: gd/gd.h: check for missing prerequisite headers?" >&2;}
10432 { echo "$as_me:$LINENO: WARNING: gd/gd.h: see the Autoconf documentation" >&5
10433 echo "$as_me: WARNING: gd/gd.h: see the Autoconf documentation" >&2;}
10434 { echo "$as_me:$LINENO: WARNING: gd/gd.h: section \"Present But Cannot Be Compiled\"" >&5
10435 echo "$as_me: WARNING: gd/gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
10436 { echo "$as_me:$LINENO: WARNING: gd/gd.h: proceeding with the preprocessor's result" >&5
10437 echo "$as_me: WARNING: gd/gd.h: proceeding with the preprocessor's result" >&2;}
10438 { echo "$as_me:$LINENO: WARNING: gd/gd.h: in the future, the compiler will take precedence" >&5
10439 echo "$as_me: WARNING: gd/gd.h: in the future, the compiler will take precedence" >&2;}
10443 { echo "$as_me:$LINENO: checking for gd/gd.h" >&5
10444 echo $ECHO_N "checking for gd/gd.h... $ECHO_C" >&6; }
10445 if test "${ac_cv_header_gd_gd_h+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 ac_cv_header_gd_gd_h=$ac_header_preproc
10450 { echo "$as_me:$LINENO: result: $ac_cv_header_gd_gd_h" >&5
10451 echo "${ECHO_T}$ac_cv_header_gd_gd_h" >&6; }
10454 if test $ac_cv_header_gd_gd_h = yes; then
10457 if test "${ac_cv_header_gd2_gd_h+set}" = set; then
10458 { echo "$as_me:$LINENO: checking for gd2/gd.h" >&5
10459 echo $ECHO_N "checking for gd2/gd.h... $ECHO_C" >&6; }
10460 if test "${ac_cv_header_gd2_gd_h+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 { echo "$as_me:$LINENO: result: $ac_cv_header_gd2_gd_h" >&5
10464 echo "${ECHO_T}$ac_cv_header_gd2_gd_h" >&6; }
10466 # Is the header compilable?
10467 { echo "$as_me:$LINENO: checking gd2/gd.h usability" >&5
10468 echo $ECHO_N "checking gd2/gd.h usability... $ECHO_C" >&6; }
10469 cat >conftest.$ac_ext <<_ACEOF
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 $ac_includes_default
10476 @%:@include <gd2/gd.h>
10478 rm -f conftest.$ac_objext
10479 if { (ac_try="$ac_compile"
10480 case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10485 (eval "$ac_compile") 2>conftest.er1
10487 grep -v '^ *+' conftest.er1 >conftest.err
10489 cat conftest.err >&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } && {
10492 test -z "$ac_c_werror_flag" ||
10493 test ! -s conftest.err
10494 } && test -s conftest.$ac_objext; then
10495 ac_header_compiler=yes
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 ac_header_compiler=no
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10505 echo "${ECHO_T}$ac_header_compiler" >&6; }
10507 # Is the header present?
10508 { echo "$as_me:$LINENO: checking gd2/gd.h presence" >&5
10509 echo $ECHO_N "checking gd2/gd.h presence... $ECHO_C" >&6; }
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516 @%:@include <gd2/gd.h>
10518 if { (ac_try="$ac_cpp conftest.$ac_ext"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10526 grep -v '^ *+' conftest.er1 >conftest.err
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } >/dev/null && {
10531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10534 ac_header_preproc=yes
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 ac_header_preproc=no
10542 rm -f conftest.err conftest.$ac_ext
10543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10544 echo "${ECHO_T}$ac_header_preproc" >&6; }
10546 # So? What about this header?
10547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10549 { echo "$as_me:$LINENO: WARNING: gd2/gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
10550 echo "$as_me: WARNING: gd2/gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: gd2/gd.h: proceeding with the compiler's result" >&5
10552 echo "$as_me: WARNING: gd2/gd.h: proceeding with the compiler's result" >&2;}
10553 ac_header_preproc=yes
10556 { echo "$as_me:$LINENO: WARNING: gd2/gd.h: present but cannot be compiled" >&5
10557 echo "$as_me: WARNING: gd2/gd.h: present but cannot be compiled" >&2;}
10558 { echo "$as_me:$LINENO: WARNING: gd2/gd.h: check for missing prerequisite headers?" >&5
10559 echo "$as_me: WARNING: gd2/gd.h: check for missing prerequisite headers?" >&2;}
10560 { echo "$as_me:$LINENO: WARNING: gd2/gd.h: see the Autoconf documentation" >&5
10561 echo "$as_me: WARNING: gd2/gd.h: see the Autoconf documentation" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: gd2/gd.h: section \"Present But Cannot Be Compiled\"" >&5
10563 echo "$as_me: WARNING: gd2/gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
10564 { echo "$as_me:$LINENO: WARNING: gd2/gd.h: proceeding with the preprocessor's result" >&5
10565 echo "$as_me: WARNING: gd2/gd.h: proceeding with the preprocessor's result" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: gd2/gd.h: in the future, the compiler will take precedence" >&5
10567 echo "$as_me: WARNING: gd2/gd.h: in the future, the compiler will take precedence" >&2;}
10571 { echo "$as_me:$LINENO: checking for gd2/gd.h" >&5
10572 echo $ECHO_N "checking for gd2/gd.h... $ECHO_C" >&6; }
10573 if test "${ac_cv_header_gd2_gd_h+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 ac_cv_header_gd2_gd_h=$ac_header_preproc
10578 { echo "$as_me:$LINENO: result: $ac_cv_header_gd2_gd_h" >&5
10579 echo "${ECHO_T}$ac_cv_header_gd2_gd_h" >&6; }
10582 if test $ac_cv_header_gd2_gd_h = yes; then
10585 { { echo "$as_me:$LINENO: error: Found system GD library but no header file.
10586 Please find the file gd.h in your system
10587 include directories and report its location
10588 to apcupsd-users@lists.sourceforge.net" >&5
10589 echo "$as_me: error: Found system GD library but no header file.
10590 Please find the file gd.h in your system
10591 include directories and report its location
10592 to apcupsd-users@lists.sourceforge.net" >&2;}
10593 { (exit 1); exit 1; }; }
10608 { echo "$as_me:$LINENO: result: Not using GD Library - no check performed for header files." >&5
10609 echo "${ECHO_T}Not using GD Library - no check performed for header files." >&6; }
10617 # Check whether --enable-apcsmart was given.
10618 if test "${enable_apcsmart+set}" = set; then
10619 enableval=$enable_apcsmart; if test "$enableval" = "yes" ; then
10620 cat >>confdefs.h <<\_ACEOF
10621 @%:@define HAVE_APCSMART_DRIVER 1
10625 APCSMART_DRIVER="apcsmart"
10629 cat >>confdefs.h <<\_ACEOF
10630 @%:@define HAVE_APCSMART_DRIVER 1
10633 APCSMART_DRIVER="apcsmart"
10638 # Check whether --enable-dumb was given.
10639 if test "${enable_dumb+set}" = set; then
10640 enableval=$enable_dumb; if test "$enableval" = "yes" ; then
10641 cat >>confdefs.h <<\_ACEOF
10642 @%:@define HAVE_DUMB_DRIVER 1
10649 cat >>confdefs.h <<\_ACEOF
10650 @%:@define HAVE_DUMB_DRIVER 1
10660 # Check whether --with-generic-usb was given.
10661 if test "${with_generic_usb+set}" = set; then
10662 withval=$with_generic_usb; GENERICUSB="yes"
10666 # Check whether --enable-usb was given.
10667 if test "${enable_usb+set}" = set; then
10668 enableval=$enable_usb; if test "$enableval" = "yes" ; then
10669 if test $GENERICUSB = "yes" ; then
10670 usbhost=forcegeneric
10678 if test ${tmp%%.*} -ge 8 ; then
10679 usbhost=forcegeneric
10687 { echo "$as_me:$LINENO: result: Using Linux USB driver." >&5
10688 echo "${ECHO_T}Using Linux USB driver." >&6; }
10690 *-*-freebsd* | *-*-openbsd* | *-*-netbsd*)
10691 LIBUSBHIDINC="-I\$(topdir)/src/libusbhid"
10692 LIBUSBHID=libusbhid
10693 APCDRVLIBS="$APCDRVLIBS \$(topdir)/src/libusbhid/libusbhid.a"
10697 { echo "$as_me:$LINENO: result: Using BSD USB driver." >&5
10698 echo "${ECHO_T}Using BSD USB driver." >&6; }
10701 # Extract the first word of "libusb-config", so it can be a program name with args.
10702 set dummy libusb-config; ac_word=$2
10703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10705 if test "${ac_cv_path_usbcfg+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10710 ac_cv_path_usbcfg="$usbcfg" # Let the user override the test with a path.
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714 for as_dir in $PATH
10717 test -z "$as_dir" && as_dir=.
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10720 ac_cv_path_usbcfg="$as_dir/$ac_word$ac_exec_ext"
10721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 usbcfg=$ac_cv_path_usbcfg
10732 if test -n "$usbcfg"; then
10733 { echo "$as_me:$LINENO: result: $usbcfg" >&5
10734 echo "${ECHO_T}$usbcfg" >&6; }
10736 { echo "$as_me:$LINENO: result: no" >&5
10737 echo "${ECHO_T}no" >&6; }
10741 if test x$usbcfg != x ; then
10742 LIBUSB=`$usbcfg --libs`
10743 LIBUSBH=`$usbcfg --prefix`/include/usb.h
10745 { echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
10746 echo $ECHO_N "checking for usb_init in -lusb... $ECHO_C" >&6; }
10747 if test "${ac_cv_lib_usb_usb_init+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-lusb $DRVLIBS $LIBS"
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10769 return usb_init ();
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
10783 grep -v '^ *+' conftest.er1 >conftest.err
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } && {
10788 test -z "$ac_c_werror_flag" ||
10789 test ! -s conftest.err
10790 } && test -s conftest$ac_exeext &&
10791 $as_test_x conftest$ac_exeext; then
10792 ac_cv_lib_usb_usb_init=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_cv_lib_usb_usb_init=no
10800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10804 { echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
10805 echo "${ECHO_T}$ac_cv_lib_usb_usb_init" >&6; }
10806 if test $ac_cv_lib_usb_usb_init = yes; then
10810 { { echo "$as_me:$LINENO: error: Unable to find libusb" >&5
10811 echo "$as_me: error: Unable to find libusb" >&2;}
10812 { (exit 1); exit 1; }; }
10819 LIBUSBHIDINC="-I\$(topdir)/src/libusbhid"
10820 LIBUSBHID=libusbhid
10821 DRVLIBS="$DRVLIBS $LIBUSB"
10822 APCDRVLIBS="$APCDRVLIBS \$(topdir)/src/libusbhid/libusbhid.a"
10826 { echo "$as_me:$LINENO: result: Using generic libusb USB driver." >&5
10827 echo "${ECHO_T}Using generic libusb USB driver." >&6; }
10831 cat >>confdefs.h <<\_ACEOF
10832 @%:@define HAVE_USB_DRIVER 1
10839 DISPLAY_USB_DRIVER=$USB_TYPE-$USB_DRIVER
10844 # Check whether --enable-net was given.
10845 if test "${enable_net+set}" = set; then
10846 enableval=$enable_net; if test "$enableval" = "yes" ; then
10847 cat >>confdefs.h <<\_ACEOF
10848 @%:@define HAVE_NET_DRIVER 1
10855 cat >>confdefs.h <<\_ACEOF
10856 @%:@define HAVE_NET_DRIVER 1
10864 # Check whether --enable-snmp was given.
10865 if test "${enable_snmp+set}" = set; then
10866 enableval=$enable_snmp; if test "$enableval" = "yes" ; then
10867 cat >>confdefs.h <<\_ACEOF
10868 @%:@define HAVE_SNMPLITE_DRIVER 1
10871 SNMPLITE_DRIVER="snmplite"
10872 DISPLAY_SNMP_DRIVER="snmp"
10876 cat >>confdefs.h <<\_ACEOF
10877 @%:@define HAVE_SNMPLITE_DRIVER 1
10880 SNMPLITE_DRIVER="snmplite"
10881 DISPLAY_SNMP_DRIVER="snmp"
10886 # Check whether --enable-net-snmp was given.
10887 if test "${enable_net_snmp+set}" = set; then
10888 enableval=$enable_net_snmp; if test "$enableval" = "yes" ; then
10889 { echo "$as_me:$LINENO: checking for EVP_DigestInit in -lcrypto" >&5
10890 echo $ECHO_N "checking for EVP_DigestInit in -lcrypto... $ECHO_C" >&6; }
10891 if test "${ac_cv_lib_crypto_EVP_DigestInit+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 ac_check_lib_save_LIBS=$LIBS
10895 LIBS="-lcrypto $LIBS"
10896 cat >conftest.$ac_ext <<_ACEOF
10899 cat confdefs.h >>conftest.$ac_ext
10900 cat >>conftest.$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10909 char EVP_DigestInit ();
10913 return EVP_DigestInit ();
10918 rm -f conftest.$ac_objext conftest$ac_exeext
10919 if { (ac_try="$ac_link"
10920 case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_link") 2>conftest.er1
10927 grep -v '^ *+' conftest.er1 >conftest.err
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && {
10932 test -z "$ac_c_werror_flag" ||
10933 test ! -s conftest.err
10934 } && test -s conftest$ac_exeext &&
10935 $as_test_x conftest$ac_exeext; then
10936 ac_cv_lib_crypto_EVP_DigestInit=yes
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10941 ac_cv_lib_crypto_EVP_DigestInit=no
10944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10945 conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10948 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestInit" >&5
10949 echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestInit" >&6; }
10950 if test $ac_cv_lib_crypto_EVP_DigestInit = yes; then
10951 echo ' including crypto library for snmp.'
10952 DRVLIBS="$DRVLIBS -lcrypto"
10956 SNMP_LIB_FOUND="no"
10958 CPPFLAGS="${CPPFLAGS} -I/usr/local/include"
10959 LDFLAGS="${LDFLAGS} -L/usr/local/lib"
10961 if test "$SNMP_LIB_FOUND" = "no" ; then
10962 { echo "$as_me:$LINENO: checking for snmp_open in -lnetsnmp" >&5
10963 echo $ECHO_N "checking for snmp_open in -lnetsnmp... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_netsnmp_snmp_open+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 ac_check_lib_save_LIBS=$LIBS
10968 LIBS="-lnetsnmp $DRVLIBS $LIBS"
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10986 return snmp_open ();
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest$ac_exeext &&
11008 $as_test_x conftest$ac_exeext; then
11009 ac_cv_lib_netsnmp_snmp_open=yes
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_cv_lib_netsnmp_snmp_open=no
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_open" >&5
11022 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_open" >&6; }
11023 if test $ac_cv_lib_netsnmp_snmp_open = yes; then
11024 DRVLIBS="$DRVLIBS -lnetsnmp"
11025 cat >>confdefs.h <<\_ACEOF
11026 @%:@define HAVE_NET_SNMP 1
11029 SNMP_LIB_FOUND="yes"
11034 if test "$SNMP_LIB_FOUND" = "no" ; then
11035 { echo "$as_me:$LINENO: checking for snmp_open in -lsnmp" >&5
11036 echo $ECHO_N "checking for snmp_open in -lsnmp... $ECHO_C" >&6; }
11037 if test "${ac_cv_lib_snmp_snmp_open+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-lsnmp $DRVLIBS $LIBS"
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11059 return snmp_open ();
11064 rm -f conftest.$ac_objext conftest$ac_exeext
11065 if { (ac_try="$ac_link"
11066 case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_link") 2>conftest.er1
11073 grep -v '^ *+' conftest.er1 >conftest.err
11075 cat conftest.err >&5
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); } && {
11078 test -z "$ac_c_werror_flag" ||
11079 test ! -s conftest.err
11080 } && test -s conftest$ac_exeext &&
11081 $as_test_x conftest$ac_exeext; then
11082 ac_cv_lib_snmp_snmp_open=yes
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_cv_lib_snmp_snmp_open=no
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11092 LIBS=$ac_check_lib_save_LIBS
11094 { echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_snmp_open" >&5
11095 echo "${ECHO_T}$ac_cv_lib_snmp_snmp_open" >&6; }
11096 if test $ac_cv_lib_snmp_snmp_open = yes; then
11097 DRVLIBS="$DRVLIBS -lsnmp"
11098 cat >>confdefs.h <<\_ACEOF
11099 @%:@define HAVE_UCD_SNMP 1
11102 SNMP_LIB_FOUND="yes"
11107 if test "$SNMP_LIB_FOUND" = "no" ; then
11108 { { echo "$as_me:$LINENO: error: Cannot find SNMP libraries." >&5
11109 echo "$as_me: error: Cannot find SNMP libraries." >&2;}
11110 { (exit 1); exit 1; }; }
11113 cat >>confdefs.h <<\_ACEOF
11114 @%:@define HAVE_SNMP_DRIVER 1
11117 DISPLAY_NETSNMP_DRIVER="net-snmp"
11125 # Check whether --enable-test was given.
11126 if test "${enable_test+set}" = set; then
11127 enableval=$enable_test; if test "$enableval" = "yes" ; then
11128 cat >>confdefs.h <<\_ACEOF
11129 @%:@define HAVE_TEST_DRIVER 1
11138 # Check whether --enable-pcnet was given.
11139 if test "${enable_pcnet+set}" = set; then
11140 enableval=$enable_pcnet; if test "$enableval" = "yes" ; then
11141 cat >>confdefs.h <<\_ACEOF
11142 @%:@define HAVE_PCNET_DRIVER 1
11145 PCNET_DRIVER="pcnet"
11149 cat >>confdefs.h <<\_ACEOF
11150 @%:@define HAVE_PCNET_DRIVER 1
11153 PCNET_DRIVER="pcnet"
11158 cat >>confdefs.h <<\_ACEOF
11159 @%:@define HAVE_NISSERVER 1
11162 cat >>confdefs.h <<\_ACEOF
11163 @%:@define HAVE_NISLIB 1
11170 # Check whether --with-nisip was given.
11171 if test "${with_nisip+set}" = set; then
11172 withval=$with_nisip; NISIP="$withval";
11178 CGIBIN="/etc/apcupsd"
11180 # Check whether --with-cgi-bin was given.
11181 if test "${with_cgi_bin+set}" = set; then
11182 withval=$with_cgi_bin; CGIBIN="$withval";
11190 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11191 if test -n "$ac_tool_prefix"; then
11192 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11193 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11197 echo $ECHO_N "(cached) $ECHO_C" >&6
11199 case $PKG_CONFIG in
11201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205 for as_dir in $PATH
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11223 if test -n "$PKG_CONFIG"; then
11224 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11225 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11227 { echo "$as_me:$LINENO: result: no" >&5
11228 echo "${ECHO_T}no" >&6; }
11233 if test -z "$ac_cv_path_PKG_CONFIG"; then
11234 ac_pt_PKG_CONFIG=$PKG_CONFIG
11235 # Extract the first word of "pkg-config", so it can be a program name with args.
11236 set dummy pkg-config; ac_word=$2
11237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11239 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 case $ac_pt_PKG_CONFIG in
11244 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248 for as_dir in $PATH
11251 test -z "$as_dir" && as_dir=.
11252 for ac_exec_ext in '' $ac_executable_extensions; do
11253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11254 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11266 if test -n "$ac_pt_PKG_CONFIG"; then
11267 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11268 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
11270 { echo "$as_me:$LINENO: result: no" >&5
11271 echo "${ECHO_T}no" >&6; }
11274 if test "x$ac_pt_PKG_CONFIG" = x; then
11277 case $cross_compiling:$ac_tool_warned in
11279 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11280 whose name does not start with the host triplet. If you think this
11281 configuration is useful to you, please write to autoconf@gnu.org." >&5
11282 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11283 whose name does not start with the host triplet. If you think this
11284 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11285 ac_tool_warned=yes ;;
11287 PKG_CONFIG=$ac_pt_PKG_CONFIG
11290 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11294 if test -n "$PKG_CONFIG"; then
11295 _pkg_min_version=0.9.0
11296 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11297 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
11298 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11299 { echo "$as_me:$LINENO: result: yes" >&5
11300 echo "${ECHO_T}yes" >&6; }
11302 { echo "$as_me:$LINENO: result: no" >&5
11303 echo "${ECHO_T}no" >&6; }
11308 # Check whether --enable-gapcmon was given.
11309 if test "${enable_gapcmon+set}" = set; then
11310 enableval=$enable_gapcmon; if test "$enableval" = "yes" ; then
11312 GAPCMON_ENABLED=yes
11316 { echo "$as_me:$LINENO: checking for GAPCMON" >&5
11317 echo $ECHO_N "checking for GAPCMON... $ECHO_C" >&6; }
11319 if test -n "$PKG_CONFIG"; then
11320 if test -n "$GAPCMON_CFLAGS"; then
11321 pkg_cv_GAPCMON_CFLAGS="$GAPCMON_CFLAGS"
11323 if test -n "$PKG_CONFIG" && \
11324 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0\"") >&5
11325 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0") 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; then
11329 pkg_cv_GAPCMON_CFLAGS=`$PKG_CONFIG --cflags-only-I "gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0" 2>/dev/null`
11337 if test -n "$PKG_CONFIG"; then
11338 if test -n "$GAPCMON_LIBS"; then
11339 pkg_cv_GAPCMON_LIBS="$GAPCMON_LIBS"
11341 if test -n "$PKG_CONFIG" && \
11342 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0\"") >&5
11343 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0") 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; then
11347 pkg_cv_GAPCMON_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0" 2>/dev/null`
11358 if test $pkg_failed = yes; then
11360 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11361 _pkg_short_errors_supported=yes
11363 _pkg_short_errors_supported=no
11365 if test $_pkg_short_errors_supported = yes; then
11366 GAPCMON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0"`
11368 GAPCMON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0"`
11370 # Put the nasty error message in config.log where it belongs
11371 echo "$GAPCMON_PKG_ERRORS" >&5
11373 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0) were not met:
11375 $GAPCMON_PKG_ERRORS
11377 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11378 installed software in a non-standard prefix.
11380 Alternatively, you may set the environment variables GAPCMON_CFLAGS
11381 and GAPCMON_LIBS to avoid the need to call pkg-config.
11382 See the pkg-config man page for more details.
11384 echo "$as_me: error: Package requirements (gtk+-2.0 >= 2.4.0 glib-2.0 gthread-2.0 gconf-2.0) were not met:
11386 $GAPCMON_PKG_ERRORS
11388 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11389 installed software in a non-standard prefix.
11391 Alternatively, you may set the environment variables GAPCMON_CFLAGS
11392 and GAPCMON_LIBS to avoid the need to call pkg-config.
11393 See the pkg-config man page for more details.
11395 { (exit 1); exit 1; }; }
11396 elif test $pkg_failed = untried; then
11397 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11398 is in your PATH or set the PKG_CONFIG environment variable to the full
11399 path to pkg-config.
11401 Alternatively, you may set the environment variables GAPCMON_CFLAGS
11402 and GAPCMON_LIBS to avoid the need to call pkg-config.
11403 See the pkg-config man page for more details.
11405 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11406 See \`config.log' for more details." >&5
11407 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11408 is in your PATH or set the PKG_CONFIG environment variable to the full
11409 path to pkg-config.
11411 Alternatively, you may set the environment variables GAPCMON_CFLAGS
11412 and GAPCMON_LIBS to avoid the need to call pkg-config.
11413 See the pkg-config man page for more details.
11415 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
11416 See \`config.log' for more details." >&2;}
11417 { (exit 1); exit 1; }; }
11419 GAPCMON_CFLAGS=$pkg_cv_GAPCMON_CFLAGS
11420 GAPCMON_LIBS=$pkg_cv_GAPCMON_LIBS
11421 { echo "$as_me:$LINENO: result: yes" >&5
11422 echo "${ECHO_T}yes" >&6; }
11425 GAPCMON_CFLAGS="$GAPCMON_CFLAGS -DVERSION=\\\"$VERSION\\\""
11432 APCAGENT_ENABLED=no
11433 # Check whether --enable-apcagent was given.
11434 if test "${enable_apcagent+set}" = set; then
11435 enableval=$enable_apcagent; if test "$enableval" = "yes" ; then
11439 APCAGENT_ENABLED=yes
11442 { { echo "$as_me:$LINENO: error: apcagent can only be built on Mac OS X" >&5
11443 echo "$as_me: error: apcagent can only be built on Mac OS X" >&2;}
11444 { (exit 1); exit 1; }; }
11452 APCAGENT_ENABLED=yes
11462 ac_cpp='$CPP $CPPFLAGS'
11463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11467 { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
11468 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
11470 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 ################################################################
11477 ac_cv_func_which_gethostbyname_r=unknown
11480 # ONE ARGUMENT (sanity check)
11483 # This should fail, as there is no variant of gethostbyname_r() that takes
11484 # a single argument. If it actually compiles, then we can assume that
11485 # netdb.h is not declaring the function, and the compiler is thereby
11486 # assuming an implicit prototype. In which case, we're out of luck.
11488 cat >conftest.$ac_ext <<_ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11499 char *name = "www.gnu.org";
11500 (void)gethostbyname_r(name) /* ; */
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11515 grep -v '^ *+' conftest.er1 >conftest.err
11517 cat conftest.err >&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && {
11520 test -z "$ac_c_werror_flag" ||
11521 test ! -s conftest.err
11522 } && test -s conftest.$ac_objext; then
11523 ac_cv_func_which_gethostbyname_r=no
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11538 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11551 char *name = "www.gnu.org";
11552 struct hostent ret, *retp;
11553 char buf@<:@1024@:>@;
11556 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
11562 rm -f conftest.$ac_objext
11563 if { (ac_try="$ac_compile"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_compile") 2>conftest.er1
11571 grep -v '^ *+' conftest.er1 >conftest.err
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } && {
11576 test -z "$ac_c_werror_flag" ||
11577 test ! -s conftest.err
11578 } && test -s conftest.$ac_objext; then
11579 ac_cv_func_which_gethostbyname_r=six
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11596 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
11598 cat >conftest.$ac_ext <<_ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11609 char *name = "www.gnu.org";
11610 struct hostent ret;
11611 char buf@<:@1024@:>@;
11614 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
11620 rm -f conftest.$ac_objext
11621 if { (ac_try="$ac_compile"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_compile") 2>conftest.er1
11629 grep -v '^ *+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } && {
11634 test -z "$ac_c_werror_flag" ||
11635 test ! -s conftest.err
11636 } && test -s conftest.$ac_objext; then
11637 ac_cv_func_which_gethostbyname_r=five
11639 echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 # (e.g. AIX, HP-UX, Tru64)
11654 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
11656 cat >conftest.$ac_ext <<_ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11667 char *name = "www.gnu.org";
11668 struct hostent ret;
11669 struct hostent_data data;
11670 (void)gethostbyname_r(name, &ret, &data) /* ; */
11676 rm -f conftest.$ac_objext
11677 if { (ac_try="$ac_compile"
11678 case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_compile") 2>conftest.er1
11685 grep -v '^ *+' conftest.er1 >conftest.err
11687 cat conftest.err >&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); } && {
11690 test -z "$ac_c_werror_flag" ||
11691 test ! -s conftest.err
11692 } && test -s conftest.$ac_objext; then
11693 ac_cv_func_which_gethostbyname_r=three
11695 echo "$as_me: failed program was:" >&5
11696 sed 's/^/| /' conftest.$ac_ext >&5
11701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 ################################################################
11710 case "$ac_cv_func_which_gethostbyname_r" in
11712 { echo "$as_me:$LINENO: result: three" >&5
11713 echo "${ECHO_T}three" >&6; }
11714 cat >>confdefs.h <<\_ACEOF
11715 @%:@define HAVE_FUNC_GETHOSTBYNAME_R_3 1
11721 { echo "$as_me:$LINENO: result: five" >&5
11722 echo "${ECHO_T}five" >&6; }
11723 cat >>confdefs.h <<\_ACEOF
11724 @%:@define HAVE_FUNC_GETHOSTBYNAME_R_5 1
11730 { echo "$as_me:$LINENO: result: six" >&5
11731 echo "${ECHO_T}six" >&6; }
11732 cat >>confdefs.h <<\_ACEOF
11733 @%:@define HAVE_FUNC_GETHOSTBYNAME_R_6 1
11739 { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
11740 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
11744 { echo "$as_me:$LINENO: result: can't tell" >&5
11745 echo "${ECHO_T}can't tell" >&6; }
11749 { { echo "$as_me:$LINENO: error: internal error" >&5
11750 echo "$as_me: error: internal error" >&2;}
11751 { (exit 1); exit 1; }; }
11756 ac_cpp='$CPP $CPPFLAGS'
11757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11763 case "$ac_cv_func_which_gethostbyname_r" in
11765 cat >>confdefs.h <<\_ACEOF
11766 @%:@define HAVE_FUNC_GETHOSTBYNAME_R_3 1
11769 GAPCMON_CFLAGS="$GAPCMON_CFLAGS -DHAVE_FUNC_GETHOSTBYNAME_R_3"
11773 cat >>confdefs.h <<\_ACEOF
11774 @%:@define HAVE_FUNC_GETHOSTBYNAME_R_5 1
11777 GAPCMON_CFLAGS="$GAPCMON_CFLAGS -DHAVE_FUNC_GETHOSTBYNAME_R_5"
11781 cat >>confdefs.h <<\_ACEOF
11782 @%:@define HAVE_FUNC_GETHOSTBYNAME_R_6 1
11785 GAPCMON_CFLAGS="$GAPCMON_CFLAGS -DHAVE_FUNC_GETHOSTBYNAME_R_6"
11789 cat >>confdefs.h <<\_ACEOF
11790 @%:@define HAVE_FUNC_GETHOSTBYNAME_R_0 1
11793 GAPCMON_CFLAGS="$GAPCMON_CFLAGS -DHAVE_FUNC_GETHOSTBYNAME_R_0"
11797 { { echo "$as_me:$LINENO: error: gethostbyname_r is required" >&5
11798 echo "$as_me: error: gethostbyname_r is required" >&2;}
11799 { (exit 1); exit 1; }; }
11803 if test -n "$GCC"; then
11804 # Starting with GCC 3.0, you must link C++ programs against either
11805 # libstdc++ (shared by default), or libsupc++ (always static). If
11806 # you care about binary portability between Linux distributions,
11807 # you need to either 1) build your own GCC with static C++ libraries
11808 # or 2) link using gcc and libsupc++. We choose the latter since
11809 # CUPS doesn't (currently) use any of the stdc++ library.
11811 # Previous versions of GCC do not have the reliance on the stdc++
11812 # or g++ libraries, so the extra supc++ library is not needed.
11813 { echo "$as_me:$LINENO: checking if libsupc++ is required" >&5
11814 echo $ECHO_N "checking if libsupc++ is required... $ECHO_C" >&6; }
11816 SUPC="`$CXX -print-file-name=libsupc++.a 2>/dev/null`"
11819 # Library not found, so this is and older GCC...
11820 { echo "$as_me:$LINENO: result: no" >&5
11821 echo "${ECHO_T}no" >&6; }
11824 # This is gcc 3.x, and it knows of libsupc++, so we need it
11825 LIBS="$LIBS -lsupc++"
11826 { echo "$as_me:$LINENO: result: yes" >&5
11827 echo "${ECHO_T}yes" >&6; }
11829 # See if this system has a broken libsupc++ that requires
11830 # a workaround (FreeBSD 5.x, 6.x)
11833 { echo "$as_me:$LINENO: checking if libsupc++ is missing __terminate_handler" >&5
11834 echo $ECHO_N "checking if libsupc++ is missing __terminate_handler... $ECHO_C" >&6; }
11835 nm -C --defined-only "$SUPC" 2>/dev/null | grep __terminate_handler > /dev/null
11836 if test $? -eq 0 ; then
11837 { echo "$as_me:$LINENO: result: no" >&5
11838 echo "${ECHO_T}no" >&6; }
11840 { echo "$as_me:$LINENO: result: yes -- will attempt workaround" >&5
11841 echo "${ECHO_T}yes -- will attempt workaround" >&6; }
11842 CPPFLAGS="$CPPFLAGS -DFREEBSD_SUPCPP_FIX"
11849 # See if GCC supports -fno-exceptions...
11850 { echo "$as_me:$LINENO: checking if GCC supports -fno-exceptions" >&5
11851 echo $ECHO_N "checking if GCC supports -fno-exceptions... $ECHO_C" >&6; }
11852 OLDCXXFLAGS="$CXXFLAGS"
11853 CXXFLAGS="$CXXFLAGS -fno-exceptions"
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11869 rm -f conftest.$ac_objext
11870 if { (ac_try="$ac_compile"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_compile") 2>conftest.er1
11878 grep -v '^ *+' conftest.er1 >conftest.err
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } && {
11883 test -z "$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 } && test -s conftest.$ac_objext; then
11886 { echo "$as_me:$LINENO: result: yes" >&5
11887 echo "${ECHO_T}yes" >&6; }
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11892 { echo "$as_me:$LINENO: result: no" >&5
11893 echo "${ECHO_T}no" >&6; }
11894 CXXFLAGS="$OLDCXXFLAGS"
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899 # See if GCC supports -fno-rtti...
11900 { echo "$as_me:$LINENO: checking if GCC supports -fno-rtti" >&5
11901 echo $ECHO_N "checking if GCC supports -fno-rtti... $ECHO_C" >&6; }
11902 OLDCXXFLAGS="$CXXFLAGS"
11903 CXXFLAGS="$CXXFLAGS -fno-rtti"
11904 cat >conftest.$ac_ext <<_ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11919 rm -f conftest.$ac_objext
11920 if { (ac_try="$ac_compile"
11921 case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_compile") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1 >conftest.err
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } && {
11933 test -z "$ac_c_werror_flag" ||
11934 test ! -s conftest.err
11935 } && test -s conftest.$ac_objext; then
11936 { echo "$as_me:$LINENO: result: yes" >&5
11937 echo "${ECHO_T}yes" >&6; }
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 { echo "$as_me:$LINENO: result: no" >&5
11943 echo "${ECHO_T}no" >&6; }
11944 CXXFLAGS="$OLDCXXFLAGS"
11947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 # Use -Wall on gcc only
11950 CFLAGS="$CFLAGS -Wall"
11951 CXXFLAGS="$CXXFLAGS -Wall"
11970 cat >>confdefs.h <<_ACEOF
11971 @%:@define SYSCONFDIR "$sysconfdir"
11979 if test -n "$ac_aux_dir"; then
11980 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
11982 if test x$MKINSTALLDIRS = x ; then
11983 MKINSTALLDIRS="\$(topdir)/autoconf/mkinstalldirs"
11996 for ac_func in wait waitpid wait3
11998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11999 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12001 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 cat >conftest.$ac_ext <<_ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12012 #define $ac_func innocuous_$ac_func
12014 /* System header to define __stub macros and hopefully few prototypes,
12015 which can conflict with char $ac_func (); below.
12016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017 <limits.h> exists even on freestanding compilers. */
12020 # include <limits.h>
12022 # include <assert.h>
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12034 /* The GNU C library defines this for functions which it implements
12035 to always fail with ENOSYS. Some functions are actually named
12036 something starting with __ and the normal name is an alias. */
12037 #if defined __stub_$ac_func || defined __stub___$ac_func
12044 return $ac_func ();
12049 rm -f conftest.$ac_objext conftest$ac_exeext
12050 if { (ac_try="$ac_link"
12051 case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12056 (eval "$ac_link") 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } && {
12063 test -z "$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 } && test -s conftest$ac_exeext &&
12066 $as_test_x conftest$ac_exeext; then
12067 eval "$as_ac_var=yes"
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12072 eval "$as_ac_var=no"
12075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12076 conftest$ac_exeext conftest.$ac_ext
12078 ac_res=`eval echo '${'$as_ac_var'}'`
12079 { echo "$as_me:$LINENO: result: $ac_res" >&5
12080 echo "${ECHO_T}$ac_res" >&6; }
12081 if test `eval echo '${'$as_ac_var'}'` = yes; then
12082 cat >>confdefs.h <<_ACEOF
12083 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12089 { echo "$as_me:$LINENO: checking for union wait" >&5
12090 echo $ECHO_N "checking for union wait... $ECHO_C" >&6; };
12091 cat >conftest.$ac_ext <<_ACEOF
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 #include <sys/types.h>
12098 #include <sys/wait.h>
12102 union wait status; int pid; pid = wait (&status);
12104 /* Some POSIXoid systems have both the new-style macros and the old
12105 union wait type, and they do not work together. If union wait
12106 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
12107 if (WEXITSTATUS (status) != 0) pid = -1;
12109 #ifdef HAVE_WAITPID
12110 /* Make sure union wait works with waitpid. */
12111 pid = waitpid (-1, &status, 0);
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (ac_try="$ac_link"
12120 case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_link") 2>conftest.er1
12127 grep -v '^ *+' conftest.er1 >conftest.err
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest$ac_exeext &&
12135 $as_test_x conftest$ac_exeext; then
12136 cat >>confdefs.h <<\_ACEOF
12137 @%:@define HAVE_UNION_WAIT 1
12139 { echo "$as_me:$LINENO: result: yes" >&5
12140 echo "${ECHO_T}yes" >&6; }
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 { echo "$as_me:$LINENO: result: no" >&5
12146 echo "${ECHO_T}no" >&6; }
12149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12150 conftest$ac_exeext conftest.$ac_ext
12152 if test "$ENABLE_CGI" = "yes"
12155 for ac_func in snprintf
12157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 cat >conftest.$ac_ext <<_ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12171 #define $ac_func innocuous_$ac_func
12173 /* System header to define __stub macros and hopefully few prototypes,
12174 which can conflict with char $ac_func (); below.
12175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12176 <limits.h> exists even on freestanding compilers. */
12179 # include <limits.h>
12181 # include <assert.h>
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12193 /* The GNU C library defines this for functions which it implements
12194 to always fail with ENOSYS. Some functions are actually named
12195 something starting with __ and the normal name is an alias. */
12196 #if defined __stub_$ac_func || defined __stub___$ac_func
12203 return $ac_func ();
12208 rm -f conftest.$ac_objext conftest$ac_exeext
12209 if { (ac_try="$ac_link"
12210 case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_link") 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } && {
12222 test -z "$ac_c_werror_flag" ||
12223 test ! -s conftest.err
12224 } && test -s conftest$ac_exeext &&
12225 $as_test_x conftest$ac_exeext; then
12226 eval "$as_ac_var=yes"
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 eval "$as_ac_var=no"
12234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12235 conftest$ac_exeext conftest.$ac_ext
12237 ac_res=`eval echo '${'$as_ac_var'}'`
12238 { echo "$as_me:$LINENO: result: $ac_res" >&5
12239 echo "${ECHO_T}$ac_res" >&6; }
12240 if test `eval echo '${'$as_ac_var'}'` = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12246 { { echo "$as_me:$LINENO: error: cannot find required function." >&5
12247 echo "$as_me: error: cannot find required function." >&2;}
12248 { (exit 1); exit 1; }; }
12252 echo 'Enabling cgi program support...'
12254 echo 'Disabling cgi support...'
12258 # now allow user to specify DISTNAME
12260 # Check whether --with-distname was given.
12261 if test "${with_distname+set}" = set; then
12262 withval=$with_distname; DISTNAME=$withval
12266 if test "x$DISTNAME" != "x"
12268 echo "distname set to $DISTNAME"
12269 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
12272 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
12275 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
12278 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
12281 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
12284 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
12287 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
12290 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
12293 elif test $HAVE_UNAME=yes -a x`uname -s` = xQNX
12296 elif test -f /etc/SuSE-release
12299 elif test -d /etc/SuSEconfig
12302 elif test -f /etc/mandrake-release
12305 elif test -f /etc/whitebox-release
12308 elif test -f /etc/redhat-release
12311 elif test -f /etc/yellowdog-release
12314 elif test -f /etc/debian_version
12317 elif test -f /etc/slackware-version
12320 elif test -f /etc/gentoo-release
12323 elif test -f /etc/engarde-version
12332 # Check whether --enable-install-distdir was given.
12333 if test "${enable_install_distdir+set}" = set; then
12334 enableval=$enable_install_distdir; if test "$enableval" = "no" ; then
12343 # Define the default UPS
12346 # Define the default Cable
12349 # set the default nologin directory
12352 # Find the default directory to put the root-mode PID file in
12353 for PIDDIR in "/var/run" "/etc/apcupsd"
12361 # Find the default directory to put the apcupsd.events and apcupsd.status files
12362 for LOGDIR in "/var/log" "/etc/apcupsd"
12370 # set the default serial port lock director
12371 for LOCKDIR in "/var/lock" "/var/spool/locks" "/etc/apcupsd"
12373 if test -d $LOCKDIR
12379 # set the default PWRFAILDIR
12380 PWRFAILDIR=${sysconfdir}
12382 # define the default serial port device
12383 SERIALDEV=/dev/ttyS0
12385 # define the default NIS (Network Information Server -- CGI) port
12389 # Now we set appropriate distribution specific
12390 # variables and defaults
12392 case "$DISTNAME" in
12394 PTHREAD_LFLAGS="-lpthread -lexc"
12396 SERIALDEV=/dev/tty01
12397 LOCKDIR=/var/spool/locks
12398 LOGDIR=/etc/apcupsd
12400 platforms/alpha/apcupsd \
12401 platforms/alpha/awkhaltprog"
12404 DISTVER=`uname -a |awk '{print $3}'`
12407 DISTVER=`cat /etc/debian_version`
12409 platforms/debian/apcupsd \
12410 platforms/debian/ups-monitor"
12413 DISTVER=`uname -a |awk '{print $3}'`
12414 SERIALDEV=/dev/cuaa0
12416 PWRFAILDIR=/var/run
12417 LOCKDIR=/var/spool/lock
12418 PTHREAD_CFLAGS="-pthread"
12420 LDFLAGS="$LDFLAGS -pthread"
12422 platforms/freebsd/apcupsd \
12423 platforms/freebsd/apccontrol"
12426 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
12428 platforms/gentoo/apcupsd \
12429 platforms/gentoo/halt"
12433 SERIALDEV=/dev/tty0p0
12434 PTHREAD_CFLAGS="-D_XOPEN_SOURCE_EXTENDED -D_REENTRANT"
12436 platforms/hpux/apcupsd \
12437 platforms/hpux/halt"
12440 DISTVER=`uname -a |awk '{print $3}'`
12441 SERIALDEV=/dev/cua01
12442 PTHREAD_CFLAGS="-pthread"
12444 LDFLAGS="$LDFLAGS -pthread"
12446 platforms/netbsd/apcupsd"
12449 DISTVER=`uname -a |awk '{print $3}'`
12450 SERIALDEV=/dev/cua01
12451 LOCKDIR=/var/spool/lock
12452 PTHREAD_CFLAGS="-pthread"
12454 LDFLAGS="$LDFLAGS -pthread"
12456 platforms/openbsd/apcupsd \
12457 platforms/openbsd/apccontrol"
12460 DISTVER=`cat /etc/mandrake-release | grep release | cut -f 5 -d ' '`
12462 platforms/mandrake/apcupsd \
12463 platforms/mandrake/apcupsd.spec \
12464 platforms/mandrake/awkhaltprog"
12467 if test -f /etc/whitebox-release ; then
12468 f=/etc/whitebox-release
12470 f=/etc/redhat-release
12472 if test `cat $f | grep release | cut -f 3 -d ' '`x = "Enterprise"x ; then
12473 DISTVER="Enterprise "`cat $f | grep release | cut -f 6 -d ' '`
12475 DISTVER=`cat /etc/redhat-release | grep release | cut -f 5 -d ' '`
12478 platforms/redhat/apcupsd \
12479 platforms/redhat/apcupsd.spec \
12480 platforms/redhat/awkhaltprog"
12483 if test `cat /etc/yellowdog-release | grep release | cut -f 3 -d ' '`x = "Enterprise"x ; then
12484 DISTVER="Enterprise "`cat /etc/yellowdog-release | grep release | cut -f 6 -d ' '`
12486 DISTVER=`cat /etc/yellowdog-release | grep release | cut -f 5 -d ' '`
12489 platforms/yellowdog/apcupsd \
12490 platforms/yellowdog/apcupsd.spec \
12491 platforms/yellowdog/awkhaltprog"
12494 DISTVER=`cat /etc/engarde-release | grep ersion | cut -f 5 -d ' '`
12496 platforms/engarde/apcupsd \
12497 platforms/engarde/apcupsd.spec \
12498 platforms/engarde/awkhaltprog"
12501 DISTVER=`cat /etc/slackware-version`
12503 platforms/slackware/apcupsd \
12504 platforms/slackware/rc6.patch"
12508 SERIALDEV=/dev/ttya
12511 LOCKDIR=/var/spool/locks
12512 LOGDIR=${sysconfdir}
12513 APCUPSD_MAIL=/usr/bin/mailx
12514 PTHREAD_CFLAGS="-D_POSIX_PTHREAD_SEMANTICS"
12516 platforms/sun/apcupsd \
12517 platforms/sun/rc0.solaris \
12518 platforms/sun/apccontrol"
12521 DISTVER=`cat /etc/SuSE-release |grep VERSION| cut -f 3 -d ' '`
12523 platforms/suse/apcupsd \
12524 platforms/suse/awkhaltprog"
12530 platforms/suse/apcupsd \
12531 platforms/suse/halt-setup.sh \
12532 platforms/suse/halt"
12542 platforms/darwin/apcupsd \
12543 platforms/darwin/apccontrol"
12548 SERIALDEV=/dev/ser1
12550 platforms/qnx/apcupsd \
12551 platforms/qnx/apccontrol"
12556 platforms/unknown/apcupsd \
12557 platforms/unknown/halt"
12560 { echo "$as_me:$LINENO: WARNING: Something went wrong. Unknown DISTNAME $DISTNAME" >&5
12561 echo "$as_me: WARNING: Something went wrong. Unknown DISTNAME $DISTNAME" >&2;}
12566 # Check whether --with-nologin was given.
12567 if test "${with_nologin+set}" = set; then
12568 withval=$with_nologin; nologdir="$withval";
12572 # now allow the user to specify the PID directory
12574 # Check whether --with-pid-dir was given.
12575 if test "${with_pid_dir+set}" = set; then
12576 withval=$with_pid_dir; PIDDIR="$withval";
12580 # now allow user to specify LOGDIR
12582 # Check whether --with-log-dir was given.
12583 if test "${with_log_dir+set}" = set; then
12584 withval=$with_log_dir; LOGDIR="$withval";
12588 # now allow user to specify LOCKDIR
12590 # Check whether --with-lock-dir was given.
12591 if test "${with_lock_dir+set}" = set; then
12592 withval=$with_lock_dir; LOCKDIR="$withval";
12596 # now allow user to specify PWRFAILDIR
12598 # Check whether --with-pwrfail-dir was given.
12599 if test "${with_pwrfail_dir+set}" = set; then
12600 withval=$with_pwrfail_dir; PWRFAILDIR="$withval";
12604 # now allow user to specify SERIALDEV
12606 # Check whether --with-serial-dev was given.
12607 if test "${with_serial_dev+set}" = set; then
12608 withval=$with_serial_dev; SERIALDEV="$withval";
12613 # Check whether --with-dev was given.
12614 if test "${with_dev+set}" = set; then
12615 withval=$with_dev; SERIALDEV="$withval";
12619 # now allow user to specify NISPORT
12621 # Check whether --with-nis-port was given.
12622 if test "${with_nis_port+set}" = set; then
12623 withval=$with_nis_port; NISPORT="$withval";
12627 # now allow user to specify UPSTYPE
12629 # Check whether --with-upstype was given.
12630 if test "${with_upstype+set}" = set; then
12631 withval=$with_upstype; UPSTYPE="$withval";
12635 # now allow user to specify UPSCABLE
12637 # Check whether --with-upscable was given.
12638 if test "${with_upscable+set}" = set; then
12639 withval=$with_upscable; UPSCABLE="$withval";
12646 cat >>confdefs.h <<_ACEOF
12647 @%:@define PIDDIR "$PIDDIR"
12651 cat >>confdefs.h <<_ACEOF
12652 @%:@define LOGDIR "$LOGDIR"
12656 cat >>confdefs.h <<_ACEOF
12657 @%:@define NOLOGDIR "$nologdir"
12661 cat >>confdefs.h <<_ACEOF
12662 @%:@define PWRFAILDIR "$PWRFAILDIR"
12668 cat >>confdefs.h <<_ACEOF
12669 @%:@define NISPORT $NISPORT
12676 cat >>confdefs.h <<_ACEOF
12677 @%:@define HOST "$HOST"
12684 if test "$CC" = "gcc"
12686 rm -f $srcdir/gcc.v
12687 $CC -v 2> $srcdir/gcc.v
12688 gccinclude=`cat $srcdir/gcc.v|grep specs|awk '{print $4}'| \
12689 sed -e 's|specs|include|g'`
12690 echo "gcc private include directory found."
12691 rm -f $srcdir/gcc.v
12695 autoconf/variables.mak \
12696 platforms/apccontrol \
12697 platforms/etc/changeme \
12698 platforms/etc/commfailure \
12699 platforms/etc/commok \
12700 platforms/etc/offbattery \
12701 platforms/etc/onbattery \
12702 platforms/etc/apcupsd.conf \
12703 examples/safe.apccontrol \
12704 src/win32/Makefile \
12707 if test "$USB_TYPE"x = "generic"x
12709 GENERATE_FILES="$GENERATE_FILES \
12710 src/drivers/usb/generic/libusb.h"
12713 if test "$ENABLE_CGI" = "yes"
12715 GENERATE_FILES="$GENERATE_FILES src/cgi/cgiconfig.h"
12718 ac_config_files="$ac_config_files ${GENERATE_FILES}"
12720 cat >confcache <<\_ACEOF
12721 # This file is a shell script that caches the results of configure
12722 # tests run on this system so they can be shared between configure
12723 # scripts and configure runs, see configure's option --config-cache.
12724 # It is not useful on other systems. If it contains results you don't
12725 # want to keep, you may remove or edit it.
12727 # config.status only pays attention to the cache file if you give it
12728 # the --recheck option to rerun configure.
12730 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12731 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12732 # following values.
12736 # The following way of writing the cache mishandles newlines in values,
12737 # but we know of no workaround that is simple, portable, and efficient.
12738 # So, we kill variables containing newlines.
12739 # Ultrix sh set writes to stderr and can't be redirected directly,
12740 # and sets the high bit in the cache file unless we assign to the vars.
12742 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12743 eval ac_val=\$$ac_var
12747 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12748 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12751 _ | IFS | as_nl) ;; #(
12752 *) $as_unset $ac_var ;;
12758 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12759 *${as_nl}ac_space=\ *)
12760 # `set' does not quote correctly, so add quotes (double-quote
12761 # substitution turns \\\\ into \\, and sed turns \\ into \).
12764 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12767 # `set' quotes correctly as required by POSIX, so do not add quotes.
12768 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12777 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12779 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12781 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12782 if test -w "$cache_file"; then
12783 test "x$cache_file" != "x/dev/null" &&
12784 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12785 echo "$as_me: updating cache $cache_file" >&6;}
12786 cat confcache >$cache_file
12788 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12789 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12794 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12795 # Let make expand exec_prefix.
12796 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12798 DEFS=-DHAVE_CONFIG_H
12802 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
12803 # 1. Remove the extension, and $U if already installed.
12804 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12805 ac_i=`echo "$ac_i" | sed "$ac_script"`
12806 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12807 # will be set to the directory where LIBOBJS objects are built.
12808 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12809 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12811 LIB@&t@OBJS=$ac_libobjs
12813 LTLIBOBJS=$ac_ltlibobjs
12817 : ${CONFIG_STATUS=./config.status}
12818 ac_clean_files_save=$ac_clean_files
12819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12820 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12821 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12822 cat >$CONFIG_STATUS <<_ACEOF
12824 # Generated by $as_me.
12825 # Run this file to recreate the current configuration.
12826 # Compiler output produced by configure, useful for debugging
12827 # configure, is in config.log if it exists.
12830 ac_cs_recheck=false
12832 SHELL=\${CONFIG_SHELL-$SHELL}
12835 cat >>$CONFIG_STATUS <<\_ACEOF
12836 ## --------------------- ##
12837 ## M4sh Initialization. ##
12838 ## --------------------- ##
12840 # Be more Bourne compatible
12841 DUALCASE=1; export DUALCASE # for MKS sh
12842 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12845 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12846 # is contrary to our usage. Disable this feature.
12847 alias -g '${1+"$@"}'='"$@"'
12848 setopt NO_GLOB_SUBST
12850 case `(set -o) 2>/dev/null` in
12851 *posix*) set -o posix ;;
12860 # Avoid depending upon Character Ranges.
12861 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12862 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12863 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12864 as_cr_digits='0123456789'
12865 as_cr_alnum=$as_cr_Letters$as_cr_digits
12867 # The user is always right.
12868 if test "${PATH_SEPARATOR+set}" != set; then
12869 echo "#! /bin/sh" >conf$$.sh
12870 echo "exit 0" >>conf$$.sh
12872 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12880 # Support unset when possible.
12881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12889 # We need space, tab and new line, in precisely that order. Quoting is
12890 # there to prevent editors from complaining about space-tab.
12891 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12892 # splitting by setting IFS to empty value.)
12897 # Find who we are. Look in the path if we contain no directory separator.
12899 *[\\/]* ) as_myself=$0 ;;
12900 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12904 test -z "$as_dir" && as_dir=.
12905 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12911 # We did not find ourselves, most probably we were run as `sh COMMAND'
12912 # in which case we are not to be found in the path.
12913 if test "x$as_myself" = x; then
12916 if test ! -f "$as_myself"; then
12917 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12918 { (exit 1); exit 1; }
12921 # Work around bugs in pre-3.0 UWIN ksh.
12922 for as_var in ENV MAIL MAILPATH
12923 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12931 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12932 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12933 LC_TELEPHONE LC_TIME
12935 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12936 eval $as_var=C; export $as_var
12938 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12942 # Required to use basename.
12943 if expr a : '\(a\)' >/dev/null 2>&1 &&
12944 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12950 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12951 as_basename=basename
12957 # Name of the executable.
12958 as_me=`$as_basename -- "$0" ||
12959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12960 X"$0" : 'X\(//\)$' \| \
12961 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12963 sed '/^.*\/\([^/][^/]*\)\/*$/{
12982 as_lineno_1=$LINENO
12983 as_lineno_2=$LINENO
12984 test "x$as_lineno_1" != "x$as_lineno_2" &&
12985 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12987 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12988 # uniformly replaced by the line number. The first 'sed' inserts a
12989 # line-number line after each line using $LINENO; the second 'sed'
12990 # does the real work. The second script uses 'N' to pair each
12991 # line-number line with the line containing $LINENO, and appends
12992 # trailing '-' during substitution so that $LINENO is not a special
12993 # case at line end.
12994 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12995 # scripts with optimization help from Paolo Bonzini. Blame Lee
12996 # E. McMahon (1931-1989) for sed's syntax. :-)
13008 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13011 ' >$as_me.lineno &&
13012 chmod +x "$as_me.lineno" ||
13013 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13014 { (exit 1); exit 1; }; }
13016 # Don't try to exec as it changes $[0], causing all sort of problems
13017 # (the dirname of $[0] is not the place where we might find the
13018 # original and so on. Autoconf is especially sensitive to this).
13019 . "./$as_me.lineno"
13020 # Exit status is that of the last command.
13025 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13031 ECHO_C= ECHO_N= ECHO_T=
13032 case `echo -n x` in
13034 case `echo 'x\c'` in
13035 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13042 if expr a : '\(a\)' >/dev/null 2>&1 &&
13043 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13049 rm -f conf$$ conf$$.exe conf$$.file
13050 if test -d conf$$.dir; then
13051 rm -f conf$$.dir/conf$$.file
13057 if ln -s conf$$.file conf$$ 2>/dev/null; then
13059 # ... but there are two gotchas:
13060 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13061 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13062 # In both cases, we have to default to `cp -p'.
13063 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13065 elif ln conf$$.file conf$$ 2>/dev/null; then
13070 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13071 rmdir conf$$.dir 2>/dev/null
13073 if mkdir -p . 2>/dev/null; then
13076 test -d ./-p && rmdir ./-p
13080 if test -x / >/dev/null 2>&1; then
13081 as_test_x='test -x'
13083 if ls -dL / >/dev/null 2>&1; then
13090 if test -d "$1"; then
13096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13097 ???[sx]*):;;*)false;;esac;fi
13101 as_executable_p=$as_test_x
13103 # Sed expression to map a string onto a valid CPP name.
13104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13106 # Sed expression to map a string onto a valid variable name.
13107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13112 # Save the log message, to keep $[0] and so on meaningful, and to
13113 # report actual input values of CONFIG_FILES etc. instead of their
13114 # values after options handling.
13116 This file was extended by $as_me, which was
13117 generated by GNU Autoconf 2.61. Invocation command line was
13119 CONFIG_FILES = $CONFIG_FILES
13120 CONFIG_HEADERS = $CONFIG_HEADERS
13121 CONFIG_LINKS = $CONFIG_LINKS
13122 CONFIG_COMMANDS = $CONFIG_COMMANDS
13125 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13130 cat >>$CONFIG_STATUS <<_ACEOF
13131 # Files that config.status was made for.
13132 config_files="$ac_config_files"
13133 config_headers="$ac_config_headers"
13137 cat >>$CONFIG_STATUS <<\_ACEOF
13139 \`$as_me' instantiates files from templates according to the
13140 current configuration.
13142 Usage: $0 [OPTIONS] [FILE]...
13144 -h, --help print this help, then exit
13145 -V, --version print version number and configuration settings, then exit
13146 -q, --quiet do not print progress messages
13147 -d, --debug don't remove temporary files
13148 --recheck update $as_me by reconfiguring in the same conditions
13149 --file=FILE[:TEMPLATE]
13150 instantiate the configuration file FILE
13151 --header=FILE[:TEMPLATE]
13152 instantiate the configuration header FILE
13154 Configuration files:
13157 Configuration headers:
13160 Report bugs to <bug-autoconf@gnu.org>."
13163 cat >>$CONFIG_STATUS <<_ACEOF
13166 configured by $0, generated by GNU Autoconf 2.61,
13167 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13169 Copyright (C) 2006 Free Software Foundation, Inc.
13170 This config.status script is free software; the Free Software Foundation
13171 gives unlimited permission to copy, distribute and modify it."
13178 cat >>$CONFIG_STATUS <<\_ACEOF
13179 # If no file are specified by the user, then we need to provide default
13180 # value. By we need to know if files were specified by the user.
13186 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13187 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13198 # Handling of the options.
13199 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13201 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13202 echo "$ac_cs_version"; exit ;;
13203 --debug | --debu | --deb | --de | --d | -d )
13205 --file | --fil | --fi | --f )
13207 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13208 ac_need_defaults=false;;
13209 --header | --heade | --head | --hea )
13211 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13212 ac_need_defaults=false;;
13214 # Conflict between --help and --header
13215 { echo "$as_me: error: ambiguous option: $1
13216 Try \`$0 --help' for more information." >&2
13217 { (exit 1); exit 1; }; };;
13218 --help | --hel | -h )
13219 echo "$ac_cs_usage"; exit ;;
13220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13224 # This is an error.
13225 -*) { echo "$as_me: error: unrecognized option: $1
13226 Try \`$0 --help' for more information." >&2
13227 { (exit 1); exit 1; }; } ;;
13229 *) ac_config_targets="$ac_config_targets $1"
13230 ac_need_defaults=false ;;
13236 ac_configure_extra_args=
13238 if $ac_cs_silent; then
13240 ac_configure_extra_args="$ac_configure_extra_args --silent"
13244 cat >>$CONFIG_STATUS <<_ACEOF
13245 if \$ac_cs_recheck; then
13246 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13247 CONFIG_SHELL=$SHELL
13248 export CONFIG_SHELL
13249 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13253 cat >>$CONFIG_STATUS <<\_ACEOF
13257 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13258 @%:@@%:@ Running $as_me. @%:@@%:@
13264 cat >>$CONFIG_STATUS <<_ACEOF
13267 cat >>$CONFIG_STATUS <<\_ACEOF
13269 # Handling of arguments.
13270 for ac_config_target in $ac_config_targets
13272 case $ac_config_target in
13273 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h:autoconf/config.h.in" ;;
13274 "${GENERATE_FILES}") CONFIG_FILES="$CONFIG_FILES ${GENERATE_FILES}" ;;
13276 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13277 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13278 { (exit 1); exit 1; }; };;
13283 # If the user did not use the arguments to specify the items to instantiate,
13284 # then the envvar interface is used. Set only those that are not.
13285 # We use the long form for the default assignment because of an extremely
13286 # bizarre bug on SunOS 4.1.3.
13287 if $ac_need_defaults; then
13288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13292 # Have a temporary directory for convenience. Make it in the build tree
13293 # simply because there is no reason against having it here, and in addition,
13294 # creating and moving files from /tmp can sometimes cause problems.
13295 # Hook for its removal unless debugging.
13296 # Note that there is a small window in which the directory will not be cleaned:
13297 # after its creation but before its name has been assigned to `$tmp'.
13301 trap 'exit_status=$?
13302 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13304 trap '{ (exit 1); exit 1; }' 1 2 13 15
13306 # Create a (secure) tmp directory for tmp files.
13309 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13310 test -n "$tmp" && test -d "$tmp"
13313 tmp=./conf$$-$RANDOM
13314 (umask 077 && mkdir "$tmp")
13317 echo "$me: cannot create a temporary directory in ." >&2
13318 { (exit 1); exit 1; }
13322 # Set up the sed scripts for CONFIG_FILES section.
13325 # No need to generate the scripts if there are no CONFIG_FILES.
13326 # This happens for instance when ./config.status config.h
13327 if test -n "$CONFIG_FILES"; then
13334 for ac_last_try in false false false false false :; do
13335 cat >conf$$subs.sed <<_ACEOF
13336 SHELL!$SHELL$ac_delim
13337 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13338 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13339 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13340 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13341 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13342 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13343 exec_prefix!$exec_prefix$ac_delim
13344 prefix!$prefix$ac_delim
13345 program_transform_name!$program_transform_name$ac_delim
13346 bindir!$bindir$ac_delim
13347 sbindir!$sbindir$ac_delim
13348 libexecdir!$libexecdir$ac_delim
13349 datarootdir!$datarootdir$ac_delim
13350 datadir!$datadir$ac_delim
13351 sysconfdir!$sysconfdir$ac_delim
13352 sharedstatedir!$sharedstatedir$ac_delim
13353 localstatedir!$localstatedir$ac_delim
13354 includedir!$includedir$ac_delim
13355 oldincludedir!$oldincludedir$ac_delim
13356 docdir!$docdir$ac_delim
13357 infodir!$infodir$ac_delim
13358 htmldir!$htmldir$ac_delim
13359 dvidir!$dvidir$ac_delim
13360 pdfdir!$pdfdir$ac_delim
13361 psdir!$psdir$ac_delim
13362 libdir!$libdir$ac_delim
13363 localedir!$localedir$ac_delim
13364 mandir!$mandir$ac_delim
13365 DEFS!$DEFS$ac_delim
13366 ECHO_C!$ECHO_C$ac_delim
13367 ECHO_N!$ECHO_N$ac_delim
13368 ECHO_T!$ECHO_T$ac_delim
13369 LIBS!$LIBS$ac_delim
13370 build_alias!$build_alias$ac_delim
13371 host_alias!$host_alias$ac_delim
13372 target_alias!$target_alias$ac_delim
13373 ABSSRCDIR!$ABSSRCDIR$ac_delim
13374 topdir!$topdir$ac_delim
13375 TOP_DIR!$TOP_DIR$ac_delim
13376 VERSION!$VERSION$ac_delim
13377 DATE!$DATE$ac_delim
13378 TRUEPRG!$TRUEPRG$ac_delim
13379 FALSEPRG!$FALSEPRG$ac_delim
13380 build!$build$ac_delim
13381 build_cpu!$build_cpu$ac_delim
13382 build_vendor!$build_vendor$ac_delim
13383 build_os!$build_os$ac_delim
13384 host!$host$ac_delim
13385 host_cpu!$host_cpu$ac_delim
13386 host_vendor!$host_vendor$ac_delim
13387 host_os!$host_os$ac_delim
13389 CXXFLAGS!$CXXFLAGS$ac_delim
13390 LDFLAGS!$LDFLAGS$ac_delim
13391 CPPFLAGS!$CPPFLAGS$ac_delim
13392 ac_ct_CXX!$ac_ct_CXX$ac_delim
13393 EXEEXT!$EXEEXT$ac_delim
13394 OBJEXT!$OBJEXT$ac_delim
13396 CFLAGS!$CFLAGS$ac_delim
13397 ac_ct_CC!$ac_ct_CC$ac_delim
13399 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13400 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13401 INSTALL_DATA!$INSTALL_DATA$ac_delim
13403 HAVE_GCC_TRUE!$HAVE_GCC_TRUE$ac_delim
13404 HAVE_GCC_FALSE!$HAVE_GCC_FALSE$ac_delim
13405 DEBUG!$DEBUG$ac_delim
13406 DRVLIBS!$DRVLIBS$ac_delim
13407 APCDRVLIBS!$APCDRVLIBS$ac_delim
13408 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
13409 PTHREAD_LFLAGS!$PTHREAD_LFLAGS$ac_delim
13410 APCACCESS!$APCACCESS$ac_delim
13411 SMTP!$SMTP$ac_delim
13412 APCTEST!$APCTEST$ac_delim
13413 SHUTDOWN!$SHUTDOWN$ac_delim
13414 APCUPSD_MAIL!$APCUPSD_MAIL$ac_delim
13415 WALL!$WALL$ac_delim
13416 SCRIPTSHELL!$SCRIPTSHELL$ac_delim
13417 RANLIB!$RANLIB$ac_delim
13420 ECHO!$ECHO$ac_delim
13425 RST2HTML!$RST2HTML$ac_delim
13426 RST2PDF!$RST2PDF$ac_delim
13427 GREP!$GREP$ac_delim
13428 EGREP!$EGREP$ac_delim
13429 XMKMF!$XMKMF$ac_delim
13430 X_CFLAGS!$X_CFLAGS$ac_delim
13431 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
13432 X_LIBS!$X_LIBS$ac_delim
13435 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13437 elif $ac_last_try; then
13438 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13439 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13440 { (exit 1); exit 1; }; }
13442 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13446 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13447 if test -n "$ac_eof"; then
13448 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13449 ac_eof=`expr $ac_eof + 1`
13452 cat >>$CONFIG_STATUS <<_ACEOF
13453 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13454 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13457 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13458 s/^/s,@/; s/!/@,|#_!!_#|/
13461 s/'"$ac_delim"'$/,g/; t
13463 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13464 ' >>$CONFIG_STATUS <conf$$subs.sed
13465 rm -f conf$$subs.sed
13466 cat >>$CONFIG_STATUS <<_ACEOF
13472 for ac_last_try in false false false false false :; do
13473 cat >conf$$subs.sed <<_ACEOF
13474 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
13475 HALPOLICYDIR!$HALPOLICYDIR$ac_delim
13476 GDHEAD!$GDHEAD$ac_delim
13477 APCSMART_DRIVER!$APCSMART_DRIVER$ac_delim
13478 DUMB_DRIVER!$DUMB_DRIVER$ac_delim
13479 LIBUSBHID!$LIBUSBHID$ac_delim
13480 LIBUSBHIDINC!$LIBUSBHIDINC$ac_delim
13481 usbcfg!$usbcfg$ac_delim
13482 LIBUSBH!$LIBUSBH$ac_delim
13483 USB_DRIVER!$USB_DRIVER$ac_delim
13484 USB_TYPE!$USB_TYPE$ac_delim
13485 NET_DRIVER!$NET_DRIVER$ac_delim
13486 SNMPLITE_DRIVER!$SNMPLITE_DRIVER$ac_delim
13487 SNMP_DRIVER!$SNMP_DRIVER$ac_delim
13488 TEST_DRIVER!$TEST_DRIVER$ac_delim
13489 PCNET_DRIVER!$PCNET_DRIVER$ac_delim
13490 NISIP!$NISIP$ac_delim
13491 PKG_CONFIG!$PKG_CONFIG$ac_delim
13492 GAPCMON_CFLAGS!$GAPCMON_CFLAGS$ac_delim
13493 GAPCMON_LIBS!$GAPCMON_LIBS$ac_delim
13494 GAPCMON!$GAPCMON$ac_delim
13495 APCAGENT!$APCAGENT$ac_delim
13496 POWERFLUTE!$POWERFLUTE$ac_delim
13497 POWERLIBS!$POWERLIBS$ac_delim
13498 MAKE!$MAKE$ac_delim
13501 GD_LIBS!$GD_LIBS$ac_delim
13502 CGIBIN!$CGIBIN$ac_delim
13503 SYSCONFDIR!$SYSCONFDIR$ac_delim
13504 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
13505 EXTRADEFS!$EXTRADEFS$ac_delim
13506 LIBEXTRAOBJ!$LIBEXTRAOBJ$ac_delim
13507 EXTRAOBJ!$EXTRAOBJ$ac_delim
13508 DISTDIR!$DISTDIR$ac_delim
13509 DISTNAME!$DISTNAME$ac_delim
13510 DISTVER!$DISTVER$ac_delim
13511 SERIALDEV!$SERIALDEV$ac_delim
13512 PIDDIR!$PIDDIR$ac_delim
13513 LOGDIR!$LOGDIR$ac_delim
13514 nologdir!$nologdir$ac_delim
13515 PWRFAILDIR!$PWRFAILDIR$ac_delim
13516 LOCKDIR!$LOCKDIR$ac_delim
13517 NISPORT!$NISPORT$ac_delim
13518 UPSTYPE!$UPSTYPE$ac_delim
13519 UPSCABLE!$UPSCABLE$ac_delim
13520 HOST!$HOST$ac_delim
13521 LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
13522 LTLIBOBJS!$LTLIBOBJS$ac_delim
13525 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 49; then
13527 elif $ac_last_try; then
13528 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13529 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13530 { (exit 1); exit 1; }; }
13532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13536 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13537 if test -n "$ac_eof"; then
13538 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13539 ac_eof=`expr $ac_eof + 1`
13542 cat >>$CONFIG_STATUS <<_ACEOF
13543 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13547 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13548 s/^/s,@/; s/!/@,|#_!!_#|/
13551 s/'"$ac_delim"'$/,g/; t
13553 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13554 ' >>$CONFIG_STATUS <conf$$subs.sed
13555 rm -f conf$$subs.sed
13556 cat >>$CONFIG_STATUS <<_ACEOF
13563 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13564 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13565 # trailing colons and then remove the whole line if VPATH becomes empty
13566 # (actually we leave an empty line to preserve line numbers).
13567 if test "x$srcdir" = x.; then
13568 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13569 s/:*\$(srcdir):*/:/
13570 s/:*\${srcdir}:*/:/
13572 s/^\([^=]*=[ ]*\):*/\1/
13578 cat >>$CONFIG_STATUS <<\_ACEOF
13579 fi # test -n "$CONFIG_FILES"
13582 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
13585 :[FHLC]) ac_mode=$ac_tag; continue;;
13587 case $ac_mode$ac_tag in
13589 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13590 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13591 { (exit 1); exit 1; }; };;
13592 :[FH]-) ac_tag=-:-;;
13593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13610 -) ac_f="$tmp/stdin";;
13611 *) # Look for the file first in the build tree, then in the source tree
13612 # (if the path is not absolute). The absolute path cannot be DOS-style,
13613 # because $ac_f cannot contain `:'.
13617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13619 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13620 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13621 { (exit 1); exit 1; }; };;
13623 ac_file_inputs="$ac_file_inputs $ac_f"
13626 # Let's still pretend it is `configure' which instantiates (i.e., don't
13627 # use $as_me), people would be surprised to read:
13628 # /* config.h. Generated by config.status. */
13629 configure_input="Generated from "`IFS=:
13630 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13631 if test x"$ac_file" != x-; then
13632 configure_input="$ac_file. $configure_input"
13633 { echo "$as_me:$LINENO: creating $ac_file" >&5
13634 echo "$as_me: creating $ac_file" >&6;}
13638 *:-:* | *:-) cat >"$tmp/stdin";;
13643 ac_dir=`$as_dirname -- "$ac_file" ||
13644 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13645 X"$ac_file" : 'X\(//\)[^/]' \| \
13646 X"$ac_file" : 'X\(//\)$' \| \
13647 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13653 /^X\(\/\/\)[^/].*/{
13668 -*) as_dir=./$as_dir;;
13670 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13674 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13675 *) as_qdir=$as_dir;;
13677 as_dirs="'$as_qdir' $as_dirs"
13678 as_dir=`$as_dirname -- "$as_dir" ||
13679 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13680 X"$as_dir" : 'X\(//\)[^/]' \| \
13681 X"$as_dir" : 'X\(//\)$' \| \
13682 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13688 /^X\(\/\/\)[^/].*/{
13701 test -d "$as_dir" && break
13703 test -z "$as_dirs" || eval "mkdir $as_dirs"
13704 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13705 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13706 { (exit 1); exit 1; }; }; }
13710 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13712 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13713 # A ".." for each directory in $ac_dir_suffix.
13714 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13715 case $ac_top_builddir_sub in
13716 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13717 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13720 ac_abs_top_builddir=$ac_pwd
13721 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13722 # for backward compatibility:
13723 ac_top_builddir=$ac_top_build_prefix
13726 .) # We are building in place.
13728 ac_top_srcdir=$ac_top_builddir_sub
13729 ac_abs_top_srcdir=$ac_pwd ;;
13730 [\\/]* | ?:[\\/]* ) # Absolute name.
13731 ac_srcdir=$srcdir$ac_dir_suffix;
13732 ac_top_srcdir=$srcdir
13733 ac_abs_top_srcdir=$srcdir ;;
13734 *) # Relative name.
13735 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13736 ac_top_srcdir=$ac_top_build_prefix$srcdir
13737 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13739 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13749 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13750 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13754 cat >>$CONFIG_STATUS <<\_ACEOF
13755 # If the template does not know about datarootdir, expand it.
13756 # FIXME: This hack should be removed a few years after 2.60.
13757 ac_datarootdir_hack=; ac_datarootdir_seen=
13759 case `sed -n '/datarootdir/ {
13768 ' $ac_file_inputs` in
13769 *datarootdir*) ac_datarootdir_seen=yes;;
13770 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13771 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13772 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13774 cat >>$CONFIG_STATUS <<_ACEOF
13775 ac_datarootdir_hack='
13776 s&@datadir@&$datadir&g
13777 s&@docdir@&$docdir&g
13778 s&@infodir@&$infodir&g
13779 s&@localedir@&$localedir&g
13780 s&@mandir@&$mandir&g
13781 s&\\\${datarootdir}&$datarootdir&g' ;;
13785 # Neutralize VPATH when `$srcdir' = `.'.
13786 # Shell code in configure.ac might set extrasub.
13787 # FIXME: do we really want to maintain this feature?
13788 cat >>$CONFIG_STATUS <<_ACEOF
13792 cat >>$CONFIG_STATUS <<\_ACEOF
13794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13795 s&@configure_input@&$configure_input&;t t
13796 s&@top_builddir@&$ac_top_builddir_sub&;t t
13797 s&@srcdir@&$ac_srcdir&;t t
13798 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13799 s&@top_srcdir@&$ac_top_srcdir&;t t
13800 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13801 s&@builddir@&$ac_builddir&;t t
13802 s&@abs_builddir@&$ac_abs_builddir&;t t
13803 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13804 s&@INSTALL@&$ac_INSTALL&;t t
13805 $ac_datarootdir_hack
13806 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13808 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13809 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13810 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13811 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13812 which seems to be undefined. Please make sure it is defined." >&5
13813 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13814 which seems to be undefined. Please make sure it is defined." >&2;}
13818 -) cat "$tmp/out"; rm -f "$tmp/out";;
13819 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13828 # Transform confdefs.h into a sed script `conftest.defines', that
13829 # substitutes the proper values into config.h.in to produce config.h.
13830 rm -f conftest.defines conftest.tail
13831 # First, append a space to every undef/define line, to ease matching.
13832 echo 's/$/ /' >conftest.defines
13833 # Then, protect against being on the right side of a sed subst, or in
13834 # an unquoted here document, in config.status. If some macros were
13835 # called several times there might be several #defines for the same
13836 # symbol, which is useless. But do not sort them, since the last
13837 # AC_DEFINE must be honored.
13838 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13839 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13840 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13841 # PARAMS is the parameter list in the macro definition--in most cases, it's
13842 # just an empty string.
13843 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13844 ac_dB='\\)[ (].*,\\1define\\2'
13852 s/^[ ]*#[ ]*define[ ][ ]*//
13857 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13858 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13859 ' >>conftest.defines
13861 # Remove the space that was appended to ease matching.
13862 # Then replace #undef with comments. This is necessary, for
13863 # example, in the case of _POSIX_SOURCE, which is predefined and required
13864 # on some systems where configure will not decide to define it.
13865 # (The regexp can be short, since the line contains either #define or #undef.)
13867 s,^[ #]*u.*,/* & */,' >>conftest.defines
13869 # Break up conftest.defines:
13870 ac_max_sed_lines=50
13872 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13873 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13874 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13876 ac_in='$ac_file_inputs'
13877 ac_out='"$tmp/out1"'
13878 ac_nxt='"$tmp/out2"'
13882 # Write a here document:
13883 cat >>$CONFIG_STATUS <<_ACEOF
13884 # First, check the format of the line:
13885 cat >"\$tmp/defines.sed" <<\\CEOF
13886 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13887 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13891 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13893 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13894 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13895 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13896 grep . conftest.tail >/dev/null || break
13897 rm -f conftest.defines
13898 mv conftest.tail conftest.defines
13900 rm -f conftest.defines conftest.tail
13902 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13903 cat >>$CONFIG_STATUS <<\_ACEOF
13904 if test x"$ac_file" != x-; then
13905 echo "/* $configure_input */" >"$tmp/config.h"
13906 cat "$ac_result" >>"$tmp/config.h"
13907 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13908 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13909 echo "$as_me: $ac_file is unchanged" >&6;}
13912 mv "$tmp/config.h" $ac_file
13915 echo "/* $configure_input */"
13927 { (exit 0); exit 0; }
13929 chmod +x $CONFIG_STATUS
13930 ac_clean_files=$ac_clean_files_save
13933 # configure is writing to config.log, and then calls config.status.
13934 # config.status does its own redirection, appending to config.log.
13935 # Unfortunately, on DOS this fails, as config.log is still kept open
13936 # by configure, so config.status won't be able to write to it; its
13937 # output is simply discarded. So we exec the FD to /dev/null,
13938 # effectively closing config.log, so it can be properly (re)opened and
13939 # appended to by config.status. When coming back to configure, we
13940 # need to make the FD available again.
13941 if test "$no_create" != yes; then
13943 ac_config_status_args=
13944 test "$silent" = yes &&
13945 ac_config_status_args="$ac_config_status_args --quiet"
13947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13950 # would make configure fail if this is the last instruction.
13951 $ac_cs_success || { (exit 1); exit 1; }
13955 chmod 755 examples/safe.apccontrol
13959 # A whole lot of hand springs to get the compiler version.
13960 # This is because gcc changed the output in version 3.0
13962 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
13963 if test "x${CXXVERSION}" = "x" ; then
13964 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
13967 eval srcdir=${srcdir}
13968 eval sbindir=${sbindir}
13969 eval sysconfdir=${sysconfdir}
13970 eval mandir=${mandir}
13974 Configuration on `date`:
13976 Host: $host -- ${DISTNAME} ${DISTVER}
13977 Apcupsd version: ${VERSION} (${DATE})
13978 Source code location: ${srcdir}
13979 Install binaries: ${sbindir}
13980 Install config files: ${sysconfdir}
13981 Install man files: ${mandir}
13982 Nologin file in: ${nologdir}
13983 PID directory: ${PIDDIR}
13984 LOG dir (events, status) ${LOGDIR}
13985 LOCK dir (for serial port) ${LOCKDIR}
13986 Power Fail dir ${PWRFAILDIR}
13987 Compiler: ${CXX} ${CXXVERSION}
13988 Compiler flags: ${CPPFLAGS} ${CXXFLAGS} ${PTHREAD_FLAGS}
13990 Linker flags: ${LDFLAGS}
13991 Host and version: ${DISTNAME} ${DISTVER}
13992 Shutdown Program: ${SHUTDOWN}
13993 Port/Device: ${SERIALDEV}
13994 Network Info Port (CGI): ${NISPORT}
13996 UPSCABLE ${UPSCABLE}
13998 drivers (no-* are disabled): ${APCSMART_DRIVER:-no-apcsmart} ${DUMB_DRIVER:-no-dumb} ${NET_DRIVER:-no-net} ${DISPLAY_USB_DRIVER:-no-usb} ${DISPLAY_SNMP_DRIVER:-no-snmp} ${DISPLAY_NETSNMP_DRIVER:-no-net-snmp} ${PCNET_DRIVER:-no-pcnet} ${TEST_DRIVER:-no-test}
14000 enable-nis: ${NISSRV_ENABLED}
14001 with-nisip: ${NISIP}
14002 enable-cgi: ${ENABLE_CGI}
14003 disable-lgd: ${SKIP_GDHDR_CHECK}
14004 with-cgi-bin: ${CGIBIN}
14005 with-libwrap: ${with_libwrap}
14006 enable-pthreads: ${with_pthreads}
14007 enable-dist-install: ${with_distdir}
14008 enable-gapcmon: ${GAPCMON_ENABLED}
14009 enable-apcagent: ${APCAGENT_ENABLED}
14014 echo Configuration complete: Run \'$MAKE\' to build apcuspd.
14017 echo $PATH | grep /usr/ucb >/dev/null
14018 if test $? = 0 ; then
14019 { echo "$as_me:$LINENO: WARNING:
14020 WARNING! You have /usr/ucb on your path. We STRONGLY recommend
14021 that you remove it and rerun configure. Otherwise
14022 apcupsd may be unable to shutdown your system.
14024 echo "$as_me: WARNING:
14025 WARNING! You have /usr/ucb on your path. We STRONGLY recommend
14026 that you remove it and rerun configure. Otherwise
14027 apcupsd may be unable to shutdown your system.