# and edit it to reflect your system. Some packages may include samples
# of config.h for certain machines, so you might look for one of those.)
#
-# $Header: Configure,v 1.0.1.2 88/01/24 03:51:55 root Exp $
+# $Header: Configure,v 1.0.1.3 88/01/26 14:14:14 root Exp $
#
# Yes, you may rip this off to use in other distribution packages.
# (Note: this Configure script was generated automatically. Rather than
d_voidsig=''
libc=''
libnm=''
+mallocsrc=''
+mallocobj=''
+usemymalloc=''
mansrc=''
manext=''
models=''
esac
fi
+: determine which malloc to compile in
+echo " "
+case "$usemymalloc" in
+'')
+ if bsd || v7; then
+ dflt='y'
+ else
+ dflt='n'
+ fi
+ ;;
+*) dflt="$usemymalloc"
+ ;;
+esac
+rp="Do you wish to attempt to use the malloc that comes with $package? [$dflt]"
+$echo $n "$rp $c"
+. myread
+case "$ans" in
+'') ans=$dflt;;
+esac
+usemymalloc="$ans"
+case "$ans" in
+y*) mallocsrc='malloc.c'; mallocobj='malloc.o';;
+*) mallocsrc=''; mallocobj='';;
+esac
+
echo " "
echo "End of configuration questions."
echo " "
d_voidsig='$d_voidsig'
libc='$libc'
libnm='$libnm'
+mallocsrc='$mallocsrc'
+mallocobj='$mallocobj'
+usemymalloc='$usemymalloc'
mansrc='$mansrc'
manext='$manext'
models='$models'
esac
echo "Extracting Makefile (with variable substitutions)"
cat >Makefile <<!GROK!THIS!
-# $Header: Makefile.SH,v 1.0.1.2 88/01/26 08:46:04 root Exp $
+# $Header: Makefile.SH,v 1.0.1.3 88/01/26 14:14:52 root Exp $
#
# $Log: Makefile.SH,v $
+# Revision 1.0.1.3 88/01/26 14:14:52 root
+# Added mallocsrc stuff.
+#
# Revision 1.0.1.2 88/01/26 08:46:04 root
# patch 4: make depend didn't work right if . wasn't in PATH.
#
LDFLAGS = $ldflags
SMALL = $small
LARGE = $large $split
+mallocsrc = $mallocsrc
+mallocobj = $mallocobj
libs = $libnm -lm
!GROK!THIS!
h = $(h1) $(h2)
-c1 = arg.c array.c cmd.c dump.c form.c hash.c malloc.c
+c1 = arg.c array.c cmd.c dump.c form.c hash.c $(mallocsrc)
c2 = search.c stab.c str.c util.c version.c
c = $(c1) $(c2)
-obj1 = arg.o array.o cmd.o dump.o form.o hash.o malloc.o
+obj1 = arg.o array.o cmd.o dump.o form.o hash.o $(mallocobj)
obj2 = search.o stab.o str.o util.o version.o
obj = $(obj1) $(obj2)
-#define PATCHLEVEL 6
+#define PATCHLEVEL 7
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
+case "$mallocsrc" in
+'') ;;
+*) mallocsrc="../$mallocsrc";;
+esac
echo "Extracting x2p/Makefile (with variable substitutions)"
cat >Makefile <<!GROK!THIS!
-# $Header: Makefile.SH,v 1.0 87/12/18 17:50:17 root Exp $
+# $Header: Makefile.SH,v 1.0.1.1 88/01/26 14:15:24 root Exp $
#
# $Log: Makefile.SH,v $
+# Revision 1.0.1.1 88/01/26 14:15:24 root
+# Added mallocsrc stuff.
+#
# Revision 1.0 87/12/18 17:50:17 root
# Initial revision
#
LDFLAGS = $ldflags
SMALL = $small
LARGE = $large $split
+mallocsrc = $mallocsrc
+mallocobj = $mallocobj
libs = $libnm -lm
!GROK!THIS!
h = EXTERN.h INTERN.h config.h handy.h hash.h a2p.h str.h util.h
-c = hash.c ../malloc.c str.c util.c walk.c
+c = hash.c $(mallocsrc) str.c util.c walk.c
-obj = hash.o malloc.o str.o util.o walk.o
+obj = hash.o $(mallocobj) str.o util.o walk.o
lintflags = -phbvxac