Commit 1ce01dcf authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Handle --with-gnu-malloc.

parent 7e7d3eaa
dnl $Id: configure.in,v 1.27 1995/10/23 06:57:14 ceder Exp $ dnl $Id: configure.in,v 1.28 1995/11/02 19:47:07 ceder Exp $
dnl Configuration for LysKOM dnl Configuration for LysKOM
dnl Copyright (C) 1993, 1994, 1995 Lysator Academic Computer Association. dnl Copyright (C) 1993, 1994, 1995 Lysator Academic Computer Association.
dnl dnl
...@@ -18,8 +18,12 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ...@@ -18,8 +18,12 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
dnl dnl
dnl Please mail bug reports to bug-lyskom@lysator.liu.se. dnl Please mail bug reports to bug-lyskom@lysator.liu.se.
dnl dnl
AC_REVISION($Revision: 1.27 $) AC_REVISION($Revision: 1.28 $)
AC_INIT(src/server/lyskomd.h) AC_INIT(src/server/lyskomd.h)
AC_ARG_WITH([gnu-malloc],
[ --with-gnu-malloc use GNU malloc],
[use_gnu_malloc=$withval],
[use_gnu_malloc=no])
AC_PREFIX_DEFAULT(/usr/lyskom) AC_PREFIX_DEFAULT(/usr/lyskom)
AC_PROG_CC AC_PROG_CC
AC_SUBST(CFLAGS) AC_SUBST(CFLAGS)
...@@ -97,6 +101,36 @@ dnl programmatically, but the supplied substitute should always work, ...@@ -97,6 +101,36 @@ dnl programmatically, but the supplied substitute should always work,
dnl so we define BUGGY_INET_NTOA unconditionally. dnl so we define BUGGY_INET_NTOA unconditionally.
AC_DEFINE(BUGGY_INET_NTOA) AC_DEFINE(BUGGY_INET_NTOA)
dnl dnl
AC_SUBST(GNUMALLOC)
GNUMALLOC=
[if [ "$use_gnu_malloc" = "yes" ]]
[then]
AC_DEFINE(USE_GNU_MALLOC)
dnl This is only needed on SunOS 4 machines, but it does not
dnl do much harm on other system. This causes GNU malloc to
dnl unconditionally treat malloc(x) as malloc(16) if x<16.
dnl FIXME: find a proper check for if this is really needed.
AC_DEFINE(SUNOS_LOCALTIME_BUG)
dnl
dnl GNU Malloc also needs these:
dnl
AC_CHECK_FUNCS(getpagesize)
AC_CHECK_HEADERS(unistd.h)
dnl
dnl AC_USG is obsolete, but GNU malloc still uses it.
dnl
AC_USG
dnl
dnl AC_HEADER_STDC -- already provided
dnl Tell the Makefiles that we want GNU Malloc.
dnl
GNUMALLOC=gnumalloc
[else]
dnl Make sure that the GNU malloc header and library are not left
dnl from a previous build attempt
[rm -f include/malloc.h lib/libgmalloc*.a]
[fi]
dnl
dnl Unencryptet passwords are no longer supported. dnl Unencryptet passwords are no longer supported.
AC_DEFINE(ENCRYPT_PASSWORDS) AC_DEFINE(ENCRYPT_PASSWORDS)
dnl dnl
...@@ -119,5 +153,6 @@ src/libraries/libisc-new/Makefile ...@@ -119,5 +153,6 @@ src/libraries/libisc-new/Makefile
src/libraries/libisc-new/src/Makefile src/libraries/libisc-new/src/Makefile
src/libraries/libmisc/Makefile src/libraries/libmisc/Makefile
src/libraries/regex/Makefile src/libraries/regex/Makefile
src/libraries/gnumalloc/Makefile
src/server/Makefile src/server/Makefile
run-support/Makefile) run-support/Makefile)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment