Some cleanup:

Changed the optimization value to -O3
Moved the (n)curses autoconf tests to the (n)curses driver section.
Removed commented commands in configure.in
Added define ACS_* test for curses driver
This commit is contained in:
gfk
2001-10-31 22:05:14 +00:00
parent 7a4f465560
commit 39874bbf87
4 changed files with 57 additions and 20 deletions
+3 -9
View File
@@ -23,10 +23,11 @@ AC_ARG_ENABLE(debug,
AC_MSG_RESULT($debug)
if test $debug = "yes"; then
dnl Enable debugging information
CFLAGS="-g"
else
dnl CFLAGS="-Wno-unused -O6"
CFLAGS="-O6"
dnl Maximum optimization
CFLAGS="-O3"
fi
CFLAGS="-Wall $CFLAGS"
export CFLAGS
@@ -37,12 +38,6 @@ AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_RANLIB
dnl Checks for libraries.
dnl Replace `main' with a function in -lLCDstuff:
dnl AC_CHECK_LIB(LCDstuff, main)
dnl Replace `main' with a function in -lncurses:
dnl AC_CHECK_LIB(ncurses, main)
dnl Solaris
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)])
@@ -74,7 +69,6 @@ dnl Checks for header files.
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h)
AC_CHECK_HEADERS(curses.h ncurses.h)
dnl Check for particular preprocessor macros