Package list squidview / bee9e07
Imported Upstream version 0.79 Willi Mann 9 years ago
11 changed file(s) with 676 addition(s) and 720 deletion(s). Raw diff Collapse all Expand all
00 >> Squidview history:
1
2 v0.79: May 2011:
3 - code clean ups for gcc-4.6
4
5 v0.78: January 2011:
6 - autoconf changes for clean compiles on Open/Solaris and OpenBSD.
7
8 v0.77: November 2010:
9 - large log files, >4G, support on i386. x86_64 was ok
10 - squid denied requests are not counted in log reports
111
212 v0.76: February 2010:
313 - more tweaks
0 squidview 0.7x (c) 2001 - 2007 Graeme Sheppard - GPL software
0 squidview 0.7x (c) 2001 - 2011 Graeme Sheppard - GPL software
11 www.rillion.net/squidview
22
33 --Overview
33 $ make
44
55 The program is c/c++ and uses the ncurses library for obtaining some
6 keystrokes. Old gcc compilers can fail compiling this program; if so start
7 afresh and:
6 keystrokes. Old gcc compilers can fail in compiling this program; if so
7 start afresh by deleting the source directory, unpack then
88
99 $ cp Makefile.old Makefile
1010 $ make oldgcc
1111
1212 ... and install manually.
1313
14 If you are compiling on Solaris I have heard of one instance where it is
15 necessary to link against Solaris' own curses library. To do this you need
16 to link against lcurses rather than lncurses.
14 Since version 0.77 squidview has support for large files, > 4 gigs.
15 Squidview may still handle large logs even when the support is not detected
16 by the configure script.
1717
1818 --Installation
1919
00 AUTOMAKE_OPTIONS = gnu
1 AM_CPPFLAGS = -DSHAREDIR='"$(datadir)/$(PACKAGE)"' @CPPFLAGS@
1 AM_CPPFLAGS = -DSHAREDIR='"$(datadir)/$(PACKAGE)"'
22 bin_PROGRAMS = squidview
33 squidview_SOURCES = squidview.cpp squidview.h
44 pkgdata_DATA = HOWTO BUGS users words aliases example.log
116116 CC = @CC@
117117 CCDEPMODE = @CCDEPMODE@
118118 CFLAGS = @CFLAGS@
119 CPP = @CPP@
120119 CPPFLAGS = @CPPFLAGS@
121120 CXX = @CXX@
122121 CXXCPP = @CXXCPP@
199198 top_builddir = @top_builddir@
200199 top_srcdir = @top_srcdir@
201200 AUTOMAKE_OPTIONS = gnu
202 AM_CPPFLAGS = -DSHAREDIR='"$(datadir)/$(PACKAGE)"' @CPPFLAGS@
201 AM_CPPFLAGS = -DSHAREDIR='"$(datadir)/$(PACKAGE)"'
203202 squidview_SOURCES = squidview.cpp squidview.h
204203 pkgdata_DATA = HOWTO BUGS users words aliases example.log
205204 man_MANS = squidview.1
1212
1313 m4_ifndef([AC_AUTOCONF_VERSION],
1414 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
16 [m4_warning([this file was generated for autoconf 2.65.
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
16 [m4_warning([this file was generated for autoconf 2.68.
1717 You have another version of autoconf. It may work, but is not guaranteed to.
1818 If you have problems, you may need to regenerate the build system entirely.
1919 To do so, use the procedure documented by the package, typically `autoreconf'.])])
22 /* Define to 1 if you have the <curses.h> header file. */
33 #undef HAVE_CURSES_H
44
5 /* Define to 1 if you have the <fcntl.h> header file. */
6 #undef HAVE_FCNTL_H
7
85 /* Define to 1 if you have the <inttypes.h> header file. */
96 #undef HAVE_INTTYPES_H
107
11 /* Define to 1 if you have the `ncurses' library (-lncurses). */
12 #undef HAVE_LIBNCURSES
13
14 /* Define to 1 if you have the <math.h> header file. */
15 #undef HAVE_MATH_H
16
178 /* Define to 1 if you have the <memory.h> header file. */
189 #undef HAVE_MEMORY_H
19
20 /* Define to 1 if you have the <signal.h> header file. */
21 #undef HAVE_SIGNAL_H
2210
2311 /* Define to 1 if you have the <stdint.h> header file. */
2412 #undef HAVE_STDINT_H
3523 /* Define to 1 if you have the <sys/stat.h> header file. */
3624 #undef HAVE_SYS_STAT_H
3725
38 /* Define to 1 if you have the <sys/time.h> header file. */
39 #undef HAVE_SYS_TIME_H
40
4126 /* Define to 1 if you have the <sys/types.h> header file. */
4227 #undef HAVE_SYS_TYPES_H
4328
44 /* Define to 1 if you have the <time.h> header file. */
45 #undef HAVE_TIME_H
46
4729 /* Define to 1 if you have the <unistd.h> header file. */
4830 #undef HAVE_UNISTD_H
31
32 /* files over four gigs */
33 #undef LARGE_FILE
4934
5035 /* Name of package */
5136 #undef PACKAGE
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.65.
2 # Generated by GNU Autoconf 2.68.
33 #
44 #
55 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
7 # Inc.
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
7 # Foundation, Inc.
88 #
99 #
1010 # This configure script is free software; the Free Software Foundation
8888 IFS=" "" $as_nl"
8989
9090 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
9192 case $0 in #((
9293 *[\\/]* ) as_myself=$0 ;;
9394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213214 # We cannot yet assume a decent shell, so we have to provide a
214215 # neutralization value for shells without unset; and this also
215216 # works around shells that cannot unset nonexistent variables.
217 # Preserve -v and -x to the replacement shell.
216218 BASH_ENV=/dev/null
217219 ENV=/dev/null
218220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219221 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 case $- in # ((((
223 *v*x* | *x*v* ) as_opts=-vx ;;
224 *v* ) as_opts=-v ;;
225 *x* ) as_opts=-x ;;
226 * ) as_opts= ;;
227 esac
228 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
221229 fi
222230
223231 if test x$as_have_required = xno; then :
315323 test -d "$as_dir" && break
316324 done
317325 test -z "$as_dirs" || eval "mkdir $as_dirs"
318 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
319327
320328
321329 } # as_fn_mkdir_p
355363 fi # as_fn_arith
356364
357365
358 # as_fn_error ERROR [LINENO LOG_FD]
359 # ---------------------------------
366 # as_fn_error STATUS ERROR [LINENO LOG_FD]
367 # ----------------------------------------
360368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362 # script with status $?, using 1 if that was 0.
370 # script with STATUS, using 1 if that was 0.
363371 as_fn_error ()
364372 {
365 as_status=$?; test $as_status -eq 0 && as_status=1
366 if test "$3"; then
367 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 as_status=$1; test $as_status -eq 0 && as_status=1
374 if test "$4"; then
375 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
369377 fi
370 $as_echo "$as_me: error: $1" >&2
378 $as_echo "$as_me: error: $2" >&2
371379 as_fn_exit $as_status
372380 } # as_fn_error
373381
529537 exec 6>&1
530538
531539 # Name of the host.
532 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
540 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
533541 # so uname gets run too.
534542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535543
594602 am__EXEEXT_TRUE
595603 LTLIBOBJS
596604 LIBOBJS
597 CXXCPP
598605 EGREP
599606 GREP
600 CPP
607 CXXCPP
601608 am__fastdepCC_FALSE
602609 am__fastdepCC_TRUE
603610 CCDEPMODE
697704 CCC
698705 CC
699706 CFLAGS
700 CPP
701707 CXXCPP'
702708
703709
761767 fi
762768
763769 case $ac_option in
764 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
765 *) ac_optarg=yes ;;
770 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
771 *=) ac_optarg= ;;
772 *) ac_optarg=yes ;;
766773 esac
767774
768775 # Accept the important Cygnus configure options, so we can diagnose typos.
807814 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
808815 # Reject names that are not valid shell variable names.
809816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
810 as_fn_error "invalid feature name: $ac_useropt"
817 as_fn_error $? "invalid feature name: $ac_useropt"
811818 ac_useropt_orig=$ac_useropt
812819 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
813820 case $ac_user_opts in
833840 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834841 # Reject names that are not valid shell variable names.
835842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
836 as_fn_error "invalid feature name: $ac_useropt"
843 as_fn_error $? "invalid feature name: $ac_useropt"
837844 ac_useropt_orig=$ac_useropt
838845 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839846 case $ac_user_opts in
10371044 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10381045 # Reject names that are not valid shell variable names.
10391046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040 as_fn_error "invalid package name: $ac_useropt"
1047 as_fn_error $? "invalid package name: $ac_useropt"
10411048 ac_useropt_orig=$ac_useropt
10421049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10431050 case $ac_user_opts in
10531060 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10541061 # Reject names that are not valid shell variable names.
10551062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid package name: $ac_useropt"
1063 as_fn_error $? "invalid package name: $ac_useropt"
10571064 ac_useropt_orig=$ac_useropt
10581065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10591066 case $ac_user_opts in
10831090 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10841091 x_libraries=$ac_optarg ;;
10851092
1086 -*) as_fn_error "unrecognized option: \`$ac_option'
1087 Try \`$0 --help' for more information."
1093 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1094 Try \`$0 --help' for more information"
10881095 ;;
10891096
10901097 *=*)
10921099 # Reject names that are not valid shell variable names.
10931100 case $ac_envvar in #(
10941101 '' | [0-9]* | *[!_$as_cr_alnum]* )
1095 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1102 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
10961103 esac
10971104 eval $ac_envvar=\$ac_optarg
10981105 export $ac_envvar ;;
11021109 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11031110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11041111 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1105 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11061113 ;;
11071114
11081115 esac
11101117
11111118 if test -n "$ac_prev"; then
11121119 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1113 as_fn_error "missing argument to $ac_option"
1120 as_fn_error $? "missing argument to $ac_option"
11141121 fi
11151122
11161123 if test -n "$ac_unrecognized_opts"; then
11171124 case $enable_option_checking in
11181125 no) ;;
1119 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1126 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
11201127 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11211128 esac
11221129 fi
11391146 [\\/$]* | ?:[\\/]* ) continue;;
11401147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11411148 esac
1142 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1149 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
11431150 done
11441151
11451152 # There might be people who depend on the old broken behavior: `$host'
11531160 if test "x$host_alias" != x; then
11541161 if test "x$build_alias" = x; then
11551162 cross_compiling=maybe
1156 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1157 If a cross compiler is detected then cross compile mode will be used." >&2
1163 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1164 If a cross compiler is detected then cross compile mode will be used" >&2
11581165 elif test "x$build_alias" != "x$host_alias"; then
11591166 cross_compiling=yes
11601167 fi
11691176 ac_pwd=`pwd` && test -n "$ac_pwd" &&
11701177 ac_ls_di=`ls -di .` &&
11711178 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1172 as_fn_error "working directory cannot be determined"
1179 as_fn_error $? "working directory cannot be determined"
11731180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1174 as_fn_error "pwd does not report name of working directory"
1181 as_fn_error $? "pwd does not report name of working directory"
11751182
11761183
11771184 # Find the source files, if location was not specified.
12101217 fi
12111218 if test ! -r "$srcdir/$ac_unique_file"; then
12121219 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1220 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
12141221 fi
12151222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12161223 ac_abs_confdir=`(
1217 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
12181225 pwd)`
12191226 # When building in place, set srcdir=.
12201227 if test "$ac_abs_confdir" = "$ac_pwd"; then
12541261 --help=short display options specific to this package
12551262 --help=recursive display the short help of all the included packages
12561263 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1264 -q, --quiet, --silent do not print \`checking ...' messages
12581265 --cache-file=FILE cache test results in FILE [disabled]
12591266 -C, --config-cache alias for \`--cache-file=config.cache'
12601267 -n, --no-create do not create output files
13251332 you have headers in a nonstandard directory <include dir>
13261333 CC C compiler command
13271334 CFLAGS C compiler flags
1328 CPP C preprocessor
13291335 CXXCPP C++ preprocessor
13301336
13311337 Use these variables to override the choices made by `configure' or to help
13951401 if $ac_init_version; then
13961402 cat <<\_ACEOF
13971403 configure
1398 generated by GNU Autoconf 2.65
1399
1400 Copyright (C) 2009 Free Software Foundation, Inc.
1404 generated by GNU Autoconf 2.68
1405
1406 Copyright (C) 2010 Free Software Foundation, Inc.
14011407 This configure script is free software; the Free Software Foundation
14021408 gives unlimited permission to copy, distribute and modify it.
14031409 _ACEOF
14411447
14421448 ac_retval=1
14431449 fi
1444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14451451 as_fn_set_status $ac_retval
14461452
14471453 } # ac_fn_cxx_try_compile
14791485
14801486 ac_retval=1
14811487 fi
1482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1488 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
14831489 as_fn_set_status $ac_retval
14841490
14851491 } # ac_fn_c_try_compile
14861492
1487 # ac_fn_c_try_cpp LINENO
1488 # ----------------------
1493 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1494 # -------------------------------------------------------
1495 # Tests whether HEADER exists and can be compiled using the include files in
1496 # INCLUDES, setting the cache variable VAR accordingly.
1497 ac_fn_c_check_header_compile ()
1498 {
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1501 $as_echo_n "checking for $2... " >&6; }
1502 if eval \${$3+:} false; then :
1503 $as_echo_n "(cached) " >&6
1504 else
1505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1506 /* end confdefs.h. */
1507 $4
1508 #include <$2>
1509 _ACEOF
1510 if ac_fn_c_try_compile "$LINENO"; then :
1511 eval "$3=yes"
1512 else
1513 eval "$3=no"
1514 fi
1515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1516 fi
1517 eval ac_res=\$$3
1518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1519 $as_echo "$ac_res" >&6; }
1520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521
1522 } # ac_fn_c_check_header_compile
1523
1524 # ac_fn_cxx_try_cpp LINENO
1525 # ------------------------
14891526 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_c_try_cpp ()
1527 ac_fn_cxx_try_cpp ()
14911528 {
14921529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14931530 if { { ac_try="$ac_cpp conftest.$ac_ext"
15051542 mv -f conftest.er1 conftest.err
15061543 fi
15071544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1508 test $ac_status = 0; } >/dev/null && {
1509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1545 test $ac_status = 0; } > conftest.i && {
1546 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15101547 test ! -s conftest.err
15111548 }; then :
15121549 ac_retval=0
15161553
15171554 ac_retval=1
15181555 fi
1519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15201557 as_fn_set_status $ac_retval
15211558
1522 } # ac_fn_c_try_cpp
1523
1524 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1525 # -------------------------------------------------------
1559 } # ac_fn_cxx_try_cpp
1560
1561 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1562 # ---------------------------------------------------------
15261563 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
15271564 # the include files in INCLUDES and setting the cache variable VAR
15281565 # accordingly.
1529 ac_fn_c_check_header_mongrel ()
1566 ac_fn_cxx_check_header_mongrel ()
15301567 {
15311568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1569 if eval \${$3+:} false; then :
15331570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
15341571 $as_echo_n "checking for $2... " >&6; }
1535 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1572 if eval \${$3+:} false; then :
15361573 $as_echo_n "(cached) " >&6
15371574 fi
15381575 eval ac_res=\$$3
15471584 $4
15481585 #include <$2>
15491586 _ACEOF
1550 if ac_fn_c_try_compile "$LINENO"; then :
1587 if ac_fn_cxx_try_compile "$LINENO"; then :
15511588 ac_header_compiler=yes
15521589 else
15531590 ac_header_compiler=no
15631600 /* end confdefs.h. */
15641601 #include <$2>
15651602 _ACEOF
1566 if ac_fn_c_try_cpp "$LINENO"; then :
1603 if ac_fn_cxx_try_cpp "$LINENO"; then :
15671604 ac_header_preproc=yes
15681605 else
15691606 ac_header_preproc=no
15701607 fi
1571 rm -f conftest.err conftest.$ac_ext
1608 rm -f conftest.err conftest.i conftest.$ac_ext
15721609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
15731610 $as_echo "$ac_header_preproc" >&6; }
15741611
15751612 # So? What about this header?
1576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1613 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
15771614 yes:no: )
15781615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
15791616 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
15951632 esac
15961633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
15971634 $as_echo_n "checking for $2... " >&6; }
1598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1635 if eval \${$3+:} false; then :
15991636 $as_echo_n "(cached) " >&6
16001637 else
16011638 eval "$3=\$ac_header_compiler"
16041641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16051642 $as_echo "$ac_res" >&6; }
16061643 fi
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1608
1609 } # ac_fn_c_check_header_mongrel
1610
1611 # ac_fn_c_try_run LINENO
1612 # ----------------------
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646 } # ac_fn_cxx_check_header_mongrel
1647
1648 # ac_fn_cxx_try_run LINENO
1649 # ------------------------
16131650 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
16141651 # that executables *can* be run.
1615 ac_fn_c_try_run ()
1652 ac_fn_cxx_try_run ()
16161653 {
16171654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16181655 if { { ac_try="$ac_link"
16451682 ac_retval=$ac_status
16461683 fi
16471684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
16491686 as_fn_set_status $ac_retval
16501687
1651 } # ac_fn_c_try_run
1652
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1688 } # ac_fn_cxx_try_run
1689
1690 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1691 # ---------------------------------------------------------
16551692 # Tests whether HEADER exists and can be compiled using the include files in
16561693 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1694 ac_fn_cxx_check_header_compile ()
16581695 {
16591696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16601697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
16611698 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1699 if eval \${$3+:} false; then :
16631700 $as_echo_n "(cached) " >&6
16641701 else
16651702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16671704 $4
16681705 #include <$2>
16691706 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1707 if ac_fn_cxx_try_compile "$LINENO"; then :
16711708 eval "$3=yes"
16721709 else
16731710 eval "$3=no"
16771714 eval ac_res=\$$3
16781715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16791716 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681
1682 } # ac_fn_c_check_header_compile
1683
1684 # ac_fn_c_try_link LINENO
1685 # -----------------------
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718
1719 } # ac_fn_cxx_check_header_compile
1720
1721 # ac_fn_cxx_try_link LINENO
1722 # -------------------------
16861723 # Try to link conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_link ()
1724 ac_fn_cxx_try_link ()
16881725 {
16891726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16901727 rm -f conftest.$ac_objext conftest$ac_exeext
17041741 fi
17051742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17061743 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1744 test -z "$ac_cxx_werror_flag" ||
17081745 test ! -s conftest.err
17091746 } && test -s conftest$ac_exeext && {
17101747 test "$cross_compiling" = yes ||
17221759 # interfere with the next link command; also delete a directory that is
17231760 # left behind by Apple's compiler. We do this before executing the actions.
17241761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17261763 as_fn_set_status $ac_retval
17271764
1728 } # ac_fn_c_try_link
1729
1730 # ac_fn_cxx_try_cpp LINENO
1731 # ------------------------
1732 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_cxx_try_cpp ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } >/dev/null && {
1752 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1753 test ! -s conftest.err
1754 }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760 ac_retval=1
1761 fi
1762 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763 as_fn_set_status $ac_retval
1764
1765 } # ac_fn_cxx_try_cpp
1766
1767 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1768 # ---------------------------------------------------------
1769 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1770 # the include files in INCLUDES and setting the cache variable VAR
1771 # accordingly.
1772 ac_fn_cxx_check_header_mongrel ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 $as_echo_n "(cached) " >&6
1780 fi
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 else
1785 # Is the header compilable?
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1787 $as_echo_n "checking $2 usability... " >&6; }
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1790 $4
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_cxx_try_compile "$LINENO"; then :
1794 ac_header_compiler=yes
1795 else
1796 ac_header_compiler=no
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1800 $as_echo "$ac_header_compiler" >&6; }
1801
1802 # Is the header present?
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1804 $as_echo_n "checking $2 presence... " >&6; }
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_cxx_try_cpp "$LINENO"; then :
1810 ac_header_preproc=yes
1811 else
1812 ac_header_preproc=no
1813 fi
1814 rm -f conftest.err conftest.$ac_ext
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1816 $as_echo "$ac_header_preproc" >&6; }
1817
1818 # So? What about this header?
1819 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1820 yes:no: )
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1822 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1824 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1825 ;;
1826 no:yes:* )
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1828 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1830 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1832 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1834 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1837 ;;
1838 esac
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 eval "$3=\$ac_header_compiler"
1845 fi
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 fi
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851
1852 } # ac_fn_cxx_check_header_mongrel
1765 } # ac_fn_cxx_try_link
18531766 cat >config.log <<_ACEOF
18541767 This file contains any messages produced by compilers while
18551768 running configure, to aid debugging if configure makes a mistake.
18561769
18571770 It was created by $as_me, which was
1858 generated by GNU Autoconf 2.65. Invocation command line was
1771 generated by GNU Autoconf 2.68. Invocation command line was
18591772
18601773 $ $0 $@
18611774
19651878 {
19661879 echo
19671880
1968 cat <<\_ASBOX
1969 ## ---------------- ##
1881 $as_echo "## ---------------- ##
19701882 ## Cache variables. ##
1971 ## ---------------- ##
1972 _ASBOX
1883 ## ---------------- ##"
19731884 echo
19741885 # The following way of writing the cache mishandles newlines in values,
19751886 (
20031914 )
20041915 echo
20051916
2006 cat <<\_ASBOX
2007 ## ----------------- ##
1917 $as_echo "## ----------------- ##
20081918 ## Output variables. ##
2009 ## ----------------- ##
2010 _ASBOX
1919 ## ----------------- ##"
20111920 echo
20121921 for ac_var in $ac_subst_vars
20131922 do
20201929 echo
20211930
20221931 if test -n "$ac_subst_files"; then
2023 cat <<\_ASBOX
2024 ## ------------------- ##
1932 $as_echo "## ------------------- ##
20251933 ## File substitutions. ##
2026 ## ------------------- ##
2027 _ASBOX
1934 ## ------------------- ##"
20281935 echo
20291936 for ac_var in $ac_subst_files
20301937 do
20381945 fi
20391946
20401947 if test -s confdefs.h; then
2041 cat <<\_ASBOX
2042 ## ----------- ##
1948 $as_echo "## ----------- ##
20431949 ## confdefs.h. ##
2044 ## ----------- ##
2045 _ASBOX
1950 ## ----------- ##"
20461951 echo
20471952 cat confdefs.h
20481953 echo
20972002 ac_site_file1=NONE
20982003 ac_site_file2=NONE
20992004 if test -n "$CONFIG_SITE"; then
2100 ac_site_file1=$CONFIG_SITE
2005 # We do not want a PATH search for config.site.
2006 case $CONFIG_SITE in #((
2007 -*) ac_site_file1=./$CONFIG_SITE;;
2008 */*) ac_site_file1=$CONFIG_SITE;;
2009 *) ac_site_file1=./$CONFIG_SITE;;
2010 esac
21012011 elif test "x$prefix" != xNONE; then
21022012 ac_site_file1=$prefix/share/config.site
21032013 ac_site_file2=$prefix/etc/config.site
21122022 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
21132023 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
21142024 sed 's/^/| /' "$ac_site_file" >&5
2115 . "$ac_site_file"
2025 . "$ac_site_file" \
2026 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2028 as_fn_error $? "failed to load site script $ac_site_file
2029 See \`config.log' for more details" "$LINENO" 5; }
21162030 fi
21172031 done
21182032
21882102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21892103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
21902104 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2191 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2105 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
21922106 fi
21932107 ## -------------------- ##
21942108 ## Main body of script. ##
22072121
22082122 ac_aux_dir=
22092123 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2210 for ac_t in install-sh install.sh shtool; do
2211 if test -f "$ac_dir/$ac_t"; then
2212 ac_aux_dir=$ac_dir
2213 ac_install_sh="$ac_aux_dir/$ac_t -c"
2214 break 2
2215 fi
2216 done
2124 if test -f "$ac_dir/install-sh"; then
2125 ac_aux_dir=$ac_dir
2126 ac_install_sh="$ac_aux_dir/install-sh -c"
2127 break
2128 elif test -f "$ac_dir/install.sh"; then
2129 ac_aux_dir=$ac_dir
2130 ac_install_sh="$ac_aux_dir/install.sh -c"
2131 break
2132 elif test -f "$ac_dir/shtool"; then
2133 ac_aux_dir=$ac_dir
2134 ac_install_sh="$ac_aux_dir/shtool install -c"
2135 break
2136 fi
22172137 done
22182138 if test -z "$ac_aux_dir"; then
2219 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2139 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
22202140 fi
22212141
22222142 # These three variables are undocumented and unsupported,
22452165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
22462166 $as_echo_n "checking for a BSD-compatible install... " >&6; }
22472167 if test -z "$INSTALL"; then
2248 if test "${ac_cv_path_install+set}" = set; then :
2168 if ${ac_cv_path_install+:} false; then :
22492169 $as_echo_n "(cached) " >&6
22502170 else
22512171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23322252 '
23332253 case `pwd` in
23342254 *[\\\"\#\$\&\'\`$am_lf]*)
2335 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2255 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
23362256 esac
23372257 case $srcdir in
23382258 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2339 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2259 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
23402260 esac
23412261
23422262 # Do `set' in a subshell so we don't clobber the current shell's
23582278 # if, for instance, CONFIG_SHELL is bash and it inherits a
23592279 # broken ls alias from the environment. This has actually
23602280 # happened. Such a system could not be considered "sane".
2361 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2281 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
23622282 alias in your environment" "$LINENO" 5
23632283 fi
23642284
23682288 # Ok.
23692289 :
23702290 else
2371 as_fn_error "newly created file is older than distributed files!
2291 as_fn_error $? "newly created file is older than distributed files!
23722292 Check your system clock" "$LINENO" 5
23732293 fi
23742294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24222342 set dummy ${ac_tool_prefix}strip; ac_word=$2
24232343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24242344 $as_echo_n "checking for $ac_word... " >&6; }
2425 if test "${ac_cv_prog_STRIP+set}" = set; then :
2345 if ${ac_cv_prog_STRIP+:} false; then :
24262346 $as_echo_n "(cached) " >&6
24272347 else
24282348 if test -n "$STRIP"; then
24622382 set dummy strip; ac_word=$2
24632383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24642384 $as_echo_n "checking for $ac_word... " >&6; }
2465 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2385 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
24662386 $as_echo_n "(cached) " >&6
24672387 else
24682388 if test -n "$ac_ct_STRIP"; then
25152435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
25162436 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
25172437 if test -z "$MKDIR_P"; then
2518 if test "${ac_cv_path_mkdir+set}" = set; then :
2438 if ${ac_cv_path_mkdir+:} false; then :
25192439 $as_echo_n "(cached) " >&6
25202440 else
25212441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25662486 set dummy $ac_prog; ac_word=$2
25672487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25682488 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_AWK+set}" = set; then :
2489 if ${ac_cv_prog_AWK+:} false; then :
25702490 $as_echo_n "(cached) " >&6
25712491 else
25722492 if test -n "$AWK"; then
26062526 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26072527 set x ${MAKE-make}
26082528 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2609 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2529 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
26102530 $as_echo_n "(cached) " >&6
26112531 else
26122532 cat >conftest.make <<\_ACEOF
26142534 all:
26152535 @echo '@@@%%%=$(MAKE)=@@@%%%'
26162536 _ACEOF
2617 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2537 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26182538 case `${MAKE-make} -f conftest.make 2>/dev/null` in
26192539 *@@@%%%=?*=@@@%%%*)
26202540 eval ac_cv_prog_make_${ac_make}_set=yes;;
26482568 am__isrc=' -I$(srcdir)'
26492569 # test to see if srcdir already configured
26502570 if test -f $srcdir/config.status; then
2651 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2571 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
26522572 fi
26532573 fi
26542574
26642584
26652585 # Define the identity of the package.
26662586 PACKAGE=squidview
2667 VERSION=0.76
2587 VERSION=0.79
26682588
26692589
26702590 cat >>confdefs.h <<_ACEOF
27202640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27212641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27222642 $as_echo_n "checking for $ac_word... " >&6; }
2723 if test "${ac_cv_prog_CXX+set}" = set; then :
2643 if ${ac_cv_prog_CXX+:} false; then :
27242644 $as_echo_n "(cached) " >&6
27252645 else
27262646 if test -n "$CXX"; then
27642684 set dummy $ac_prog; ac_word=$2
27652685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27662686 $as_echo_n "checking for $ac_word... " >&6; }
2767 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2687 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
27682688 $as_echo_n "(cached) " >&6
27692689 else
27702690 if test -n "$ac_ct_CXX"; then
29272847
29282848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29292849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 { as_fn_set_status 77
2931 as_fn_error "C++ compiler cannot create executables
2932 See \`config.log' for more details." "$LINENO" 5; }; }
2850 as_fn_error 77 "C++ compiler cannot create executables
2851 See \`config.log' for more details" "$LINENO" 5; }
29332852 else
29342853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29352854 $as_echo "yes" >&6; }
29712890 else
29722891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29732892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 as_fn_error "cannot compute suffix of executables: cannot compile and link
2975 See \`config.log' for more details." "$LINENO" 5; }
2893 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2894 See \`config.log' for more details" "$LINENO" 5; }
29762895 fi
29772896 rm -f conftest conftest$ac_cv_exeext
29782897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
30292948 else
30302949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30312950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3032 as_fn_error "cannot run C++ compiled programs.
2951 as_fn_error $? "cannot run C++ compiled programs.
30332952 If you meant to cross compile, use \`--host'.
3034 See \`config.log' for more details." "$LINENO" 5; }
2953 See \`config.log' for more details" "$LINENO" 5; }
30352954 fi
30362955 fi
30372956 fi
30422961 ac_clean_files=$ac_clean_files_save
30432962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
30442963 $as_echo_n "checking for suffix of object files... " >&6; }
3045 if test "${ac_cv_objext+set}" = set; then :
2964 if ${ac_cv_objext+:} false; then :
30462965 $as_echo_n "(cached) " >&6
30472966 else
30482967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30823001
30833002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30843003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error "cannot compute suffix of object files: cannot compile
3086 See \`config.log' for more details." "$LINENO" 5; }
3004 as_fn_error $? "cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details" "$LINENO" 5; }
30873006 fi
30883007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
30893008 fi
30933012 ac_objext=$OBJEXT
30943013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
30953014 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3096 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3015 if ${ac_cv_cxx_compiler_gnu+:} false; then :
30973016 $as_echo_n "(cached) " >&6
30983017 else
30993018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31303049 ac_save_CXXFLAGS=$CXXFLAGS
31313050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
31323051 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3133 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3052 if ${ac_cv_prog_cxx_g+:} false; then :
31343053 $as_echo_n "(cached) " >&6
31353054 else
31363055 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
32783197
32793198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
32803199 $as_echo_n "checking dependency style of $depcc... " >&6; }
3281 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3200 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
32823201 $as_echo_n "(cached) " >&6
32833202 else
32843203 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
34133332 set dummy ${ac_tool_prefix}gcc; ac_word=$2
34143333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34153334 $as_echo_n "checking for $ac_word... " >&6; }
3416 if test "${ac_cv_prog_CC+set}" = set; then :
3335 if ${ac_cv_prog_CC+:} false; then :
34173336 $as_echo_n "(cached) " >&6
34183337 else
34193338 if test -n "$CC"; then
34533372 set dummy gcc; ac_word=$2
34543373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34553374 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3375 if ${ac_cv_prog_ac_ct_CC+:} false; then :
34573376 $as_echo_n "(cached) " >&6
34583377 else
34593378 if test -n "$ac_ct_CC"; then
35063425 set dummy ${ac_tool_prefix}cc; ac_word=$2
35073426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35083427 $as_echo_n "checking for $ac_word... " >&6; }
3509 if test "${ac_cv_prog_CC+set}" = set; then :
3428 if ${ac_cv_prog_CC+:} false; then :
35103429 $as_echo_n "(cached) " >&6
35113430 else
35123431 if test -n "$CC"; then
35463465 set dummy cc; ac_word=$2
35473466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35483467 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then :
3468 if ${ac_cv_prog_CC+:} false; then :
35503469 $as_echo_n "(cached) " >&6
35513470 else
35523471 if test -n "$CC"; then
36053524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
36063525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36073526 $as_echo_n "checking for $ac_word... " >&6; }
3608 if test "${ac_cv_prog_CC+set}" = set; then :
3527 if ${ac_cv_prog_CC+:} false; then :
36093528 $as_echo_n "(cached) " >&6
36103529 else
36113530 if test -n "$CC"; then
36493568 set dummy $ac_prog; ac_word=$2
36503569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36513570 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3571 if ${ac_cv_prog_ac_ct_CC+:} false; then :
36533572 $as_echo_n "(cached) " >&6
36543573 else
36553574 if test -n "$ac_ct_CC"; then
37033622
37043623 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37053624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error "no acceptable C compiler found in \$PATH
3707 See \`config.log' for more details." "$LINENO" 5; }
3625 as_fn_error $? "no acceptable C compiler found in \$PATH
3626 See \`config.log' for more details" "$LINENO" 5; }
37083627
37093628 # Provide some information about the compiler.
37103629 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
37333652
37343653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
37353654 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3736 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3655 if ${ac_cv_c_compiler_gnu+:} false; then :
37373656 $as_echo_n "(cached) " >&6
37383657 else
37393658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37703689 ac_save_CFLAGS=$CFLAGS
37713690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
37723691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3773 if test "${ac_cv_prog_cc_g+set}" = set; then :
3692 if ${ac_cv_prog_cc_g+:} false; then :
37743693 $as_echo_n "(cached) " >&6
37753694 else
37763695 ac_save_c_werror_flag=$ac_c_werror_flag
38483767 fi
38493768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
38503769 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3851 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3770 if ${ac_cv_prog_cc_c89+:} false; then :
38523771 $as_echo_n "(cached) " >&6
38533772 else
38543773 ac_cv_prog_cc_c89=no
39473866
39483867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
39493868 $as_echo_n "checking dependency style of $depcc... " >&6; }
3950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3869 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
39513870 $as_echo_n "(cached) " >&6
39523871 else
39533872 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
40713990
40723991
40733992
4074 ac_ext=c
4075 ac_cpp='$CPP $CPPFLAGS'
4076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4080 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4081 # On Suns, sometimes $CPP names a directory.
4082 if test -n "$CPP" && test -d "$CPP"; then
4083 CPP=
4084 fi
4085 if test -z "$CPP"; then
4086 if test "${ac_cv_prog_CPP+set}" = set; then :
3993 for ac_header in curses.h
3994 do :
3995 ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "\
3996 as_fn_error $? \"header missing\" \"$LINENO\" 5
3997 "
3998 if test "x$ac_cv_header_curses_h" = xyes; then :
3999 cat >>confdefs.h <<_ACEOF
4000 #define HAVE_CURSES_H 1
4001 _ACEOF
4002 signal.h sys/time.h sys/types.h sys/stat.h \
4003 unistd.h fcntl.h time.h stdlib.h math.h stdio.h
4004 fi
4005
4006 done
4007
4008
4009 ac_ext=cpp
4010 ac_cpp='$CXXCPP $CPPFLAGS'
4011 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4012 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4013 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4014
4015
4016 ac_ext=cpp
4017 ac_cpp='$CXXCPP $CPPFLAGS'
4018 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4022 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4023 if test -z "$CXXCPP"; then
4024 if ${ac_cv_prog_CXXCPP+:} false; then :
40874025 $as_echo_n "(cached) " >&6
40884026 else
4089 # Double quotes because CPP needs to be expanded
4090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4027 # Double quotes because CXXCPP needs to be expanded
4028 for CXXCPP in "$CXX -E" "/lib/cpp"
40914029 do
40924030 ac_preproc_ok=false
4093 for ac_c_preproc_warn_flag in '' yes
4031 for ac_cxx_preproc_warn_flag in '' yes
40944032 do
40954033 # Use a header file that comes with gcc, so configuring glibc
40964034 # with a fresh cross-compiler works.
41074045 #endif
41084046 Syntax error
41094047 _ACEOF
4110 if ac_fn_c_try_cpp "$LINENO"; then :
4048 if ac_fn_cxx_try_cpp "$LINENO"; then :
41114049
41124050 else
41134051 # Broken: fails on valid input.
41144052 continue
41154053 fi
4116 rm -f conftest.err conftest.$ac_ext
4054 rm -f conftest.err conftest.i conftest.$ac_ext
41174055
41184056 # OK, works on sane cases. Now check whether nonexistent headers
41194057 # can be detected and how.
41214059 /* end confdefs.h. */
41224060 #include <ac_nonexistent.h>
41234061 _ACEOF
4124 if ac_fn_c_try_cpp "$LINENO"; then :
4062 if ac_fn_cxx_try_cpp "$LINENO"; then :
41254063 # Broken: success on invalid input.
41264064 continue
41274065 else
41294067 ac_preproc_ok=:
41304068 break
41314069 fi
4132 rm -f conftest.err conftest.$ac_ext
4070 rm -f conftest.err conftest.i conftest.$ac_ext
41334071
41344072 done
41354073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4136 rm -f conftest.err conftest.$ac_ext
4074 rm -f conftest.i conftest.err conftest.$ac_ext
41374075 if $ac_preproc_ok; then :
41384076 break
41394077 fi
41404078
41414079 done
4142 ac_cv_prog_CPP=$CPP
4143
4144 fi
4145 CPP=$ac_cv_prog_CPP
4146 else
4147 ac_cv_prog_CPP=$CPP
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4150 $as_echo "$CPP" >&6; }
4080 ac_cv_prog_CXXCPP=$CXXCPP
4081
4082 fi
4083 CXXCPP=$ac_cv_prog_CXXCPP
4084 else
4085 ac_cv_prog_CXXCPP=$CXXCPP
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4088 $as_echo "$CXXCPP" >&6; }
41514089 ac_preproc_ok=false
4152 for ac_c_preproc_warn_flag in '' yes
4090 for ac_cxx_preproc_warn_flag in '' yes
41534091 do
41544092 # Use a header file that comes with gcc, so configuring glibc
41554093 # with a fresh cross-compiler works.
41664104 #endif
41674105 Syntax error
41684106 _ACEOF
4169 if ac_fn_c_try_cpp "$LINENO"; then :
4107 if ac_fn_cxx_try_cpp "$LINENO"; then :
41704108
41714109 else
41724110 # Broken: fails on valid input.
41734111 continue
41744112 fi
4175 rm -f conftest.err conftest.$ac_ext
4113 rm -f conftest.err conftest.i conftest.$ac_ext
41764114
41774115 # OK, works on sane cases. Now check whether nonexistent headers
41784116 # can be detected and how.
41804118 /* end confdefs.h. */
41814119 #include <ac_nonexistent.h>
41824120 _ACEOF
4183 if ac_fn_c_try_cpp "$LINENO"; then :
4121 if ac_fn_cxx_try_cpp "$LINENO"; then :
41844122 # Broken: success on invalid input.
41854123 continue
41864124 else
41884126 ac_preproc_ok=:
41894127 break
41904128 fi
4191 rm -f conftest.err conftest.$ac_ext
4129 rm -f conftest.err conftest.i conftest.$ac_ext
41924130
41934131 done
41944132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4195 rm -f conftest.err conftest.$ac_ext
4133 rm -f conftest.i conftest.err conftest.$ac_ext
41964134 if $ac_preproc_ok; then :
41974135
41984136 else
41994137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42004138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4202 See \`config.log' for more details." "$LINENO" 5; }
4203 fi
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4140 See \`config.log' for more details" "$LINENO" 5; }
4141 fi
4142
4143 ac_ext=cpp
4144 ac_cpp='$CXXCPP $CPPFLAGS'
4145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42104148
42114149
42124150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
42134151 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4214 if test "${ac_cv_path_GREP+set}" = set; then :
4152 if ${ac_cv_path_GREP+:} false; then :
42154153 $as_echo_n "(cached) " >&6
42164154 else
42174155 if test -z "$GREP"; then
42604198 done
42614199 IFS=$as_save_IFS
42624200 if test -z "$ac_cv_path_GREP"; then
4263 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4201 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
42644202 fi
42654203 else
42664204 ac_cv_path_GREP=$GREP
42744212
42754213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
42764214 $as_echo_n "checking for egrep... " >&6; }
4277 if test "${ac_cv_path_EGREP+set}" = set; then :
4215 if ${ac_cv_path_EGREP+:} false; then :
42784216 $as_echo_n "(cached) " >&6
42794217 else
42804218 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
43264264 done
43274265 IFS=$as_save_IFS
43284266 if test -z "$ac_cv_path_EGREP"; then
4329 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4267 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
43304268 fi
43314269 else
43324270 ac_cv_path_EGREP=$EGREP
43414279
43424280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
43434281 $as_echo_n "checking for ANSI C header files... " >&6; }
4344 if test "${ac_cv_header_stdc+set}" = set; then :
4282 if ${ac_cv_header_stdc+:} false; then :
43454283 $as_echo_n "(cached) " >&6
43464284 else
43474285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43594297 return 0;
43604298 }
43614299 _ACEOF
4362 if ac_fn_c_try_compile "$LINENO"; then :
4300 if ac_fn_cxx_try_compile "$LINENO"; then :
43634301 ac_cv_header_stdc=yes
43644302 else
43654303 ac_cv_header_stdc=no
44324370 return 0;
44334371 }
44344372 _ACEOF
4435 if ac_fn_c_try_run "$LINENO"; then :
4373 if ac_fn_cxx_try_run "$LINENO"; then :
44364374
44374375 else
44384376 ac_cv_header_stdc=no
44564394 inttypes.h stdint.h unistd.h
44574395 do :
44584396 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4397 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
44604398 "
4461 eval as_val=\$$as_ac_Header
4462 if test "x$as_val" = x""yes; then :
4399 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
44634400 cat >>confdefs.h <<_ACEOF
44644401 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
44654402 _ACEOF
44694406 done
44704407
44714408
4472 for ac_header in curses.h signal.h sys/time.h sys/types.h sys/stat.h \
4473 unistd.h fcntl.h time.h stdlib.h math.h
4474 do :
4475 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4476 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4477 eval as_val=\$$as_ac_Header
4478 if test "x$as_val" = x""yes; then :
4479 cat >>confdefs.h <<_ACEOF
4480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4481 _ACEOF
4482
4483 else
4484 \
4485 as_fn_error "header missing" "$LINENO" 5
4486 fi
4487
4488 done
4489
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -lncurses" >&5
4491 $as_echo_n "checking for wgetch in -lncurses... " >&6; }
4492 if test "${ac_cv_lib_ncurses_wgetch+set}" = set; then :
4409 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
4410 if test "x$ac_cv_header_string" = xyes; then :
4411
4412 else
4413 as_fn_error $? "C++ STL string class missing" "$LINENO" 5
4414 fi
4415
4416
4417 ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
4418 if test "x$ac_cv_header_vector" = xyes; then :
4419
4420 else
4421 as_fn_error $? "C++ STL vector class missing" "$LINENO" 5
4422 fi
4423
4424
4425 ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"
4426 if test "x$ac_cv_header_algorithm" = xyes; then :
4427
4428 else
4429 as_fn_error $? "C++ STL algorithm class missing" "$LINENO" 5
4430 fi
4431
4432
4433
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking curses library name" >&5
4435 $as_echo "$as_me: Checking curses library name" >&6;}
4436 sv_curses=no
4437
4438 if test "x$sv_curses" = xno; then
4439 sv_test=ncurses
4440 sv_pass="no"
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking name is $sv_test" >&5
4442 $as_echo_n "checking name is $sv_test... " >&6; }
4443 LIBS="-l$sv_test"
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445 /* end confdefs.h. */
4446 #include <curses.h>
4447 int
4448 main ()
4449 {
4450 initscr();
4451 ;
4452 return 0;
4453 }
4454 _ACEOF
4455 if ac_fn_cxx_try_link "$LINENO"; then :
4456 sv_pass="yes"
4457 fi
4458 rm -f core conftest.err conftest.$ac_objext \
4459 conftest$ac_exeext conftest.$ac_ext
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sv_pass" >&5
4461 $as_echo "$sv_pass" >&6; }
4462 test "$sv_pass" = yes && sv_curses=$sv_test
4463 unset LIBS
4464 fi
4465
4466
4467 if test "x$sv_curses" = xno; then
4468 sv_test=curses
4469 sv_pass="no"
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking name is $sv_test" >&5
4471 $as_echo_n "checking name is $sv_test... " >&6; }
4472 LIBS="-l$sv_test"
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475 #include <curses.h>
4476 int
4477 main ()
4478 {
4479 initscr();
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 if ac_fn_cxx_try_link "$LINENO"; then :
4485 sv_pass="yes"
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext \
4488 conftest$ac_exeext conftest.$ac_ext
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sv_pass" >&5
4490 $as_echo "$sv_pass" >&6; }
4491 test "$sv_pass" = yes && sv_curses=$sv_test
4492 unset LIBS
4493 fi
4494
4495 if test "x$sv_curses" = xno; then
4496 as_fn_error $? "No suitable curses found" "$LINENO" 5
4497 fi
4498 as_ac_Lib=`$as_echo "ac_cv_lib_$sv_curses''_wgetch" | $as_tr_sh`
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wgetch in -l$sv_curses" >&5
4500 $as_echo_n "checking for wgetch in -l$sv_curses... " >&6; }
4501 if eval \${$as_ac_Lib+:} false; then :
44934502 $as_echo_n "(cached) " >&6
44944503 else
44954504 ac_check_lib_save_LIBS=$LIBS
4496 LIBS="-lncurses $LIBS"
4505 LIBS="-l$sv_curses $LIBS"
44974506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44984507 /* end confdefs.h. */
44994508
45124521 return 0;
45134522 }
45144523 _ACEOF
4515 if ac_fn_c_try_link "$LINENO"; then :
4516 ac_cv_lib_ncurses_wgetch=yes
4517 else
4518 ac_cv_lib_ncurses_wgetch=no
4524 if ac_fn_cxx_try_link "$LINENO"; then :
4525 eval "$as_ac_Lib=yes"
4526 else
4527 eval "$as_ac_Lib=no"
45194528 fi
45204529 rm -f core conftest.err conftest.$ac_objext \
45214530 conftest$ac_exeext conftest.$ac_ext
45224531 LIBS=$ac_check_lib_save_LIBS
45234532 fi
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_wgetch" >&5
4525 $as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
4526 if test "x$ac_cv_lib_ncurses_wgetch" = x""yes; then :
4533 eval ac_res=\$$as_ac_Lib
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4535 $as_echo "$ac_res" >&6; }
4536 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
45274537 cat >>confdefs.h <<_ACEOF
4528 #define HAVE_LIBNCURSES 1
4529 _ACEOF
4530
4531 LIBS="-lncurses $LIBS"
4532
4533 else
4534 as_fn_error "recent ncurses installed?" "$LINENO" 5
4535 fi
4536
4537
4538 ac_ext=cpp
4539 ac_cpp='$CXXCPP $CPPFLAGS'
4540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4543
4544
4545 ac_ext=cpp
4546 ac_cpp='$CXXCPP $CPPFLAGS'
4547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4551 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4552 if test -z "$CXXCPP"; then
4553 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 # Double quotes because CXXCPP needs to be expanded
4557 for CXXCPP in "$CXX -E" "/lib/cpp"
4558 do
4559 ac_preproc_ok=false
4560 for ac_cxx_preproc_warn_flag in '' yes
4561 do
4562 # Use a header file that comes with gcc, so configuring glibc
4563 # with a fresh cross-compiler works.
4564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4565 # <limits.h> exists even on freestanding compilers.
4566 # On the NeXT, cc -E runs the code through the compiler's parser,
4567 # not just through cpp. "Syntax error" is here to catch this case.
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 #define `$as_echo "HAVE_LIB$sv_curses" | $as_tr_cpp` 1
4539 _ACEOF
4540
4541 LIBS="-l$sv_curses $LIBS"
4542
4543 else
4544 as_fn_error $? "Curses support is not complete?" "$LINENO" 5
4545 fi
4546
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking large file support" >&5
4549 $as_echo_n "checking large file support... " >&6; }
4550 sv_large="no"
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45694552 /* end confdefs.h. */
4570 #ifdef __STDC__
4571 # include <limits.h>
4572 #else
4573 # include <assert.h>
4574 #endif
4575 Syntax error
4576 _ACEOF
4577 if ac_fn_cxx_try_cpp "$LINENO"; then :
4578
4579 else
4580 # Broken: fails on valid input.
4581 continue
4582 fi
4583 rm -f conftest.err conftest.$ac_ext
4584
4585 # OK, works on sane cases. Now check whether nonexistent headers
4586 # can be detected and how.
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4589 #include <ac_nonexistent.h>
4590 _ACEOF
4591 if ac_fn_cxx_try_cpp "$LINENO"; then :
4592 # Broken: success on invalid input.
4593 continue
4594 else
4595 # Passes both tests.
4596 ac_preproc_ok=:
4597 break
4598 fi
4599 rm -f conftest.err conftest.$ac_ext
4600
4601 done
4602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4603 rm -f conftest.err conftest.$ac_ext
4604 if $ac_preproc_ok; then :
4605 break
4606 fi
4607
4608 done
4609 ac_cv_prog_CXXCPP=$CXXCPP
4610
4611 fi
4612 CXXCPP=$ac_cv_prog_CXXCPP
4613 else
4614 ac_cv_prog_CXXCPP=$CXXCPP
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4617 $as_echo "$CXXCPP" >&6; }
4618 ac_preproc_ok=false
4619 for ac_cxx_preproc_warn_flag in '' yes
4620 do
4621 # Use a header file that comes with gcc, so configuring glibc
4622 # with a fresh cross-compiler works.
4623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4624 # <limits.h> exists even on freestanding compilers.
4625 # On the NeXT, cc -E runs the code through the compiler's parser,
4626 # not just through cpp. "Syntax error" is here to catch this case.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #ifdef __STDC__
4630 # include <limits.h>
4631 #else
4632 # include <assert.h>
4633 #endif
4634 Syntax error
4635 _ACEOF
4636 if ac_fn_cxx_try_cpp "$LINENO"; then :
4637
4638 else
4639 # Broken: fails on valid input.
4640 continue
4641 fi
4642 rm -f conftest.err conftest.$ac_ext
4643
4644 # OK, works on sane cases. Now check whether nonexistent headers
4645 # can be detected and how.
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 #include <ac_nonexistent.h>
4649 _ACEOF
4650 if ac_fn_cxx_try_cpp "$LINENO"; then :
4651 # Broken: success on invalid input.
4652 continue
4653 else
4654 # Passes both tests.
4655 ac_preproc_ok=:
4656 break
4657 fi
4658 rm -f conftest.err conftest.$ac_ext
4659
4660 done
4661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4662 rm -f conftest.err conftest.$ac_ext
4663 if $ac_preproc_ok; then :
4664
4665 else
4666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4668 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
4669 See \`config.log' for more details." "$LINENO" 5; }
4670 fi
4671
4672 ac_ext=cpp
4673 ac_cpp='$CXXCPP $CPPFLAGS'
4674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4677
4678
4679 ac_fn_cxx_check_header_mongrel "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
4680 if test "x$ac_cv_header_string" = x""yes; then :
4681
4682 else
4683 as_fn_error "C++ STL string class missing" "$LINENO" 5
4684 fi
4685
4686
4687 ac_fn_cxx_check_header_mongrel "$LINENO" "vector" "ac_cv_header_vector" "$ac_includes_default"
4688 if test "x$ac_cv_header_vector" = x""yes; then :
4689
4690 else
4691 as_fn_error "C++ STL vector class missing" "$LINENO" 5
4692 fi
4693
4694
4695 ac_fn_cxx_check_header_mongrel "$LINENO" "algorithm" "ac_cv_header_algorithm" "$ac_includes_default"
4696 if test "x$ac_cv_header_algorithm" = x""yes; then :
4697
4698 else
4699 as_fn_error "C++ STL algorithm class missing" "$LINENO" 5
4700 fi
4701
4702
4553
4554 #include <sys/types.h>
4555 #include <sys/stat.h>
4556 #include <fcntl.h>
4557
4558 int
4559 main ()
4560 {
4561 open ("file", O_RDONLY | O_LARGEFILE);
4562 ;
4563 return 0;
4564 }
4565 _ACEOF
4566 if ac_fn_cxx_try_compile "$LINENO"; then :
4567 sv_large="yes"
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sv_large" >&5
4571 $as_echo "$sv_large" >&6; }
4572 if test "$sv_large" = yes; then
4573
4574 $as_echo "#define LARGE_FILE 1" >>confdefs.h
4575
4576 CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $CPPFLAGS"
4577 fi
47034578
47044579 ac_config_files="$ac_config_files Makefile"
47054580
47674642 :end' >>confcache
47684643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
47694644 if test -w "$cache_file"; then
4770 test "x$cache_file" != "x/dev/null" &&
4645 if test "x$cache_file" != "x/dev/null"; then
47714646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
47724647 $as_echo "$as_me: updating cache $cache_file" >&6;}
4773 cat confcache >$cache_file
4648 if test ! -f "$cache_file" || test -h "$cache_file"; then
4649 cat confcache >"$cache_file"
4650 else
4651 case $cache_file in #(
4652 */* | ?:*)
4653 mv -f confcache "$cache_file"$$ &&
4654 mv -f "$cache_file"$$ "$cache_file" ;; #(
4655 *)
4656 mv -f confcache "$cache_file" ;;
4657 esac
4658 fi
4659 fi
47744660 else
47754661 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
47764662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
47864672
47874673 ac_libobjs=
47884674 ac_ltlibobjs=
4675 U=
47894676 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
47904677 # 1. Remove the extension, and $U if already installed.
47914678 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
48094696 fi
48104697
48114698 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4812 as_fn_error "conditional \"AMDEP\" was never defined.
4699 as_fn_error $? "conditional \"AMDEP\" was never defined.
48134700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
48144701 fi
48154702 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
4816 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
4703 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
48174704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
48184705 fi
48194706 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4820 as_fn_error "conditional \"am__fastdepCC\" was never defined.
4707 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
48214708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
48224709 fi
48234710
4824 : ${CONFIG_STATUS=./config.status}
4711 : "${CONFIG_STATUS=./config.status}"
48254712 ac_write_fail=0
48264713 ac_clean_files_save=$ac_clean_files
48274714 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49224809 IFS=" "" $as_nl"
49234810
49244811 # Find who we are. Look in the path if we contain no directory separator.
4812 as_myself=
49254813 case $0 in #((
49264814 *[\\/]* ) as_myself=$0 ;;
49274815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49674855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
49684856
49694857
4970 # as_fn_error ERROR [LINENO LOG_FD]
4971 # ---------------------------------
4858 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4859 # ----------------------------------------
49724860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
49734861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4974 # script with status $?, using 1 if that was 0.
4862 # script with STATUS, using 1 if that was 0.
49754863 as_fn_error ()
49764864 {
4977 as_status=$?; test $as_status -eq 0 && as_status=1
4978 if test "$3"; then
4979 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4980 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4865 as_status=$1; test $as_status -eq 0 && as_status=1
4866 if test "$4"; then
4867 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4868 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
49814869 fi
4982 $as_echo "$as_me: error: $1" >&2
4870 $as_echo "$as_me: error: $2" >&2
49834871 as_fn_exit $as_status
49844872 } # as_fn_error
49854873
51755063 test -d "$as_dir" && break
51765064 done
51775065 test -z "$as_dirs" || eval "mkdir $as_dirs"
5178 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5066 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
51795067
51805068
51815069 } # as_fn_mkdir_p
52295117 # values after options handling.
52305118 ac_log="
52315119 This file was extended by $as_me, which was
5232 generated by GNU Autoconf 2.65. Invocation command line was
5120 generated by GNU Autoconf 2.68. Invocation command line was
52335121
52345122 CONFIG_FILES = $CONFIG_FILES
52355123 CONFIG_HEADERS = $CONFIG_HEADERS
52955183 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
52965184 ac_cs_version="\\
52975185 config.status
5298 configured by $0, generated by GNU Autoconf 2.65,
5186 configured by $0, generated by GNU Autoconf 2.68,
52995187 with options \\"\$ac_cs_config\\"
53005188
5301 Copyright (C) 2009 Free Software Foundation, Inc.
5189 Copyright (C) 2010 Free Software Foundation, Inc.
53025190 This config.status script is free software; the Free Software Foundation
53035191 gives unlimited permission to copy, distribute and modify it."
53045192
53165204 while test $# != 0
53175205 do
53185206 case $1 in
5319 --*=*)
5207 --*=?*)
53205208 ac_option=`expr "X$1" : 'X\([^=]*\)='`
53215209 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5210 ac_shift=:
5211 ;;
5212 --*=)
5213 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5214 ac_optarg=
53225215 ac_shift=:
53235216 ;;
53245217 *)
53425235 $ac_shift
53435236 case $ac_optarg in
53445237 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5238 '') as_fn_error $? "missing file argument" ;;
53455239 esac
53465240 as_fn_append CONFIG_FILES " '$ac_optarg'"
53475241 ac_need_defaults=false;;
53545248 ac_need_defaults=false;;
53555249 --he | --h)
53565250 # Conflict between --help and --header
5357 as_fn_error "ambiguous option: \`$1'
5251 as_fn_error $? "ambiguous option: \`$1'
53585252 Try \`$0 --help' for more information.";;
53595253 --help | --hel | -h )
53605254 $as_echo "$ac_cs_usage"; exit ;;
53635257 ac_cs_silent=: ;;
53645258
53655259 # This is an error.
5366 -*) as_fn_error "unrecognized option: \`$1'
5260 -*) as_fn_error $? "unrecognized option: \`$1'
53675261 Try \`$0 --help' for more information." ;;
53685262
53695263 *) as_fn_append ac_config_targets " $1"
54215315 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
54225316 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54235317
5424 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5318 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
54255319 esac
54265320 done
54275321
54445338 # after its creation but before its name has been assigned to `$tmp'.
54455339 $debug ||
54465340 {
5447 tmp=
5341 tmp= ac_tmp=
54485342 trap 'exit_status=$?
5449 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5343 : "${ac_tmp:=$tmp}"
5344 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
54505345 ' 0
54515346 trap 'as_fn_exit 1' 1 2 13 15
54525347 }
54545349
54555350 {
54565351 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5457 test -n "$tmp" && test -d "$tmp"
5352 test -d "$tmp"
54585353 } ||
54595354 {
54605355 tmp=./conf$$-$RANDOM
54615356 (umask 077 && mkdir "$tmp")
5462 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5357 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5358 ac_tmp=$tmp
54635359
54645360 # Set up the scripts for CONFIG_FILES section.
54655361 # No need to generate them if there are no CONFIG_FILES.
54765372 fi
54775373 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
54785374 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5479 ac_cs_awk_cr='\r'
5375 ac_cs_awk_cr='\\r'
54805376 else
54815377 ac_cs_awk_cr=$ac_cr
54825378 fi
54835379
5484 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5380 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
54855381 _ACEOF
54865382
54875383
54905386 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
54915387 echo "_ACEOF"
54925388 } >conf$$subs.sh ||
5493 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5494 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5389 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
5390 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
54955391 ac_delim='%!_!# '
54965392 for ac_last_try in false false false false false :; do
54975393 . ./conf$$subs.sh ||
5498 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5394 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
54995395
55005396 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
55015397 if test $ac_delim_n = $ac_delim_num; then
55025398 break
55035399 elif $ac_last_try; then
5504 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
55055401 else
55065402 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
55075403 fi
55095405 rm -f conf$$subs.sh
55105406
55115407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5512 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5408 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
55135409 _ACEOF
55145410 sed -n '
55155411 h
55575453 rm -f conf$$subs.awk
55585454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
55595455 _ACAWK
5560 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5456 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
55615457 for (key in S) S_is_set[key] = 1
55625458 FS = ""
55635459
55895485 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
55905486 else
55915487 cat
5592 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5593 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5594 _ACEOF
5595
5596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5488 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
5489 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
5490 _ACEOF
5491
5492 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
5493 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
55985494 # trailing colons and then remove the whole line if VPATH becomes empty
55995495 # (actually we leave an empty line to preserve line numbers).
56005496 if test "x$srcdir" = x.; then
5601 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5602 s/:*\$(srcdir):*/:/
5603 s/:*\${srcdir}:*/:/
5604 s/:*@srcdir@:*/:/
5605 s/^\([^=]*=[ ]*\):*/\1/
5497 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
5498 h
5499 s///
5500 s/^/:/
5501 s/[ ]*$/:/
5502 s/:\$(srcdir):/:/g
5503 s/:\${srcdir}:/:/g
5504 s/:@srcdir@:/:/g
5505 s/^:*//
56065506 s/:*$//
5507 x
5508 s/\(=[ ]*\).*/\1/
5509 G
5510 s/\n//
56075511 s/^[^=]*=[ ]*$//
56085512 }'
56095513 fi
56155519 # No need to generate them if there are no CONFIG_HEADERS.
56165520 # This happens for instance with `./config.status Makefile'.
56175521 if test -n "$CONFIG_HEADERS"; then
5618 cat >"$tmp/defines.awk" <<\_ACAWK ||
5522 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
56195523 BEGIN {
56205524 _ACEOF
56215525
56275531 # handling of long lines.
56285532 ac_delim='%!_!# '
56295533 for ac_last_try in false false :; do
5630 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5631 if test -z "$ac_t"; then
5534 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
5535 if test -z "$ac_tt"; then
56325536 break
56335537 elif $ac_last_try; then
5634 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5538 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
56355539 else
56365540 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
56375541 fi
57165620 _ACAWK
57175621 _ACEOF
57185622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5719 as_fn_error "could not setup config headers machinery" "$LINENO" 5
5623 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
57205624 fi # test -n "$CONFIG_HEADERS"
57215625
57225626
57295633 esac
57305634 case $ac_mode$ac_tag in
57315635 :[FHL]*:*);;
5732 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5636 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
57335637 :[FH]-) ac_tag=-:-;;
57345638 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57355639 esac
57485652 for ac_f
57495653 do
57505654 case $ac_f in
5751 -) ac_f="$tmp/stdin";;
5655 -) ac_f="$ac_tmp/stdin";;
57525656 *) # Look for the file first in the build tree, then in the source tree
57535657 # (if the path is not absolute). The absolute path cannot be DOS-style,
57545658 # because $ac_f cannot contain `:'.
57575661 [\\/$]*) false;;
57585662 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57595663 esac ||
5760 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5664 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
57615665 esac
57625666 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57635667 as_fn_append ac_file_inputs " '$ac_f'"
57835687 esac
57845688
57855689 case $ac_tag in
5786 *:-:* | *:-) cat >"$tmp/stdin" \
5787 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5690 *:-:* | *:-) cat >"$ac_tmp/stdin" \
5691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
57885692 esac
57895693 ;;
57905694 esac
59205824 s&@MKDIR_P@&$ac_MKDIR_P&;t t
59215825 $ac_datarootdir_hack
59225826 "
5923 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5924 || as_fn_error "could not create $ac_file" "$LINENO" 5
5827 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5828 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
59255829
59265830 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5927 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5928 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5831 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5833 "$ac_tmp/out"`; test -z "$ac_out"; } &&
59295834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5930 which seems to be undefined. Please make sure it is defined." >&5
5835 which seems to be undefined. Please make sure it is defined" >&5
59315836 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5932 which seems to be undefined. Please make sure it is defined." >&2;}
5933
5934 rm -f "$tmp/stdin"
5837 which seems to be undefined. Please make sure it is defined" >&2;}
5838
5839 rm -f "$ac_tmp/stdin"
59355840 case $ac_file in
5936 -) cat "$tmp/out" && rm -f "$tmp/out";;
5937 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5841 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5842 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
59385843 esac \
5939 || as_fn_error "could not create $ac_file" "$LINENO" 5
5844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
59405845 ;;
59415846 :H)
59425847 #
59455850 if test x"$ac_file" != x-; then
59465851 {
59475852 $as_echo "/* $configure_input */" \
5948 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5949 } >"$tmp/config.h" \
5950 || as_fn_error "could not create $ac_file" "$LINENO" 5
5951 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5853 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5854 } >"$ac_tmp/config.h" \
5855 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5856 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
59525857 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
59535858 $as_echo "$as_me: $ac_file is unchanged" >&6;}
59545859 else
59555860 rm -f "$ac_file"
5956 mv "$tmp/config.h" "$ac_file" \
5957 || as_fn_error "could not create $ac_file" "$LINENO" 5
5861 mv "$ac_tmp/config.h" "$ac_file" \
5862 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
59585863 fi
59595864 else
59605865 $as_echo "/* $configure_input */" \
5961 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5962 || as_fn_error "could not create -" "$LINENO" 5
5866 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5867 || as_fn_error $? "could not create -" "$LINENO" 5
59635868 fi
59645869 # Compute "$ac_file"'s index in $config_headers.
59655870 _am_arg="$ac_file"
61096014 ac_clean_files=$ac_clean_files_save
61106015
61116016 test $ac_write_fail = 0 ||
6112 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6017 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
61136018
61146019
61156020 # configure is writing to config.log, and then calls config.status.
61306035 exec 5>>config.log
61316036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
61326037 # would make configure fail if this is the last instruction.
6133 $ac_cs_success || as_fn_exit $?
6038 $ac_cs_success || as_fn_exit 1
61346039 fi
61356040 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
61366041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
0 AC_DEFUN([CURSES_TEST],
1 [
2 if test "x$sv_curses" = xno; then
3 sv_test=$1
4 sv_pass="no"
5 AC_MSG_CHECKING([name is $sv_test])
6 LIBS="-l$sv_test"
7 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <curses.h>], [initscr();])],
8 [sv_pass="yes"])
9 AC_MSG_RESULT([$sv_pass])
10 test "$sv_pass" = yes && sv_curses=$sv_test
11 unset LIBS
12 fi
13 ])
14
015 AC_INIT(squidview.cpp)
116 AM_CONFIG_HEADER(config.h)
2 AM_INIT_AUTOMAKE(squidview,0.76)
17 AM_INIT_AUTOMAKE(squidview,0.79)
318 AC_PROG_CXX
419 AC_PROG_INSTALL
520
6 AC_CHECK_HEADERS(curses.h signal.h sys/time.h sys/types.h sys/stat.h \
7 unistd.h fcntl.h time.h stdlib.h math.h,, \
21 AC_CHECK_HEADERS(curses.h, signal.h sys/time.h sys/types.h sys/stat.h \
22 unistd.h fcntl.h time.h stdlib.h math.h stdio.h,, \
823 AC_MSG_ERROR([header missing]))
9 AC_CHECK_LIB(ncurses, wgetch,,AC_MSG_ERROR([recent ncurses installed?]))
1024
1125 AC_LANG_CPLUSPLUS
1226 AC_CHECK_HEADER(string,,AC_MSG_ERROR(C++ STL string class missing))
1327 AC_CHECK_HEADER(vector,,AC_MSG_ERROR(C++ STL vector class missing))
1428 AC_CHECK_HEADER(algorithm,,AC_MSG_ERROR(C++ STL algorithm class missing))
1529
30 AC_MSG_NOTICE([Checking curses library name])
31 sv_curses=no
32 CURSES_TEST(ncurses)
33 CURSES_TEST(curses)
34 if test "x$sv_curses" = xno; then
35 AC_MSG_ERROR([No suitable curses found])
36 fi
37 AC_CHECK_LIB($sv_curses, wgetch,,AC_MSG_ERROR([Curses support is not complete?]))
38
39 AC_MSG_CHECKING([large file support])
40 sv_large="no"
41 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
42 #include <sys/types.h>
43 #include <sys/stat.h>
44 #include <fcntl.h>
45 ],[open ("file", O_RDONLY | O_LARGEFILE);])],[sv_large="yes"])
46 AC_MSG_RESULT([$sv_large])
47 if test "$sv_large" = yes; then
48 AC_DEFINE([LARGE_FILE],[1],[files over four gigs])
49 CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $CPPFLAGS"
50 fi
51
1652 AC_OUTPUT(Makefile)
1616
1717 A program to nicely browse your squid log
1818
19 (c) 2001 - 2007 Graeme Sheppard
19 (c) 2001 - 2011 Graeme Sheppard
2020
2121 This program is not how it would be if I had to rewrite it from scratch.
2222 It started off very simple (quick and nasty) and needed to be fast because
5959 #include <fcntl.h>
6060 #include <time.h>
6161 #include <stdlib.h>
62 #include <stdio.h>
6263 #include <math.h>
6364 #include <ctype.h>
6465 #include <string.h>
155156 }
156157
157158
159 // int to string conversion
160 string ItoS (tByteTotal iNumber)
161 {
162 stringstream ssTemp;
163
164 ssTemp << iNumber;
165 return (ssTemp.str());
166 }
167
168
169 // 12345 to "12,345"
170 string ItoCommas (tByteTotal iNumber)
171 {
172 string sReturn;
173 int iIndex, iCount;
174
175 sReturn = ItoS (iNumber);
176
177 iIndex = sReturn.length();
178 if (iIndex == 0)
179 return sReturn;
180 iIndex--;
181 iCount = 4;
182 while (iIndex >= 0)
183 {
184 if (--iCount == 0)
185 {
186 sReturn.insert (iIndex + 1, ",");
187 iCount = 3;
188 }
189 iIndex--;
190 }
191 return sReturn;
192 }
193
194
195 // open a file, with large file support >4G
196 int OpenLargeFile (const char* szFilename)
197 {
198 #ifdef LARGE_FILE
199 return open (szFilename, O_RDONLY | O_LARGEFILE);
200 #else
201 return open (szFilename, O_RDONLY);
202 #endif
203 }
204
205
158206 // return the size of a file
159207 tFilePos GetFileSize (const string& sFileName)
160208 {
161 struct stat sLog;
162 int iRet;
163
164 iRet = stat (sFileName.c_str(), &sLog);
165 if (iRet != 0)
209 int iFD;
210 tFilePos iPos;
211
212 iFD = OpenLargeFile (sFileName.c_str());
213 if (iFD < 0)
214 {
166215 return 0;
167
168 return sLog.st_size;
216 }
217 iPos = lseek (iFD, 0, SEEK_END);
218 close (iFD);
219 return iPos;
169220 }
170221
171222
188239 }
189240
190241
191 /// execute a shell command
242 // execute a shell command
192243 void RunProgramInConsole (const string& sCommand)
193244 {
194245 MyCls();
217268 }
218269
219270
220 // int to string conversion
221 string ItoS (tByteTotal iNumber)
222 {
223 stringstream ssTemp;
224
225 ssTemp << iNumber;
226 return (ssTemp.str());
227 }
228
229
230 // 12345 to "12,345"
231 string ItoCommas (tByteTotal iNumber)
232 {
233 string sReturn;
234 int iIndex, iCount;
235
236 sReturn = ItoS (iNumber);
237
238 iIndex = sReturn.length();
239 if (iIndex == 0)
240 return sReturn;
241 iIndex--;
242 iCount = 4;
243 while (iIndex >= 0)
244 {
245 if (--iCount == 0)
246 {
247 sReturn.insert (iIndex + 1, ",");
248 iCount = 3;
249 }
250 iIndex--;
251 }
252 return sReturn;
253 }
254
255
256271 // return xxx.yy% of first number to second number
257272 void CalcPercentage (tFilePos iCurrent, tFilePos iEnd,
258273 string& sOutput)
404419 // check if need to open new file, return false on error
405420 inline bool ReadingFile()
406421 {
407 if ((fReadingFile == 0) || (pszReadingFile != pszCurrentLog))
408 {
409 if (fReadingFile)
410 fclose (fReadingFile);
411 fReadingFile = fopen (pszCurrentLog, "rb");
412 if (fReadingFile)
422 if ((fReadingFile < 0) || (pszReadingFile != pszCurrentLog))
423 {
424 if (fReadingFile > 0)
425 close (fReadingFile);
426 fReadingFile = OpenLargeFile (pszCurrentLog);
427 if (fReadingFile > 0)
413428 {
414429 pszReadingFile = pszCurrentLog;
415430 return true;
446461
447462 iReturn = 0;
448463
449 if (fseek (fReadingFile, iOffset, SEEK_SET) == 0)
450 {
451 iAvailable = fread (&cDiskBuffer, 1, iBlock, fReadingFile);
464 if (lseek (fReadingFile, iOffset, SEEK_SET) >= 0)
465 {
466 iAvailable = read (fReadingFile, &cDiskBuffer, iBlock);
452467 if (iAvailable > 0)
453468 {
454469 pcBuffer = cDiskBuffer;
480495
481496 pcReqBuff = pcEmpty;
482497
483 if (iOffset == 0)
484 return iOffset;
498 if (iOffset <= 0)
499 return 0;
485500
486501 iBlock = iOffset;
487502 if (iBlock > nReadBuffer)
493508 iReturn = iOffset;
494509
495510 iBase = iOffset - iBlock;
496 if (fseek (fReadingFile, iBase, SEEK_SET) == 0)
497 {
498 iAvailable = fread (&cDiskBuffer, 1, iBlock, fReadingFile);
511 if (lseek (fReadingFile, iBase, SEEK_SET) >= 0)
512 {
513 iAvailable = read (fReadingFile, &cDiskBuffer, iBlock);
499514 if (iAvailable > 3)
500515 {
501516 if (cDiskBuffer [iAvailable - 2] == cEOL)
941956 // load the search phrases
942957 int LoadWords()
943958 {
944 int iFile, iIndex, iRead, iLetter, iLength;
959 int iFile, iRead, iLetter, iLength;
945960
946961 sWords = "";
947 iIndex = iLength = 0;
962 iLength = 0;
948963 iFile = open (sWordFile.c_str(), O_RDONLY);
949964 if (iFile <= 0)
950965 return 0;
10611076 // load aliases
10621077 void LoadAliases()
10631078 {
1064 int iFile, iIndex, iRead, iLetter, iLength, iNames, iLine, iCount;
1079 int iFile, iRead, iLetter, iNames, iLine, iCount;
10651080 string sLine, sColumn;
10661081 tIPnum iIP;
10671082 rAliasRecord rEntry;
10711086 while (!vAliasUserName.empty())
10721087 vAliasUserName.pop_back();
10731088
1074 iIndex = iLength = iNames = 0;
1089 iNames = 0;
10751090 iLine = 1;
10761091
10771092 iFile = open (sAliasesFile.c_str(), O_RDONLY);
18731888 }
18741889
18751890
1876 ///
18771891 bool CompareHits (const sRecordPointer& rLeft, const sRecordPointer& rRight)
18781892 {
18791893 if (rLeft.iHits > rRight.iHits)
21012115 }
21022116
21032117
2104 /// make the report
2118 // make the report
21052119 void GenerateReport::Run()
21062120 {
21072121 tFilePos iCurrent, iTempPos, iStopPos, iScanArea;
21752189 iTempPos = GetLine (iCurrent);
21762190 if ((iTempPos == 0) || (iTempPos == iCurrent))
21772191 throw done;
2192 bTemp = false;
21782193 if (!NullText (pcReqBuff))
21792194 {
21802195 GetRequestFlags (pcReqBuff, sFlags);
2196 if (sFlags.find ("d") == string::npos) // check for squid denied
2197 bTemp = true;
2198 }
2199 if (bTemp)
2200 {
21812201 iRequestSize = GetRequestSize (pcReqBuff);
21822202 iByteTotal += iRequestSize;
21832203 iRequests++;
27662786 int iIn, iOut, iLetter, iLen, iSpaces;
27672787 string sLine, sTime, sLastTime, sTemp;
27682788 bool bWrite, bRet, bSplitting, bTimed, bGrand;
2769 const char* szLine;
27702789
27712790 iSpaces = 0;
27722791 sTime = "";
28012820 {
28022821 bWrite = false;
28032822 sLastTime = sTime;
2804 szLine = sLine.c_str();
28052823
28062824 if (!bWrite)
28072825 {
39293947 }
39303948
39313949
3932 /// store these variables in config file
3950 // store these variables in config file
39333951 void SettingsIO::EachOne()
39343952 {
39353953 IOstring ("sRepFileName", sRepFileName);
45554573 return Browse();
45564574 }
45574575
4558
4559 ///
4576
45604577 bool cUsersMode::Browse()
45614578 {
45624579 int iKey, iMode;
52795296 void Help()
52805297 {
52815298 MyCls();
5282 con << PACKAGE << " " << VERSION << ": (c) " << "2001-2007"
5299 con << PACKAGE << " " << VERSION << ": (c) " << "2001-2011"
52835300 << " Graeme Sheppard - GPL software\n"
52845301 << "www.rillion.net/squidview\n\n" <<
52855302 "Keystrokes:-\n\n"
53885405 static void FinishSig (int iSig)
53895406 {
53905407 endwin();
5391 if (fReadingFile)
5392 fclose (fReadingFile);
5408 if (fReadingFile > 0)
5409 close (fReadingFile);
53935410 exit (iSig);
53945411 }
53955412
2828 #include <stdint.h>
2929 #include <inttypes.h>
3030 #include <curses.h>
31 #include <sys/types.h>
32 #include <sys/stat.h>
33 #include <fcntl.h>
3134 #include <time.h>
3235 #include <string>
3336
5053 int iUserNameLen = 8; // maximum displayed width of a login name
5154 #define nSizeCols 11 // width given to display size of requests
5255
53 typedef long tFilePos; // positions in log file are of this type
56 typedef off_t tFilePos; // positions in log file are of this type
57
5458 typedef uint64_t tByteTotal; // for summing bytes transferred
5559 typedef uint32_t tIPnum; // IP aliases only 32 bit at this stage
5660
8387
8488 string sLogFile1, sLogFile2, sLogFile3;
8589 string sWordFile, sUsersFile, sAliasesFile, sSetFileName, sHowToLink;
86 FILE *fReadingFile = 0;
90 int fReadingFile = -1;
8791 char const *pszReadingFile = 0;
8892
8993 string sViewer = "less";