summaryrefslogtreecommitdiff
path: root/net-print/libinklevel/files/libinklevel-0.8.0-automagicdebug.patch
blob: 68af9e102f9d0dae9080344a30e14be991cc058c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- configure.in	2010-03-28 22:11:26.000000000 +0300
+++ configure.in.fixed	2010-03-28 22:18:14.000000000 +0300
@@ -16,9 +16,14 @@
 
 ## Determine hostname & OS
 ## AC_CANONICAL_HOST
-
-AC_ARG_ENABLE([debug], [  --enable-debug	  enable debugging output], 
-	      AC_DEFINE(DEBUG, 1, [enable debugging output]))
+AC_ARG_ENABLE(debug,
+              [  --enable-debug         Enable debugging output if available (default=no)],
+              [ case "${enableval}" in
+             yes|"") enabled=yes; AC_DEFINE(DEBUG, 1, [enable debugging output]) ;;
+             no) ;;
+             *) ;;
+    esac],
+)
 
 ## Check for programs
 ## we want libtool to build our libs