summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorPaolo Bonzini <bonzini@gnu.org>2009-11-26 18:59:32 +0100
committerPaolo Bonzini <bonzini@gnu.org>2009-11-26 18:59:32 +0100
commitc6a5ea308f00ad89b2f8b90d174f2591bcac3b02 (patch)
treee03a727463910129e1ad83c5454f18f01ca004e9 /m4
parent9b5e7d42e0abd88bb6c01a145f5171bc0fb7d84c (diff)
downloadgrep-c6a5ea308f00ad89b2f8b90d174f2591bcac3b02.tar.gz
replace AC_DOSFILE with gnulib modules
* bootstrap.conf: Add binary-io, dirname. * configure.ac: Remove check for setmode, AC_DOSFILE. * m4/dosfile.m4: Remove. * src/grep.c: Adjust for dirname.h. * src/system.h: Adjust for new gnulib modules.
Diffstat (limited to 'm4')
-rw-r--r--m4/.gitignore6
-rw-r--r--m4/dosfile.m421
2 files changed, 6 insertions, 21 deletions
diff --git a/m4/.gitignore b/m4/.gitignore
index 5e5d4af6..1bbe3ae3 100644
--- a/m4/.gitignore
+++ b/m4/.gitignore
@@ -4,6 +4,9 @@ atexit.m4
btowc.m4
codeset.m4
dirent_h.m4
+dirname.m4
+dos.m4
+double-slash-root.m4
errno_h.m4
error.m4
exitfail.m4
@@ -70,6 +73,8 @@ stdlib_h.m4
stpcpy.m4
strerror.m4
string_h.m4
+strndup.m4
+strnlen.m4
strtoimax.m4
strtol.m4
strtoll.m4
@@ -88,4 +93,5 @@ wctype.m4
wint_t.m4
xalloc.m4
xsize.m4
+xstrndup.m4
xstrtol.m4
diff --git a/m4/dosfile.m4 b/m4/dosfile.m4
deleted file mode 100644
index c9c51029..00000000
--- a/m4/dosfile.m4
+++ /dev/null
@@ -1,21 +0,0 @@
-# Check to see if we use dir\file name conventtion
-# If so, set macro HAVE_DOS_FILE_NAMES
-# 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_CACHE_CHECK([for dos file convention], ac_cv_dosfile,
- [if test -d ".\."; then
- ac_cv_dosfile=yes
- else
- ac_cv_dosfile=no
- fi
- ])
-
- if test $ac_cv_dosfile = yes; then
- AC_DEFINE(HAVE_DOS_FILE_NAMES, 1, [Define if your OS uses backslashes as directory separators])
- AC_DEFINE(HAVE_DOS_FILE_CONTENTS, 1,
- [Define if text file lines end in CRLF.])
- fi
-])