Revision e81b440f configure.in

View differences:

configure.in
8 8

  
9 9
AC_ARG_ENABLE(debug,[  --enable-debug          enable internal debugging routines (default: disabled)],,enable_debug=no)
10 10
AC_ARG_ENABLE(memcheck,[  --enable-memcheck       check memory allocations when debugging (default: enabled)],,enable_memcheck=yes)
11
AC_ARG_ENABLE(warnings,[  --enable-warnings       enable extra warnings (default: disabled)],,enable_warnings=no)
12 11
AC_ARG_ENABLE(client,[  --enable-client         enable building of BIRD client (default: enabled)],,enable_client=yes)
13 12
AC_ARG_ENABLE(ipv6,[  --enable-ipv6           enable building of IPv6 version (default: disabled)],,enable_ipv6=no)
14 13
AC_ARG_WITH(sysconfig,[  --with-sysconfig=FILE   use specified BIRD system configuration file])
......
56 55

  
57 56
AC_CANONICAL_HOST
58 57

  
59
AC_PROG_CC
60
if test -z "$GCC" ; then
61
	AC_MSG_ERROR([This program requires the GNU C Compiler.])
62
	fi
63 58
AC_MSG_CHECKING([what CFLAGS should we use])
64 59
if test "$ac_test_CFLAGS" != set ; then
65
	if test "$enable_warnings" = yes ; then
66
		WARNS=" -Wmissing-prototypes -Wundef"
67
	else
68
		WARNS=" -Wno-unused"
69
	fi
70
	CFLAGS="$CFLAGS -Wall -W -Wstrict-prototypes -Wno-pointer-sign -Wno-parentheses$WARNS"
71
fi
72
if test "$with_sysinclude" != no -a -n "$with_sysinclude"; then
73
	CPPFLAGS="$CPPFLAGS -I$with_sysinclude"
60
	CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -Wno-pointer-sign -Wno-parentheses"
74 61
fi
75 62
AC_MSG_RESULT($CFLAGS)
76 63

  
64
AC_PROG_CC
65
if test -z "$GCC" ; then
66
	AC_MSG_ERROR([This program requires the GNU C Compiler.])
67
fi
68

  
77 69
AC_PROG_CPP
78 70
AC_PROG_INSTALL
79 71
AC_PROG_RANLIB

Also available in: Unified diff