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

Use AC_VERBOSE instead of testing $verbose.

Test if gcc accepts -pipe - don't assume it does.
Test if $(CC) accepts -g - don't assume it does, unless it is gcc.
Move AC_AIX, AC_ISC_POSIX, AC_MINIX, AC_DYNIX_SEQ and AC_IRIX_SUN
	to a better position.
parent 634b4cc5
dnl $Id: configure.in,v 1.19 1994/08/19 22:02:06 ceder Exp $ dnl $Id: configure.in,v 1.20 1994/08/29 17:34:51 ceder Exp $
dnl Configuration for LysKOM dnl Configuration for LysKOM
dnl Copyright (C) 1993, 1994 Lysator Academic Computer Association. dnl Copyright (C) 1993, 1994 Lysator Academic Computer Association.
dnl dnl
...@@ -18,7 +18,7 @@ dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ...@@ -18,7 +18,7 @@ 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.19 $) AC_REVISION($Revision: 1.20 $)
AC_INIT(src/server/lyskomd.h) AC_INIT(src/server/lyskomd.h)
AC_PROG_CC AC_PROG_CC
AC_SUBST(CFLAGS) AC_SUBST(CFLAGS)
...@@ -26,25 +26,25 @@ AC_SUBST(LDFLAGS) ...@@ -26,25 +26,25 @@ AC_SUBST(LDFLAGS)
AC_SUBST(DEPENDFLAG) AC_SUBST(DEPENDFLAG)
AC_SUBST(INCLUDE_CURRENT) AC_SUBST(INCLUDE_CURRENT)
INCLUDE_CURRENT=-I. INCLUDE_CURRENT=-I.
AC_AIX
AC_ISC_POSIX
AC_MINIX
AC_DYNIX_SEQ
AC_IRIX_SUN
[if test -n "$GCC"; then [if test -n "$GCC"; then
test -n "$verbose" && echo adding -g -O -ansi -Wall -pipe ] AC_VERBOSE([adding -g -O -ansi -Wall -pipe]) [
CFLAGS="$CFLAGS -g -O -Wall -ansi -pipe" CFLAGS="$CFLAGS -g -O -Wall -ansi"
] KOM_AC_CC_OPTION([-pipe]) [
DEPENDFLAG=-MM DEPENDFLAG=-MM
else else
test -n "$verbose" && echo adding -g ] KOM_AC_CC_OPTION([-g]) [
CFLAGS="$CFLAGS -g"
case "$CC" in case "$CC" in
*vcc) DEPENDFLAG=-Em *vcc) DEPENDFLAG=-Em
INCLUDE_CURRENT='-I`pwd`';; INCLUDE_CURRENT='-I`pwd`';;
*) DEPENDFLAG=-M;; *) DEPENDFLAG=-M;;
esac esac
fi fi]
test -n "$verbose" && echo Setting DEPENDFLAG to $DEPENDFLAG] AC_VERBOSE([Setting DEPENDFLAG to $DEPENDFLAG])
AC_AIX
AC_ISC_POSIX
AC_MINIX
AC_DYNIX_SEQ
AC_IRIX_SUN
AC_CONST AC_CONST
AC_STDC_HEADERS AC_STDC_HEADERS
AC_COMPILE_CHECK([HPUX and struct sockaddr], dnl AC_COMPILE_CHECK([HPUX and struct sockaddr], dnl
......
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