debian/0000755000000000000000000000000011767252265007203 5ustar debian/rules0000755000000000000000000000420111767250427010256 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DEB_BUILD_HARDENING=1 include /usr/share/quilt/quilt.make # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif config.status: configure $(QUILT_STAMPFN) dh_testdir cp -f /usr/share/misc/config.sub config.sub cp -f /usr/share/misc/config.guess config.guess # Add here commands to configure the package. ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: config.status dh_testdir # Add here commands to compile the package. $(MAKE) #/usr/bin/docbook-to-man debian/nast.sgml > nast.1 touch build-stamp clean: unpatch dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean dh_clean config.sub config.guess install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/nast. $(MAKE) install prefix=$(CURDIR)/debian/nast/usr # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog dh_installdocs dh_installexamples dh_installman dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/compat0000644000000000000000000000000211767162743010402 0ustar 5 debian/patches/0000755000000000000000000000000011767251172010626 5ustar debian/patches/printf-literal-format0000644000000000000000000000066511767162746015012 0ustar Description: Use a string literal for the format argument in printf calls. Author: Jakub Wilk Bug: http://bugs.debian.org/614450 Forwarded: no Last-Update: 2011-03-07 --- a/bcount.c +++ b/bcount.c @@ -153,7 +153,7 @@ else icons++; sprintf (value, "%Ld", number); - printf (value); + printf ("%s", value); /* calculate space */ if (strlen(value) < 6) printf ("\t\t"); debian/patches/fix-array-bounds-error0000644000000000000000000000067211767247174015106 0ustar correct array bounds for the pthread_t array by adding one space Index: nast/ncurses/n_nast.h =================================================================== --- nast.orig/ncurses/n_nast.h 2012-06-16 13:00:31.000000000 -0700 +++ nast/ncurses/n_nast.h 2012-06-16 20:16:06.000000000 -0700 @@ -113,7 +113,7 @@ pcap_dumper_t *dumper; /* thread for database connections */ -pthread_t thID[6]; +pthread_t thID[7]; struct thread_conn { debian/patches/fix-on-some-laptops0000644000000000000000000000376011767162743014405 0ustar certain wireless card drives break auto detection. This moves the detection code after the option parsing, so that people can still work around it with "-i wlan0". http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=464012 --- a/main.c +++ b/main.c @@ -31,6 +31,7 @@ int main(int argc,char **argv) { char *dev, *app; + dev = NULL; char *filter, *buffer, ldname[50]; char errbuf[PCAP_ERRBUF_SIZE]; extern char *optarg; @@ -105,14 +106,6 @@ fprintf(stderr, "You must be root, Sorry\n\n"); return -1; } - - /* finding a suitable device */ - dev = pcap_lookupdev(errbuf); - if (dev==NULL) - { - fprintf (stderr, "Error: can't find a suitable interface to use: %s\n", errbuf); - return -1; - } /* res = pcap_findalldevs(&devices, errbuf); @@ -142,12 +135,6 @@ pcap_freealldevs(devices); */ - if ((L = libnet_init (LIBNET_LINK, dev, errbuf))==NULL) - { - fprintf(stderr, "Error: can't initialize libnet engine: %s", errbuf); - fprintf(stderr, "Have you activate a non-loopback iface? (man ifconfig)\n"); - exit(-1); - } line_s = row_s = cont = lg = 0; option_index = 0; @@ -171,7 +158,7 @@ break; case 'i': (app=optarg); - strcpy(dev,app); + dev = app; break; case 'l': /* log to file */ flags.l=1; @@ -281,6 +268,22 @@ } /* END OF ARGS SWITCH */ + /* finding a suitable device */ + if(dev == NULL) dev = pcap_lookupdev(errbuf); + if (dev==NULL) + { + fprintf (stderr, "Error: can't find a suitable interface to use: %s\n", errbuf); + return -1; + } + + if ((L = libnet_init (LIBNET_LINK, dev, errbuf))==NULL) + { + fprintf(stderr, "Error: can't initialize libnet engine: %s", errbuf); + fprintf(stderr, "Have you activate a non-loopback iface? (man ifconfig)\n"); + fprintf(stderr, "Maybe autodetection is failing, try with \"-i interface\"\n"); + exit(-1); + } + if (dev==NULL) { fprintf(stderr, "Cannot find a suitable network interface!\n"); debian/patches/configure_updates_version_0.2.0-5.20000644000000000000000000025275611767247236017072 0ustar Author: Jakub Wilk Remove spurious checks for static libraries in /usr/lib from configure. Thanks to Lucas Nussbaum for the bug report. Closes: #634600 diff --git a/configure b/configure index f89f655..3f72014 100755 --- a/configure +++ b/configure @@ -1,11 +1,10 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.57 for nast 0.2.0. +# Generated by GNU Autoconf 2.59 for nast 0.2.0. # # Report bugs to . # -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 -# Free Software Foundation, Inc. +# Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## @@ -22,9 +21,10 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi +DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false @@ -43,7 +43,7 @@ for as_var in \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var @@ -220,16 +220,17 @@ rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else + test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS @@ -670,7 +671,7 @@ done # Be sure to have absolute paths. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ - localstatedir libdir includedir oldincludedir infodir mandir + localstatedir libdir includedir oldincludedir infodir mandir do eval ac_val=$`echo $ac_var` case $ac_val in @@ -710,10 +711,10 @@ if test -z "$srcdir"; then # Try the directory containing this script, then its parent. ac_confdir=`(dirname "$0") 2>/dev/null || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$0" : 'X\(//\)[^/]' \| \ - X"$0" : 'X\(//\)$' \| \ - X"$0" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || + X"$0" : 'X\(//\)[^/]' \| \ + X"$0" : 'X\(//\)$' \| \ + X"$0" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } @@ -805,9 +806,9 @@ _ACEOF cat <<_ACEOF Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] + [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [PREFIX] + [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify @@ -892,12 +893,45 @@ case $srcdir in ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be -# absolute. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac cd $ac_dir # Check for guested configure; otherwise get Cygnus style configure. @@ -908,7 +942,7 @@ ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` echo $SHELL $ac_srcdir/configure --help=recursive elif test -f $ac_srcdir/configure.ac || - test -f $ac_srcdir/configure.in; then + test -f $ac_srcdir/configure.in; then echo $ac_configure --help else @@ -922,10 +956,9 @@ test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF nast configure 0.2.0 -generated by GNU Autoconf 2.57 +generated by GNU Autoconf 2.59 -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 -Free Software Foundation, Inc. +Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF @@ -937,7 +970,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by nast $as_me 0.2.0, which was -generated by GNU Autoconf 2.57. Invocation command line was +generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -1014,19 +1047,19 @@ do 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then - ac_must_keep_next=false # Got value, back to normal. + ac_must_keep_next=false # Got value, back to normal. else - case $ac_arg in - *=* | --config-cache | -C | -disable-* | --disable-* \ - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ - | -with-* | --with-* | -without-* | --without-* | --x) - case "$ac_configure_args0 " in - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; - esac - ;; - -* ) ac_must_keep_next=true ;; - esac + case $ac_arg in + *=* | --config-cache | -C | -disable-* | --disable-* \ + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ + | -with-* | --with-* | -without-* | --without-* | --x) + case "$ac_configure_args0 " in + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; + esac + ;; + -* ) ac_must_keep_next=true ;; + esac fi ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" # Get rid of the leading space. @@ -1060,12 +1093,12 @@ _ASBOX case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in *ac_space=\ *) sed -n \ - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" ;; *) sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } @@ -1094,7 +1127,7 @@ _ASBOX for ac_var in $ac_subst_files do eval ac_val=$`echo $ac_var` - echo "$ac_var='"'"'$ac_val'"'"'" + echo "$ac_var='"'"'$ac_val'"'"'" done | sort echo fi @@ -1113,7 +1146,7 @@ _ASBOX echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 - rm -f core core.* *.core && + rm -f core *.core && rm -rf conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 @@ -1193,7 +1226,7 @@ fi # value. ac_cache_corrupted=false for ac_var in `(set) 2>&1 | - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val="\$ac_cv_env_${ac_var}_value" @@ -1210,13 +1243,13 @@ echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} - ac_cache_corrupted=: + ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. @@ -1794,7 +1827,6 @@ ac_compiler=`set X $ac_compile; echo $2` (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -1814,8 +1846,8 @@ ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. -echo "$as_me:$LINENO: checking for C compiler default output" >&5 -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 (eval $ac_link_default) 2>&5 @@ -1835,23 +1867,23 @@ do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) - ;; + ;; conftest.$ac_ext ) - # This is the source file. - ;; + # This is the source file. + ;; [ab].out ) - # We found the default executable, but exeext='' is most - # certainly right. - break;; + # We found the default executable, but exeext='' is most + # certainly right. + break;; *.* ) - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - # FIXME: I believe we export ac_cv_exeext for Libtool, - # but it would be cool to find out if it's true. Does anybody - # maintain Libtool? --akim. - export ac_cv_exeext - break;; + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` + # FIXME: I believe we export ac_cv_exeext for Libtool, + # but it would be cool to find out if it's true. Does anybody + # maintain Libtool? --akim. + export ac_cv_exeext + break;; * ) - break;; + break;; esac done else @@ -1925,8 +1957,8 @@ for ac_file in conftest.exe conftest conftest.*; do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` - export ac_cv_exeext - break;; + export ac_cv_exeext + break;; * ) break;; esac done @@ -1951,7 +1983,6 @@ if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2002,7 +2033,6 @@ if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2022,11 +2052,21 @@ main () _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2039,7 +2079,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi @@ -2055,7 +2095,6 @@ if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2072,11 +2111,21 @@ main () _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2089,7 +2138,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_prog_cc_g=no fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 @@ -2116,7 +2165,6 @@ else ac_cv_prog_cc_stdc=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2144,6 +2192,16 @@ static char *f (char * (*g) (char **, int), char **p, ...) va_end (v); return s; } + +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has + function prototypes and stuff, but not '\xHH' hex character constants. + These don't provoke an error unfortunately, instead are silently treated + as 'x'. The following induces an error, until -std1 is added to get + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an + array size at least. It's necessary to write '\x00'==0 to get something + that's true only with -std1. */ +int osf4_cc_array ['\x00' == 0 ? 1 : -1]; + int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; @@ -2170,11 +2228,21 @@ do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2187,7 +2255,7 @@ else sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -f conftest.$ac_objext +rm -f conftest.err conftest.$ac_objext done rm -f conftest.$ac_ext conftest.$ac_objext CC=$ac_save_CC @@ -2215,19 +2283,28 @@ cat >conftest.$ac_ext <<_ACEOF _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then for ac_declaration in \ - ''\ - '#include ' \ + '' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ @@ -2235,14 +2312,13 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 'void exit (int);' do cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ -#include $ac_declaration +#include int main () { @@ -2253,11 +2329,21 @@ exit (42); _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2270,9 +2356,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 continue fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2289,11 +2374,21 @@ exit (42); _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2305,7 +2400,7 @@ else sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext done rm -f conftest* if test -n "$ac_declaration"; then @@ -2319,7 +2414,7 @@ else sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -2336,73 +2431,6 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu # -- libnet -- # -filechk="yes" -echo "$as_me:$LINENO: checking for /usr/lib/libnet.a" >&5 -echo $ECHO_N "checking for /usr/lib/libnet.a... $ECHO_C" >&6 -if test "${ac_cv_file__usr_lib_libnet_a+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - test "$cross_compiling" = yes && - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} - { (exit 1); exit 1; }; } -if test -r "/usr/lib/libnet.a"; then - ac_cv_file__usr_lib_libnet_a=yes -else - ac_cv_file__usr_lib_libnet_a=no -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_file__usr_lib_libnet_a" >&5 -echo "${ECHO_T}$ac_cv_file__usr_lib_libnet_a" >&6 -if test $ac_cv_file__usr_lib_libnet_a = yes; then - : -else - filechk="no" -fi - -if test "$filechk" = "no"; then - echo "$as_me:$LINENO: checking for /usr/local/lib/libnet.a" >&5 -echo $ECHO_N "checking for /usr/local/lib/libnet.a... $ECHO_C" >&6 -if test "${ac_cv_file__usr_local_lib_libnet_a+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - test "$cross_compiling" = yes && - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} - { (exit 1); exit 1; }; } -if test -r "/usr/local/lib/libnet.a"; then - ac_cv_file__usr_local_lib_libnet_a=yes -else - ac_cv_file__usr_local_lib_libnet_a=no -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_libnet_a" >&5 -echo "${ECHO_T}$ac_cv_file__usr_local_lib_libnet_a" >&6 -if test $ac_cv_file__usr_local_lib_libnet_a = yes; then - filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include" -fi - -fi - -if test "$filechk" = "no"; then { { echo "$as_me:$LINENO: error: - -Libnet archive file (libnet.a) not found in /usr or /usr/local! - -Libnet-1.1.x Packet Shaping Library is required. -You can download it from official web site: http://www.packetfactory.net/libnet - -" >&5 -echo "$as_me: error: - -Libnet archive file (libnet.a) not found in /usr or /usr/local! - -Libnet-1.1.x Packet Shaping Library is required. -You can download it from official web site: http://www.packetfactory.net/libnet - -" >&2;} - { (exit 1); exit 1; }; } -fi - echo "$as_me:$LINENO: checking for libnet_name2addr4 in -lnet" >&5 @@ -2413,7 +2441,6 @@ else ac_check_lib_save_LIBS=$LIBS LIBS="-lnet $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2437,11 +2464,21 @@ libnet_name2addr4 (); _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2454,7 +2491,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_net_libnet_name2addr4=no fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_name2addr4" >&5 @@ -2487,73 +2525,6 @@ fi # -- libpcap -- # -filechk="yes" -echo "$as_me:$LINENO: checking for /usr/lib/libpcap.a" >&5 -echo $ECHO_N "checking for /usr/lib/libpcap.a... $ECHO_C" >&6 -if test "${ac_cv_file__usr_lib_libpcap_a+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - test "$cross_compiling" = yes && - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} - { (exit 1); exit 1; }; } -if test -r "/usr/lib/libpcap.a"; then - ac_cv_file__usr_lib_libpcap_a=yes -else - ac_cv_file__usr_lib_libpcap_a=no -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_file__usr_lib_libpcap_a" >&5 -echo "${ECHO_T}$ac_cv_file__usr_lib_libpcap_a" >&6 -if test $ac_cv_file__usr_lib_libpcap_a = yes; then - : -else - filechk="no" -fi - -if test "$filechk" = "no"; then - echo "$as_me:$LINENO: checking for /usr/local/lib/libpcap.a" >&5 -echo $ECHO_N "checking for /usr/local/lib/libpcap.a... $ECHO_C" >&6 -if test "${ac_cv_file__usr_local_lib_libpcap_a+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - test "$cross_compiling" = yes && - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} - { (exit 1); exit 1; }; } -if test -r "/usr/local/lib/libpcap.a"; then - ac_cv_file__usr_local_lib_libpcap_a=yes -else - ac_cv_file__usr_local_lib_libpcap_a=no -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_libpcap_a" >&5 -echo "${ECHO_T}$ac_cv_file__usr_local_lib_libpcap_a" >&6 -if test $ac_cv_file__usr_local_lib_libpcap_a = yes; then - filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include" -fi - -fi - -if test "$filechk" = "no"; then { { echo "$as_me:$LINENO: error: - -Libpcap archive file (libpcap.a) not found in /usr or /usr/local! - -Libpcap-0.7.1 Packet Capture Library is required. -You can download it from official web site: http://www.tcpdump.org/#current - -" >&5 -echo "$as_me: error: - -Libpcap archive file (libpcap.a) not found in /usr or /usr/local! - -Libpcap-0.7.1 Packet Capture Library is required. -You can download it from official web site: http://www.tcpdump.org/#current - -" >&2;} - { (exit 1); exit 1; }; } -fi - echo "$as_me:$LINENO: checking for pcap_dispatch in -lpcap" >&5 echo $ECHO_N "checking for pcap_dispatch in -lpcap... $ECHO_C" >&6 @@ -2563,7 +2534,6 @@ else ac_check_lib_save_LIBS=$LIBS LIBS="-lpcap $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2587,11 +2557,21 @@ pcap_dispatch (); _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2604,7 +2584,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pcap_pcap_dispatch=no fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_dispatch" >&5 @@ -2637,79 +2618,6 @@ fi # -- libncurses support -- # -filechk="yes" -echo "$as_me:$LINENO: checking for /usr/lib/libncurses.a" >&5 -echo $ECHO_N "checking for /usr/lib/libncurses.a... $ECHO_C" >&6 -if test "${ac_cv_file__usr_lib_libncurses_a+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - test "$cross_compiling" = yes && - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} - { (exit 1); exit 1; }; } -if test -r "/usr/lib/libncurses.a"; then - ac_cv_file__usr_lib_libncurses_a=yes -else - ac_cv_file__usr_lib_libncurses_a=no -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_file__usr_lib_libncurses_a" >&5 -echo "${ECHO_T}$ac_cv_file__usr_lib_libncurses_a" >&6 -if test $ac_cv_file__usr_lib_libncurses_a = yes; then - : -else - filechk="no" -fi - -if test "$filechk" = "no"; then - echo "$as_me:$LINENO: checking for /usr/local/lib/libncurses.a" >&5 -echo $ECHO_N "checking for /usr/local/lib/libncurses.a... $ECHO_C" >&6 -if test "${ac_cv_file__usr_local_lib_libncurses_a+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - test "$cross_compiling" = yes && - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} - { (exit 1); exit 1; }; } -if test -r "/usr/local/lib/libncurses.a"; then - ac_cv_file__usr_local_lib_libncurses_a=yes -else - ac_cv_file__usr_local_lib_libncurses_a=no -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_libncurses_a" >&5 -echo "${ECHO_T}$ac_cv_file__usr_local_lib_libncurses_a" >&6 -if test $ac_cv_file__usr_local_lib_libncurses_a = yes; then - filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include" -fi - -fi - -if test "$filechk" = "no"; -then { echo "$as_me:$LINENO: WARNING: - -Libncurses archive file (libncurses.a) not found in /usr or /usr/local! - -Ncurses library (*) not found in your system. -You can download it from official web site: http://www.gnu.org/software/ncurses/ncurses.html -(*): CRT screen handling and optimization package - -Building without ncurses menu support (-G flag will doesn't work) - -" >&5 -echo "$as_me: WARNING: - -Libncurses archive file (libncurses.a) not found in /usr or /usr/local! - -Ncurses library (*) not found in your system. -You can download it from official web site: http://www.gnu.org/software/ncurses/ncurses.html -(*): CRT screen handling and optimization package - -Building without ncurses menu support (-G flag will doesn't work) - -" >&2;} -fi - ENABLE_NCRS="no" echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6 @@ -2719,7 +2627,6 @@ else ac_check_lib_save_LIBS=$LIBS LIBS="-lncurses $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2743,11 +2650,21 @@ initscr (); _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2760,7 +2677,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_ncurses_initscr=no fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5 @@ -2797,82 +2715,6 @@ fi # --lmenu support-- # -filechk="yes" -echo "$as_me:$LINENO: checking for /usr/lib/libmenu.a" >&5 -echo $ECHO_N "checking for /usr/lib/libmenu.a... $ECHO_C" >&6 -if test "${ac_cv_file__usr_lib_libmenu_a+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - test "$cross_compiling" = yes && - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} - { (exit 1); exit 1; }; } -if test -r "/usr/lib/libmenu.a"; then - ac_cv_file__usr_lib_libmenu_a=yes -else - ac_cv_file__usr_lib_libmenu_a=no -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_file__usr_lib_libmenu_a" >&5 -echo "${ECHO_T}$ac_cv_file__usr_lib_libmenu_a" >&6 -if test $ac_cv_file__usr_lib_libmenu_a = yes; then - : -else - filechk="no" -fi - -if test "$filechk" = "no"; then - echo "$as_me:$LINENO: checking for /usr/local/lib/libmenu.a" >&5 -echo $ECHO_N "checking for /usr/local/lib/libmenu.a... $ECHO_C" >&6 -if test "${ac_cv_file__usr_local_lib_libmenu_a+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - test "$cross_compiling" = yes && - { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 -echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} - { (exit 1); exit 1; }; } -if test -r "/usr/local/lib/libmenu.a"; then - ac_cv_file__usr_local_lib_libmenu_a=yes -else - ac_cv_file__usr_local_lib_libmenu_a=no -fi -fi -echo "$as_me:$LINENO: result: $ac_cv_file__usr_local_lib_libmenu_a" >&5 -echo "${ECHO_T}$ac_cv_file__usr_local_lib_libmenu_a" >&6 -if test $ac_cv_file__usr_local_lib_libmenu_a = yes; then - filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include" -fi - -fi - -if test "$filechk" = "no"; -then { echo "$as_me:$LINENO: WARNING: - -Menu archive file (libncurses.a) not found in /usr or /usr/local! - - -Menu library (*) not found in your system. -You can download it from official web site: http://www.gnu.org/software/ncurses/ncurses.html -(*): CRT screen handling and optimization package - - -Building without ncurses menu support (-G flag will doesn't work) -" >&5 -echo "$as_me: WARNING: - -Menu archive file (libncurses.a) not found in /usr or /usr/local! - - -Menu library (*) not found in your system. -You can download it from official web site: http://www.gnu.org/software/ncurses/ncurses.html -(*): CRT screen handling and optimization package - - -Building without ncurses menu support (-G flag will doesn't work) -" >&2;} - -fi - ENABLE_NCRS="no" echo "$as_me:$LINENO: checking for menu_opts_off in -lmenu" >&5 echo $ECHO_N "checking for menu_opts_off in -lmenu... $ECHO_C" >&6 @@ -2882,7 +2724,6 @@ else ac_check_lib_save_LIBS=$LIBS LIBS="-lmenu $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2906,11 +2747,21 @@ menu_opts_off (); _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2923,7 +2774,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_menu_menu_opts_off=no fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_menu_menu_opts_off" >&5 @@ -2975,7 +2827,6 @@ else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -2999,11 +2850,21 @@ pthread_create (); _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -3016,7 +2877,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_lib_pthread_pthread_create=no fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 @@ -3083,7 +2945,6 @@ do # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3094,7 +2955,7 @@ cat >>conftest.$ac_ext <<_ACEOF #else # include #endif - Syntax error + Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 @@ -3106,6 +2967,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi @@ -3126,7 +2988,6 @@ rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3144,6 +3005,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi @@ -3190,7 +3052,6 @@ do # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3201,7 +3062,7 @@ cat >>conftest.$ac_ext <<_ACEOF #else # include #endif - Syntax error + Syntax error _ACEOF if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 @@ -3213,6 +3074,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi @@ -3233,7 +3095,6 @@ rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3251,6 +3112,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi @@ -3311,7 +3173,6 @@ if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3332,11 +3193,21 @@ main () _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -3349,12 +3220,11 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3376,7 +3246,6 @@ fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3401,7 +3270,6 @@ if test $ac_cv_header_stdc = yes; then : else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3413,9 +3281,9 @@ cat >>conftest.$ac_ext <<_ACEOF # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) + (('a' <= (c) && (c) <= 'i') \ + || ('j' <= (c) && (c) <= 'r') \ + || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif @@ -3426,7 +3294,7 @@ main () int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) + || toupper (i) != TOUPPER (i)) exit(2); exit (0); } @@ -3451,7 +3319,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi -rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi @@ -3476,7 +3344,7 @@ fi for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ - inttypes.h stdint.h unistd.h + inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` echo "$as_me:$LINENO: checking for $ac_header" >&5 @@ -3485,7 +3353,6 @@ if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3497,11 +3364,21 @@ $ac_includes_default _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -3514,7 +3391,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 @@ -3546,7 +3423,6 @@ else echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3557,11 +3433,21 @@ $ac_includes_default _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -3574,7 +3460,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 @@ -3582,7 +3468,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6 echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3600,6 +3485,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi @@ -3619,33 +3505,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? -case $ac_header_compiler:$ac_header_preproc in - yes:no ) +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - ( - cat <<\_ASBOX -## ------------------------------------ ## -## Report this to bug-autoconf@gnu.org. ## -## ------------------------------------ ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes ;; - no:yes ) + no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX -## ------------------------------------ ## -## Report this to bug-autoconf@gnu.org. ## -## ------------------------------------ ## +## ------------------------------- ## +## Report this to embyte@madlab.it ## +## ------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 @@ -3656,7 +3541,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - eval "$as_ac_Header=$ac_header_preproc" + eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 @@ -3683,21 +3568,28 @@ if test "${ac_cv_func_getopt_long+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +/* Define getopt_long to an innocuous variant, in case declares getopt_long. + For example, HP-UX 11i declares gettimeofday. */ +#define getopt_long innocuous_getopt_long + /* System header to define __stub macros and hopefully few prototypes, which can conflict with char getopt_long (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ + #ifdef __STDC__ # include #else # include #endif + +#undef getopt_long + /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" @@ -3728,11 +3620,21 @@ return f != getopt_long; _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -3745,7 +3647,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func_getopt_long=no fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6 @@ -3767,7 +3670,6 @@ if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3830,11 +3732,21 @@ main () _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -3847,7 +3759,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6 @@ -3865,7 +3777,6 @@ if test "${ac_cv_header_time+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3886,11 +3797,21 @@ return 0; _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -3903,7 +3824,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_time=no fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 echo "${ECHO_T}$ac_cv_header_time" >&6 @@ -3921,7 +3842,6 @@ if test "${ac_cv_struct_tm+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3940,11 +3860,21 @@ struct tm *tp; tp->tm_sec; _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -3957,7 +3887,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_struct_tm=sys/time.h fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 echo "${ECHO_T}$ac_cv_struct_tm" >&6 @@ -3988,7 +3918,6 @@ else echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -3999,11 +3928,21 @@ $ac_includes_default _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -4016,7 +3955,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6 @@ -4024,7 +3963,6 @@ echo "${ECHO_T}$ac_header_compiler" >&6 echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -4042,6 +3980,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi @@ -4061,33 +4000,32 @@ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6 # So? What about this header? -case $ac_header_compiler:$ac_header_preproc in - yes:no ) +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} - ( - cat <<\_ASBOX -## ------------------------------------ ## -## Report this to bug-autoconf@gnu.org. ## -## ------------------------------------ ## -_ASBOX - ) | - sed "s/^/$as_me: WARNING: /" >&2 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes ;; - no:yes ) + no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX -## ------------------------------------ ## -## Report this to bug-autoconf@gnu.org. ## -## ------------------------------------ ## +## ------------------------------- ## +## Report this to embyte@madlab.it ## +## ------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 @@ -4098,7 +4036,7 @@ echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 if eval "test \"\${$as_ac_Header+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - eval "$as_ac_Header=$ac_header_preproc" + eval "$as_ac_Header=\$ac_header_preproc" fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 @@ -4122,7 +4060,6 @@ else ac_cv_func_malloc_0_nonnull=no else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -4162,7 +4099,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_func_malloc_0_nonnull=no fi -rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5 @@ -4178,7 +4115,14 @@ else #define HAVE_MALLOC 0 _ACEOF - LIBOBJS="$LIBOBJS malloc.$ac_objext" + case $LIBOBJS in + "malloc.$ac_objext" | \ + *" malloc.$ac_objext" | \ + "malloc.$ac_objext "* | \ + *" malloc.$ac_objext "* ) ;; + *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; +esac + cat >>confdefs.h <<\_ACEOF #define malloc rpl_malloc @@ -4194,7 +4138,6 @@ if test "${ac_cv_type_signal+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -4221,11 +4164,21 @@ int i; _ACEOF rm -f conftest.$ac_objext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 + (eval $ac_compile) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -4238,7 +4191,7 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_signal=int fi -rm -f conftest.$ac_objext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 echo "${ECHO_T}$ac_cv_type_signal" >&6 @@ -4258,21 +4211,28 @@ if eval "test \"\${$as_ac_var+set}\" = set"; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +/* Define $ac_func to an innocuous variant, in case declares $ac_func. + For example, HP-UX 11i declares gettimeofday. */ +#define $ac_func innocuous_$ac_func + /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ + #ifdef __STDC__ # include #else # include #endif + +#undef $ac_func + /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" @@ -4303,11 +4263,21 @@ return f != $ac_func; _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -4320,7 +4290,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 @@ -4335,21 +4306,28 @@ if test "${ac_cv_func__doprnt+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF -#line $LINENO "configure" /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ +/* Define _doprnt to an innocuous variant, in case declares _doprnt. + For example, HP-UX 11i declares gettimeofday. */ +#define _doprnt innocuous__doprnt + /* System header to define __stub macros and hopefully few prototypes, which can conflict with char _doprnt (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ + #ifdef __STDC__ # include #else # include #endif + +#undef _doprnt + /* Override any gcc2 internal prototype to avoid an error. */ #ifdef __cplusplus extern "C" @@ -4380,11 +4358,21 @@ return f != _doprnt; _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -s conftest$ac_exeext' + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -4397,7 +4385,8 @@ sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_func__doprnt=no fi -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext fi echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 echo "${ECHO_T}$ac_cv_func__doprnt" >&6 @@ -4448,13 +4437,13 @@ _ACEOF # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ - "s/'/'\\\\''/g; - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" + "s/'/'\\\\''/g; + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n \ - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" ;; esac; } | @@ -4484,13 +4473,13 @@ test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=/{ + ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/; s/:*\${srcdir}:*/:/; s/:*@srcdir@:*/:/; -s/^\([^=]*=[ ]*\):*/\1/; +s/^\([^=]*=[ ]*\):*/\1/; s/:*$//; -s/^[^=]*=[ ]*$//; +s/^[^=]*=[ ]*$//; }' fi @@ -4501,7 +4490,7 @@ ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_i=`echo "$ac_i" | - sed 's/\$U\././;s/\.o$//;s/\.obj$//'` + sed 's/\$U\././;s/\.o$//;s/\.obj$//'` # 2. Add them. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' @@ -4545,9 +4534,10 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then set -o posix fi +DUALCASE=1; export DUALCASE # for MKS sh # Support unset when possible. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false @@ -4566,7 +4556,7 @@ for as_var in \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else $as_unset $as_var @@ -4745,16 +4735,17 @@ rm -f conf$$ conf$$.exe conf$$.file if mkdir -p . 2>/dev/null; then as_mkdir_p=: else + test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_executable_p="test -f" # Sed expression to map a string onto a valid CPP name. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" # IFS @@ -4781,7 +4772,7 @@ _ASBOX cat >&5 <<_CSEOF This file was extended by nast $as_me 0.2.0, which was -generated by GNU Autoconf 2.57. Invocation command line was +generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -4825,9 +4816,9 @@ Usage: $0 [OPTIONS] [FILE]... -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] - instantiate the configuration file FILE + instantiate the configuration file FILE --header=FILE[:TEMPLATE] - instantiate the configuration header FILE + instantiate the configuration header FILE Configuration files: $config_files @@ -4841,11 +4832,10 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ nast config.status 0.2.0 -configured by $0, generated by GNU Autoconf 2.57, +configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 -Free Software Foundation, Inc. +Copyright (C) 2003 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." srcdir=$srcdir @@ -5083,9 +5073,9 @@ _ACEOF (echo ':t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" else - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" fi ac_sed_frag=`expr $ac_sed_frag + 1` ac_beg=$ac_end @@ -5103,21 +5093,21 @@ for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } @@ -5133,10 +5123,10 @@ echo X"$ac_file" | as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } @@ -5174,12 +5164,45 @@ case $srcdir in ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be -# absolute. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; +*) + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_builddir=${ac_top_builddir}.;; +*) + case ${ac_top_builddir}. in + .) ac_abs_top_builddir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_srcdir=$ac_srcdir;; +*) + case $ac_srcdir in + .) ac_abs_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; + esac;; +esac +case $ac_abs_builddir in +.) ac_abs_top_srcdir=$ac_top_srcdir;; +*) + case $ac_top_srcdir in + .) ac_abs_top_srcdir=$ac_abs_builddir;; + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; + esac;; +esac @@ -5197,7 +5220,7 @@ echo "$as_me: creating $ac_file" >&6;} configure_input="$ac_file. " fi configure_input=$configure_input"Generated from `echo $ac_file_in | - sed 's,.*/,,'` by configure." + sed 's,.*/,,'` by configure." # First look for the input files in the build tree, otherwise in the # src tree. @@ -5206,24 +5229,24 @@ echo "$as_me: creating $ac_file" >&6;} case $f in -) echo $tmp/stdin ;; [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } - echo $f;; + echo "$f";; *) # Relative - if test -f "$f"; then - # Build tree - echo $f - elif test -f "$srcdir/$f"; then - # Source tree - echo $srcdir/$f - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 + if test -f "$f"; then + # Build tree + echo "$f" + elif test -f "$srcdir/$f"; then + # Source tree + echo "$srcdir/$f" + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } - fi;; + fi;; esac done` || { (exit 1); exit 1; } _ACEOF @@ -5264,12 +5287,12 @@ cat >>$CONFIG_STATUS <<\_ACEOF # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' -ac_dB='[ ].*$,\1#\2' +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='[ ].*$,\1#\2' ac_dC=' ' ac_dD=',;t' # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='$,\1#\2define\3' ac_uC=' ' ac_uD=',;t' @@ -5278,11 +5301,11 @@ for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case $ac_file in - | *:- | *:-:* ) # input from stdin - cat >$tmp/stdin - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + cat >$tmp/stdin + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; * ) ac_file_in=$ac_file.in ;; esac @@ -5296,28 +5319,29 @@ echo "$as_me: creating $ac_file" >&6;} case $f in -) echo $tmp/stdin ;; [\\/$]*) - # Absolute (can't be DOS-style, as IFS=:) - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 + # Absolute (can't be DOS-style, as IFS=:) + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } - echo $f;; + # Do quote $f, to prevent DOS paths from being IFS'd. + echo "$f";; *) # Relative - if test -f "$f"; then - # Build tree - echo $f - elif test -f "$srcdir/$f"; then - # Source tree - echo $srcdir/$f - else - # /dev/null tree - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 + if test -f "$f"; then + # Build tree + echo "$f" + elif test -f "$srcdir/$f"; then + # Source tree + echo "$srcdir/$f" + else + # /dev/null tree + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 echo "$as_me: error: cannot find input file: $f" >&2;} { (exit 1); exit 1; }; } - fi;; + fi;; esac done` || { (exit 1); exit 1; } # Remove the trailing spaces. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in _ACEOF @@ -5340,9 +5364,9 @@ s/[\\&,]/\\&/g s,[\\$`],\\&,g t clear : clear -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp t end -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp : end _ACEOF # If some macros were called several times there might be several times @@ -5356,13 +5380,13 @@ rm -f confdef2sed.sed # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >>conftest.undefs <<\_ACEOF -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, _ACEOF # Break up conftest.defines because some shells have a limit on the size # of here documents, and old seds have small limits too (100 cmds). echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS echo ' :' >>$CONFIG_STATUS rm -f conftest.tail @@ -5371,7 +5395,7 @@ do # Write a limited-size here document to $tmp/defines.sed. echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#define' lines. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS @@ -5398,7 +5422,7 @@ do # Write a limited-size here document to $tmp/undefs.sed. echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS # Speed up: don't consider the non `#undef' - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS # Work around the forget-to-reset-the-flag bug. echo 't clr' >>$CONFIG_STATUS echo ': clr' >>$CONFIG_STATUS @@ -5432,10 +5456,10 @@ echo "$as_me: $ac_file is unchanged" >&6;} else ac_dir=`(dirname "$ac_file") 2>/dev/null || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$ac_file" : 'X\(//\)[^/]' \| \ - X"$ac_file" : 'X\(//\)$' \| \ - X"$ac_file" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || + X"$ac_file" : 'X\(//\)[^/]' \| \ + X"$ac_file" : 'X\(//\)$' \| \ + X"$ac_file" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } @@ -5451,10 +5475,10 @@ echo X"$ac_file" | as_dirs="$as_dir $as_dirs" as_dir=`(dirname "$as_dir") 2>/dev/null || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$as_dir" : 'X\(//\)[^/]' \| \ - X"$as_dir" : 'X\(//\)$' \| \ - X"$as_dir" : 'X\(/\)' \| \ - . : '\(.\)' 2>/dev/null || + X"$as_dir" : 'X\(//\)[^/]' \| \ + X"$as_dir" : 'X\(//\)$' \| \ + X"$as_dir" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } /^X\(\/\/\)[^/].*/{ s//\1/; q; } diff --git a/configure.ac b/configure.ac index b3266db..7d0ea11 100644 --- a/configure.ac +++ b/configure.ac @@ -83,22 +83,6 @@ AC_PROG_CC # -- libnet -- # -filechk="yes" -AC_CHECK_FILE(/usr/lib/libnet.a,, filechk="no") -if test "$filechk" = "no"; then - AC_CHECK_FILE(/usr/local/lib/libnet.a, filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include") -fi - -if test "$filechk" = "no"; then AC_MSG_ERROR([ - -Libnet archive file (libnet.a) not found in /usr or /usr/local! - -Libnet-1.1.x Packet Shaping Library is required. -You can download it from official web site: http://www.packetfactory.net/libnet - -]) -fi - AC_CHECK_LIB(net, libnet_name2addr4,, AC_MSG_ERROR([ Libnet-1.1.x Packet Shaping Library not found! It's required. @@ -110,22 +94,6 @@ You can download it from official web site: http://www.packetfactory.net/libnet # -- libpcap -- # -filechk="yes" -AC_CHECK_FILE(/usr/lib/libpcap.a,, filechk="no") -if test "$filechk" = "no"; then - AC_CHECK_FILE(/usr/local/lib/libpcap.a, filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include") -fi - -if test "$filechk" = "no"; then AC_MSG_ERROR([ - -Libpcap archive file (libpcap.a) not found in /usr or /usr/local! - -Libpcap-0.7.1 Packet Capture Library is required. -You can download it from official web site: http://www.tcpdump.org/#current - -]) -fi - AC_CHECK_LIB(pcap, pcap_dispatch,, AC_MSG_ERROR([ Libpcap-0.7.1 Packet Capture Library not found! It's required. @@ -137,26 +105,6 @@ You can download it from official web site: http://www.tcpdump.org/#current # -- libncurses support -- # -filechk="yes" -AC_CHECK_FILE(/usr/lib/libncurses.a,, filechk="no") -if test "$filechk" = "no"; then - AC_CHECK_FILE(/usr/local/lib/libncurses.a, filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include") -fi - -if test "$filechk" = "no"; -then AC_MSG_WARN([ - -Libncurses archive file (libncurses.a) not found in /usr or /usr/local! - -Ncurses library (*) not found in your system. -You can download it from official web site: http://www.gnu.org/software/ncurses/ncurses.html -(*): CRT screen handling and optimization package - -Building without ncurses menu support (-G flag will doesn't work) - -]) -fi - ENABLE_NCRS="no" AC_CHECK_LIB(ncurses, initscr, ENABLE_NCRS="yes"; NCURSES=ncurses/n_nast.o; LIBS="-lncurses $LIBS"; AC_DEFINE(HAVE_LIBNCURSES), AC_MSG_RESULT([ @@ -173,28 +121,6 @@ Building without ncurses menu support (-G flag will doesn't work) # --lmenu support-- # -filechk="yes" -AC_CHECK_FILE(/usr/lib/libmenu.a,, filechk="no") -if test "$filechk" = "no"; then - AC_CHECK_FILE(/usr/local/lib/libmenu.a, filechk="yes" ; LDFLAGS="-L/usr/local/lib"; CPPFLAGS="-I/usr/local/include") -fi - -if test "$filechk" = "no"; -then AC_MSG_WARN([ - -Menu archive file (libncurses.a) not found in /usr or /usr/local! - - -Menu library (*) not found in your system. -You can download it from official web site: http://www.gnu.org/software/ncurses/ncurses.html -(*): CRT screen handling and optimization package - - -Building without ncurses menu support (-G flag will doesn't work) -]) - -fi - ENABLE_NCRS="no" AC_CHECK_LIB(menu, menu_opts_off, ENABLE_NCRS="yes"; MENU=ncurses/n_menu.o; LIBS="-lmenu $LIBS"; AC_DEFINE(HAVE_LIBMENU), AC_MSG_RESULT([ diff --git a/debian/changelog b/debian/changelog index b6a0be5..9a8fb45 100644 debian/patches/fix-buffer-overflows0000644000000000000000000000202511767162743014636 0ustar Fixes a few buffer overflow problems with fixed size buffers. --- a/main.c +++ b/main.c @@ -32,7 +32,7 @@ { char *dev, *app; dev = NULL; - char *filter, *buffer, ldname[50]; + char *filter, *buffer, *ldname; char errbuf[PCAP_ERRBUF_SIZE]; extern char *optarg; int option, option_index; @@ -143,7 +143,7 @@ memset (&flags, 0, sizeof (struct FLAGSTRUCT)); flags.promisc = 1; /*default is promisc */ logname = filter = buffer = tcpdl = NULL; - strcpy(ldname,"NULL"); + ldname = NULL; /* get global time */ tm = time(NULL); @@ -260,7 +260,7 @@ /* only long options */ case '\0': if (!strcmp(long_options[option_index].name,"ld")) - strcpy(ldname,optarg); + ldname = optarg; break; default: usage(argv[0]); --- a/sniff.c +++ b/sniff.c @@ -38,7 +38,7 @@ ldd = NULL; ld = 0; npkt = 0; - if (strcmp (ldname, "NULL")) /* != NULL */ + if (ldname != NULL) /* != NULL */ (ld=1); /* ask pcap for the network address and mask of the device */ debian/patches/series0000644000000000000000000000030011767250631012033 0ustar fix-on-some-laptops fix-manpage fix-buffer-overflows fix-minuses-in-manpage printf-literal-format configure_updates_version_0.2.0-5.2 fix-hurd-build fix-array-bounds-error fix-spelling-errors debian/patches/fix-hurd-build0000644000000000000000000000041511767247341013377 0ustar Author: Barry deFreese Description: Fix FTBFS on Debian GNU/Hurd http://bugs.debian.org/674966 --- a/configure +++ b/configure @@ -2910,6 +2910,9 @@ *bsd*) CFLAGS="-Wall -O2 -pthread" ;; +*gnu*) + CFLAGS="-Wall -O2 -pthread" + ;; esac debian/patches/fix-minuses-in-manpage0000644000000000000000000001456511767162743015052 0ustar fixes escaping of minus signs in man pages to fix copying and pasting in UTF-8. See http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html --- a/nast.8 +++ b/nast.8 @@ -20,7 +20,7 @@ nast \- Network Analyzer Sniffer Tool .SH SYNOPSIS -nast [-G] [-i interface] [-l filename] [-f filter] [--ld filename] [-pdxPmsgrSMLbcCBVh] +nast [\-G] [\-i interface] [\-l filename] [\-f filter] [\-\-ld filename] [\-pdxPmsgrSMLbcCBVh] .SH DESCRIPTION Nast is a packet sniffer and a LAN analyzer based on Libnet and Libpcap. @@ -60,41 +60,41 @@ .PP .SH CMDLINE SNIFFER OPTIONS .TP -\fB-i, --interface\fR +\fB\-i, \-\-interface\fR Select the Interface, if not specified will be auto-detected. .br .TP -\fB-p, --promisc\fR +\fB\-p, \-\-promisc\fR Disable promiscuous mode on NIC. .br .TP -\fB-d, --ascii-data\fR +\fB\-d, \-\-ascii-data\fR Print data in ascii format. .br .TP -\fB-x, --ascii-hex-data\fR +\fB\-x, \-\-ascii-hex-data\fR Print data in ascii-hex format. .br .TP -\fB-f, --filter <"filter">\fR +\fB\-f, \-\-filter <"filter">\fR Apply <"filter"> to sniffer (see "FILTER SYNTAX" section below for syntax) .br .TP -\fB --ld \fR -Log captured data to (only payload). Use -l to log all packet instead, useful with -B +\fB \-\-ld \fR +Log captured data to (only payload). Use \-l to log all packet instead, useful with \-B .br .TP -\fB-T, --tcpdump-log \fR +\fB\-T, \-\-tcpdump-log \fR Log all packets in tcpdump format to .br .TP -\fB-R, --tcpdump-log-read \fR +\fB\-R, \-\-tcpdump-log-read \fR Read all packets saved in tcpdump format from .br .PP .SH ANALYZER FEATURES .TP -\fB-P, --check-promisc \fR +\fB\-P, \-\-check-promisc \fR Check other NIC on the LAN with the promiscuous flag set. .br By performing a fake ARP broadcast, we can determine if a NIC is in promiscuous mode or not. @@ -104,7 +104,7 @@ .br Use \fB-P all\fR to query all network NIC -eg: root@localhost:~/$ nast -P 192.168.1.2 +eg: root@localhost:~/$ nast \-P 192.168.1.2 NAST "NETWORK ANALYZER SNIFFER TOOL" @@ -112,14 +112,14 @@ We can check all nodes by using: .br -root@localhost:~/$ nast -P all +root@localhost:~/$ nast \-P all .TP -\fB-m, --host-list\fR +\fB\-m, \-\-host-list\fR Map the LAN by performing a series of ARP request to sequential subnet IP addresses. -eg: root@localhost:~/$ nast -m +eg: root@localhost:~/$ nast \-m NAST "NETWORK ANALYZER SNIFFER TOOL" @@ -137,12 +137,12 @@ .br .TP -\fB-s, --tcp-stream\fR +\fB\-s, \-\-tcp-stream\fR Follow a TCP/IP connection printing all data in payload. You must specify the IP addresses of the ends. eg of a ftp connection: .br -root@localhost:~/$ nast -s +root@localhost:~/$ nast \-s NAST "NETWORK ANALYZER SNIFFER TOOL" @@ -178,18 +178,18 @@ .br .br .TP -\fB-g, --find-gateway\fR +\fB\-g, \-\-find-gateway\fR Try to find possible Internet-gateways. .br We send a SYN packet to a public host on port 80 through sequential host-lan and if a SYN-ACK return we have find the gateway. .br .TP -\fB-r, --reset-connection\fR +\fB\-r, \-\-reset-connection\fR Destroy an established connection. You must specify the IP addresses of the ends and at least one port . Please, pay attention when use this function. -eg: root@localhost:~/$ nast -r +eg: root@localhost:~/$ nast \-r NAST "NETWORK ANALYZER SNIFFER TOOL" @@ -218,7 +218,7 @@ mechanism works with them. .br .TP -\fB-S, --port-scanner\fR +\fB\-S, \-\-port-scanner\fR Performs a half-open port scanning on the selected host. It tries also to determine some firewall (just iptables) rules. .br About this technique NMAP says: @@ -231,7 +231,7 @@ log it. Unfortunately you need root privileges to build these custom SYN packets. .br -eg: root@localhost:~/$ nast -S +eg: root@localhost:~/$ nast \-S .br .br NAST "NETWORK ANALYZER SNIFFER TOOL" @@ -264,11 +264,11 @@ .br .TP -\fB-M, --multi-port-scanner\fR +\fB\-M, \-\-multi-port-scanner\fR Same as above but done on all hosts of the lan. .br .TP -\fB-L, --find-link\fR +\fB\-L, \-\-find-link\fR Tries to determine what type of link is used in the LAN (Hub or switch). .br In the LAN segment is there a HUB or a SWITCH? We can find it by sending a @@ -276,13 +276,13 @@ at least one of them must reply with a ICMP echo-replay) .br .TP -\fB-b, --daemon-banner\fR +\fB\-b, \-\-daemon-banner\fR Checks the most famous daemon banner on the LAN's hosts. .br You can customize ports database adding them to ports[] variable in main.c .br .TP -\fB-c, --check-arp-poisoning\fR +\fB\-c, \-\-check-arp-poisoning\fR Control ARP answers to discover possible ARP spoofing attacks like man-in-the-middle .br @@ -292,12 +292,12 @@ nobody is making ARP-poisoning, than have fun and relax and check program output:). .br .TP -\fB-C, --byte-counting <"filter">\fR +\fB\-C, \-\-byte-counting <"filter">\fR Apply traffic counting to <"filter"> (see FILTER SYNTAX section below for syntax) .br Use \fB-C any\fR if you don't want to use a filter. -eg: root@localhost:~/$ nast -C any +eg: root@localhost:~/$ nast \-C any NAST "NETWORK ANALYZER SNIFFER TOOL" @@ -313,19 +313,19 @@ .PP .SH GENERAL OPTIONS .TP -\fB-G, --ncurses\fR +\fB\-G, \-\-ncurses\fR Run Nast with the ncurses interfaces (only if compiled with ncurses support) .br .TP -\fB-l, --log-file \fR +\fB\-l, \-\-log-file \fR Log reports to . Work with many features. .br .TP -\fB-B, --daemon\fR +\fB\-B, \-\-daemon\fR Run in background like daemon and turn off stdout (very useful for sniffer/stream/ARP control logging) .br .TP -\fB-V, --version\fR +\fB\-V, \-\-version\fR Show version information .PP .SH NCURSES INTERFACE NOTE @@ -707,23 +707,23 @@ Here are some examples of the use of NAST: .br .SH - nast -f "src 192.168.1.2" + nast \-f "src 192.168.1.2" .br In this example with the help of the filter we choose to see only the traffic from 192.168.1.2 .br .SH - nast -p -B --ld logfile.txt + nast \-p \-B \-\-ld logfile.txt .br Here we run nast in background mode and log all data that pass through our NIC. .br .SH - nast -S -l logfile.txt + nast \-S \-l logfile.txt .br In this other case we log the results of the port scanner in the file "logfile.txt" .br .SH - nast -c -B + nast \-c \-B .br This is a very useful options. We run in background mode nast that checks if someone is arp-poisoning. debian/patches/fix-manpage0000644000000000000000000000227411767162743012757 0ustar fixes miscellaneous warnings, and fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=233993 --- a/nast.8 +++ b/nast.8 @@ -17,10 +17,10 @@ .\" .TH NAST "8" "20040216" "NAST 0.2.0" .SH NAME -.B NAST 0.2.0 \- Network Analyzer Sniffer Tool +nast \- Network Analyzer Sniffer Tool .SH SYNOPSIS -.B nast [-G] [-i interface] [-l filename] [-f filter] [--ld filename] [-pdxPmsgrSMLbcCBVh] +nast [-G] [-i interface] [-l filename] [-f filter] [--ld filename] [-pdxPmsgrSMLbcCBVh] .SH DESCRIPTION Nast is a packet sniffer and a LAN analyzer based on Libnet and Libpcap. @@ -341,7 +341,7 @@ and "expression" here stand from "filter". .br \fBRemeber\fR to enclose filter between apexes ("something like this") -.be +.br .IP "\fI expression\fP" .RS selects which packets will be dumped. @@ -707,10 +707,10 @@ Here are some examples of the use of NAST: .br .SH - nast -p -f "src 192.168.1.2" + nast -f "src 192.168.1.2" .br -In this example we put the NIC in promiscuous mode and with the help of the filter -we choose to see only the traffic from 192.168.1.2 +In this example with the help of the filter we choose to see only the +traffic from 192.168.1.2 .br .SH nast -p -B --ld logfile.txt debian/patches/fix-spelling-errors0000644000000000000000000001425111767251172014467 0ustar Description: Fix spelling errors in binary and manpage reported by lintian Index: nast/icmp.c =================================================================== --- nast.orig/icmp.c 2012-06-16 20:43:26.000000000 -0700 +++ nast/icmp.c 2012-06-16 20:43:27.000000000 -0700 @@ -38,7 +38,7 @@ n_print("princ",line_s,16,lg," -> "); n_print("princ",line_s,24,lg,"%s\n", inet_ntoa(ip->ip_dst)); n_print("princ",++line_s,row_s,lg,"Version: %d\t", ip->ip_v); - n_print("princ",line_s,20,lg,"Lenght: %d\t", ntohs(ip->ip_len)); + n_print("princ",line_s,20,lg,"Length: %d\t", ntohs(ip->ip_len)); n_print("princ",line_s,35,lg,"TTL: %d\n", ip->ip_ttl); n_print("princ",++line_s,row_s,lg,"Type: "); @@ -123,7 +123,7 @@ n_print("princ",line_s,28,lg, "Redirect for host\n"); break; case 2: - n_print("princ",line_s,28,lg,"Redircet for tos & network\n"); + n_print("princ",line_s,28,lg,"Redirect for tos & network\n"); break; case 3: n_print("princ",line_s,28,lg,"Redirect for tos & host\n"); Index: nast/igmp.c =================================================================== --- nast.orig/igmp.c 2012-06-16 20:43:26.000000000 -0700 +++ nast/igmp.c 2012-06-16 20:43:27.000000000 -0700 @@ -29,7 +29,7 @@ n_print("princ",line_s,row_s,lg,"\n---[ IGMP ]----------------------------------------------------------\n"); n_print("princ",line_s=line_s+2,row_s,lg,"%s -> %s\n", inet_ntoa(ip->ip_src), inet_ntoa(ip->ip_dst)); - n_print("princ",++line_s,row_s,lg,"IP Version: %d\t Lenght: %d\t", ip->ip_v, ntohs(ip->ip_len)); + n_print("princ",++line_s,row_s,lg,"IP Version: %d\t Length: %d\t", ip->ip_v, ntohs(ip->ip_len)); n_print("princ",line_s,30,lg,"TTL: %d\t Code: %d\n", ip->ip_ttl, igmp->igmp_code); n_print("princ",++line_s,row_s,lg,"Type: "); Index: nast/main.c =================================================================== --- nast.orig/main.c 2012-06-16 20:43:27.000000000 -0700 +++ nast/main.c 2012-06-16 20:43:27.000000000 -0700 @@ -375,7 +375,7 @@ printf("\n%sOther options:%s\n", BOLD, NORMAL); printf(" -l, --log-file Log reports to file (work with many features)\n"); printf(" -B, --daemon Run in background like demon:\n"); - printf(" usefull for sniffer/stream/arp_control logging\n"); + printf(" useful for sniffer/stream/arp_control logging\n"); printf(" -V, --version Show version information\n"); printf(" -h, --help Print this help\n"); printf("\n"); Index: nast/nast.8 =================================================================== --- nast.orig/nast.8 2012-06-16 20:43:27.000000000 -0700 +++ nast/nast.8 2012-06-16 20:43:27.000000000 -0700 @@ -332,7 +332,7 @@ Versions later 0.2.0 have a new ncurses interface which has many improvements regarding the correspondent command line version. For example you can select the connection interactively for tcp stream and reset features and byte counting -module show much more informations (packets type and connections load). +module show much more information (packets type and connections load). .TP Please read NCURSES_README file before using the ncurses interface! .PP Index: nast/ncurses/n_menu.c =================================================================== --- nast.orig/ncurses/n_menu.c 2012-06-16 20:43:26.000000000 -0700 +++ nast/ncurses/n_menu.c 2012-06-16 20:43:27.000000000 -0700 @@ -1309,7 +1309,7 @@ mvwprintw(help,9,2,"[Shift + s] -> Sniffer Menu"); mvwprintw(help,10,2,"[Shift + a] -> Analyzer Menu"); mvwprintw(help,11,2,"[Shift + o] -> Options Menu"); - mvwprintw(help,12,2,"[i] -> Show informations about options"); + mvwprintw(help,12,2,"[i] -> Show information about options"); mvwprintw(help,13,2,"[x] -> Erase Main Window"); mvwprintw(help,14,2,"[d] -> Erase Info window"); mvwprintw(help,15,2,"[h] -> This help"); Index: nast/tcp.c =================================================================== --- nast.orig/tcp.c 2012-06-16 20:43:26.000000000 -0700 +++ nast/tcp.c 2012-06-16 20:43:27.000000000 -0700 @@ -47,7 +47,7 @@ n_print("princ",++line_s,row_s,lg,"TTL: %d \t", ip->ip_ttl); n_print("princ",line_s,10,lg,"Window: %d\t", ntohs(tcp->th_win)); n_print("princ",line_s,25,lg,"Version: %d\t", ip->ip_v); - n_print("princ",line_s,39,lg,"Lenght: %d\n", ntohs(ip->ip_len)); + n_print("princ",line_s,39,lg,"Length: %d\n", ntohs(ip->ip_len)); n_print("princ",++line_s,row_s,lg,"FLAGS: "); /*modifed by embyte */ Index: nast/udp.c =================================================================== --- nast.orig/udp.c 2012-06-16 20:43:26.000000000 -0700 +++ nast/udp.c 2012-06-16 20:43:27.000000000 -0700 @@ -43,7 +43,7 @@ service = getservbyport(htons(ntohs(udp->uh_dport)), "udp"); n_print("princ",line_s,28,lg," -> "); n_print("princ",line_s,33,lg,"%s:%d(%s)\n", inet_ntoa(ip->ip_dst), ntohs(udp->uh_dport), (service) ? service->s_name : "unknown"); - n_print("princ",++line_s,row_s,lg,"Version: %d\t Total Lenght: %d\t", ip->ip_v, ntohs(ip->ip_len)); + n_print("princ",++line_s,row_s,lg,"Version: %d\t Total Length: %d\t", ip->ip_v, ntohs(ip->ip_len)); n_print("princ",line_s,39,lg, "TTL: %d\n", ip->ip_ttl); n_print("princ",++line_s,0,lg,"Packet Number: %d",npkt); Index: nast/ncurses/n_nast.c =================================================================== --- nast.orig/ncurses/n_nast.c 2012-06-16 13:00:31.000000000 -0700 +++ nast/ncurses/n_nast.c 2012-06-16 20:43:52.000000000 -0700 @@ -340,7 +340,7 @@ mvwprintw(help,9,2,"[Shift + s] -> Sniffer Menu"); mvwprintw(help,10,2,"[Shift + a] -> Analyzer Menu"); mvwprintw(help,11,2,"[Shift + o] -> Options Menu"); - mvwprintw(help,12,2,"[i] -> Show informations about options"); + mvwprintw(help,12,2,"[i] -> Show information about options"); mvwprintw(help,13,2,"[x] -> Erase Main Window"); mvwprintw(help,14,2,"[d] -> Erase Info window"); mvwprintw(help,15,2,"[h] -> This help"); debian/source/0000755000000000000000000000000011767206101010467 5ustar debian/source/format0000644000000000000000000000001411767206101011675 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000012311767162743010231 0ustar version=3 http://nast.berlios.de/ http://download.berlios.de/nast/nast-(.*).tar.gz debian/manpages0000644000000000000000000000000711767162743010717 0ustar nast.8 debian/changelog0000644000000000000000000000564311767252265011065 0ustar nast (0.2.0-6) unstable; urgency=low * Update e-mail address * Add Vcs-* fields for collab-maint repository * Add patch fix-hurd-build from Barry deFreese (Closes: #674966) * Use debian source format 3.0 quilt * Move changes to configure{,.ac} from version 0.2.0-5.2 to debian/patches/configure_updates_version_0.2.0-5.2 * Add patch to correct array bounds for the pthread_t array by adding one space * Fix debian/copyright to point to the GPL-2 and LGPL-2 files * Add support for build-{arch,indep} targets in debian/rules * Add patch to fix spelling errors * Update Standards-Version to 3.9.3 -- Ryan Niebur Sat, 16 Jun 2012 20:53:25 -0700 nast (0.2.0-5.2) unstable; urgency=low * Non-maintainer upload. * Remove spurious checks for static libraries in /usr/lib from configure (closes: #634600). Thanks to Lucas Nussbaum for the bug report. -- Jakub Wilk Fri, 19 Aug 2011 15:48:34 +0200 nast (0.2.0-5.1) unstable; urgency=low * Non-maintainer upload. * Use a string literal for the format argument in printf calls (closes: #614450). Thanks to Lucas Nussbaum for the bug report. * Add a comma between ${shlibs:Depends} and ${misc:Depends}. -- Jakub Wilk Mon, 07 Mar 2011 23:19:18 +0100 nast (0.2.0-5) unstable; urgency=low * adopt package (Closes: #461243) * fix copyright file * add watch file * add quilt * upgrade standards version to 3.8.0 - add README.source * stop ignoring make clean errors * fix on computers that use certain network drivers (Closes: #464012) * fix man page warnings, fix mistake (Closes: #233993) * fix some buffer overflows * enable hardening, because this code is could have more buffer overflow problems (I fixed a few)... * clean up config.{sub,guess} handling * add Homepage * cleanup debhelper, creating directories, and installing man pages * fix up long description -- Ryan Niebur Wed, 10 Dec 2008 22:45:20 -0800 nast (0.2.0-4) unstable; urgency=low * Orphaning package. -- Norbert Tretkowski Sat, 16 Feb 2008 23:15:17 +0100 nast (0.2.0-3) unstable; urgency=low * Fixed description in control file. * Updated Standards-Version to 3.7.2.0, no changes required. -- Norbert Tretkowski Wed, 10 May 2006 11:05:14 -0500 nast (0.2.0-2) unstable; urgency=low * Fixed some spelling errors in description, thanks to Stuart Brady for reporting. (closes: #286584) * Adjusted build-depends so libpcap0.8-dev is used instead of libpcap-dev. -- Norbert Tretkowski Sun, 16 Jan 2005 13:26:53 +0100 nast (0.2.0-1) unstable; urgency=low * New upstream release. -- Norbert Tretkowski Tue, 17 Feb 2004 22:14:21 +0100 nast (0.1.7e-1) unstable; urgency=low * Initial release. (closes: #195593) -- Norbert Tretkowski Tue, 12 Aug 2003 01:11:33 +0200 debian/docs0000644000000000000000000000001411767162737010055 0ustar README TODO debian/dirs0000644000000000000000000000003311767162743010064 0ustar usr/bin usr/share/man/man8 debian/copyright0000644000000000000000000000253611767247745011153 0ustar This package was debianized by Norbert Tretkowski on Tue, 12 Aug 2003 01:11:33 +0200. It was downloaded from http://nast.berlios.de/ Upstream Authors: Embyte Snifth Copyright: Copyright 2002-2004 Embyte, Snifth License: License: ======== GNU GENERAL PUBLIC LICENSE ./getopt1.c: Copyright 1987,88,89,90,91,92,93,94,96,97,98 Free Software Foundation, Inc ./getopt.c: Copyright 1987, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc ./missing/getopt.h: Copyright 1989,90,91,92,93,94,96,97,98,99 Free Software Foundation, Inc getopt1.c, getopt.c, and missing/getopt.h: The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Debian packaging is Copyright 2003-2006 Norbert Tretkowski, Copyright 2008, 2012 Ryan Niebur. It's licensed under the GNU General Public License version 2, or (at your option) any later version. On Debian systems, the full text of the GPL can be found in the file /usr/share/common-licenses/GPL-2 On Debian systems, the full text of the LGPL can be found in the file /usr/share/common-licenses/LGPL-2 debian/control0000644000000000000000000000240711767251241010602 0ustar Source: nast Section: net Priority: optional Maintainer: Ryan Niebur Homepage: http://nast.berlios.de/ Build-Depends: debhelper (>> 5), libnet1-dev, libpcap0.8-dev, libncurses5-dev, quilt, hardening-wrapper, autotools-dev Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/git/collab-maint/nast.git Vcs-Browser: http://git.debian.org/?p=collab-maint/nast.git;a=summary Package: nast Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: packet sniffer and lan analyzer Can sniff in normal mode or in promiscuous mode the packets on a network interface and log it. It dumps the headers of packets and the payload in ascii or ascii-hex format. You can apply a filter. The sniffed data can be saved in a separated file. . As analyzer tool, it has many features like: * Build LAN hosts list * Follow a TCP-DATA stream * Find LAN internet gateways * Discover promiscuous nodes * Reset an established connection * Perform a single half-open portscanner * Perform a multi half-open portscanner * Find link type (hub or switch) * Catch daemon banner of LAN nodes * Control arp answers to discover possible arp-spoofings * Byte counting with an optional filter * Write reports logging . It also provides a ncurses menu. debian/README.source0000644000000000000000000000020011767162743011353 0ustar This package uses quilt to manage changes to the upstream sources. See /usr/share/doc/quilt/README.source for more information.