From d30240904adda50bfab0e4b7b36699b495e22a93 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Fri, 12 Feb 1999 03:25:19 +0000 Subject: update for bootstrap. provided for system lacking configure. update added guard for HAVE_CONFIG_H * grep-2.2f beta release. * m4/{djgpp,envsep,glibc,regex,dosfile,isc-posix}.m4 : New files to aid configuration and unload configure.in. * m4/Makefile.am : updated. Patch forwarded by Ben Elliston. --- bootstrap/Makefile.am | 4 +++ bootstrap/Makefile.try | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++ bootstrap/README | 11 ++++++++ 3 files changed, 88 insertions(+) create mode 100644 bootstrap/Makefile.am create mode 100644 bootstrap/Makefile.try create mode 100644 bootstrap/README (limited to 'bootstrap') diff --git a/bootstrap/Makefile.am b/bootstrap/Makefile.am new file mode 100644 index 00000000..a54af3ba --- /dev/null +++ b/bootstrap/Makefile.am @@ -0,0 +1,4 @@ +## Process this file with automake to create Makefile.in +AUTOMAKE_OPTIONS = no-dependencies + +EXTRA_DIST = Makefile.try README diff --git a/bootstrap/Makefile.try b/bootstrap/Makefile.try new file mode 100644 index 00000000..497e5a72 --- /dev/null +++ b/bootstrap/Makefile.try @@ -0,0 +1,73 @@ +# + +## DOS/WIN +# OBJEXT = obj +# EXEEXT = .exe +EXEEXT = +OBJEXT = o + + +# add dosbuf.c and -DHAVE_DOS_FILENAME if DOS/WIN +OBJS = alloca.$(OBJEXT) \ + btowc.$(OBJEXT) \ + dfa.$(OBJEXT) \ + getopt.$(OBJEXT) \ + getopt1.$(OBJEXT) \ + grep.$(OBJEXT) \ + kwset.$(OBJEXT) \ + memchr.$(OBJEXT) \ + obstack.$(OBJEXT) \ + regex.$(OBJEXT) \ + savedir.$(OBJEXT) \ + search.$(OBJEXT) \ + stpcpy.$(OBJEXT) \ + +# Where is DIR and opendir/readdir defined. +# or -DHAVE_DIRENT_H +# or -DHAVE_SYS_NDIR_H +# or -DHAVE_SYS_DIR_H +# or -DHAVE_NDIR_H +# +# undef HAVE_STRERROR if lacking strerror() +# undef HAVE_MEMCHR if lacking memchr() +# + +# default dry run +DEFS = -I. \ + -DSTDC_HEADERS \ + -DHAVE_MEMCHR \ + -DHAVE_DIRENT_H \ + -DHAVE_STRERROR \ + -Dconst= \ + -Dsize_t=unsigned + +# SunOS-4.1.x k&r cc +DEFS = -DSTDC_HEADERS -DHAVE_MEMCHR -DHAVE_DIRENT_H -Dconst= + +# Solaris +#DEFS = -DSTDC_HEADERS -DHAVE_MEMCHR -DHAVE_DIRENT_H -DHAVE_STRERROR + +# DOS/WIN change also OBJEXT/EXEEXT see above +DEFS = -DSTDC_HEADERS -DHAVE_MEMCHR -DHAVE_STRERROR -DHAVE_DIRENT_H + +#### + +CFLAGS = $(DEFS) -I. -DVERSION=\"bootstrap\" -DPACKAGE=\"grep\" + +PROGS = grep$(EXEEXT) egrep$(EXEEXT) fgrep$(EXEEXT) + +all : $(PROGS) + +grep$(EXEEXT) : $(OBJS) grepmat.$(OBJEXT) + $(CC) $(OBJS) grepmat.$(OBJEXT) -o grep + +egrep$(EXEEXT) : $(OBJS) egrepmat.$(OBJEXT) + $(CC) $(OBJS) egrepmat.$(OBJEXT) -o egrep + +fgrep$(EXEEXT) : $(OBJS) fgrepmat.$(OBJEXT) + $(CC) $(OBJS) fgrepmat.$(OBJEXT) -o fgrep + +clean : + $(RM) grepmat.$(OBJEXT) egrepmat.$(OBJEXT) fgrepmat.$(OBJEXT) + $(RM) $(OBJS) + $(RM) $(PROGS) diff --git a/bootstrap/README b/bootstrap/README new file mode 100644 index 00000000..0157efee --- /dev/null +++ b/bootstrap/README @@ -0,0 +1,11 @@ +# + +IF your system is lacking the necessary tools to build the configuration, +Makefile.try is provided for bootstraping. Copy all the source and header +files from grep-$version/src directory, move Makefile.try to Makefile, +edit the Makefile and type make. Good luck ! + +cp ../src/*.c . +cp ../src/*.h . +cp Makefile.try Makefile +make -- cgit v1.2.1