]> git.pld-linux.org Git - packages/grep.git/commitdiff
- orphaned, outdated
authorJan Rękorajski <baggins@pld-linux.org>
Fri, 21 Apr 2006 23:40:41 +0000 (23:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    grep-ac25x.patch -> 1.2
    grep-m4.patch -> 1.2
    grep.1.pl -> 1.3

grep-ac25x.patch [deleted file]
grep-m4.patch [deleted file]
grep.1.pl [deleted file]

diff --git a/grep-ac25x.patch b/grep-ac25x.patch
deleted file mode 100644 (file)
index a3fe17a..0000000
+++ /dev/null
@@ -1,786 +0,0 @@
-diff -Nru grep-2.5e/acinclude.m4 grep-2.5e.new/acinclude.m4
---- grep-2.5e/acinclude.m4     Fri Aug 10 13:29:28 2001
-+++ grep-2.5e.new/acinclude.m4 Fri Aug 10 13:29:09 2001
-@@ -1,6 +1,6 @@
- #serial 5
--AC_DEFUN(jm_CHECK_DECLARATION,
-+AC_DEFUN([jm_CHECK_DECLARATION],
- [
-   AC_MSG_CHECKING([whether $1 is declared])
-   AC_CACHE_VAL(jm_cv_func_decl_$1,
-@@ -25,7 +25,7 @@
- dnl jm_CHECK_DECLARATIONS(INCLUDES, FUNCTION... [, ACTION-IF-DECLARED
- dnl                       [, ACTION-IF-NOT-DECLARED]])
--AC_DEFUN(jm_CHECK_DECLARATIONS,
-+AC_DEFUN([jm_CHECK_DECLARATIONS],
- [
-   for jm_func in $2
-   do
-@@ -37,7 +37,7 @@
- ])
- dnl Check for DJGPP. we use DJ_GPP as the variable
- dnl EXEEXXT
--AC_DEFUN(AC_DJGPP,
-+AC_DEFUN([AC_DJGPP],
- [AC_CACHE_CHECK(for DJGPP environment, ac_cv_djgpp,
- [AC_TRY_COMPILE(,[ return __DJGPP__;],
- ac_cv_djgpp=yes, ac_cv_djgpp=no)
-@@ -49,7 +49,7 @@
- # Also set the macro HAVE_DOS_FILE_CONTENTS for now,
- # since don't know of a good way to independently check this.
- dnl AC_DOSFILE()
--AC_DEFUN(AC_DOSFILE,
-+AC_DEFUN([AC_DOSFILE],
- [
-   AC_CACHE_CHECK([for dos file convention], ac_cv_dosfile,
-     [if test -d ".\."; then
-@@ -70,7 +70,7 @@
- dnl AM_SEP()
- dnl SEP
--AC_DEFUN(AM_SEP,
-+AC_DEFUN([AM_SEP],
- [AC_REQUIRE([AC_CYGWIN])
- AC_REQUIRE([AC_MINGW32])
- AC_REQUIRE([AC_DJGPP])
-@@ -91,7 +91,7 @@
- dnl directory -- otherwise, they'll conflict with existing files.
- dnl These are the prerequisite macros for GNU's error.c file.
--AC_DEFUN(jm_PREREQ_ERROR,
-+AC_DEFUN([jm_PREREQ_ERROR],
- [
-   AC_CHECK_FUNCS(strerror strerror_r vprintf doprnt)
-   AC_HEADER_STDC
-@@ -106,7 +106,7 @@
- dnl glibc (2.1.93 and newer) and Solaris provide __fpending.  On other systems,
- dnl we have to grub around in the FILE struct.
--AC_DEFUN(jm_FUNC_FPENDING,
-+AC_DEFUN([jm_FUNC_FPENDING],
- [
-   AC_CHECK_HEADERS(stdio_ext.h)
-   AC_REPLACE_FUNCS([__fpending])
-@@ -175,7 +175,7 @@
- dnl Test for the GNU C Library.
- dnl FIXME: this should migrate into libit.
--AC_DEFUN(AM_GLIBC,
-+AC_DEFUN([AM_GLIBC],
-   [
-     AC_CACHE_CHECK(whether we are using the GNU C Library,
-       ac_cv_gnu_library,
-@@ -210,7 +210,7 @@
- # Define HAVE_INTTYPES_H if <inttypes.h> exists,
- # doesn't clash with <sys/types.h>, and declares uintmax_t.
--AC_DEFUN(jm_AC_HEADER_INTTYPES_H,
-+AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
- [
-   AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
-   [AC_TRY_COMPILE(
-@@ -235,7 +235,7 @@
- dnl   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
- undefine([AC_ISC_POSIX])
--AC_DEFUN(AC_ISC_POSIX,
-+AC_DEFUN([AC_ISC_POSIX],
-   [
-     dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
-     dnl AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
-@@ -253,7 +253,7 @@
- dnl Internal subroutine of AC_SYS_LARGEFILE.
- dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME)
--AC_DEFUN(AC_SYS_LARGEFILE_FLAGS,
-+AC_DEFUN([AC_SYS_LARGEFILE_FLAGS],
-   [AC_CACHE_CHECK([for $1 value to request large file support],
-      ac_cv_sys_largefile_$1,
-      [if ($GETCONF LFS_$1) >conftest.1 2>conftest.2 && test ! -s conftest.2
-@@ -290,7 +290,7 @@
- dnl Internal subroutine of AC_SYS_LARGEFILE.
- dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL)
--AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND,
-+AC_DEFUN([AC_SYS_LARGEFILE_SPACE_APPEND],
-   [case $2 in
-    no) ;;
-    ?*)
-@@ -302,7 +302,7 @@
- dnl Internal subroutine of AC_SYS_LARGEFILE.
- dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT)
--AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
-+AC_DEFUN([AC_SYS_LARGEFILE_MACRO_VALUE],
-   [AC_CACHE_CHECK([for $1], $2,
-      [$2=no
- changequote(, )dnl
-@@ -321,7 +321,7 @@
-      AC_DEFINE_UNQUOTED([$1], [$]$2, [$3])
-    fi])
--AC_DEFUN(AC_SYS_LARGEFILE,
-+AC_DEFUN([AC_SYS_LARGEFILE],
-   [AC_REQUIRE([AC_CANONICAL_HOST])
-    AC_ARG_ENABLE(largefile,
-      [  --disable-largefile     omit support for large files])
-@@ -377,7 +377,7 @@
- dnl If it doesn't, arrange to use the replacement function.
- dnl
--AC_DEFUN(jm_FUNC_MALLOC,
-+AC_DEFUN([jm_FUNC_MALLOC],
- [
-  dnl xmalloc.c requires that this symbol be defined so it doesn't
-  dnl mistakenly use a broken malloc -- as it might if this test were omitted.
-@@ -410,7 +410,7 @@
- ## --------------------------------------------------------- ##
- dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
- dnl The program must properly implement --version.
--AC_DEFUN(AM_MISSING_PROG,
-+AC_DEFUN([AM_MISSING_PROG],
- [AC_MSG_CHECKING(for working $2)
- # Run test in a subshell; some versions of sh will print an error if
- # an executable is not found, even if stderr is redirected.
-@@ -436,7 +436,7 @@
- dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
- dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
--AC_DEFUN(AM_PATH_PROG_WITH_TEST,
-+AC_DEFUN([AM_PATH_PROG_WITH_TEST],
- [# Extract the first word of "$2", so it can be a program name with args.
- set dummy $2; ac_word=[$]2
- AC_MSG_CHECKING([for $ac_word])
-@@ -480,7 +480,7 @@
- dnl If it doesn't, arrange to use the replacement function.
- dnl
--AC_DEFUN(jm_FUNC_REALLOC,
-+AC_DEFUN([jm_FUNC_REALLOC],
- [
-  dnl xmalloc.c requires that this symbol be defined so it doesn't
-  dnl mistakenly use a broken realloc -- as it might if this test were omitted.
-@@ -515,7 +515,7 @@
- dnl Usage: jm_INCLUDED_REGEX([lib/regex.c])
- dnl
--AC_DEFUN(jm_INCLUDED_REGEX,
-+AC_DEFUN([jm_INCLUDED_REGEX],
-   [
-     dnl Even packages that don't use regex.c can use this macro.
-     dnl Of course, for them it doesn't do anything.
-@@ -587,7 +587,7 @@
- # Check to make sure that the build environment is sane.
- #
--AC_DEFUN(AM_SANITY_CHECK,
-+AC_DEFUN([AM_SANITY_CHECK],
- [AC_MSG_CHECKING([whether build environment is sane])
- # Just in case
- sleep 1
-@@ -703,7 +703,7 @@
- # Define uintmax_t to `unsigned long' or `unsigned long long'
- # if <inttypes.h> does not exist.
--AC_DEFUN(jm_AC_TYPE_UINTMAX_T,
-+AC_DEFUN([jm_AC_TYPE_UINTMAX_T],
- [
-   AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
-   if test $jm_ac_cv_header_inttypes_h = no; then
-@@ -720,7 +720,7 @@
- dnl From Paul Eggert.
--AC_DEFUN(jm_AC_TYPE_UNSIGNED_LONG_LONG,
-+AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG],
- [
-   AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long,
-   [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;],
-@@ -737,7 +737,7 @@
- # autoconf tests required for use of xstrtoumax.c
--AC_DEFUN(jm_AC_PREREQ_XSTRTOUMAX,
-+AC_DEFUN([jm_AC_PREREQ_XSTRTOUMAX],
- [
-   AC_REQUIRE([jm_AC_HEADER_INTTYPES_H])
-   AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG])
-diff -Nru grep-2.5e/m4/error.m4 grep-2.5e.new/m4/error.m4
---- grep-2.5e/m4/error.m4      Sun Mar  4 05:40:16 2001
-+++ grep-2.5e.new/m4/error.m4  Thu Jan  1 01:00:00 1970
-@@ -1,11 +0,0 @@
--#serial 1
--
--dnl FIXME: put these prerequisite-only *.m4 files in a separate
--dnl directory -- otherwise, they'll conflict with existing files.
--
--dnl These are the prerequisite macros for GNU's error.c file.
--AC_DEFUN(jm_PREREQ_ERROR,
--[
--  AC_CHECK_FUNCS(strerror strerror_r vprintf doprnt)
--  AC_HEADER_STDC
--])
-diff -Nru grep-2.5e/m4/gettext.m4 grep-2.5e.new/m4/gettext.m4
---- grep-2.5e/m4/gettext.m4    Thu Mar  2 04:00:39 2000
-+++ grep-2.5e.new/m4/gettext.m4        Thu Jan  1 01:00:00 1970
-@@ -1,326 +0,0 @@
--# Macro to add for using GNU gettext.
--# Ulrich Drepper <drepper@cygnus.com>, 1995.
--#
--# This file can be copied and used freely without restrictions.  It can
--# be used in projects which are not available under the GNU Public License
--# but which still want to provide support for the GNU gettext functionality.
--# Please note that the actual code is *not* freely available.
--
--# serial 105
--
--AC_DEFUN(AM_WITH_NLS,
--  [AC_MSG_CHECKING([whether NLS is requested])
--    dnl Default is enabled NLS
--    AC_ARG_ENABLE(nls,
--      [  --disable-nls           do not use Native Language Support],
--      USE_NLS=$enableval, USE_NLS=yes)
--    AC_MSG_RESULT($USE_NLS)
--    AC_SUBST(USE_NLS)
--
--    USE_INCLUDED_LIBINTL=no
--
--    dnl If we use NLS figure out what method
--    if test "$USE_NLS" = "yes"; then
--      AC_DEFINE(ENABLE_NLS)
--      AC_MSG_CHECKING([whether included gettext is requested])
--      AC_ARG_WITH(included-gettext,
--        [  --with-included-gettext use the GNU gettext library included here],
--        nls_cv_force_use_gnu_gettext=$withval,
--        nls_cv_force_use_gnu_gettext=no)
--      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
--
--      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
--      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
--        dnl User does not insist on using GNU NLS library.  Figure out what
--        dnl to use.  If gettext or catgets are available (in this order) we
--        dnl use this.  Else we have to fall back to GNU NLS library.
--      dnl catgets is only used if permitted by option --with-catgets.
--      nls_cv_header_intl=
--      nls_cv_header_libgt=
--      CATOBJEXT=NONE
--
--      AC_CHECK_HEADER(libintl.h,
--        [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
--          [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
--             gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
--
--         if test "$gt_cv_func_gettext_libc" != "yes"; then
--           AC_CHECK_LIB(intl, bindtextdomain,
--             [AC_CACHE_CHECK([for gettext in libintl],
--               gt_cv_func_gettext_libintl,
--               [AC_CHECK_LIB(intl, gettext,
--                gt_cv_func_gettext_libintl=yes,
--                gt_cv_func_gettext_libintl=no)],
--               gt_cv_func_gettext_libintl=no)])
--
--           if test "$gt_cv_func_gettext_libintl" = yes; then
--             LIBS="$LIBS -lintl"
--           fi
--
--         fi
--
--         if test "$gt_cv_func_gettext_libc" = "yes" \
--            || test "$gt_cv_func_gettext_libintl" = "yes"; then
--            AC_DEFINE(HAVE_GETTEXT)
--            AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
--              [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
--            if test "$MSGFMT" != "no"; then
--              AC_CHECK_FUNCS(dcgettext)
--              AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
--              AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
--                [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
--              AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
--                             return _nl_msg_cat_cntr],
--                [CATOBJEXT=.gmo
--                 DATADIRNAME=share],
--                [CATOBJEXT=.mo
--                 DATADIRNAME=lib])
--              INSTOBJEXT=.mo
--            fi
--          fi
--      ])
--
--        if test "$CATOBJEXT" = "NONE"; then
--        AC_MSG_CHECKING([whether catgets can be used])
--        AC_ARG_WITH(catgets,
--          [  --with-catgets          use catgets functions if available],
--          nls_cv_use_catgets=$withval, nls_cv_use_catgets=no)
--        AC_MSG_RESULT($nls_cv_use_catgets)
--
--        if test "$nls_cv_use_catgets" = "yes"; then
--          dnl No gettext in C library.  Try catgets next.
--          AC_CHECK_LIB(i, main)
--          AC_CHECK_FUNC(catgets,
--            [AC_DEFINE(HAVE_CATGETS)
--             INTLOBJS="\$(CATOBJS)"
--             AC_PATH_PROG(GENCAT, gencat, no)dnl
--             if test "$GENCAT" != "no"; then
--               AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
--               if test "$GMSGFMT" = "no"; then
--                 AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
--                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
--               fi
--               AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
--                 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
--               USE_INCLUDED_LIBINTL=yes
--               CATOBJEXT=.cat
--               INSTOBJEXT=.cat
--               DATADIRNAME=lib
--               INTLDEPS='$(top_builddir)/intl/libintl.a'
--               INTLLIBS=$INTLDEPS
--               LIBS=`echo $LIBS | sed -e 's/-lintl//'`
--               nls_cv_header_intl=intl/libintl.h
--               nls_cv_header_libgt=intl/libgettext.h
--             fi])
--        fi
--        fi
--
--        if test "$CATOBJEXT" = "NONE"; then
--        dnl Neither gettext nor catgets in included in the C library.
--        dnl Fall back on GNU gettext library.
--        nls_cv_use_gnu_gettext=yes
--        fi
--      fi
--
--      if test "$nls_cv_use_gnu_gettext" = "yes"; then
--        dnl Mark actions used to generate GNU NLS library.
--        INTLOBJS="\$(GETTOBJS)"
--        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
--        [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
--        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
--        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
--        [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
--        AC_SUBST(MSGFMT)
--      USE_INCLUDED_LIBINTL=yes
--        CATOBJEXT=.gmo
--        INSTOBJEXT=.mo
--        DATADIRNAME=share
--      INTLDEPS='$(top_builddir)/intl/libintl.a'
--      INTLLIBS=$INTLDEPS
--      LIBS=`echo $LIBS | sed -e 's/-lintl//'`
--        nls_cv_header_intl=intl/libintl.h
--        nls_cv_header_libgt=intl/libgettext.h
--      fi
--
--      dnl Test whether we really found GNU xgettext.
--      if test "$XGETTEXT" != ":"; then
--      dnl If it is no GNU xgettext we define it as : so that the
--      dnl Makefiles still can work.
--      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
--        : ;
--      else
--        AC_MSG_RESULT(
--          [found xgettext program is not GNU xgettext; ignore it])
--        XGETTEXT=":"
--      fi
--      fi
--
--      # We need to process the po/ directory.
--      POSUB=po
--    else
--      DATADIRNAME=share
--      nls_cv_header_intl=intl/libintl.h
--      nls_cv_header_libgt=intl/libgettext.h
--    fi
--    if test -z "$nsl_cv_header_intl"; then
--      # Clean out junk possibly left behind by a previous configuration.
--      rm -f intl/libintl.h
--    fi
--    AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
--    AC_OUTPUT_COMMANDS(
--     [case "$CONFIG_FILES" in *po/Makefile.in*)
--        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
--      esac])
--
--
--    # If this is used in GNU gettext we have to set USE_NLS to `yes'
--    # because some of the sources are only built for this goal.
--    if test "$PACKAGE" = gettext; then
--      USE_NLS=yes
--      USE_INCLUDED_LIBINTL=yes
--    fi
--
--    dnl These rules are solely for the distribution goal.  While doing this
--    dnl we only have to keep exactly one list of the available catalogs
--    dnl in configure.in.
--    for lang in $ALL_LINGUAS; do
--      GMOFILES="$GMOFILES $lang.gmo"
--      POFILES="$POFILES $lang.po"
--    done
--
--    dnl Make all variables we use known to autoconf.
--    AC_SUBST(USE_INCLUDED_LIBINTL)
--    AC_SUBST(CATALOGS)
--    AC_SUBST(CATOBJEXT)
--    AC_SUBST(DATADIRNAME)
--    AC_SUBST(GMOFILES)
--    AC_SUBST(INSTOBJEXT)
--    AC_SUBST(INTLDEPS)
--    AC_SUBST(INTLLIBS)
--    AC_SUBST(INTLOBJS)
--    AC_SUBST(POFILES)
--    AC_SUBST(POSUB)
--  ])
--
--AC_DEFUN(AM_GNU_GETTEXT,
--  [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
--   AC_REQUIRE([AC_PROG_CC])dnl
--   AC_REQUIRE([AC_PROG_RANLIB])dnl
--   AC_REQUIRE([AC_ISC_POSIX])dnl
--   AC_REQUIRE([AC_HEADER_STDC])dnl
--   AC_REQUIRE([AC_C_CONST])dnl
--   AC_REQUIRE([AC_C_INLINE])dnl
--   AC_REQUIRE([AC_TYPE_OFF_T])dnl
--   AC_REQUIRE([AC_TYPE_SIZE_T])dnl
--   AC_REQUIRE([AC_FUNC_ALLOCA])dnl
--   AC_REQUIRE([AC_FUNC_MMAP])dnl
--
--   AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
--unistd.h sys/param.h])
--   AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
--strdup __argz_count __argz_stringify __argz_next])
--
--   if test "${ac_cv_func_stpcpy+set}" != "set"; then
--     AC_CHECK_FUNCS(stpcpy)
--   fi
--   if test "${ac_cv_func_stpcpy}" = "yes"; then
--     AC_DEFINE(HAVE_STPCPY)
--   fi
--
--   AM_LC_MESSAGES
--   AM_WITH_NLS
--
--   if test "x$CATOBJEXT" != "x"; then
--     if test "x$ALL_LINGUAS" = "x"; then
--       LINGUAS=
--     else
--       AC_MSG_CHECKING(for catalogs to be installed)
--       NEW_LINGUAS=
--       for lang in ${LINGUAS=$ALL_LINGUAS}; do
--         case "$ALL_LINGUAS" in
--          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
--         esac
--       done
--       LINGUAS=$NEW_LINGUAS
--       AC_MSG_RESULT($LINGUAS)
--     fi
--
--     dnl Construct list of names of catalog files to be constructed.
--     if test -n "$LINGUAS"; then
--       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
--     fi
--   fi
--
--   dnl The reference to <locale.h> in the installed <libintl.h> file
--   dnl must be resolved because we cannot expect the users of this
--   dnl to define HAVE_LOCALE_H.
--   if test $ac_cv_header_locale_h = yes; then
--     INCLUDE_LOCALE_H="#include <locale.h>"
--   else
--     INCLUDE_LOCALE_H="\
--/* The system does not provide the header <locale.h>.  Take care yourself.  */"
--   fi
--   AC_SUBST(INCLUDE_LOCALE_H)
--
--   dnl Determine which catalog format we have (if any is needed)
--   dnl For now we know about two different formats:
--   dnl   Linux libc-5 and the normal X/Open format
--   test -d intl || mkdir intl
--   if test "$CATOBJEXT" = ".cat"; then
--     AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
--
--     dnl Transform the SED scripts while copying because some dumb SEDs
--     dnl cannot handle comments.
--     sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
--   fi
--   dnl po2tbl.sed is always needed.
--   sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
--     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
--
--   dnl In the intl/Makefile.in we have a special dependency which makes
--   dnl only sense for gettext.  We comment this out for non-gettext
--   dnl packages.
--   if test "$PACKAGE" = "gettext"; then
--     GT_NO="#NO#"
--     GT_YES=
--   else
--     GT_NO=
--     GT_YES="#YES#"
--   fi
--   AC_SUBST(GT_NO)
--   AC_SUBST(GT_YES)
--
--   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
--   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
--   dnl Try to locate is.
--   MKINSTALLDIRS=
--   if test -n "$ac_aux_dir"; then
--     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
--   fi
--   if test -z "$MKINSTALLDIRS"; then
--     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
--   fi
--   AC_SUBST(MKINSTALLDIRS)
--
--   dnl *** For now the libtool support in intl/Makefile is not for real.
--   l=
--   AC_SUBST(l)
--
--   dnl Generate list of files to be processed by xgettext which will
--   dnl be included in po/Makefile.
--   test -d po || mkdir po
--   if test "x$srcdir" != "x."; then
--   changequote(, )dnl
--     if test "x`echo $srcdir | sed -e 's@^[A-z]:@@' -e 's@/.*@@'`" = "x"; then
--       posrcprefix="$srcdir/"
--     else
--       posrcprefix="../$srcdir/"
--     fi
--   changequote([, ])dnl
--   else
--     posrcprefix="../"
--   fi
--   rm -f po/POTFILES
--   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,       $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
--      < $srcdir/po/POTFILES.in > po/POTFILES
--  ])
-diff -Nru grep-2.5e/m4/largefile.m4 grep-2.5e.new/m4/largefile.m4
---- grep-2.5e/m4/largefile.m4  Thu Mar  2 04:00:39 2000
-+++ grep-2.5e.new/m4/largefile.m4      Thu Jan  1 01:00:00 1970
-@@ -1,129 +0,0 @@
--#serial 6
--
--dnl By default, many hosts won't let programs access large files;
--dnl one must use special compiler options to get large-file access to work.
--dnl For more details about this brain damage please see:
--dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
--
--dnl Written by Paul Eggert <eggert@twinsun.com>.
--
--dnl Internal subroutine of AC_SYS_LARGEFILE.
--dnl AC_SYS_LARGEFILE_FLAGS(FLAGSNAME)
--AC_DEFUN(AC_SYS_LARGEFILE_FLAGS,
--  [AC_CACHE_CHECK([for $1 value to request large file support],
--     ac_cv_sys_largefile_$1,
--     [if ($GETCONF LFS_$1) >conftest.1 2>conftest.2 && test ! -s conftest.2
--      then
--        ac_cv_sys_largefile_$1=`cat conftest.1`
--      else
--      ac_cv_sys_largefile_$1=no
--      ifelse($1, CFLAGS,
--        [case "$host_os" in
--         # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
--changequote(, )dnl
--         hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
--changequote([, ])dnl
--           if test "$GCC" = yes; then
--             ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__
--           fi
--           ;;
--         # IRIX 6.2 and later require cc -n32.
--changequote(, )dnl
--         irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
--changequote([, ])dnl
--           if test "$GCC" != yes; then
--             ac_cv_sys_largefile_CFLAGS=-n32
--           fi
--         esac
--         if test "$ac_cv_sys_largefile_CFLAGS" != no; then
--           ac_save_CC="$CC"
--           CC="$CC $ac_cv_sys_largefile_CFLAGS"
--           AC_TRY_LINK(, , , ac_cv_sys_largefile_CFLAGS=no)
--           CC="$ac_save_CC"
--         fi])
--      fi
--      rm -f conftest*])])
--
--dnl Internal subroutine of AC_SYS_LARGEFILE.
--dnl AC_SYS_LARGEFILE_SPACE_APPEND(VAR, VAL)
--AC_DEFUN(AC_SYS_LARGEFILE_SPACE_APPEND,
--  [case $2 in
--   no) ;;
--   ?*)
--     case "[$]$1" in
--     '') $1=$2 ;;
--     *) $1=[$]$1' '$2 ;;
--     esac ;;
--   esac])
--
--dnl Internal subroutine of AC_SYS_LARGEFILE.
--dnl AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, CACHE-VAR, COMMENT, CODE-TO-SET-DEFAULT)
--AC_DEFUN(AC_SYS_LARGEFILE_MACRO_VALUE,
--  [AC_CACHE_CHECK([for $1], $2,
--     [$2=no
--changequote(, )dnl
--      $4
--      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
--      case "$ac_flag" in
--      -D$1)
--        $2=1 ;;
--      -D$1=*)
--        $2=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
--      esac
--      done
--changequote([, ])dnl
--      ])
--   if test "[$]$2" != no; then
--     AC_DEFINE_UNQUOTED([$1], [$]$2, [$3])
--   fi])
--
--AC_DEFUN(AC_SYS_LARGEFILE,
--  [AC_REQUIRE([AC_CANONICAL_HOST])
--   AC_ARG_ENABLE(largefile,
--     [  --disable-largefile     omit support for large files])
--   if test "$enable_largefile" != no; then
--     AC_CHECK_TOOL(GETCONF, getconf)
--     AC_SYS_LARGEFILE_FLAGS(CFLAGS)
--     AC_SYS_LARGEFILE_FLAGS(LDFLAGS)
--     AC_SYS_LARGEFILE_FLAGS(LIBS)
--
--     for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
--       case "$ac_flag" in
--       no) ;;
--       -D_FILE_OFFSET_BITS=*) ;;
--       -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
--       -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
--       -D?* | -I?*)
--       AC_SYS_LARGEFILE_SPACE_APPEND(CPPFLAGS, "$ac_flag") ;;
--       *)
--       AC_SYS_LARGEFILE_SPACE_APPEND(CFLAGS, "$ac_flag") ;;
--       esac
--     done
--     AC_SYS_LARGEFILE_SPACE_APPEND(LDFLAGS, "$ac_cv_sys_largefile_LDFLAGS")
--     AC_SYS_LARGEFILE_SPACE_APPEND(LIBS, "$ac_cv_sys_largefile_LIBS")
--     AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS,
--       ac_cv_sys_file_offset_bits,
--       [Number of bits in a file offset, on hosts where this is settable.],
--       [case "$host_os" in
--      # HP-UX 10.20 and later
--      hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
--        ac_cv_sys_file_offset_bits=64 ;;
--      esac])
--     AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE,
--       ac_cv_sys_largefile_source,
--       [Define to make fseeko etc. visible, on some hosts.],
--       [case "$host_os" in
--      # HP-UX 10.20 and later
--      hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
--        ac_cv_sys_largefile_source=1 ;;
--      esac])
--     AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,
--       ac_cv_sys_large_files,
--       [Define for large files, on AIX-style hosts.],
--       [case "$host_os" in
--      # AIX 4.2 and later
--      aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
--        ac_cv_sys_large_files=1 ;;
--      esac])
--   fi
--  ])
-diff -Nru grep-2.5e/m4/lcmessage.m4 grep-2.5e.new/m4/lcmessage.m4
---- grep-2.5e/m4/lcmessage.m4  Thu Mar  2 04:00:39 2000
-+++ grep-2.5e.new/m4/lcmessage.m4      Thu Jan  1 01:00:00 1970
-@@ -1,19 +0,0 @@
--# Check whether LC_MESSAGES is available in <locale.h>.
--# Ulrich Drepper <drepper@cygnus.com>, 1995.
--#
--# This file can be copied and used freely without restrictions.  It can
--# be used in projects which are not available under the GNU Public License
--# but which still want to provide support for the GNU gettext functionality.
--# Please note that the actual code is *not* freely available.
--
--# serial 1
--
--AC_DEFUN(AM_LC_MESSAGES,
--  [if test $ac_cv_header_locale_h = yes; then
--    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
--      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
--       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
--    if test $am_cv_val_LC_MESSAGES = yes; then
--      AC_DEFINE(HAVE_LC_MESSAGES)
--    fi
--  fi])
-diff -Nru grep-2.5e/m4/progtest.m4 grep-2.5e.new/m4/progtest.m4
---- grep-2.5e/m4/progtest.m4   Thu Mar  2 04:00:39 2000
-+++ grep-2.5e.new/m4/progtest.m4       Thu Jan  1 01:00:00 1970
-@@ -1,50 +0,0 @@
--# Search path for a program which passes the given test.
--# Ulrich Drepper <drepper@cygnus.com>, 1996.
--# update to support dos
--#
--# This file can be copied and used freely without restrictions.  It can
--# be used in projects which are not available under the GNU Public License
--# but which still want to provide support for the GNU gettext functionality.
--# Please note that the actual code is *not* freely available.
--
--# serial 1
--
--dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
--dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
--AC_DEFUN(AM_PATH_PROG_WITH_TEST,
--[# Extract the first word of "$2", so it can be a program name with args.
--set dummy $2; ac_word=[$]2
--AC_MSG_CHECKING([for $ac_word])
--AC_CACHE_VAL(ac_cv_path_$1,
--[case "[$]$1" in
--changequote(, )dnl
--  /*|[A-z]:/*)
--changequote([, ])dnl
--  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
--  ;;
--  *)
--  IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
--  for ac_dir in ifelse([$5], , $PATH, [$5]); do
--    test -z "$ac_dir" && ac_dir=.
--    if test $ac_x $ac_dir/$ac_word; then
--      if [$3]; then
--      ac_cv_path_$1="$ac_dir/$ac_word"
--      break
--      fi
--    fi
--  done
--  IFS="$ac_save_ifs"
--dnl If no 4th arg is given, leave the cache variable unset,
--dnl so AC_PATH_PROGS will keep looking.
--ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
--])dnl
--  ;;
--esac])dnl
--$1="$ac_cv_path_$1"
--if test -n "[$]$1"; then
--  AC_MSG_RESULT([$]$1)
--else
--  AC_MSG_RESULT(no)
--fi
--AC_SUBST($1)dnl
--])
---- grep-2.5e/Makefile.am      Sun Mar  4 17:45:49 2001
-+++ grep-2.5e.new/Makefile.am  Fri Aug 10 13:39:04 2001
-@@ -4,19 +4,3 @@
- SUBDIRS = intl po lib doc src tests djgpp m4 vms bootstrap
- EXTRA_DIST = TODO README README-alpha PATCHES.AC PATCHES.AM
--
--# We should be able to just define `ACLOCAL_AMFLAGS = --acdir=m4',
--# but this runs afoul of a bug in automake 1.
--# The following hack works around this bug by creating acinclude.m4 manually.
--ACLOCAL_AMFLAGS =
--M4DIR = $(srcdir)/m4
--ACINCLUDE_INPUTS = $(M4DIR)/decl.m4 $(M4DIR)/djgpp.m4 $(M4DIR)/dosfile.m4 \
--  $(M4DIR)/envsep.m4 $(M4DIR)/error.m4 $(M4DIR)/gettext.m4 $(M4DIR)/glibc.m4 \
--  $(M4DIR)/header.m4 $(M4DIR)/init.m4 $(M4DIR)/install.m4 \
--  $(M4DIR)/inttypes_h.m4 $(M4DIR)/isc-posix.m4 $(M4DIR)/largefile.m4 \
--  $(M4DIR)/lcmessage.m4 $(M4DIR)/malloc.m4 $(M4DIR)/missing.m4 \
--  $(M4DIR)/progtest.m4 $(M4DIR)/realloc.m4 $(M4DIR)/regex.m4 \
--  $(M4DIR)/sanity.m4 $(M4DIR)/strerror_r.m4 $(M4DIR)/uintmax_t.m4 \
--  $(M4DIR)/ulonglong.m4 $(M4DIR)/xstrtoumax.m4
--$(srcdir)/acinclude.m4 : $(ACINCLUDE_INPUTS)
--      cat $(ACINCLUDE_INPUTS) >$(srcdir)/acinclude.m4
diff --git a/grep-m4.patch b/grep-m4.patch
deleted file mode 100644 (file)
index d8516ae..0000000
+++ /dev/null
@@ -1,438 +0,0 @@
-diff -urN grep-2.5e.org/acinclude.m4 grep-2.5e/acinclude.m4
---- grep-2.5e.org/acinclude.m4 Wed Mar  7 05:55:50 2001
-+++ grep-2.5e/acinclude.m4     Tue May  8 09:36:33 2001
-@@ -171,332 +171,6 @@
-       [the number of pending output bytes on stream `fp'])
-   fi
- ])
--# Macro to add for using GNU gettext.
--# Ulrich Drepper <drepper@cygnus.com>, 1995.
--#
--# This file can be copied and used freely without restrictions.  It can
--# be used in projects which are not available under the GNU Public License
--# but which still want to provide support for the GNU gettext functionality.
--# Please note that the actual code is *not* freely available.
--
--# serial 105
--
--AC_DEFUN(AM_WITH_NLS,
--  [AC_MSG_CHECKING([whether NLS is requested])
--    dnl Default is enabled NLS
--    AC_ARG_ENABLE(nls,
--      [  --disable-nls           do not use Native Language Support],
--      USE_NLS=$enableval, USE_NLS=yes)
--    AC_MSG_RESULT($USE_NLS)
--    AC_SUBST(USE_NLS)
--
--    USE_INCLUDED_LIBINTL=no
--
--    dnl If we use NLS figure out what method
--    if test "$USE_NLS" = "yes"; then
--      AC_DEFINE(ENABLE_NLS)
--      AC_MSG_CHECKING([whether included gettext is requested])
--      AC_ARG_WITH(included-gettext,
--        [  --with-included-gettext use the GNU gettext library included here],
--        nls_cv_force_use_gnu_gettext=$withval,
--        nls_cv_force_use_gnu_gettext=no)
--      AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
--
--      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
--      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
--        dnl User does not insist on using GNU NLS library.  Figure out what
--        dnl to use.  If gettext or catgets are available (in this order) we
--        dnl use this.  Else we have to fall back to GNU NLS library.
--      dnl catgets is only used if permitted by option --with-catgets.
--      nls_cv_header_intl=
--      nls_cv_header_libgt=
--      CATOBJEXT=NONE
--
--      AC_CHECK_HEADER(libintl.h,
--        [AC_CACHE_CHECK([for gettext in libc], gt_cv_func_gettext_libc,
--          [AC_TRY_LINK([#include <libintl.h>], [return (int) gettext ("")],
--             gt_cv_func_gettext_libc=yes, gt_cv_func_gettext_libc=no)])
--
--         if test "$gt_cv_func_gettext_libc" != "yes"; then
--           AC_CHECK_LIB(intl, bindtextdomain,
--             [AC_CACHE_CHECK([for gettext in libintl],
--               gt_cv_func_gettext_libintl,
--               [AC_CHECK_LIB(intl, gettext,
--                gt_cv_func_gettext_libintl=yes,
--                gt_cv_func_gettext_libintl=no)],
--               gt_cv_func_gettext_libintl=no)])
--
--           if test "$gt_cv_func_gettext_libintl" = yes; then
--             LIBS="$LIBS -lintl"
--           fi
--
--         fi
--
--         if test "$gt_cv_func_gettext_libc" = "yes" \
--            || test "$gt_cv_func_gettext_libintl" = "yes"; then
--            AC_DEFINE(HAVE_GETTEXT)
--            AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
--              [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
--            if test "$MSGFMT" != "no"; then
--              AC_CHECK_FUNCS(dcgettext)
--              AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
--              AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
--                [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
--              AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
--                             return _nl_msg_cat_cntr],
--                [CATOBJEXT=.gmo
--                 DATADIRNAME=share],
--                [CATOBJEXT=.mo
--                 DATADIRNAME=lib])
--              INSTOBJEXT=.mo
--            fi
--          fi
--      ])
--
--        if test "$CATOBJEXT" = "NONE"; then
--        AC_MSG_CHECKING([whether catgets can be used])
--        AC_ARG_WITH(catgets,
--          [  --with-catgets          use catgets functions if available],
--          nls_cv_use_catgets=$withval, nls_cv_use_catgets=no)
--        AC_MSG_RESULT($nls_cv_use_catgets)
--
--        if test "$nls_cv_use_catgets" = "yes"; then
--          dnl No gettext in C library.  Try catgets next.
--          AC_CHECK_LIB(i, main)
--          AC_CHECK_FUNC(catgets,
--            [AC_DEFINE(HAVE_CATGETS)
--             INTLOBJS="\$(CATOBJS)"
--             AC_PATH_PROG(GENCAT, gencat, no)dnl
--             if test "$GENCAT" != "no"; then
--               AC_PATH_PROG(GMSGFMT, gmsgfmt, no)
--               if test "$GMSGFMT" = "no"; then
--                 AM_PATH_PROG_WITH_TEST(GMSGFMT, msgfmt,
--                  [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)
--               fi
--               AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
--                 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
--               USE_INCLUDED_LIBINTL=yes
--               CATOBJEXT=.cat
--               INSTOBJEXT=.cat
--               DATADIRNAME=lib
--               INTLDEPS='$(top_builddir)/intl/libintl.a'
--               INTLLIBS=$INTLDEPS
--               LIBS=`echo $LIBS | sed -e 's/-lintl//'`
--               nls_cv_header_intl=intl/libintl.h
--               nls_cv_header_libgt=intl/libgettext.h
--             fi])
--        fi
--        fi
--
--        if test "$CATOBJEXT" = "NONE"; then
--        dnl Neither gettext nor catgets in included in the C library.
--        dnl Fall back on GNU gettext library.
--        nls_cv_use_gnu_gettext=yes
--        fi
--      fi
--
--      if test "$nls_cv_use_gnu_gettext" = "yes"; then
--        dnl Mark actions used to generate GNU NLS library.
--        INTLOBJS="\$(GETTOBJS)"
--        AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
--        [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], msgfmt)
--        AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
--        AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
--        [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
--        AC_SUBST(MSGFMT)
--      USE_INCLUDED_LIBINTL=yes
--        CATOBJEXT=.gmo
--        INSTOBJEXT=.mo
--        DATADIRNAME=share
--      INTLDEPS='$(top_builddir)/intl/libintl.a'
--      INTLLIBS=$INTLDEPS
--      LIBS=`echo $LIBS | sed -e 's/-lintl//'`
--        nls_cv_header_intl=intl/libintl.h
--        nls_cv_header_libgt=intl/libgettext.h
--      fi
--
--      dnl Test whether we really found GNU xgettext.
--      if test "$XGETTEXT" != ":"; then
--      dnl If it is no GNU xgettext we define it as : so that the
--      dnl Makefiles still can work.
--      if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
--        : ;
--      else
--        AC_MSG_RESULT(
--          [found xgettext program is not GNU xgettext; ignore it])
--        XGETTEXT=":"
--      fi
--      fi
--
--      # We need to process the po/ directory.
--      POSUB=po
--    else
--      DATADIRNAME=share
--      nls_cv_header_intl=intl/libintl.h
--      nls_cv_header_libgt=intl/libgettext.h
--    fi
--    if test -z "$nsl_cv_header_intl"; then
--      # Clean out junk possibly left behind by a previous configuration.
--      rm -f intl/libintl.h
--    fi
--    AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
--    AC_OUTPUT_COMMANDS(
--     [case "$CONFIG_FILES" in *po/Makefile.in*)
--        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
--      esac])
--
--
--    # If this is used in GNU gettext we have to set USE_NLS to `yes'
--    # because some of the sources are only built for this goal.
--    if test "$PACKAGE" = gettext; then
--      USE_NLS=yes
--      USE_INCLUDED_LIBINTL=yes
--    fi
--
--    dnl These rules are solely for the distribution goal.  While doing this
--    dnl we only have to keep exactly one list of the available catalogs
--    dnl in configure.in.
--    for lang in $ALL_LINGUAS; do
--      GMOFILES="$GMOFILES $lang.gmo"
--      POFILES="$POFILES $lang.po"
--    done
--
--    dnl Make all variables we use known to autoconf.
--    AC_SUBST(USE_INCLUDED_LIBINTL)
--    AC_SUBST(CATALOGS)
--    AC_SUBST(CATOBJEXT)
--    AC_SUBST(DATADIRNAME)
--    AC_SUBST(GMOFILES)
--    AC_SUBST(INSTOBJEXT)
--    AC_SUBST(INTLDEPS)
--    AC_SUBST(INTLLIBS)
--    AC_SUBST(INTLOBJS)
--    AC_SUBST(POFILES)
--    AC_SUBST(POSUB)
--  ])
--
--AC_DEFUN(AM_GNU_GETTEXT,
--  [AC_REQUIRE([AC_PROG_MAKE_SET])dnl
--   AC_REQUIRE([AC_PROG_CC])dnl
--   AC_REQUIRE([AC_PROG_RANLIB])dnl
--   AC_REQUIRE([AC_ISC_POSIX])dnl
--   AC_REQUIRE([AC_HEADER_STDC])dnl
--   AC_REQUIRE([AC_C_CONST])dnl
--   AC_REQUIRE([AC_C_INLINE])dnl
--   AC_REQUIRE([AC_TYPE_OFF_T])dnl
--   AC_REQUIRE([AC_TYPE_SIZE_T])dnl
--   AC_REQUIRE([AC_FUNC_ALLOCA])dnl
--   AC_REQUIRE([AC_FUNC_MMAP])dnl
--
--   AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h string.h \
--unistd.h sys/param.h])
--   AC_CHECK_FUNCS([getcwd munmap putenv setenv setlocale strchr strcasecmp \
--strdup __argz_count __argz_stringify __argz_next])
--
--   if test "${ac_cv_func_stpcpy+set}" != "set"; then
--     AC_CHECK_FUNCS(stpcpy)
--   fi
--   if test "${ac_cv_func_stpcpy}" = "yes"; then
--     AC_DEFINE(HAVE_STPCPY)
--   fi
--
--   AM_LC_MESSAGES
--   AM_WITH_NLS
--
--   if test "x$CATOBJEXT" != "x"; then
--     if test "x$ALL_LINGUAS" = "x"; then
--       LINGUAS=
--     else
--       AC_MSG_CHECKING(for catalogs to be installed)
--       NEW_LINGUAS=
--       for lang in ${LINGUAS=$ALL_LINGUAS}; do
--         case "$ALL_LINGUAS" in
--          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
--         esac
--       done
--       LINGUAS=$NEW_LINGUAS
--       AC_MSG_RESULT($LINGUAS)
--     fi
--
--     dnl Construct list of names of catalog files to be constructed.
--     if test -n "$LINGUAS"; then
--       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
--     fi
--   fi
--
--   dnl The reference to <locale.h> in the installed <libintl.h> file
--   dnl must be resolved because we cannot expect the users of this
--   dnl to define HAVE_LOCALE_H.
--   if test $ac_cv_header_locale_h = yes; then
--     INCLUDE_LOCALE_H="#include <locale.h>"
--   else
--     INCLUDE_LOCALE_H="\
--/* The system does not provide the header <locale.h>.  Take care yourself.  */"
--   fi
--   AC_SUBST(INCLUDE_LOCALE_H)
--
--   dnl Determine which catalog format we have (if any is needed)
--   dnl For now we know about two different formats:
--   dnl   Linux libc-5 and the normal X/Open format
--   test -d intl || mkdir intl
--   if test "$CATOBJEXT" = ".cat"; then
--     AC_CHECK_HEADER(linux/version.h, msgformat=linux, msgformat=xopen)
--
--     dnl Transform the SED scripts while copying because some dumb SEDs
--     dnl cannot handle comments.
--     sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
--   fi
--   dnl po2tbl.sed is always needed.
--   sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
--     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
--
--   dnl In the intl/Makefile.in we have a special dependency which makes
--   dnl only sense for gettext.  We comment this out for non-gettext
--   dnl packages.
--   if test "$PACKAGE" = "gettext"; then
--     GT_NO="#NO#"
--     GT_YES=
--   else
--     GT_NO=
--     GT_YES="#YES#"
--   fi
--   AC_SUBST(GT_NO)
--   AC_SUBST(GT_YES)
--
--   dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
--   dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
--   dnl Try to locate is.
--   MKINSTALLDIRS=
--   if test -n "$ac_aux_dir"; then
--     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
--   fi
--   if test -z "$MKINSTALLDIRS"; then
--     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
--   fi
--   AC_SUBST(MKINSTALLDIRS)
--
--   dnl *** For now the libtool support in intl/Makefile is not for real.
--   l=
--   AC_SUBST(l)
--
--   dnl Generate list of files to be processed by xgettext which will
--   dnl be included in po/Makefile.
--   test -d po || mkdir po
--   if test "x$srcdir" != "x."; then
--   changequote(, )dnl
--     if test "x`echo $srcdir | sed -e 's@^[A-z]:@@' -e 's@/.*@@'`" = "x"; then
--       posrcprefix="$srcdir/"
--     else
--       posrcprefix="../$srcdir/"
--     fi
--   changequote([, ])dnl
--   else
--     posrcprefix="../"
--   fi
--   rm -f po/POTFILES
--   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,       $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
--      < $srcdir/po/POTFILES.in > po/POTFILES
--  ])
- dnl From Gordon Matzigkeit.
- dnl Test for the GNU C Library.
- dnl FIXME: this should migrate into libit.
-@@ -530,74 +204,6 @@
-     )
-   ]
- )
--# Like AC_CONFIG_HEADER, but automatically create stamp file.
--
--AC_DEFUN(AM_CONFIG_HEADER,
--[AC_PREREQ([2.12])
--AC_CONFIG_HEADER([$1])
--dnl When config.status generates a header, we must update the stamp-h file.
--dnl This file resides in the same directory as the config header
--dnl that is generated.  We must strip everything past the first ":",
--dnl and everything past the last "/".
--AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
--ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
--<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
--<<am_indx=1
--for am_file in <<$1>>; do
--  case " <<$>>CONFIG_HEADERS " in
--  *" <<$>>am_file "*<<)>>
--    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
--    ;;
--  esac
--  am_indx=`expr "<<$>>am_indx" + 1`
--done<<>>dnl>>)
--changequote([,]))])
--# Do all the work for Automake.  This macro actually does too much --
--# some checks are only needed if your package does certain things.
--# But this isn't really a big deal.
--
--# serial 1
--
--dnl Usage:
--dnl AM_INIT_AUTOMAKE(package,version, [no-define])
--
--AC_DEFUN(AM_INIT_AUTOMAKE,
--[AC_REQUIRE([AC_PROG_INSTALL])
--PACKAGE=[$1]
--AC_SUBST(PACKAGE)
--VERSION=[$2]
--AC_SUBST(VERSION)
--dnl test to see if srcdir already configured
--if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
--  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
--fi
--ifelse([$3],,
--AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
--AC_DEFINE_UNQUOTED(VERSION, "$VERSION"))
--AC_REQUIRE([AM_SANITY_CHECK])
--AC_REQUIRE([AC_ARG_PROGRAM])
--dnl FIXME This is truly gross.
--missing_dir=`cd $ac_aux_dir && pwd`
--AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
--AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
--AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
--AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
--AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
--AC_REQUIRE([AC_PROG_MAKE_SET])])
--## --------------------------------------------------------- ##
--## Use AC_PROG_INSTALL, supplementing it with INSTALL_SCRIPT ##
--## substitution.                                             ##
--## From Franc,ois Pinard                                     ##
--## --------------------------------------------------------- ##
--
--# serial 1
--
--AC_DEFUN(AM_PROG_INSTALL,
--[AC_REQUIRE([AC_PROG_INSTALL])
--test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
--AC_SUBST(INSTALL_SCRIPT)dnl
--])
--#serial 3
- dnl From Paul Eggert.
-@@ -765,26 +371,6 @@
-       esac])
-    fi
-   ])
--# Check whether LC_MESSAGES is available in <locale.h>.
--# Ulrich Drepper <drepper@cygnus.com>, 1995.
--#
--# This file can be copied and used freely without restrictions.  It can
--# be used in projects which are not available under the GNU Public License
--# but which still want to provide support for the GNU gettext functionality.
--# Please note that the actual code is *not* freely available.
--
--# serial 1
--
--AC_DEFUN(AM_LC_MESSAGES,
--  [if test $ac_cv_header_locale_h = yes; then
--    AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
--      [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
--       am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
--    if test $am_cv_val_LC_MESSAGES = yes; then
--      AC_DEFINE(HAVE_LC_MESSAGES)
--    fi
--  fi])
--#serial 3
- dnl From Jim Meyering.
- dnl Determine whether malloc accepts 0 as its argument.
diff --git a/grep.1.pl b/grep.1.pl
deleted file mode 100644 (file)
index bd41da2..0000000
--- a/grep.1.pl
+++ /dev/null
@@ -1,637 +0,0 @@
-.\" T³umaczenie: Gwidon S. Naskrent (naskrent@hoth.amu.edu.pl), IX 1998
-.\" {PTM/GSN/0.5/23-02-1999/"wypisz linie pasuj±ce do wzorca"}
-.\" aktualizacja do 2.4.2 PTM/WK/2001-I
-.if !\n(.g \{\
-.      if !\w|\*(lq| \{\
-.              ds lq ``
-.              if \w'\(lq' .ds lq "\(lq
-.      \}
-.      if !\w|\*(rq| \{\
-.              ds rq ''
-.              if \w'\(rq' .ds rq "\(rq
-.      \}
-.\}
-.de Id
-.ds Dt \\$4
-..
-.Id $Id$
-.TH GREP 1 \*(Dt "Projekt GNU"
-.SH NAZWA
-grep, egrep, fgrep \- wypisz linie pasuj±ce do wzorca
-.SH SK£ADNIA
-.B grep
-.RI [ opcje ]
-.I wzorzec
-.RI [ plik .\|.\|.]
-.br
-.B grep
-.RI [ opcje ]
-.RB [ \-e
-.I wzorzec
-|
-.B \-f
-.IR plik ]
-.RI [ plik .\|.\|.]
-.SH OPIS
-.PP
-.B grep
-przeszukuje wskazane
-.IR plik i
-wej¶ciowe (lub standardowe wej¶cie je¶li
-nie podano ¿adnych lub podano nazwê pliku '\-'), szukaj±c linii
-zawieraj±cych co¶ pasuj±cego do podanego
-.IR wzorca .
-Domy¶lnie,
-.B grep
-wypisuje pasuj±ce linie.
-.PP
-Dodatkowo dostêpne s± dwa programy wariantowe
-.B egrep
-i
-.BR fgrep .
-.B Egrep
-jest tym samym, co
-.BR "grep\ \-E" .
-.B Fgrep
-jest tym samym, co
-.BR "grep\ \-F" .
-.SH OPCJE
-.TP
-.BI \-A " num" "\fR,\fP \-\^\-after-context=" num
-Wypisuje po pasuj±cych liniach
-.I num
-linii nastêpuj±cego kontekstu.
-.TP
-.BR \-a ", " \-\^\-text
-Przetwarza plik binarny tak, jakby by³ on tekstowy; jest to równowa¿nik
-opcji
-.BR \-\^\-binary-fnums=text .
-.TP
-.BI \-B " num" "\fR,\fP \-\^\-before-context=" num
-Wypisuje przed pasuj±cymi liniami
-.I num
-linii poprzedzaj±cego kontekstu.
-.TP
-\fB\-C\fP [\fInum\fP], \fB\-\fP\fInum\fP, \fB\-\^\-context\fP[\fB=\fP\fInum\fP]
-Wypisuje
-.I num
-linii (domy¶lnie 2) kontekstu w wyj¶ciu.
-.TP
-.BR \-b ", " \-\^\-byte-offset
-Wypisuje przed ka¿d± lini± wyj¶cia jej offset bajtowy w pliku wej¶ciowym.
-.TP
-.BI \-\^\-binary-files= typ
-Je¶li pierwszych kilka bajtów pliku wskazuje, ¿e zawiera on dane binarne, to
-zak³adane jest, ¿e jest to plik typu
-.IR typ .
-Domy¶lnym
-.I typem
-jest binarny
-.RB ( binary ),
-a
-.B grep
-normalnie albo wypisuje jednolinijkowy komunikat mówi±cy o dopasowaniu
-pliku binarnego, albo nie wypisuje komunikatu, gdy nie znaleziono
-dopasowania.
-Je¿eli
-.I typem
-jest
-.B without-match
-(bez dopasowania), to
-.B grep
-zak³ada, ¿e ten plik binarny nie pasuje; jest to równowa¿ne dzia³aniu opcji
-.BR \-I .
-Je¶li
-.I typem
-jest
-.BR text ,
-to
-.B grep
-przetwarza plik binarny tak, jakby by³ on tekstowy; jest to równowa¿ne opcji
-.BR \-a .
-.I Ostrze¿enie:
-Mo¿e siê zdarzyæ, ¿e wypisane przez
-.B "grep \-\^\-binary-files=text"
-¶miecie binarne dadz± przykre skutki uboczne je¿eli
-wyj¶ciem bêdzie terminal a jego sterownik zinterpretuje niektóre z nich
-jako swoje polecenia. 
-.TP
-.BR \-c ", " \-\^\-count
-Wy³±cza normalne wyj¶cie; zamiast niego dla ka¿dego pliku wej¶ciowego
-wypisuje liczbê pasuj±cych linii.
-Z opcj±
-.BR \-v ", " \-\^\-invert-match
-(patrz ni¿ej), liczy linie niepasuj±ce.
-.TP
-.BI \-d " akcja" "\fR,\fP \-\^\-directories=" akcja
-Je¶li plik wej¶ciowy jest katalogiem, stosuje to jego przetworzenia
-.IR akcjê .
-Domy¶ln±
-.I akcj±
-jest
-.BR read ,
-co znaczy, ¿e katalogi s± czytane dok³adnie tak samo, jakby by³y zwyk³ymi
-plikami.
-Je¶li warto¶ci±
-.I akcji
-jest
-.BR skip ,
-to katalogi s± milcz±co pomijane.
-Je¶li warto¶ci±
-.I akcji
-jest
-.BR recurse ,
-to
-.B grep
-czyta wszystkie pliki pod ka¿dym katalogiem, rekurencyjnie;
-jest to równowa¿ne opcji
-.BR \-r .
-.TP
-.BR \-E ", " \-\^\-extended-regexp
-Interpretuje
-.I wzorzec
-jako rozszerzone wyra¿enie regularne (patrz ni¿ej).
-.TP
-.BI \-e " wzorzec" "\fR,\fP \-\^\-regexp=" wzorzec
-U¿ywa
-.I wzorca
-jako wzorca; u¿yteczne do ochronienia wzorów zaczynaj±cych siê od
-.BR \- .
-.TP
-.BR \-F ", " \-\^\-fixed-strings
-Interpretuje
-.I wzorzec
-jako listê ³añcuchów o sta³ej d³ugo¶ci, oddzielonych znakami nowej
-linii, które nale¿y dopasowaæ ka¿dy z osobna.
-.TP
-.BI \-f " plik" "\fR,\fP \-\^\-file=" plik
-Pobiera wzorce z
-.IR plik ,
-po jednym z ka¿dej linii.  Plik pusty zawiera zero wzorców, nie pasuj±c
-do niczego.
-.TP
-.BR \-G ", " \-\^\-basic-regexp
-Interpretuje
-.I wzorzec
-jako podstawowe wyra¿enie regularne (zobacz ni¿ej).  Jest to zachowanie
-domy¶lne.
-.TP
-.BR \-H ", " \-\^\-with-filename
-Dla ka¿dego dopasowania wypisuje nazwê pliku.
-.TP
-.BR \-h ", " \-\^\-no-filename
-.B \-h, --no-filename
-Wy³±cza poprzedzanie wyników nazwami plików podczas przeszukiwania
-wielu plików.
-.TP
-.B \-\^\-help
-Wypisuje krótki tekst pomocy.
-.TP
-.BR \-I
-Przetwarza plik binarny tak, jakby nie zawiera³ on pasuj±cych danych; jest
-to równowa¿ne opcji
-.BR \-\^\-binary-files=without-match .
-.TP
-.BR \-i ", " \-\^\-ignore-case
-Ignoruje rozró¿nienia w wielko¶ci liter we
-.I wzorcu
-oraz w plikach wej¶ciowych.
-.TP
-.BR \-L ", " \-\^\-files-without-match
-Wy³±cza normalne wyj¶cie; zamiast niego wypisuje nazwê ka¿dego pliku,
-z którego normalnie nie wypisano by ¿adnego wyj¶cia.  Przeszukiwanie
-zakoñczy siê na pierwszej pasuj±cej linii.
-.TP
-.BR \-l ", " \-\^\-files-with-matches
-Wy³±cza normalne wyj¶cie; zamiast niego wypisuje nazwê ka¿dego pliku,
-z którego normalnie wypisano by jakie¶ wyj¶cie.  Przeszukiwanie
-zakoñczy siê na pierwszej pasuj±cej linii.
-.TP
-.B \-\^\-mmap
-Je¶li to mo¿liwe, do odczytu wej¶cia korzysta z funkcji systemowej
-.BR mmap (2)
-zamiast domy¶lnej
-.BR read (2).
-W pewnych sytuacjach
-.B \-\^\-mmap
-daje lepsz± wydajno¶æ. Mo¿e jednak spowodowaæ niezdefiniowane zachowanie
-(³±cznie ze zrzutem rdzenia) je¶li podczas dzia³ania
-.B grep
-plik wej¶ciowy siê skurczy lub wyst±pi b³±d wej¶cia/wyj¶cia.
-.TP
-.BR \-n ", " \-\^\-line-number
-Poprzedza ka¿d± liniê wyj¶cia numerem linii z odpowiedniego pliku
-wej¶ciowego.
-.TP
-.BR \-q ", " \-\^\-quiet ", " \-\^\-silent
-Po cichu; wy³±cza normalne wyj¶cie.  Przeszukiwanie zakoñczy siê na
-pierwszej pasuj±cej linii. Zobacz tak¿e poni¿ej opcje
-.B \-s
-lub
-.BR \-\^\-no-messages .
-.TP
-.BR \-r ", " \-\^\-recursive
-Czyta wszystkie pliki pod ka¿dym katalogiem, rekurencyjnie;
-jest to równowa¿ne opcji
-.BR "\-d recurse" .
-.TP
-.BR \-s ", " \-\^\-no-messages
-Wy³±cza komunikaty b³êdów o plikach nieistniej±cych lub nie do odczytania.
-Uwaga o przeno¶no¶ci: w przeciwieñstwie do \s-1GNU\s0
-.BR grep ,
-tradycyjny
-.B grep
-nie by³ zgodny z \s-1POSIX.2\s0, gdy¿ brakowa³o mu opcji
-.B \-q
-a opcja
-.B \-s
-zachowywa³a siê jak opcja
-.B \-q
-z \s-1GNU\s0
-.BR grep .
-Skrypty pow³oki, które maj± byæ przeno¶ne na tradycyjny 
-.B grep
-powinny unikaæ zarówno
-.BR \-q ,
-jak i
-.B \-s
-i zamiast tego przekierowywaæ wyj¶cie do /dev/null.
-.TP
-.BR \-U ", " \-\^\-binary
-Traktuje plik jako binarny.  Domy¶lnie, w DOS-ie i MS Windows,
-.BR grep
-zgaduje typ pliku spogl±daj±c na zawarto¶æ pierwszych 32 kB przeczytanych
-z pliku.  Je¶li zdecyduje, ¿e plik jest tekstowy, udziera znaki CR
-z oryginalnej zawarto¶ci pliku (po to ¿eby wyra¿enia regularne z
-.B ^
-i
-.B $
-dzia³a³y poprawnie).  Podanie
-.B \-U
-wy³±cza to zgadywanie, powoduj±c, ¿e wszystkie pliki s± czytane i
-przekazywane mechanizmowi dopasowywuj±cemu dos³ownie; je¶li plik jest
-plikiem tekstowym z parami CR/LF na koñcu linii, spowoduje to, ¿e 
-niektóre wyra¿enia regularne nie zadzia³aj±.  Opcja ta nie dzia³a
-na platformach innych ni¿ MS-DOS i MS Windows.
-.TP
-.BR \-u ", " \-\^\-unix-byte-offsets
-Raportuje offsety bajtowe w stylu Unixowym.  Prze³±cznik ten powoduje, ¿e
-.B grep
-raportuje offsety bajtowe tak, jakby plik by³ plikiem tekstowym typu
-Uniksowego, tj. z udartymi znakami CR.  Da to rezultaty identyczne jak
-uruchomienie 
-.B grepa
-na maszynie Uniksowej.  Opcja ta nie wywo³uje ¿adnego efektu, chyba ¿e u¿yto
-tak¿e opcji
-.BR \-b ;
-nie dzia³a na platformach innych ni¿ MS-DOS i MS Windows.
-.TP
-.BR \-V ", " \-\^\-version
-Wypisuje numer wersji
-.B grepa
-na standardowe wyj¶cie b³êdów.  Ów numer wersji powinno siê za³±czaæ
-we wszystkich zg³oszeniach b³êdów (patrz ni¿ej).
-.TP
-.BR \-v ", " \-\^\-invert-match
-Odwraca sens dopasowania, wybiera linie niepasuj±ce.
-.TP
-.BR \-w ", " \-\^\-word-regexp
-Wybiera tylko te linie, w których dopasowania wzorca tworz± ca³e s³owa.
-Przeprowadzany test polega na tym, ¿e dopasowywany podci±g musi albo 
-znajdowaæ siê na pocz±tku linii, albo byæ poprzedzony znakiem nie
-tworz±cym s³owa.  Podobnie, musi albo znajdowaæ siê na koñcu linii,
-albo musi nastêpowaæ po nim znak nie tworz±cy s³owa.  Znakami
-tworz±cymi s³owa s± litery, cyfry i znak podkre¶lenia.
-.TP
-.BR \-x ", " \-\^\-line-regexp
-Wybiera tylko te dopasowania, które dok³adnie pasuj± do ca³ej linii.
-.TP
-.B \-y
-Przestarza³y synonim
-.BR \-i .
-.TP
-.BR \-Z ", " \-\^\-null
-Zamiast znaku, który normalnie wystêpuje po nazwie pliku wypisuje bajt
-zerowy ( \s-1ASCII\s0
-.BR NUL ).
-Na przyk³ad,
-.B "grep \-lZ"
-wypisuje po nazwie pliku bajt zerowy, zamiast, jak zwykle, znaku nowej linii.
-Opcja ta powoduje, ¿e wyj¶cie jest jednoznaczne, nawet przy nazwach plików
-zawieraj±cych niecodzienne znaki, jak znak nowej linii. Mo¿e byæ
-wykorzystywana z poleceniami typu:
-.BR "find \-print0" ,
-.BR "perl \-0" ,
-.B "sort \-z"
-czy
-.BR "xargs \-0" ,
-umo¿liwiaj±c przetwarzanie plików o dowolych nazwach, nawet zawieraj±cych
-znaki nowej linii.
-.SH "WYRA¯ENIA REGULARNE"
-.PP
-Wyra¿enie regularne to wzorzec opisuj±cy zbiór ³añcuchów.  Wyra¿enia
-regularne s± zbudowane analogicznie do wyra¿eñ arytmetycznych, przez
-zastosowanie do po³±czenia mniejszych wyra¿eñ rozmaitych operatorów.
-.PP
-.B grep
-rozumie dwie ró¿ne wersje sk³adni wyra¿eñ regularnych: "podstawow±"
-i "rozszerzon±".  W \s-1GNU\s0\
-.B grep
-obie te sk³adnie przy u¿yciu nie ró¿ni± siê zakresem dostêpnych mo¿liwo¶ci.
-W innych implementacjach podstawowe wyra¿enia regularne s± mniej rozbudowane.
-Poni¿szy opis stosuje siê do rozszerzonych wyra¿eñ regularnych;
-ró¿nice w stosunku do wyra¿eñ podstawowych podsumowano na koñcu.
-.PP
-Fundamentalnymi "cegie³kami" s± wyra¿enia regularne pasuj±ce do pojedynczego
-znaku.  Wiêkszo¶æ znaków, w tym wszystkie litery i cyfry, to wyra¿enia
-regularne pasuj±ce do samych siebie.  Ka¿dy metaznak maj±cy specjalne
-znaczenie mo¿e byæ cytowany przez poprzedzenie go odwrotnym uko¶nikiem.
-.PP
-Lista znaków zawarta miêdzy
-.B [
-a
-.B ]
-pasuje do ka¿dego pojedynczego znaku na tej li¶cie; je¶li pierwszym znakiem
-listy jest daszek
-.BR ^ ,
-pasuje wtedy ona do ka¿dego znaku
-.I nie
-znajduj±cego siê na li¶cie.  Dla przyk³adu, wyra¿enie regularne
-.B [0123456789]
-pasuje do ka¿dej pojedynczej cyfry.  Zakres znaków ASCII podaæ mo¿na
-okre¶laj±c znak pierwszy i ostatni, oddzielone my¶lnikiem.
-I na koniec: predefiniowano pewne nazwane klasy znaków.  Ich nazwy
-mówi± same za siebie, i s± to:
-.BR [:alnum:] ,
-.BR [:alpha:] ,
-.BR [:cntrl:] ,
-.BR [:digit:] ,
-.BR [:graph:] ,
-.BR [:lower:] ,
-.BR [:print:] ,
-.BR [:punct:] ,
-.BR [:space:] ,
-.BR [:upper:]
-oraz
-.BR [:xdigit:].
-Na przyk³ad
-.B [[:alnum:]]
-oznacza
-.BR [0-9A-Za-z] ,
-z tym wyj±tkiem, ¿e ta druga forma zale¿y od kodowania znaków ASCII
-i ustawieñ regionalnych \s-1POSIX\s0 (locale), podczas
-gdy pierwsza jest przeno¶na.
-(Zauwa¿, ¿e nawiasy kwadratowe w nazwach klas s± czê¶ci± nazw symbolicznych
-i musz± byæ umieszczone dodatkowo, oprócz pary nawiasów ograniczaj±cej sam±
-listê).
-Wiêkszo¶æ metaznaków traci swoje szczególne znaczenie wewn±trz list.  Aby
-umie¶ciæ tam dos³owny
-.BR ] ,
-umie¶æ go jako pierwszy na li¶cie.  Podobnie, aby umie¶ciæ dos³owny
-.BR ^ ,
-umie¶æ go gdziekolwiek poza pierwszym miejscem.  W koñcu, aby umie¶ciæ
-dos³owny
-.BR \- ,
-umie¶æ go na ostatku.
-.PP
-Kropka
-.B .
-pasuje do ka¿dego pojedynczego znaku.
-Symbol
-.B \ew
-to synonim
-.B [[:alnum:]]
-a
-.B \eW
-to synonim
-.BR [^[:alnum]] .
-.PP
-Daszek
-.B ^
-oraz znak dolara
-.B $
-s± metaznakami, które pasuj± odpowiednio do ³añcucha pustego na pocz±tku
-i na koñcu linii.  Symbole
-.B \e<
-oraz
-.B \e>
-pasuj± odpowiednio do ³añcucha pustego na pocz±tku i na koñcu s³owa.
-Symbol
-.B \eb
-pasuje do ³añcucha pustego na krawêdzi s³owa, za¶
-.B \eB
-pasuje do pustego ³añcucha zak³adaj±c, ¿e 
-.I nie
-jest on na krawêdzi s³owa.
-.PP
-Po wyra¿eniu regularnym mo¿e nastêpowaæ jeden z kilku operatorów
-powtórzenia:
-.PD 0
-.TP
-.B ?
-Poprzedzaj±cy element jest opcjonalny i pasuje nie wiêcej ni¿ raz.
-.TP
-.B *
-Poprzedzaj±cy element bêdzie dopasowany zero lub wiêcej razy.
-.TP
-.B +
-Poprzedzaj±cy element bêdzie dopasowany jeden lub wiêcej razy.
-.TP
-.BI { n }
-Poprzedzaj±cy element pasuje dok³adnie 
-.I n
-razy.
-.TP
-.BI { n ,}
-Poprzedzaj±cy element pasuje
-.I n
-lub wiêcej razy.
-.TP
-.BI {, m }
-Poprzedzaj±cy element jest opcjonalny i pasuje co najwy¿ej
-.I m
-razy.
-.TP
-.BI { n , m }
-Poprzedzaj±cy element pasuje co najmniej
-.I n
-razy, ale nie wiêcej ni¿
-.I m
-razy.
-.PD
-.PP
-Dwa wyra¿enia regularne mo¿na ze sob± z³±czyæ (skonkatenowaæ);
-do wynikowego wyra¿enia regularnego pasuje ka¿dy ci±g utworzony
-przez z³±czenie dowolnych dwóch ci±gów, które odpowiednio pasuj±
-do z³±czonych podwyra¿eñ.
-.PP
-Dwa wyra¿enia regularne mo¿na po³±czyæ operatorem infiksowym (wrostkowym)
-.BR | ;
-do wynikowego wyra¿enia regularnego pasuje dowolny ci±g pasuj±cy
-do jednego b±d¼ do drugiego z podwyra¿eñ.
-.PP
-Powtarzanie ma priorytet nad ³±czeniem, które z kolei bierze
-górê nad alternatyw±.  Ca³e wyra¿enie regularne mo¿na uj±æ
-w nawiasy, celem uniewa¿nienia tych regu³ priorytetowych.
-.PP
-Wsteczne odniesienie
-.BI \e n\c
-\&, gdzie
-.I n
-jest pojedyncz± cyfr±, dopasowuje podci±g poprzednio dopasowany
-.IR n \-tym
-ujêtym w nawiasy podwyra¿eniem wyra¿enia regularnego.
-.PP
-W podstawowych wyra¿eniach regularnych metaznaki
-.BR ? ,
-.BR + ,
-.BR { ,
-.BR | ,
-.BR (
-oraz
-.BR )
-trac± swoje szczególne znaczenie; zamiast nich nale¿y u¿yæ wersji
-z odwrotnym uko¶nikiem:
-.BR \e? ,
-.BR \e+ ,
-.BR \e{ ,
-.BR \e| ,
-.BR \e(
-oraz
-.BR \e) .
-.PP
-Tradycyjny
-.B egrep
-nie traktuje
-.B {
-jako metaznaku. Niektóre implementacje
-udostêpniaj± zamiast niego
-.BR \e{ ,
-wiêc przeno¶ne skrypty powinny unikaæ 
-.B {
-we wzorcach
-.BR egrep ,
-a do dopasowywania dos³ownego znaku
-.B {
-stosowaæ
-.BR [{] .
-.PP
-\s-1GNU\s0
-.B egrep
-usi³uje obs³ugiwaæ tradycyjny sposób u¿ycia zak³adaj±c, ¿e
-.B {
-nie posiada szczególnego znaczenia je¶li by³by on pocz±tkiem nieprawid³owego
-okre¶lenia liczby powtórzeñ. Na przyk³ad, polecenie pow³oki
-.B "egrep '{1'"
-szuka dwuznakowego ³añcucha
-.BR {1 ,
-zamiast zg³aszaæ b³±d sk³adni w wyra¿eniu regularnym.
-\s-1POSIX.2\s0 pozwala na takie zachowanie jako rozszerzenie standardu,
-ale przeno¶ne skrypty powinny go unikaæ.
-.SH "ZMIENNE ¦RODOWISKA"
-.TP
-.B GREP_OPTIONS
-Ta zmienna okre¶la domy¶lne opcje, jakie zostan± umieszczone przed 
-wszystkimi opcjami podanymi wprost.  Na przyk³ad, je¶li
-.B GREP_OPTIONS
-jest równe
-.BR "'\-\^\-binary-files=without-match \-\^\-directories=skip'" ,
-to
-.B grep
-zachowa siê tak, jakby podano
-.B \-\^\-binary-files=without-match
-i
-.B \-\^\-directories=skip
-przed ewentualnymi jawnymi opcjami.
-Okre¶lenia opcji oddziela siê bia³ymi znakami.
-Odwrotny uko¶nik cytuje nastêpny znak, zatem mo¿na go wykorzystaæ do podania
-opcji zawieraj±cej bia³y znak lub odwrotny uko¶nik.
-.TP
-\fBLC_ALL\fP, \fBLC_MESSAGES\fP, \fBLANG\fP
-Te zmienne podaj± ustawienie regionalne (locale)
-.BR LC_MESSAGES ,
-okre¶laj±ce jêzyk, jakiego
-.B grep
-ma u¿yæ w komunikatach.
-Ustawienie locale jest okre¶lane przez pierwsz± z tych zmiennych, która
-ma nadan± warto¶æ.
-Je¶li nie istnieje ¿adna z nich, to stosowana jest amerykañska odmiana
-angielskiego. Dzieje siê tak równie¿ w przypadku, gdy nie zainstalowano
-katalogu z komunikatami lub je¶li
-.B grep
-nie zosta³ skompilowany z obs³ug± jêzyków narodowych (\s-1NLS\s0).
-.TP
-\fBLC_ALL\fP, \fBLC_CTYPE\fP, \fBLANG\fP
-Te zmienne podaj± ustawienie regionalne (locale)
-.B LC_CTYPE
-okre¶laj±ce typ znaków, np. które z nich s± bia³ymi znakami.
-Ustawienie locale jest okre¶lane przez pierwsz± z tych zmiennych, która
-ma nadan± warto¶æ.
-Je¶li nie istnieje ¿adna z nich, to stosowane jest ustawienie \s-1POSIX\s0.
-Dzieje siê tak równie¿ w przypadku, gdy nie zainstalowano
-katalogu z komunikatami lub je¶li
-.B grep
-nie zosta³ skompilowany z obs³ug± jêzyków narodowych (\s-1NLS\s0).
-.TP
-.B POSIXLY_CORRECT
-Je¶li jest ustawiona, to
-.B grep
-zachowuje siê zgodnie z wymaganiami \s-1POSIX.2\s0; w przeciwnym razie
-.B grep
-zachowuje siê bardziej jak inne programy \s-1GNU\s0.
-\s-1POSIX.2\s0 ¿±da, by opcje, które wystêpuj± po nazwach plików by³y
-traktowane jak nazwy plików. Domy¶lnie za¶, opcje takie s± przesuwane
-na pocz±tek listy argumentów i traktowane jak opcje.
-Ponadto, \s-1POSIX.2\s0 wymaga, by nierozpoznane opcje by³y zg³aszane jako
-"nielegalne" ("illegal"), ale poniewa¿ tak naprawdê nie naruszaj±
-one prawa, domy¶lnie zg³aszane s± jako "nieprawid³owe" ("invalid").
-.B POSIXLY_CORRECT
-wy³±cza tak¿e \fB_\fP\fIN\fP\fB_GNU_nonoption_argv_flags_\fP, opisane
-poni¿ej.
-.TP
-\fB_\fP\fIN\fP\fB_GNU_nonoption_argv_flags_\fP
-(Tu
-.I N
-jest numerycznym identyfikatorem procesu
-.BR grep a).
-Je¶li
-.IR i -tym
-znakiem warto¶ci tej zmiennej ¶rodowiska jest
-.BR 1 ,
-to 
-.IR i -ty
-argument przekazany do
-.B grep
-nie jest uwa¿any za opcjê, nawet je¶li na ni± wygl±da.
-Pow³oka mo¿e umie¶ciæ tê zmienn± w ¶rodowisku dla ka¿dego polecenia,
-jakie uruchamia, podaj±c, które argumenty s± wynikiem rozwiniêcia nazw
-plików i st±d nie powinny byæ traktowane jako opcje.
-Zachowanie to jest dostêpne tylko z bibliotek± \s-1GNU\s0 C i tylko wtedy
-gdy nie ustawiono
-.BR POSIXLY_CORRECT .
-.SH DIAGNOSTYKA
-.PP
-Normalnie status zakoñczenia równa siê 0 je¶li znaleziono dopasowania,
-a 1 je¶li nie znaleziono ¿adnych.  Opcja
-.B \-v
-odwraca sens statusu zakoñczenia.  Status zakoñczenia równa siê 2 je¶li
-wyst±pi³y b³êdy sk³adniowe we wzorcu, niedostêpne pliki wej¶ciowe lub
-inne b³êdy systemowe.
-.SH B£ÊDY
-.PP
-Zg³oszenia b³êdów wysy³aj, proszê, do
-.BR bug-gnu-utils@gnu.org .
-Upewnij siê, ¿e gdzie¶ w polu tematu ("Subject:") umie¶ci³e¶ s³owo "grep".
-.PP
-Du¿e liczniki powtórzeñ w konstrukcji
-.BI { m , n }
-mog± spowodowaæ, ¿e grep zu¿yje mnóstwo pamiêci.  Oprócz tego, pewne
-inne niejasne wyra¿enia regularne wymagaj± czasu i przestrzeni
-rosn±cej wyk³adniczo i mog± spowodowaæ, ¿e
-.B grepowi
-zabraknie pamiêci.
-.PP
-Wsteczne odwo³ania s± bardzo powolne i mog± wymagaæ czasu rosn±cego
-wyk³adniczo.
-.\" Work around problems with some troff -man implementations.
-.br
This page took 0.118918 seconds and 4 git commands to generate.