about summary refs log tree commit diff
path: root/nixpkgs/pkgs/misc/drivers/epson-escpr/cups-filter-ppd-dirs.patch
blob: fb546b6a25b71e3bf9d74f32e68f6fc018a8439a (plain) (blame)
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
55
56
57
58
59
60
61
62
diff --git a/configure b/configure_new
index 699bcb5..89a1832 100755
--- a/configure
+++ b/configure_new
@@ -11585,55 +11585,8 @@ else
 $as_echo "no" >&6; }
 fi
 
-
-
-if test "xNONE" != "x${prefix}" ; then
-   cups_default_prefix="${prefix}"
-else
-   cups_default_prefix="${ac_default_prefix}"
-fi
-
-
-# Check whether --with-cupsfilterdir was given.
-if test "${with_cupsfilterdir+set}" = set; then :
-  withval=$with_cupsfilterdir;
-else
-  with_cupsfilterdir=no
-fi
-
-if test "xno" = "x${with_cupsfilterdir}"; then
-   if test "xyes" = "x$have_cups_config" ; then
-            CUPS_FILTER_DIR="${cups_default_prefix}`cups-config --serverbin | sed -e 's,^/[^/][^/]*,,'`/filter"
-   else
-      CUPS_FILTER_DIR="${cups_default_prefix}/lib/cups/filter"
-   fi
-else
-   CUPS_FILTER_DIR="${with_cupsfilterdir}"
-fi
-
-
-# Check whether --with-cupsppddir was given.
-if test "${with_cupsppddir+set}" = set; then :
-  withval=$with_cupsppddir;
-else
-  with_cupsppddir=no
-fi
-
-if test "xno" = "x${with_cupsppddir}"; then
-   if test -d "${cups_default_prefix}/share/ppd" ; then
-      CUPS_PPD_DIR="${cups_default_prefix}/share/ppd"
-   elif test "xyes" = "x$have_cups_config" ; then
-            CUPS_PPD_DIR="${cups_default_prefix}/`cups-config --datadir | sed -e 's,^/[^/][^/]*,,'`/model"
-   else
-      CUPS_PPD_DIR="${cups_default_prefix}/share/cups/model"
-   fi
-else
-   CUPS_PPD_DIR="${with_cupsppddir}"
-fi
-
-
-
-
+CUPS_FILTER_DIR="${prefix}/lib/cups/filter"
+CUPS_PPD_DIR="${prefix}/share/cups/model"
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
 $as_echo_n "checking for ANSI C header files... " >&6; }