1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
--- configure.ac.orig 2006-07-13 07:31:21.000000000 +0200
+++ configure.ac 2008-06-08 14:30:41.000000000 +0200
@@ -46,8 +46,24 @@
AC_SUBST(GZIP)
AC_SUBST(LDCONFIG)
+AC_MSG_CHECKING(--enable-ncurses argument)
+AC_ARG_ENABLE(ncurses,
+ [ --enable-ncurses Include curses based Morse code Tutor],
+ [enable_ncurses=$enableval],
+ [enable_ncurses="no"])
+AC_MSG_RESULT($enable_ncurses)
+
+AC_MSG_CHECKING(--enable-qt3 argument)
+AC_ARG_ENABLE(qt3,
+ [ --enable-qt3 Include QT based Morse code Tutor],
+ [enable_qt=$enableval],
+ [enable_qt="no"])
+AC_MSG_RESULT($enable_qt)
+
+if test "$enable_ncurses" = 'yes'; then
# Checks for libraries.
AC_CHECK_LIB(curses, initscr)
+fi
# Checks for header files, and refuse to go on if no KIOCSOUND is available.
AC_HEADER_STDC
@@ -92,13 +108,17 @@
# Decide on which subdirectories to build; substitute into SUBDIRS. Build
# cwcp if curses is available, and xcwcp if Qt is available.
SUBDIRS="cwlib cwutils cw cwgen"
+
+if test "$enable_ncurses" = 'yes'; then
# Simple test for curses based on prior library check.
if test $ac_cv_lib_curses_initscr = 'yes' ; then
SUBDIRS="$SUBDIRS cwcp"
else
AC_MSG_WARN([Cannot find libcurses - unable to build cwcp])
fi
+fi
+if test "$enable_qt3" = 'yes'; then
# Look for $QTDIR. If found, then look for moc, either on $PATH, or
# in $QTDIR/bin.
MOC_EARLIEST=3
@@ -135,6 +155,8 @@
AC_MSG_WARN([Cannot find libqt - unable to build xcwcp])
AC_MSG_WARN([Hint: try setting a value for the QTDIR variable])
fi
+fi
+
AC_SUBST(SUBDIRS)
# Add -Wall, -W, -pedantic, and other paranoia to gcc command flags, and -Wall
|