Commit c5fb526d authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Added AC_CONST.

(include_current): Added.
AC_HAVE_HEADERS(stddef.h).
Added support for DEPENDFLAG.
parent fae63e13
dnl $Id: configure.in,v 1.8 1993/10/14 22:34:15 ceder Exp $
dnl $Id: configure.in,v 1.9 1993/10/16 18:05:18 ceder Exp $
dnl Configuration for LysKOM
AC_REVISION($Revision: 1.8 $)
AC_REVISION($Revision: 1.9 $)
AC_INIT(src/server/lyskomd.h)
AC_PROG_CC
AC_SUBST(CFLAGS)
[if [ "$CC" = gcc ]
then
test -n "$verbose" && echo adding -ansi -Wall -pipe
AC_SUBST(DEPENDFLAG)
include_current=-I.
[if test -n "$GCC"; then
test -n "$verbose" && echo adding -g -O -ansi -Wall -pipe
CFLAGS="$CFLAGS -g -O -Wall -ansi -pipe"
fi]
DEPENDFLAG=-MM
else
test -n "$verbose" && echo adding -g
CFLAGS="$CFLAGS -g"
case "$CC" in
*vcc) DEPENDFLAG=-Em
include_current='-I`pwd`';;
*) DEPENDFLAG=-M;;
esac
fi
test -n "$verbose" && echo Setting DEPENDFLAG to $DEPENDFLAG]
AC_AIX
AC_ISC_POSIX
AC_MINIX
AC_DYNIX_SEQ
AC_IRIX_SUN
AC_CONST
AC_STDC_HEADERS
AC_COMPILE_CHECK([HPUX and struct sockaddr], dnl
[#include <sys/socket.h>], dnl
......@@ -77,7 +89,7 @@ AC_PROG_YACC
AC_PROG_LEX
AC_PROGRAMS_CHECK(SED, sed)
AC_HAVE_HEADERS(string.h memory.h strings.h sys/param.h sys/time.h)
AC_HAVE_HEADERS(stdarg.h stdlib.h locale.h)
AC_HAVE_HEADERS(stdarg.h stdlib.h stddef.h locale.h)
AC_TIME_WITH_SYS_TIME
dnl AC_USG is used by regex, but is obsolete.
AC_USG
......@@ -98,7 +110,9 @@ $INSTALL_DESCEND\\
$DEPEND_DESCEND\\
$CLEAN\\
"]
[CFLAGS="$CFLAGS -I$BUILDTOPDIR/include -I$BUILDTOPDIR/include/server -I. "]
[CFLAGS="$CFLAGS $include_current -I\$(srcdir)"]
[CFLAGS="$CFLAGS -I$BUILDTOPDIR/include -I$BUILDTOPDIR/include/server"]
[CFLAGS="$CFLAGS -I/usr/local/include"]
dnl Adding DEFS to CFLAGS must be the last thing done to CFLAGS,
dnl since it breaks the compile tests generated by autoconf.
dnl +++This probably violates the GNU Coding Standards as well,
......@@ -111,6 +125,7 @@ SHELL = /bin/sh \\
AWK = $AWK\\
CC = $CC\\
CFLAGS = $CFLAGS\\
DEPENDFLAG = $DEPENDFLAG\\
INSTALL = $INSTALL\\
INSTALL_DATA = $INSTALL_DATA\\
INSTALL_PROGRAM = $INSTALL_PROGRAM\\
......
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