diff options
author | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2001-02-18 23:07:51 +0000 |
---|---|---|
committer | Alain Magloire <alainm@rcsm.ee.mcgill.ca> | 2001-02-18 23:07:51 +0000 |
commit | 5b018b8c642cc85ea24392e82d78cb00d8f18c57 (patch) | |
tree | 0ace3f25d6c2afbd2b47b61fe26675c63665e607 /m4 | |
parent | de86d43e5387833e93b190ec11601c20785d2a5e (diff) | |
download | grep-5b018b8c642cc85ea24392e82d78cb00d8f18c57.tar.gz |
Changes from Jim.
* m4/dosfile.m4 (AC_DOSFILE): Move AC_DEFINEs out of AC_CACHE_CHECK.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/dosfile.m4 | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/m4/dosfile.m4 b/m4/dosfile.m4 index d7341bb1..48184cf0 100644 --- a/m4/dosfile.m4 +++ b/m4/dosfile.m4 @@ -1,15 +1,21 @@ # Check to see if we use dir\file name conventtion -# If so, set macro HAVE_DOS_FILE_NAMES +# 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 - AC_DEFINE(HAVE_DOS_FILE_CONTENTS, 1, [Define if text file lines end in CRLF.]) - AC_DEFINE(HAVE_DOS_FILE_NAMES) -else - ac_cv_dosfile=no -fi -])]) +[ + 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) + AC_DEFINE(HAVE_DOS_FILE_CONTENTS, 1, + [Define if text file lines end in CRLF.]) + fi +]) |