]>
Commit | Line | Data |
---|---|---|
b86bc4cf | 1 | dnl |
2 | dnl "$Id$" | |
3 | dnl | |
4 | dnl 32/64-bit library support stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
bc44d920 | 6 | dnl Copyright 2007 by Apple Inc. |
b86bc4cf | 7 | dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. |
8 | dnl | |
9 | dnl These coded instructions, statements, and computer programs are the | |
bc44d920 | 10 | dnl property of Apple Inc. and are protected by Federal copyright |
11 | dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
12 | dnl which should have been included with this file. If this file is | |
13 | dnl file is missing or damaged, see the license at "http://www.cups.org/". | |
b86bc4cf | 14 | dnl |
15 | ||
16 | dnl Setup support for separate 32/64-bit library generation... | |
17 | AC_ARG_ENABLE(32bit, [ --enable-32bit generate 32-bit libraries on 32/64-bit systems, default=no]) | |
18 | ||
19 | INSTALL32="" | |
20 | LIB32CUPS="" | |
21 | LIB32CUPSIMAGE="" | |
22 | LIB32DIR="" | |
23 | UNINSTALL32="" | |
24 | ||
25 | AC_SUBST(INSTALL32) | |
26 | AC_SUBST(LIB32CUPS) | |
27 | AC_SUBST(LIB32CUPSIMAGE) | |
28 | AC_SUBST(LIB32DIR) | |
29 | AC_SUBST(UNINSTALL32) | |
30 | ||
31 | AC_ARG_ENABLE(64bit, [ --enable-64bit generate 64-bit libraries on 32/64-bit systems, default=no]) | |
32 | ||
33 | INSTALL64="" | |
34 | LIB64CUPS="" | |
35 | LIB64CUPSIMAGE="" | |
36 | LIB64DIR="" | |
37 | UNINSTALL64="" | |
38 | ||
39 | AC_SUBST(INSTALL64) | |
40 | AC_SUBST(LIB64CUPS) | |
41 | AC_SUBST(LIB64CUPSIMAGE) | |
42 | AC_SUBST(LIB64DIR) | |
43 | AC_SUBST(UNINSTALL64) | |
44 | ||
45 | case "$uname" in | |
46 | HP-UX*) | |
47 | if test "x$enable_32bit" = xyes; then | |
48 | # Build 32-bit libraries, 64-bit base... | |
49 | INSTALL32="install32bit" | |
50 | LIB32CUPS="32bit/libcups.so.2" | |
51 | LIB32CUPSIMAGE="32bit/libcupsimage.so.2" | |
52 | LIB32DIR="$exec_prefix/lib" | |
53 | if test -d /usr/lib/hpux32; then | |
54 | LIB32DIR="${LIB32DIR}/hpux32" | |
55 | fi | |
56 | UNINSTALL32="uninstall32bit" | |
57 | fi | |
58 | ||
59 | if test "x$enable_64bit" = xyes; then | |
60 | # Build 64-bit libraries, 32-bit base... | |
61 | INSTALL64="install64bit" | |
62 | LIB64CUPS="64bit/libcups.so.2" | |
63 | LIB64CUPSIMAGE="64bit/libcupsimage.so.2" | |
64 | LIB64DIR="$exec_prefix/lib" | |
65 | if test -d /usr/lib/hpux64; then | |
66 | LIB64DIR="${LIB64DIR}/hpux64" | |
67 | fi | |
68 | UNINSTALL64="uninstall64bit" | |
69 | fi | |
70 | ;; | |
71 | ||
72 | IRIX) | |
73 | if test "x$enable_32bit" = xyes; then | |
74 | INSTALL32="install32bit" | |
75 | LIB32CUPS="32bit/libcups.so.2" | |
76 | LIB32CUPSIMAGE="32bit/libcupsimage.so.2" | |
77 | LIB32DIR="$prefix/lib32" | |
78 | UNINSTALL32="uninstall32bit" | |
79 | fi | |
80 | ||
81 | if test "x$enable_64bit" = xyes; then | |
82 | # Build 64-bit libraries, 32-bit base... | |
83 | INSTALL64="install64bit" | |
84 | LIB64CUPS="64bit/libcups.so.2" | |
85 | LIB64CUPSIMAGE="64bit/libcupsimage.so.2" | |
86 | LIB64DIR="$prefix/lib64" | |
87 | UNINSTALL64="uninstall64bit" | |
88 | fi | |
89 | ;; | |
90 | ||
91 | Linux*) | |
92 | if test "x$enable_32bit" = xyes; then | |
93 | # Build 32-bit libraries, 64-bit base... | |
94 | INSTALL32="install32bit" | |
95 | LIB32CUPS="32bit/libcups.so.2" | |
96 | LIB32CUPSIMAGE="32bit/libcupsimage.so.2" | |
97 | LIB32DIR="$exec_prefix/lib" | |
98 | if test -d /usr/lib32; then | |
99 | LIB32DIR="${LIB32DIR}32" | |
100 | fi | |
101 | UNINSTALL32="uninstall32bit" | |
102 | fi | |
103 | ||
104 | if test "x$enable_64bit" = xyes; then | |
105 | # Build 64-bit libraries, 32-bit base... | |
106 | INSTALL64="install64bit" | |
107 | LIB64CUPS="64bit/libcups.so.2" | |
108 | LIB64CUPSIMAGE="64bit/libcupsimage.so.2" | |
109 | LIB64DIR="$exec_prefix/lib" | |
110 | if test -d /usr/lib64; then | |
111 | LIB64DIR="${LIB64DIR}64" | |
112 | fi | |
113 | UNINSTALL64="uninstall64bit" | |
114 | fi | |
115 | ;; | |
116 | ||
117 | SunOS*) | |
118 | if test "x$enable_32bit" = xyes; then | |
119 | # Build 32-bit libraries, 64-bit base... | |
120 | INSTALL32="install32bit" | |
121 | LIB32CUPS="32bit/libcups.so.2" | |
122 | LIB32CUPSIMAGE="32bit/libcupsimage.so.2" | |
123 | LIB32DIR="$exec_prefix/lib/32" | |
124 | UNINSTALL32="uninstall32bit" | |
125 | fi | |
126 | ||
127 | if test "x$enable_64bit" = xyes; then | |
128 | # Build 64-bit libraries, 32-bit base... | |
129 | INSTALL64="install64bit" | |
130 | LIB64CUPS="64bit/libcups.so.2" | |
131 | LIB64CUPSIMAGE="64bit/libcupsimage.so.2" | |
132 | LIB64DIR="$exec_prefix/lib/64" | |
133 | UNINSTALL64="uninstall64bit" | |
134 | fi | |
135 | ;; | |
136 | esac | |
137 | ||
138 | dnl | |
139 | dnl End of "$Id$". | |
140 | dnl |