blob: 806c36b9bd44abc49a9e3bb8e68889715c0c5919 (
plain)
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
|
--- configure.in.orig 2006-12-07 14:19:48.000000000 +0100
+++ configure.in 2006-12-08 05:00:27.000000000 +0100
@@ -164,14 +164,16 @@
AC_CHECK_HEADER(cups/cups.h,,AC_MSG_ERROR(CUPS headers are not installed!))
dnl Check for FLTK...
-AC_PATH_PROG(FLTKCONFIG,fltk-config)
+AC_ARG_WITH([fltk], AS_HELP_STRING([--with-fltk], [Build with fltk library GUI (default: disabled)]))
-if test "x$FLTKCONFIG" = x; then
-# AC_MSG_ERROR([Sorry, the CUPS DDK requires FLTK 1.1.x.])
- GUILIBS=""
-else
- CXXFLAGS="`$FLTKCONFIG --cflags` $CXXFLAGS"
- GUILIBS="`$FLTKCONFIG --use-images --ldstaticflags`"
+if test "x$with_fltk" == "xyes"; then
+ AC_PATH_PROG(FLTKCONFIG,fltk-config)
+ if test "x$FLTKCONFIG" = x; then
+ AC_MSG_ERROR([Sorry, the CUPS DDK GUI requires FLTK 1.1.x.])
+ else
+ CXXFLAGS="`$FLTKCONFIG --cflags` $CXXFLAGS"
+ GUILIBS="`$FLTKCONFIG --use-images --ldstaticflags`"
+ fi
fi
AC_SUBST(FLTKCONFIG)
|