summaryrefslogtreecommitdiff
blob: 8fc287921ef8b5ca9084096d6bea91006f2bd4a3 (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
+	if test "x$FLTKCONFIG" = x; then
+		AC_MSG_ERROR([Sorry, the CUPS DDK GUI requires FLTK 1.1.x.])
+	else
+		AC_PATH_PROG(FLTKCONFIG,fltk-config)
+		CXXFLAGS="`$FLTKCONFIG --cflags` $CXXFLAGS"
+		GUILIBS="`$FLTKCONFIG --use-images --ldstaticflags`"
+	fi
 fi
 
 AC_SUBST(FLTKCONFIG)