1 |
bertho |
1.1 |
#! /bin/sh |
2 |
|
|
|
3 |
|
|
# Guess values for system-dependent variables and create Makefiles. |
4 |
|
|
# Generated automatically using autoconf version 2.13 |
5 |
|
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
6 |
|
|
# |
7 |
|
|
# This configure script is free software; the Free Software Foundation |
8 |
|
|
# gives unlimited permission to copy, distribute and modify it. |
9 |
|
|
|
10 |
|
|
# Defaults: |
11 |
|
|
ac_help= |
12 |
|
|
ac_default_prefix=/usr/local |
13 |
|
|
# Any additions from configure.in: |
14 |
|
|
ac_help="$ac_help |
15 |
bertho |
1.4 |
--with-gd-inc=DIR location of the gd includes" |
16 |
bertho |
1.1 |
ac_help="$ac_help |
17 |
bertho |
1.4 |
--with-gd-lib=DIR location of the gd library" |
18 |
|
|
ac_help="$ac_help |
19 |
bertho |
1.8 |
--with-freetype-lib=DIR location of freetype library" |
20 |
bertho |
1.4 |
ac_help="$ac_help |
21 |
bertho |
1.8 |
--with-freetype2-lib=DIR location of freetype2 library" |
22 |
bertho |
1.1 |
ac_help="$ac_help |
23 |
bertho |
1.5 |
--with-png-inc=DIR location of png includes" |
24 |
|
|
ac_help="$ac_help |
25 |
|
|
--with-png-lib=DIR location of png library" |
26 |
|
|
ac_help="$ac_help |
27 |
|
|
--with-jpeg-inc=DIR location of jpeg includes" |
28 |
|
|
ac_help="$ac_help |
29 |
|
|
--with-jpeg-lib=DIR location of jpeg library" |
30 |
bertho |
1.3 |
ac_help="$ac_help |
31 |
bertho |
1.8 |
--with-z-inc=DIR location of zlib includes" |
32 |
|
|
ac_help="$ac_help |
33 |
|
|
--with-z-lib=DIR location of zlib library" |
34 |
bertho |
1.7 |
ac_help="$ac_help |
35 |
bertho |
1.3 |
--disable-speed Turn off lex table optimization reducing speed and size of executable" |
36 |
bertho |
1.1 |
|
37 |
|
|
# Initialize some variables set by options. |
38 |
|
|
# The variables have the same names as the options, with |
39 |
|
|
# dashes changed to underlines. |
40 |
|
|
build=NONE |
41 |
|
|
cache_file=./config.cache |
42 |
|
|
exec_prefix=NONE |
43 |
|
|
host=NONE |
44 |
|
|
no_create= |
45 |
|
|
nonopt=NONE |
46 |
|
|
no_recursion= |
47 |
|
|
prefix=NONE |
48 |
|
|
program_prefix=NONE |
49 |
|
|
program_suffix=NONE |
50 |
|
|
program_transform_name=s,x,x, |
51 |
|
|
silent= |
52 |
|
|
site= |
53 |
|
|
srcdir= |
54 |
|
|
target=NONE |
55 |
|
|
verbose= |
56 |
|
|
x_includes=NONE |
57 |
|
|
x_libraries=NONE |
58 |
|
|
bindir='${exec_prefix}/bin' |
59 |
|
|
sbindir='${exec_prefix}/sbin' |
60 |
|
|
libexecdir='${exec_prefix}/libexec' |
61 |
|
|
datadir='${prefix}/share' |
62 |
|
|
sysconfdir='${prefix}/etc' |
63 |
|
|
sharedstatedir='${prefix}/com' |
64 |
|
|
localstatedir='${prefix}/var' |
65 |
|
|
libdir='${exec_prefix}/lib' |
66 |
|
|
includedir='${prefix}/include' |
67 |
|
|
oldincludedir='/usr/include' |
68 |
|
|
infodir='${prefix}/info' |
69 |
|
|
mandir='${prefix}/man' |
70 |
|
|
|
71 |
|
|
# Initialize some other variables. |
72 |
|
|
subdirs= |
73 |
|
|
MFLAGS= MAKEFLAGS= |
74 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh} |
75 |
|
|
# Maximum number of lines to put in a shell here document. |
76 |
|
|
ac_max_here_lines=12 |
77 |
|
|
|
78 |
|
|
ac_prev= |
79 |
|
|
for ac_option |
80 |
|
|
do |
81 |
|
|
|
82 |
|
|
# If the previous option needs an argument, assign it. |
83 |
|
|
if test -n "$ac_prev"; then |
84 |
|
|
eval "$ac_prev=\$ac_option" |
85 |
|
|
ac_prev= |
86 |
|
|
continue |
87 |
|
|
fi |
88 |
|
|
|
89 |
|
|
case "$ac_option" in |
90 |
|
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
91 |
|
|
*) ac_optarg= ;; |
92 |
|
|
esac |
93 |
|
|
|
94 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos. |
95 |
|
|
|
96 |
|
|
case "$ac_option" in |
97 |
|
|
|
98 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
99 |
|
|
ac_prev=bindir ;; |
100 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
101 |
|
|
bindir="$ac_optarg" ;; |
102 |
|
|
|
103 |
|
|
-build | --build | --buil | --bui | --bu) |
104 |
|
|
ac_prev=build ;; |
105 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
106 |
|
|
build="$ac_optarg" ;; |
107 |
|
|
|
108 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
109 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
110 |
|
|
ac_prev=cache_file ;; |
111 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
112 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
113 |
|
|
cache_file="$ac_optarg" ;; |
114 |
|
|
|
115 |
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
116 |
|
|
ac_prev=datadir ;; |
117 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
118 |
|
|
| --da=*) |
119 |
|
|
datadir="$ac_optarg" ;; |
120 |
|
|
|
121 |
|
|
-disable-* | --disable-*) |
122 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
123 |
|
|
# Reject names that are not valid shell variable names. |
124 |
|
|
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
125 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
126 |
|
|
fi |
127 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
128 |
|
|
eval "enable_${ac_feature}=no" ;; |
129 |
|
|
|
130 |
|
|
-enable-* | --enable-*) |
131 |
|
|
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
132 |
|
|
# Reject names that are not valid shell variable names. |
133 |
|
|
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
134 |
|
|
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
135 |
|
|
fi |
136 |
|
|
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
137 |
|
|
case "$ac_option" in |
138 |
|
|
*=*) ;; |
139 |
|
|
*) ac_optarg=yes ;; |
140 |
|
|
esac |
141 |
|
|
eval "enable_${ac_feature}='$ac_optarg'" ;; |
142 |
|
|
|
143 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
144 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
145 |
|
|
| --exec | --exe | --ex) |
146 |
|
|
ac_prev=exec_prefix ;; |
147 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
148 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
149 |
|
|
| --exec=* | --exe=* | --ex=*) |
150 |
|
|
exec_prefix="$ac_optarg" ;; |
151 |
|
|
|
152 |
|
|
-gas | --gas | --ga | --g) |
153 |
|
|
# Obsolete; use --with-gas. |
154 |
|
|
with_gas=yes ;; |
155 |
|
|
|
156 |
|
|
-help | --help | --hel | --he) |
157 |
|
|
# Omit some internal or obsolete options to make the list less imposing. |
158 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh. |
159 |
|
|
cat << EOF |
160 |
|
|
Usage: configure [options] [host] |
161 |
|
|
Options: [defaults in brackets after descriptions] |
162 |
|
|
Configuration: |
163 |
|
|
--cache-file=FILE cache test results in FILE |
164 |
|
|
--help print this message |
165 |
|
|
--no-create do not create output files |
166 |
|
|
--quiet, --silent do not print \`checking...' messages |
167 |
|
|
--version print the version of autoconf that created configure |
168 |
|
|
Directory and file names: |
169 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX |
170 |
|
|
[$ac_default_prefix] |
171 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
172 |
|
|
[same as prefix] |
173 |
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin] |
174 |
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
175 |
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
176 |
|
|
--datadir=DIR read-only architecture-independent data in DIR |
177 |
|
|
[PREFIX/share] |
178 |
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
179 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
180 |
|
|
[PREFIX/com] |
181 |
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
182 |
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
183 |
|
|
--includedir=DIR C header files in DIR [PREFIX/include] |
184 |
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
185 |
|
|
--infodir=DIR info documentation in DIR [PREFIX/info] |
186 |
|
|
--mandir=DIR man documentation in DIR [PREFIX/man] |
187 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..] |
188 |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names |
189 |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names |
190 |
|
|
--program-transform-name=PROGRAM |
191 |
|
|
run sed PROGRAM on installed program names |
192 |
|
|
EOF |
193 |
|
|
cat << EOF |
194 |
|
|
Host type: |
195 |
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST] |
196 |
|
|
--host=HOST configure for HOST [guessed] |
197 |
|
|
--target=TARGET configure for TARGET [TARGET=HOST] |
198 |
|
|
Features and packages: |
199 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
200 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
201 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
202 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
203 |
|
|
--x-includes=DIR X include files are in DIR |
204 |
|
|
--x-libraries=DIR X library files are in DIR |
205 |
|
|
EOF |
206 |
|
|
if test -n "$ac_help"; then |
207 |
|
|
echo "--enable and --with options recognized:$ac_help" |
208 |
|
|
fi |
209 |
|
|
exit 0 ;; |
210 |
|
|
|
211 |
|
|
-host | --host | --hos | --ho) |
212 |
|
|
ac_prev=host ;; |
213 |
|
|
-host=* | --host=* | --hos=* | --ho=*) |
214 |
|
|
host="$ac_optarg" ;; |
215 |
|
|
|
216 |
|
|
-includedir | --includedir | --includedi | --included | --include \ |
217 |
|
|
| --includ | --inclu | --incl | --inc) |
218 |
|
|
ac_prev=includedir ;; |
219 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
220 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*) |
221 |
|
|
includedir="$ac_optarg" ;; |
222 |
|
|
|
223 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf) |
224 |
|
|
ac_prev=infodir ;; |
225 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
226 |
|
|
infodir="$ac_optarg" ;; |
227 |
|
|
|
228 |
|
|
-libdir | --libdir | --libdi | --libd) |
229 |
|
|
ac_prev=libdir ;; |
230 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
231 |
|
|
libdir="$ac_optarg" ;; |
232 |
|
|
|
233 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
234 |
|
|
| --libexe | --libex | --libe) |
235 |
|
|
ac_prev=libexecdir ;; |
236 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
237 |
|
|
| --libexe=* | --libex=* | --libe=*) |
238 |
|
|
libexecdir="$ac_optarg" ;; |
239 |
|
|
|
240 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
241 |
|
|
| --localstate | --localstat | --localsta | --localst \ |
242 |
|
|
| --locals | --local | --loca | --loc | --lo) |
243 |
|
|
ac_prev=localstatedir ;; |
244 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
245 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
246 |
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
247 |
|
|
localstatedir="$ac_optarg" ;; |
248 |
|
|
|
249 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
250 |
|
|
ac_prev=mandir ;; |
251 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
252 |
|
|
mandir="$ac_optarg" ;; |
253 |
|
|
|
254 |
|
|
-nfp | --nfp | --nf) |
255 |
|
|
# Obsolete; use --without-fp. |
256 |
|
|
with_fp=no ;; |
257 |
|
|
|
258 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
259 |
|
|
| --no-cr | --no-c) |
260 |
|
|
no_create=yes ;; |
261 |
|
|
|
262 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
263 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
264 |
|
|
no_recursion=yes ;; |
265 |
|
|
|
266 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
267 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
268 |
|
|
| --oldin | --oldi | --old | --ol | --o) |
269 |
|
|
ac_prev=oldincludedir ;; |
270 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
271 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
272 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
273 |
|
|
oldincludedir="$ac_optarg" ;; |
274 |
|
|
|
275 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
276 |
|
|
ac_prev=prefix ;; |
277 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
278 |
|
|
prefix="$ac_optarg" ;; |
279 |
|
|
|
280 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
281 |
|
|
| --program-pre | --program-pr | --program-p) |
282 |
|
|
ac_prev=program_prefix ;; |
283 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
284 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
285 |
|
|
program_prefix="$ac_optarg" ;; |
286 |
|
|
|
287 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
288 |
|
|
| --program-suf | --program-su | --program-s) |
289 |
|
|
ac_prev=program_suffix ;; |
290 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
291 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
292 |
|
|
program_suffix="$ac_optarg" ;; |
293 |
|
|
|
294 |
|
|
-program-transform-name | --program-transform-name \ |
295 |
|
|
| --program-transform-nam | --program-transform-na \ |
296 |
|
|
| --program-transform-n | --program-transform- \ |
297 |
|
|
| --program-transform | --program-transfor \ |
298 |
|
|
| --program-transfo | --program-transf \ |
299 |
|
|
| --program-trans | --program-tran \ |
300 |
|
|
| --progr-tra | --program-tr | --program-t) |
301 |
|
|
ac_prev=program_transform_name ;; |
302 |
|
|
-program-transform-name=* | --program-transform-name=* \ |
303 |
|
|
| --program-transform-nam=* | --program-transform-na=* \ |
304 |
|
|
| --program-transform-n=* | --program-transform-=* \ |
305 |
|
|
| --program-transform=* | --program-transfor=* \ |
306 |
|
|
| --program-transfo=* | --program-transf=* \ |
307 |
|
|
| --program-trans=* | --program-tran=* \ |
308 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*) |
309 |
|
|
program_transform_name="$ac_optarg" ;; |
310 |
|
|
|
311 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
312 |
|
|
| -silent | --silent | --silen | --sile | --sil) |
313 |
|
|
silent=yes ;; |
314 |
|
|
|
315 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
316 |
|
|
ac_prev=sbindir ;; |
317 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
318 |
|
|
| --sbi=* | --sb=*) |
319 |
|
|
sbindir="$ac_optarg" ;; |
320 |
|
|
|
321 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
322 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
323 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \ |
324 |
|
|
| --sha | --sh) |
325 |
|
|
ac_prev=sharedstatedir ;; |
326 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
327 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
328 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
329 |
|
|
| --sha=* | --sh=*) |
330 |
|
|
sharedstatedir="$ac_optarg" ;; |
331 |
|
|
|
332 |
|
|
-site | --site | --sit) |
333 |
|
|
ac_prev=site ;; |
334 |
|
|
-site=* | --site=* | --sit=*) |
335 |
|
|
site="$ac_optarg" ;; |
336 |
|
|
|
337 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
338 |
|
|
ac_prev=srcdir ;; |
339 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
340 |
|
|
srcdir="$ac_optarg" ;; |
341 |
|
|
|
342 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
343 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy) |
344 |
|
|
ac_prev=sysconfdir ;; |
345 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
346 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
347 |
|
|
sysconfdir="$ac_optarg" ;; |
348 |
|
|
|
349 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t) |
350 |
|
|
ac_prev=target ;; |
351 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
352 |
|
|
target="$ac_optarg" ;; |
353 |
|
|
|
354 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
355 |
|
|
verbose=yes ;; |
356 |
|
|
|
357 |
|
|
-version | --version | --versio | --versi | --vers) |
358 |
|
|
echo "configure generated by autoconf version 2.13" |
359 |
|
|
exit 0 ;; |
360 |
|
|
|
361 |
|
|
-with-* | --with-*) |
362 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
363 |
|
|
# Reject names that are not valid shell variable names. |
364 |
|
|
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
365 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
366 |
|
|
fi |
367 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'` |
368 |
|
|
case "$ac_option" in |
369 |
|
|
*=*) ;; |
370 |
|
|
*) ac_optarg=yes ;; |
371 |
|
|
esac |
372 |
|
|
eval "with_${ac_package}='$ac_optarg'" ;; |
373 |
|
|
|
374 |
|
|
-without-* | --without-*) |
375 |
|
|
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
376 |
|
|
# Reject names that are not valid shell variable names. |
377 |
|
|
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
378 |
|
|
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
379 |
|
|
fi |
380 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'` |
381 |
|
|
eval "with_${ac_package}=no" ;; |
382 |
|
|
|
383 |
|
|
--x) |
384 |
|
|
# Obsolete; use --with-x. |
385 |
|
|
with_x=yes ;; |
386 |
|
|
|
387 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
388 |
|
|
| --x-incl | --x-inc | --x-in | --x-i) |
389 |
|
|
ac_prev=x_includes ;; |
390 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
391 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
392 |
|
|
x_includes="$ac_optarg" ;; |
393 |
|
|
|
394 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
395 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
396 |
|
|
ac_prev=x_libraries ;; |
397 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
398 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
399 |
|
|
x_libraries="$ac_optarg" ;; |
400 |
|
|
|
401 |
|
|
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
402 |
|
|
;; |
403 |
|
|
|
404 |
|
|
*) |
405 |
|
|
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
406 |
|
|
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
407 |
|
|
fi |
408 |
|
|
if test "x$nonopt" != xNONE; then |
409 |
|
|
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
410 |
|
|
fi |
411 |
|
|
nonopt="$ac_option" |
412 |
|
|
;; |
413 |
|
|
|
414 |
|
|
esac |
415 |
|
|
done |
416 |
|
|
|
417 |
|
|
if test -n "$ac_prev"; then |
418 |
|
|
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
419 |
|
|
fi |
420 |
|
|
|
421 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
422 |
|
|
|
423 |
|
|
# File descriptor usage: |
424 |
|
|
# 0 standard input |
425 |
|
|
# 1 file creation |
426 |
|
|
# 2 errors and warnings |
427 |
|
|
# 3 some systems may open it to /dev/tty |
428 |
|
|
# 4 used on the Kubota Titan |
429 |
|
|
# 6 checking for... messages and results |
430 |
|
|
# 5 compiler messages saved in config.log |
431 |
|
|
if test "$silent" = yes; then |
432 |
|
|
exec 6>/dev/null |
433 |
|
|
else |
434 |
|
|
exec 6>&1 |
435 |
|
|
fi |
436 |
|
|
exec 5>./config.log |
437 |
|
|
|
438 |
|
|
echo "\ |
439 |
|
|
This file contains any messages produced by compilers while |
440 |
|
|
running configure, to aid debugging if configure makes a mistake. |
441 |
|
|
" 1>&5 |
442 |
|
|
|
443 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up. |
444 |
|
|
# Also quote any args containing shell metacharacters. |
445 |
|
|
ac_configure_args= |
446 |
|
|
for ac_arg |
447 |
|
|
do |
448 |
|
|
case "$ac_arg" in |
449 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
450 |
|
|
| --no-cr | --no-c) ;; |
451 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
452 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
453 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
454 |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
455 |
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
456 |
|
|
esac |
457 |
|
|
done |
458 |
|
|
|
459 |
|
|
# NLS nuisances. |
460 |
|
|
# Only set these to C if already set. These must not be set unconditionally |
461 |
|
|
# because not all systems understand e.g. LANG=C (notably SCO). |
462 |
|
|
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
463 |
|
|
# Non-C LC_CTYPE values break the ctype check. |
464 |
|
|
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
465 |
|
|
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
466 |
|
|
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
467 |
|
|
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
468 |
|
|
|
469 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
470 |
|
|
rm -rf conftest* confdefs.h |
471 |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
472 |
|
|
echo > confdefs.h |
473 |
|
|
|
474 |
|
|
# A filename unique to this package, relative to the directory that |
475 |
|
|
# configure is in, which we can look for to find out if srcdir is correct. |
476 |
|
|
ac_unique_file=cvsgraph.c |
477 |
|
|
|
478 |
|
|
# Find the source files, if location was not specified. |
479 |
|
|
if test -z "$srcdir"; then |
480 |
|
|
ac_srcdir_defaulted=yes |
481 |
|
|
# Try the directory containing this script, then its parent. |
482 |
|
|
ac_prog=$0 |
483 |
|
|
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
484 |
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
485 |
|
|
srcdir=$ac_confdir |
486 |
|
|
if test ! -r $srcdir/$ac_unique_file; then |
487 |
|
|
srcdir=.. |
488 |
|
|
fi |
489 |
|
|
else |
490 |
|
|
ac_srcdir_defaulted=no |
491 |
|
|
fi |
492 |
|
|
if test ! -r $srcdir/$ac_unique_file; then |
493 |
|
|
if test "$ac_srcdir_defaulted" = yes; then |
494 |
|
|
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
495 |
|
|
else |
496 |
|
|
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
497 |
|
|
fi |
498 |
|
|
fi |
499 |
|
|
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
500 |
|
|
|
501 |
|
|
# Prefer explicitly selected file to automatically selected ones. |
502 |
|
|
if test -z "$CONFIG_SITE"; then |
503 |
|
|
if test "x$prefix" != xNONE; then |
504 |
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
505 |
|
|
else |
506 |
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
507 |
|
|
fi |
508 |
|
|
fi |
509 |
|
|
for ac_site_file in $CONFIG_SITE; do |
510 |
|
|
if test -r "$ac_site_file"; then |
511 |
|
|
echo "loading site script $ac_site_file" |
512 |
|
|
. "$ac_site_file" |
513 |
|
|
fi |
514 |
|
|
done |
515 |
|
|
|
516 |
|
|
if test -r "$cache_file"; then |
517 |
|
|
echo "loading cache $cache_file" |
518 |
|
|
. $cache_file |
519 |
|
|
else |
520 |
|
|
echo "creating cache $cache_file" |
521 |
|
|
> $cache_file |
522 |
|
|
fi |
523 |
|
|
|
524 |
|
|
ac_ext=c |
525 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
526 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
527 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
528 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
529 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
530 |
|
|
|
531 |
|
|
ac_exeext= |
532 |
|
|
ac_objext=o |
533 |
|
|
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
534 |
|
|
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
535 |
|
|
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
536 |
|
|
ac_n= ac_c=' |
537 |
|
|
' ac_t=' ' |
538 |
|
|
else |
539 |
|
|
ac_n=-n ac_c= ac_t= |
540 |
|
|
fi |
541 |
|
|
else |
542 |
|
|
ac_n= ac_c='\c' ac_t= |
543 |
|
|
fi |
544 |
|
|
|
545 |
|
|
|
546 |
|
|
|
547 |
bertho |
1.2 |
|
548 |
bertho |
1.1 |
# Extract the first word of "gcc", so it can be a program name with args. |
549 |
|
|
set dummy gcc; ac_word=$2 |
550 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
551 |
bertho |
1.8 |
echo "configure:552: checking for $ac_word" >&5 |
552 |
bertho |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
553 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
554 |
|
|
else |
555 |
|
|
if test -n "$CC"; then |
556 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
557 |
|
|
else |
558 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
559 |
|
|
ac_dummy="$PATH" |
560 |
|
|
for ac_dir in $ac_dummy; do |
561 |
|
|
test -z "$ac_dir" && ac_dir=. |
562 |
|
|
if test -f $ac_dir/$ac_word; then |
563 |
|
|
ac_cv_prog_CC="gcc" |
564 |
|
|
break |
565 |
|
|
fi |
566 |
|
|
done |
567 |
|
|
IFS="$ac_save_ifs" |
568 |
|
|
fi |
569 |
|
|
fi |
570 |
|
|
CC="$ac_cv_prog_CC" |
571 |
|
|
if test -n "$CC"; then |
572 |
|
|
echo "$ac_t""$CC" 1>&6 |
573 |
|
|
else |
574 |
|
|
echo "$ac_t""no" 1>&6 |
575 |
|
|
fi |
576 |
|
|
|
577 |
|
|
if test -z "$CC"; then |
578 |
|
|
# Extract the first word of "cc", so it can be a program name with args. |
579 |
|
|
set dummy cc; ac_word=$2 |
580 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
581 |
bertho |
1.8 |
echo "configure:582: checking for $ac_word" >&5 |
582 |
bertho |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
583 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
584 |
|
|
else |
585 |
|
|
if test -n "$CC"; then |
586 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
587 |
|
|
else |
588 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
589 |
|
|
ac_prog_rejected=no |
590 |
|
|
ac_dummy="$PATH" |
591 |
|
|
for ac_dir in $ac_dummy; do |
592 |
|
|
test -z "$ac_dir" && ac_dir=. |
593 |
|
|
if test -f $ac_dir/$ac_word; then |
594 |
|
|
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
595 |
|
|
ac_prog_rejected=yes |
596 |
|
|
continue |
597 |
|
|
fi |
598 |
|
|
ac_cv_prog_CC="cc" |
599 |
|
|
break |
600 |
|
|
fi |
601 |
|
|
done |
602 |
|
|
IFS="$ac_save_ifs" |
603 |
|
|
if test $ac_prog_rejected = yes; then |
604 |
|
|
# We found a bogon in the path, so make sure we never use it. |
605 |
|
|
set dummy $ac_cv_prog_CC |
606 |
|
|
shift |
607 |
|
|
if test $# -gt 0; then |
608 |
|
|
# We chose a different compiler from the bogus one. |
609 |
|
|
# However, it has the same basename, so the bogon will be chosen |
610 |
|
|
# first if we set CC to just the basename; use the full file name. |
611 |
|
|
shift |
612 |
|
|
set dummy "$ac_dir/$ac_word" "$@" |
613 |
|
|
shift |
614 |
|
|
ac_cv_prog_CC="$@" |
615 |
|
|
fi |
616 |
|
|
fi |
617 |
|
|
fi |
618 |
|
|
fi |
619 |
|
|
CC="$ac_cv_prog_CC" |
620 |
|
|
if test -n "$CC"; then |
621 |
|
|
echo "$ac_t""$CC" 1>&6 |
622 |
|
|
else |
623 |
|
|
echo "$ac_t""no" 1>&6 |
624 |
|
|
fi |
625 |
|
|
|
626 |
|
|
if test -z "$CC"; then |
627 |
|
|
case "`uname -s`" in |
628 |
|
|
*win32* | *WIN32*) |
629 |
|
|
# Extract the first word of "cl", so it can be a program name with args. |
630 |
|
|
set dummy cl; ac_word=$2 |
631 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
632 |
bertho |
1.8 |
echo "configure:633: checking for $ac_word" >&5 |
633 |
bertho |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
634 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
635 |
|
|
else |
636 |
|
|
if test -n "$CC"; then |
637 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
638 |
|
|
else |
639 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
640 |
|
|
ac_dummy="$PATH" |
641 |
|
|
for ac_dir in $ac_dummy; do |
642 |
|
|
test -z "$ac_dir" && ac_dir=. |
643 |
|
|
if test -f $ac_dir/$ac_word; then |
644 |
|
|
ac_cv_prog_CC="cl" |
645 |
|
|
break |
646 |
|
|
fi |
647 |
|
|
done |
648 |
|
|
IFS="$ac_save_ifs" |
649 |
|
|
fi |
650 |
|
|
fi |
651 |
|
|
CC="$ac_cv_prog_CC" |
652 |
|
|
if test -n "$CC"; then |
653 |
|
|
echo "$ac_t""$CC" 1>&6 |
654 |
|
|
else |
655 |
|
|
echo "$ac_t""no" 1>&6 |
656 |
|
|
fi |
657 |
|
|
;; |
658 |
|
|
esac |
659 |
|
|
fi |
660 |
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
661 |
|
|
fi |
662 |
|
|
|
663 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
664 |
bertho |
1.8 |
echo "configure:665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
665 |
bertho |
1.1 |
|
666 |
|
|
ac_ext=c |
667 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
668 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
669 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
670 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
671 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
672 |
|
|
|
673 |
|
|
cat > conftest.$ac_ext << EOF |
674 |
|
|
|
675 |
bertho |
1.8 |
#line 676 "configure" |
676 |
bertho |
1.1 |
#include "confdefs.h" |
677 |
|
|
|
678 |
|
|
main(){return(0);} |
679 |
|
|
EOF |
680 |
bertho |
1.8 |
if { (eval echo configure:681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
681 |
bertho |
1.1 |
ac_cv_prog_cc_works=yes |
682 |
|
|
# If we can't run a trivial program, we are probably using a cross compiler. |
683 |
|
|
if (./conftest; exit) 2>/dev/null; then |
684 |
|
|
ac_cv_prog_cc_cross=no |
685 |
|
|
else |
686 |
|
|
ac_cv_prog_cc_cross=yes |
687 |
|
|
fi |
688 |
|
|
else |
689 |
|
|
echo "configure: failed program was:" >&5 |
690 |
|
|
cat conftest.$ac_ext >&5 |
691 |
|
|
ac_cv_prog_cc_works=no |
692 |
|
|
fi |
693 |
|
|
rm -fr conftest* |
694 |
|
|
ac_ext=c |
695 |
|
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
696 |
|
|
ac_cpp='$CPP $CPPFLAGS' |
697 |
|
|
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
698 |
|
|
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
699 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
700 |
|
|
|
701 |
|
|
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
702 |
|
|
if test $ac_cv_prog_cc_works = no; then |
703 |
|
|
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
704 |
|
|
fi |
705 |
|
|
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
706 |
bertho |
1.8 |
echo "configure:707: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
707 |
bertho |
1.1 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
708 |
|
|
cross_compiling=$ac_cv_prog_cc_cross |
709 |
|
|
|
710 |
|
|
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
711 |
bertho |
1.8 |
echo "configure:712: checking whether we are using GNU C" >&5 |
712 |
bertho |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
713 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
714 |
|
|
else |
715 |
|
|
cat > conftest.c <<EOF |
716 |
|
|
#ifdef __GNUC__ |
717 |
|
|
yes; |
718 |
|
|
#endif |
719 |
|
|
EOF |
720 |
bertho |
1.8 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
721 |
bertho |
1.1 |
ac_cv_prog_gcc=yes |
722 |
|
|
else |
723 |
|
|
ac_cv_prog_gcc=no |
724 |
|
|
fi |
725 |
|
|
fi |
726 |
|
|
|
727 |
|
|
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
728 |
|
|
|
729 |
|
|
if test $ac_cv_prog_gcc = yes; then |
730 |
|
|
GCC=yes |
731 |
|
|
else |
732 |
|
|
GCC= |
733 |
|
|
fi |
734 |
|
|
|
735 |
|
|
ac_test_CFLAGS="${CFLAGS+set}" |
736 |
|
|
ac_save_CFLAGS="$CFLAGS" |
737 |
|
|
CFLAGS= |
738 |
|
|
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
739 |
bertho |
1.8 |
echo "configure:740: checking whether ${CC-cc} accepts -g" >&5 |
740 |
bertho |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
741 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
742 |
|
|
else |
743 |
|
|
echo 'void f(){}' > conftest.c |
744 |
|
|
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
745 |
|
|
ac_cv_prog_cc_g=yes |
746 |
|
|
else |
747 |
|
|
ac_cv_prog_cc_g=no |
748 |
|
|
fi |
749 |
|
|
rm -f conftest* |
750 |
|
|
|
751 |
|
|
fi |
752 |
|
|
|
753 |
|
|
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
754 |
|
|
if test "$ac_test_CFLAGS" = set; then |
755 |
|
|
CFLAGS="$ac_save_CFLAGS" |
756 |
|
|
elif test $ac_cv_prog_cc_g = yes; then |
757 |
|
|
if test "$GCC" = yes; then |
758 |
|
|
CFLAGS="-g -O2" |
759 |
|
|
else |
760 |
|
|
CFLAGS="-g" |
761 |
|
|
fi |
762 |
|
|
else |
763 |
|
|
if test "$GCC" = yes; then |
764 |
|
|
CFLAGS="-O2" |
765 |
|
|
else |
766 |
|
|
CFLAGS= |
767 |
|
|
fi |
768 |
|
|
fi |
769 |
|
|
|
770 |
|
|
# Extract the first word of "flex", so it can be a program name with args. |
771 |
|
|
set dummy flex; ac_word=$2 |
772 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
773 |
bertho |
1.8 |
echo "configure:774: checking for $ac_word" >&5 |
774 |
bertho |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
775 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
776 |
|
|
else |
777 |
|
|
if test -n "$LEX"; then |
778 |
|
|
ac_cv_prog_LEX="$LEX" # Let the user override the test. |
779 |
|
|
else |
780 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
781 |
|
|
ac_dummy="$PATH" |
782 |
|
|
for ac_dir in $ac_dummy; do |
783 |
|
|
test -z "$ac_dir" && ac_dir=. |
784 |
|
|
if test -f $ac_dir/$ac_word; then |
785 |
|
|
ac_cv_prog_LEX="flex" |
786 |
|
|
break |
787 |
|
|
fi |
788 |
|
|
done |
789 |
|
|
IFS="$ac_save_ifs" |
790 |
|
|
test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
791 |
|
|
fi |
792 |
|
|
fi |
793 |
|
|
LEX="$ac_cv_prog_LEX" |
794 |
|
|
if test -n "$LEX"; then |
795 |
|
|
echo "$ac_t""$LEX" 1>&6 |
796 |
|
|
else |
797 |
|
|
echo "$ac_t""no" 1>&6 |
798 |
|
|
fi |
799 |
|
|
|
800 |
|
|
if test -z "$LEXLIB" |
801 |
|
|
then |
802 |
|
|
case "$LEX" in |
803 |
|
|
flex*) ac_lib=fl ;; |
804 |
|
|
*) ac_lib=l ;; |
805 |
|
|
esac |
806 |
|
|
echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
807 |
bertho |
1.8 |
echo "configure:808: checking for yywrap in -l$ac_lib" >&5 |
808 |
bertho |
1.1 |
ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
809 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
810 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
811 |
|
|
else |
812 |
|
|
ac_save_LIBS="$LIBS" |
813 |
|
|
LIBS="-l$ac_lib $LIBS" |
814 |
|
|
cat > conftest.$ac_ext <<EOF |
815 |
bertho |
1.8 |
#line 816 "configure" |
816 |
bertho |
1.1 |
#include "confdefs.h" |
817 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
818 |
|
|
/* We use char because int might match the return type of a gcc2 |
819 |
|
|
builtin and then its argument prototype would still apply. */ |
820 |
|
|
char yywrap(); |
821 |
|
|
|
822 |
|
|
int main() { |
823 |
|
|
yywrap() |
824 |
|
|
; return 0; } |
825 |
|
|
EOF |
826 |
bertho |
1.8 |
if { (eval echo configure:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
827 |
bertho |
1.1 |
rm -rf conftest* |
828 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
829 |
|
|
else |
830 |
|
|
echo "configure: failed program was:" >&5 |
831 |
|
|
cat conftest.$ac_ext >&5 |
832 |
|
|
rm -rf conftest* |
833 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
834 |
|
|
fi |
835 |
|
|
rm -f conftest* |
836 |
|
|
LIBS="$ac_save_LIBS" |
837 |
|
|
|
838 |
|
|
fi |
839 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
840 |
|
|
echo "$ac_t""yes" 1>&6 |
841 |
|
|
LEXLIB="-l$ac_lib" |
842 |
|
|
else |
843 |
|
|
echo "$ac_t""no" 1>&6 |
844 |
|
|
fi |
845 |
|
|
|
846 |
|
|
fi |
847 |
|
|
|
848 |
|
|
for ac_prog in 'bison -y' byacc |
849 |
|
|
do |
850 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
851 |
|
|
set dummy $ac_prog; ac_word=$2 |
852 |
|
|
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
853 |
bertho |
1.8 |
echo "configure:854: checking for $ac_word" >&5 |
854 |
bertho |
1.1 |
if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
855 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
856 |
|
|
else |
857 |
|
|
if test -n "$YACC"; then |
858 |
|
|
ac_cv_prog_YACC="$YACC" # Let the user override the test. |
859 |
|
|
else |
860 |
|
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
861 |
|
|
ac_dummy="$PATH" |
862 |
|
|
for ac_dir in $ac_dummy; do |
863 |
|
|
test -z "$ac_dir" && ac_dir=. |
864 |
|
|
if test -f $ac_dir/$ac_word; then |
865 |
|
|
ac_cv_prog_YACC="$ac_prog" |
866 |
|
|
break |
867 |
|
|
fi |
868 |
|
|
done |
869 |
|
|
IFS="$ac_save_ifs" |
870 |
|
|
fi |
871 |
|
|
fi |
872 |
|
|
YACC="$ac_cv_prog_YACC" |
873 |
|
|
if test -n "$YACC"; then |
874 |
|
|
echo "$ac_t""$YACC" 1>&6 |
875 |
|
|
else |
876 |
|
|
echo "$ac_t""no" 1>&6 |
877 |
|
|
fi |
878 |
|
|
|
879 |
|
|
test -n "$YACC" && break |
880 |
|
|
done |
881 |
|
|
test -n "$YACC" || YACC="yacc" |
882 |
|
|
|
883 |
|
|
|
884 |
bertho |
1.3 |
LEXFLAGS="-8" |
885 |
|
|
LEXSPEED="-Cf" |
886 |
bertho |
1.5 |
INCL="" |
887 |
bertho |
1.3 |
|
888 |
bertho |
1.5 |
# Check whether --with-gd-inc or --without-gd-inc was given. |
889 |
|
|
if test "${with_gd_inc+set}" = set; then |
890 |
|
|
withval="$with_gd_inc" |
891 |
|
|
INCL="${INCL} -I${withval}" |
892 |
bertho |
1.4 |
|
893 |
|
|
fi |
894 |
|
|
|
895 |
|
|
|
896 |
bertho |
1.5 |
# Check whether --with-gd-lib or --without-gd-lib was given. |
897 |
|
|
if test "${with_gd_lib+set}" = set; then |
898 |
|
|
withval="$with_gd_lib" |
899 |
|
|
LIBS="${LIBS} -L${withval}" |
900 |
bertho |
1.1 |
|
901 |
|
|
fi |
902 |
|
|
|
903 |
|
|
|
904 |
bertho |
1.5 |
LIBS="$LIBS -lgd" |
905 |
bertho |
1.9 |
LIBPATH="" |
906 |
bertho |
1.5 |
|
907 |
bertho |
1.8 |
# Check whether --with-freetype-lib or --without-freetype-lib was given. |
908 |
|
|
if test "${with_freetype_lib+set}" = set; then |
909 |
|
|
withval="$with_freetype_lib" |
910 |
bertho |
1.9 |
LIBS="${LIBS} -L${withval}" |
911 |
bertho |
1.4 |
|
912 |
|
|
fi |
913 |
|
|
|
914 |
|
|
|
915 |
bertho |
1.8 |
# Check whether --with-freetype2-lib or --without-freetype2-lib was given. |
916 |
|
|
if test "${with_freetype2_lib+set}" = set; then |
917 |
|
|
withval="$with_freetype2_lib" |
918 |
bertho |
1.9 |
LIBS="${LIBS} -L${withval}" |
919 |
bertho |
1.1 |
|
920 |
|
|
fi |
921 |
|
|
|
922 |
|
|
|
923 |
bertho |
1.5 |
# Check whether --with-png-inc or --without-png-inc was given. |
924 |
|
|
if test "${with_png_inc+set}" = set; then |
925 |
|
|
withval="$with_png_inc" |
926 |
|
|
INCL="${INCL} -I${withval}" |
927 |
|
|
|
928 |
|
|
fi |
929 |
|
|
|
930 |
|
|
|
931 |
|
|
# Check whether --with-png-lib or --without-png-lib was given. |
932 |
|
|
if test "${with_png_lib+set}" = set; then |
933 |
|
|
withval="$with_png_lib" |
934 |
bertho |
1.9 |
LIBS="${LIBS} -L${withval}" |
935 |
bertho |
1.5 |
|
936 |
|
|
fi |
937 |
|
|
|
938 |
|
|
|
939 |
|
|
# Check whether --with-jpeg-inc or --without-jpeg-inc was given. |
940 |
|
|
if test "${with_jpeg_inc+set}" = set; then |
941 |
|
|
withval="$with_jpeg_inc" |
942 |
|
|
INCL="${INCL} -I${withval}" |
943 |
|
|
|
944 |
|
|
fi |
945 |
|
|
|
946 |
|
|
|
947 |
|
|
# Check whether --with-jpeg-lib or --without-jpeg-lib was given. |
948 |
|
|
if test "${with_jpeg_lib+set}" = set; then |
949 |
|
|
withval="$with_jpeg_lib" |
950 |
bertho |
1.9 |
LIBS="${LIBS} -L${withval}" |
951 |
bertho |
1.8 |
|
952 |
|
|
fi |
953 |
|
|
|
954 |
|
|
|
955 |
|
|
# Check whether --with-z-inc or --without-z-inc was given. |
956 |
|
|
if test "${with_z_inc+set}" = set; then |
957 |
|
|
withval="$with_z_inc" |
958 |
|
|
INCL="${INCL} -I${withval}" |
959 |
bertho |
1.1 |
|
960 |
|
|
fi |
961 |
|
|
|
962 |
|
|
|
963 |
bertho |
1.8 |
# Check whether --with-z-lib or --without-z-lib was given. |
964 |
|
|
if test "${with_z_lib+set}" = set; then |
965 |
|
|
withval="$with_z_lib" |
966 |
bertho |
1.9 |
LIBS="${LIBS} -L${withval}" |
967 |
bertho |
1.7 |
|
968 |
|
|
fi |
969 |
|
|
|
970 |
|
|
|
971 |
bertho |
1.3 |
# Check whether --enable-speed or --disable-speed was given. |
972 |
|
|
if test "${enable_speed+set}" = set; then |
973 |
|
|
enableval="$enable_speed" |
974 |
|
|
if test "$enableval" = "no"; then LEXSPEED=""; fi |
975 |
|
|
fi |
976 |
|
|
|
977 |
|
|
|
978 |
|
|
if test "x$LEXSPEED" != "x" |
979 |
|
|
then |
980 |
|
|
LEXFLAGS="$LEXFLAGS $LEXSPEED" |
981 |
|
|
fi |
982 |
|
|
|
983 |
bertho |
1.5 |
CPPFLAGS="$CPPFLAGS $INCL" |
984 |
|
|
CFLAGS="$CFLAGS $INCL" |
985 |
bertho |
1.1 |
|
986 |
|
|
if test "x${GCC}" = "xyes" |
987 |
|
|
then |
988 |
|
|
CFLAGS="$CFLAGS -Wall" |
989 |
|
|
echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6 |
990 |
bertho |
1.9 |
echo "configure:991: checking "for gcc strength-reduce bug"" >&5 |
991 |
bertho |
1.1 |
if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then |
992 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
993 |
|
|
else |
994 |
|
|
if test "$cross_compiling" = yes; then |
995 |
|
|
ac_cv_c_gcc_strength_bug="yes" |
996 |
|
|
else |
997 |
|
|
cat > conftest.$ac_ext <<EOF |
998 |
bertho |
1.9 |
#line 999 "configure" |
999 |
bertho |
1.1 |
#include "confdefs.h" |
1000 |
|
|
|
1001 |
|
|
int main(void) { |
1002 |
|
|
static int Array[3]; |
1003 |
|
|
unsigned int B = 3; |
1004 |
|
|
int i; |
1005 |
|
|
for(i=0; i<B; i++) Array[i] = i - 3; |
1006 |
|
|
exit( Array[1] != -2 ); |
1007 |
|
|
} |
1008 |
|
|
EOF |
1009 |
bertho |
1.9 |
if { (eval echo configure:1010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1010 |
bertho |
1.1 |
then |
1011 |
|
|
ac_cv_c_gcc_strength_bug="no" |
1012 |
|
|
else |
1013 |
|
|
echo "configure: failed program was:" >&5 |
1014 |
|
|
cat conftest.$ac_ext >&5 |
1015 |
|
|
rm -fr conftest* |
1016 |
|
|
ac_cv_c_gcc_strength_bug="yes" |
1017 |
|
|
fi |
1018 |
|
|
rm -fr conftest* |
1019 |
|
|
fi |
1020 |
|
|
|
1021 |
|
|
fi |
1022 |
|
|
|
1023 |
|
|
echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6 |
1024 |
|
|
if test "$ac_cv_c_gcc_strength_bug" = "yes" |
1025 |
|
|
then |
1026 |
|
|
CFLAGS="$CFLAGS -fno-strength-reduce" |
1027 |
|
|
fi |
1028 |
|
|
fi |
1029 |
|
|
|
1030 |
bertho |
1.9 |
echo $ac_n "checking "sizes of int and void *"""... $ac_c" 1>&6 |
1031 |
|
|
echo "configure:1032: checking "sizes of int and void *"" >&5 |
1032 |
|
|
if eval "test \"`echo '$''{'ac_cv_c_size_int_ptr'+set}'`\" = set"; then |
1033 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1034 |
|
|
else |
1035 |
|
|
if test "$cross_compiling" = yes; then |
1036 |
|
|
ac_cv_c_size_int_ptr="yes" |
1037 |
|
|
else |
1038 |
|
|
cat > conftest.$ac_ext <<EOF |
1039 |
|
|
#line 1040 "configure" |
1040 |
|
|
#include "confdefs.h" |
1041 |
|
|
|
1042 |
|
|
int main(void) { |
1043 |
|
|
return sizeof(int) == sizeof(void *); |
1044 |
|
|
} |
1045 |
|
|
EOF |
1046 |
|
|
if { (eval echo configure:1047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1047 |
|
|
then |
1048 |
|
|
ac_cv_c_size_int_ptr="no" |
1049 |
|
|
else |
1050 |
|
|
echo "configure: failed program was:" >&5 |
1051 |
|
|
cat conftest.$ac_ext >&5 |
1052 |
|
|
rm -fr conftest* |
1053 |
|
|
ac_cv_c_size_int_ptr="yes" |
1054 |
|
|
fi |
1055 |
|
|
rm -fr conftest* |
1056 |
|
|
fi |
1057 |
|
|
|
1058 |
|
|
fi |
1059 |
|
|
|
1060 |
|
|
echo "$ac_t""$ac_cv_c_size_int_ptr" 1>&6 |
1061 |
|
|
if test "$ac_cv_c_size_int_ptr" = "no" |
1062 |
|
|
then |
1063 |
|
|
echo "** The size of an integer is not equal to a pointer." |
1064 |
|
|
echo " There are currently assumtions in the app that" |
1065 |
|
|
echo " prevents it from running if these sizes are not" |
1066 |
|
|
echo " equal." |
1067 |
|
|
echo " Please configure with a compiler that uses the" |
1068 |
|
|
echo " same sizes for ints and pointers." |
1069 |
|
|
exit 1 |
1070 |
|
|
fi |
1071 |
|
|
|
1072 |
bertho |
1.6 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1073 |
bertho |
1.9 |
echo "configure:1074: checking how to run the C preprocessor" >&5 |
1074 |
bertho |
1.6 |
# On Suns, sometimes $CPP names a directory. |
1075 |
|
|
if test -n "$CPP" && test -d "$CPP"; then |
1076 |
|
|
CPP= |
1077 |
|
|
fi |
1078 |
|
|
if test -z "$CPP"; then |
1079 |
|
|
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
1080 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1081 |
|
|
else |
1082 |
|
|
# This must be in double quotes, not single quotes, because CPP may get |
1083 |
|
|
# substituted into the Makefile and "${CC-cc}" will confuse make. |
1084 |
|
|
CPP="${CC-cc} -E" |
1085 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
1086 |
|
|
# not just through cpp. |
1087 |
|
|
cat > conftest.$ac_ext <<EOF |
1088 |
bertho |
1.9 |
#line 1089 "configure" |
1089 |
bertho |
1.6 |
#include "confdefs.h" |
1090 |
|
|
#include <assert.h> |
1091 |
|
|
Syntax Error |
1092 |
|
|
EOF |
1093 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1094 |
bertho |
1.9 |
{ (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1095 |
bertho |
1.6 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1096 |
|
|
if test -z "$ac_err"; then |
1097 |
|
|
: |
1098 |
|
|
else |
1099 |
|
|
echo "$ac_err" >&5 |
1100 |
|
|
echo "configure: failed program was:" >&5 |
1101 |
|
|
cat conftest.$ac_ext >&5 |
1102 |
|
|
rm -rf conftest* |
1103 |
|
|
CPP="${CC-cc} -E -traditional-cpp" |
1104 |
|
|
cat > conftest.$ac_ext <<EOF |
1105 |
bertho |
1.9 |
#line 1106 "configure" |
1106 |
bertho |
1.6 |
#include "confdefs.h" |
1107 |
|
|
#include <assert.h> |
1108 |
|
|
Syntax Error |
1109 |
|
|
EOF |
1110 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1111 |
bertho |
1.9 |
{ (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1112 |
bertho |
1.6 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1113 |
|
|
if test -z "$ac_err"; then |
1114 |
|
|
: |
1115 |
|
|
else |
1116 |
|
|
echo "$ac_err" >&5 |
1117 |
|
|
echo "configure: failed program was:" >&5 |
1118 |
|
|
cat conftest.$ac_ext >&5 |
1119 |
|
|
rm -rf conftest* |
1120 |
|
|
CPP="${CC-cc} -nologo -E" |
1121 |
|
|
cat > conftest.$ac_ext <<EOF |
1122 |
bertho |
1.9 |
#line 1123 "configure" |
1123 |
bertho |
1.6 |
#include "confdefs.h" |
1124 |
|
|
#include <assert.h> |
1125 |
|
|
Syntax Error |
1126 |
|
|
EOF |
1127 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1128 |
bertho |
1.9 |
{ (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1129 |
bertho |
1.6 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1130 |
|
|
if test -z "$ac_err"; then |
1131 |
|
|
: |
1132 |
|
|
else |
1133 |
|
|
echo "$ac_err" >&5 |
1134 |
|
|
echo "configure: failed program was:" >&5 |
1135 |
|
|
cat conftest.$ac_ext >&5 |
1136 |
|
|
rm -rf conftest* |
1137 |
|
|
CPP=/lib/cpp |
1138 |
|
|
fi |
1139 |
|
|
rm -f conftest* |
1140 |
|
|
fi |
1141 |
|
|
rm -f conftest* |
1142 |
|
|
fi |
1143 |
|
|
rm -f conftest* |
1144 |
|
|
ac_cv_prog_CPP="$CPP" |
1145 |
|
|
fi |
1146 |
|
|
CPP="$ac_cv_prog_CPP" |
1147 |
|
|
else |
1148 |
|
|
ac_cv_prog_CPP="$CPP" |
1149 |
|
|
fi |
1150 |
|
|
echo "$ac_t""$CPP" 1>&6 |
1151 |
|
|
|
1152 |
|
|
ac_safe=`echo "getopt.h" | sed 'y%./+-%__p_%'` |
1153 |
|
|
echo $ac_n "checking for getopt.h""... $ac_c" 1>&6 |
1154 |
bertho |
1.9 |
echo "configure:1155: checking for getopt.h" >&5 |
1155 |
bertho |
1.6 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1156 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1157 |
|
|
else |
1158 |
|
|
cat > conftest.$ac_ext <<EOF |
1159 |
bertho |
1.9 |
#line 1160 "configure" |
1160 |
bertho |
1.6 |
#include "confdefs.h" |
1161 |
|
|
#include <getopt.h> |
1162 |
|
|
EOF |
1163 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1164 |
bertho |
1.9 |
{ (eval echo configure:1165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1165 |
bertho |
1.6 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1166 |
|
|
if test -z "$ac_err"; then |
1167 |
|
|
rm -rf conftest* |
1168 |
|
|
eval "ac_cv_header_$ac_safe=yes" |
1169 |
|
|
else |
1170 |
|
|
echo "$ac_err" >&5 |
1171 |
|
|
echo "configure: failed program was:" >&5 |
1172 |
|
|
cat conftest.$ac_ext >&5 |
1173 |
|
|
rm -rf conftest* |
1174 |
|
|
eval "ac_cv_header_$ac_safe=no" |
1175 |
|
|
fi |
1176 |
|
|
rm -f conftest* |
1177 |
|
|
fi |
1178 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1179 |
|
|
echo "$ac_t""yes" 1>&6 |
1180 |
|
|
cat >> confdefs.h <<\EOF |
1181 |
|
|
#define HAVE_GETOPT_H 1 |
1182 |
|
|
EOF |
1183 |
|
|
|
1184 |
|
|
else |
1185 |
|
|
echo "$ac_t""no" 1>&6 |
1186 |
|
|
fi |
1187 |
|
|
|
1188 |
bertho |
1.1 |
|
1189 |
bertho |
1.9 |
ac_safe=`echo "gd.h" | sed 'y%./+-%__p_%'` |
1190 |
|
|
echo $ac_n "checking for gd.h""... $ac_c" 1>&6 |
1191 |
|
|
echo "configure:1192: checking for gd.h" >&5 |
1192 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1193 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1194 |
|
|
else |
1195 |
|
|
cat > conftest.$ac_ext <<EOF |
1196 |
|
|
#line 1197 "configure" |
1197 |
|
|
#include "confdefs.h" |
1198 |
|
|
#include <gd.h> |
1199 |
|
|
EOF |
1200 |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1201 |
|
|
{ (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1202 |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1203 |
|
|
if test -z "$ac_err"; then |
1204 |
|
|
rm -rf conftest* |
1205 |
|
|
eval "ac_cv_header_$ac_safe=yes" |
1206 |
|
|
else |
1207 |
|
|
echo "$ac_err" >&5 |
1208 |
|
|
echo "configure: failed program was:" >&5 |
1209 |
|
|
cat conftest.$ac_ext >&5 |
1210 |
|
|
rm -rf conftest* |
1211 |
|
|
eval "ac_cv_header_$ac_safe=no" |
1212 |
|
|
fi |
1213 |
|
|
rm -f conftest* |
1214 |
|
|
fi |
1215 |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1216 |
|
|
echo "$ac_t""yes" 1>&6 |
1217 |
|
|
have_gd_h="yes" |
1218 |
|
|
else |
1219 |
|
|
echo "$ac_t""no" 1>&6 |
1220 |
|
|
have_gd_h="no" |
1221 |
|
|
fi |
1222 |
|
|
|
1223 |
|
|
|
1224 |
|
|
if test "$have_gd_h" != "yes"; then |
1225 |
|
|
echo |
1226 |
|
|
echo "** The GD library is required for CvsGraph to function." |
1227 |
|
|
echo " Get it from http://www.boutell.com, compile it and" |
1228 |
|
|
echo " use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify" |
1229 |
|
|
echo " its location. You might also have to use --with-z-inc, --with-z-lib" |
1230 |
|
|
echo " and --with-png-inc, --with-png-lib for gd versions 1.6 and higher." |
1231 |
|
|
echo " Check config.log for more information on the problem. If your system" |
1232 |
|
|
echo " has libgd installed, you probably mis the gd.h header file." |
1233 |
|
|
exit 1 |
1234 |
|
|
fi |
1235 |
|
|
|
1236 |
bertho |
1.1 |
echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
1237 |
bertho |
1.9 |
echo "configure:1238: checking for sqrt in -lm" >&5 |
1238 |
bertho |
1.1 |
ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
1239 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1240 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1241 |
|
|
else |
1242 |
|
|
ac_save_LIBS="$LIBS" |
1243 |
|
|
LIBS="-lm $LIBS" |
1244 |
|
|
cat > conftest.$ac_ext <<EOF |
1245 |
bertho |
1.9 |
#line 1246 "configure" |
1246 |
bertho |
1.1 |
#include "confdefs.h" |
1247 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1248 |
|
|
/* We use char because int might match the return type of a gcc2 |
1249 |
|
|
builtin and then its argument prototype would still apply. */ |
1250 |
|
|
char sqrt(); |
1251 |
|
|
|
1252 |
|
|
int main() { |
1253 |
|
|
sqrt() |
1254 |
|
|
; return 0; } |
1255 |
|
|
EOF |
1256 |
bertho |
1.9 |
if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1257 |
bertho |
1.1 |
rm -rf conftest* |
1258 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1259 |
|
|
else |
1260 |
|
|
echo "configure: failed program was:" >&5 |
1261 |
|
|
cat conftest.$ac_ext >&5 |
1262 |
|
|
rm -rf conftest* |
1263 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1264 |
|
|
fi |
1265 |
|
|
rm -f conftest* |
1266 |
|
|
LIBS="$ac_save_LIBS" |
1267 |
|
|
|
1268 |
|
|
fi |
1269 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1270 |
|
|
echo "$ac_t""yes" 1>&6 |
1271 |
|
|
|
1272 |
|
|
cat >> confdefs.h <<\EOF |
1273 |
|
|
#define LIBM 1 |
1274 |
|
|
EOF |
1275 |
|
|
|
1276 |
bertho |
1.8 |
MATHLIBS="-lm" |
1277 |
|
|
|
1278 |
bertho |
1.1 |
else |
1279 |
|
|
echo "$ac_t""no" 1>&6 |
1280 |
|
|
fi |
1281 |
|
|
|
1282 |
|
|
|
1283 |
bertho |
1.9 |
echo $ac_n "checking for compress in -lz""... $ac_c" 1>&6 |
1284 |
|
|
echo "configure:1285: checking for compress in -lz" >&5 |
1285 |
|
|
ac_lib_var=`echo z'_'compress | sed 'y%./+-%__p_%'` |
1286 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1287 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1288 |
|
|
else |
1289 |
|
|
ac_save_LIBS="$LIBS" |
1290 |
|
|
LIBS="-lz ${LIBPATH} ${MATHLIBS} $LIBS" |
1291 |
|
|
cat > conftest.$ac_ext <<EOF |
1292 |
|
|
#line 1293 "configure" |
1293 |
|
|
#include "confdefs.h" |
1294 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1295 |
|
|
/* We use char because int might match the return type of a gcc2 |
1296 |
|
|
builtin and then its argument prototype would still apply. */ |
1297 |
|
|
char compress(); |
1298 |
|
|
|
1299 |
|
|
int main() { |
1300 |
|
|
compress() |
1301 |
|
|
; return 0; } |
1302 |
|
|
EOF |
1303 |
|
|
if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1304 |
|
|
rm -rf conftest* |
1305 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1306 |
|
|
else |
1307 |
|
|
echo "configure: failed program was:" >&5 |
1308 |
|
|
cat conftest.$ac_ext >&5 |
1309 |
|
|
rm -rf conftest* |
1310 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1311 |
|
|
fi |
1312 |
|
|
rm -f conftest* |
1313 |
|
|
LIBS="$ac_save_LIBS" |
1314 |
|
|
|
1315 |
|
|
fi |
1316 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1317 |
|
|
echo "$ac_t""yes" 1>&6 |
1318 |
|
|
|
1319 |
|
|
ac_have_libz="yes" |
1320 |
|
|
ZLIB="-lz" |
1321 |
|
|
|
1322 |
|
|
else |
1323 |
|
|
echo "$ac_t""no" 1>&6 |
1324 |
|
|
|
1325 |
|
|
ac_have_libz="no" |
1326 |
|
|
|
1327 |
|
|
fi |
1328 |
|
|
|
1329 |
|
|
|
1330 |
|
|
echo $ac_n "checking for FT_Load_Glyph in -lfreetype""... $ac_c" 1>&6 |
1331 |
|
|
echo "configure:1332: checking for FT_Load_Glyph in -lfreetype" >&5 |
1332 |
|
|
ac_lib_var=`echo freetype'_'FT_Load_Glyph | sed 'y%./+-%__p_%'` |
1333 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1334 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1335 |
|
|
else |
1336 |
|
|
ac_save_LIBS="$LIBS" |
1337 |
|
|
LIBS="-lfreetype ${LIBPATH} ${MATHLIBS} $LIBS" |
1338 |
|
|
cat > conftest.$ac_ext <<EOF |
1339 |
|
|
#line 1340 "configure" |
1340 |
|
|
#include "confdefs.h" |
1341 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1342 |
|
|
/* We use char because int might match the return type of a gcc2 |
1343 |
|
|
builtin and then its argument prototype would still apply. */ |
1344 |
|
|
char FT_Load_Glyph(); |
1345 |
|
|
|
1346 |
|
|
int main() { |
1347 |
|
|
FT_Load_Glyph() |
1348 |
|
|
; return 0; } |
1349 |
|
|
EOF |
1350 |
|
|
if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1351 |
|
|
rm -rf conftest* |
1352 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1353 |
|
|
else |
1354 |
|
|
echo "configure: failed program was:" >&5 |
1355 |
|
|
cat conftest.$ac_ext >&5 |
1356 |
|
|
rm -rf conftest* |
1357 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1358 |
|
|
fi |
1359 |
|
|
rm -f conftest* |
1360 |
|
|
LIBS="$ac_save_LIBS" |
1361 |
|
|
|
1362 |
|
|
fi |
1363 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1364 |
|
|
echo "$ac_t""yes" 1>&6 |
1365 |
|
|
|
1366 |
|
|
ac_have_libfreetype="yes" |
1367 |
|
|
LIBFT="-lfreetype" |
1368 |
|
|
|
1369 |
|
|
else |
1370 |
|
|
echo "$ac_t""no" 1>&6 |
1371 |
|
|
|
1372 |
|
|
ac_have_libfreetype="no" |
1373 |
|
|
|
1374 |
|
|
fi |
1375 |
|
|
|
1376 |
|
|
|
1377 |
|
|
echo $ac_n "checking for TT_Load_Glyph in -lttf""... $ac_c" 1>&6 |
1378 |
|
|
echo "configure:1379: checking for TT_Load_Glyph in -lttf" >&5 |
1379 |
|
|
ac_lib_var=`echo ttf'_'TT_Load_Glyph | sed 'y%./+-%__p_%'` |
1380 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1381 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1382 |
|
|
else |
1383 |
|
|
ac_save_LIBS="$LIBS" |
1384 |
|
|
LIBS="-lttf ${LIBPATH} ${MATHLIBS} $LIBS" |
1385 |
|
|
cat > conftest.$ac_ext <<EOF |
1386 |
|
|
#line 1387 "configure" |
1387 |
|
|
#include "confdefs.h" |
1388 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1389 |
|
|
/* We use char because int might match the return type of a gcc2 |
1390 |
|
|
builtin and then its argument prototype would still apply. */ |
1391 |
|
|
char TT_Load_Glyph(); |
1392 |
|
|
|
1393 |
|
|
int main() { |
1394 |
|
|
TT_Load_Glyph() |
1395 |
|
|
; return 0; } |
1396 |
|
|
EOF |
1397 |
|
|
if { (eval echo configure:1398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1398 |
|
|
rm -rf conftest* |
1399 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1400 |
|
|
else |
1401 |
|
|
echo "configure: failed program was:" >&5 |
1402 |
|
|
cat conftest.$ac_ext >&5 |
1403 |
|
|
rm -rf conftest* |
1404 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1405 |
|
|
fi |
1406 |
|
|
rm -f conftest* |
1407 |
|
|
LIBS="$ac_save_LIBS" |
1408 |
|
|
|
1409 |
|
|
fi |
1410 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1411 |
|
|
echo "$ac_t""yes" 1>&6 |
1412 |
|
|
|
1413 |
|
|
ac_have_libttf="yes" |
1414 |
|
|
LIBTT="-lttf" |
1415 |
|
|
|
1416 |
|
|
else |
1417 |
|
|
echo "$ac_t""no" 1>&6 |
1418 |
|
|
|
1419 |
|
|
ac_have_libttf="no" |
1420 |
|
|
|
1421 |
|
|
fi |
1422 |
|
|
|
1423 |
|
|
|
1424 |
|
|
echo $ac_n "checking for png_create_read_struct in -lpng""... $ac_c" 1>&6 |
1425 |
|
|
echo "configure:1426: checking for png_create_read_struct in -lpng" >&5 |
1426 |
|
|
ac_lib_var=`echo png'_'png_create_read_struct | sed 'y%./+-%__p_%'` |
1427 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1428 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1429 |
|
|
else |
1430 |
|
|
ac_save_LIBS="$LIBS" |
1431 |
|
|
LIBS="-lpng ${LIBPATH} ${ZLIB} ${MATHLIBS} $LIBS" |
1432 |
|
|
cat > conftest.$ac_ext <<EOF |
1433 |
|
|
#line 1434 "configure" |
1434 |
|
|
#include "confdefs.h" |
1435 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1436 |
|
|
/* We use char because int might match the return type of a gcc2 |
1437 |
|
|
builtin and then its argument prototype would still apply. */ |
1438 |
|
|
char png_create_read_struct (); |
1439 |
|
|
|
1440 |
|
|
int main() { |
1441 |
|
|
png_create_read_struct () |
1442 |
|
|
; return 0; } |
1443 |
|
|
EOF |
1444 |
|
|
if { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1445 |
|
|
rm -rf conftest* |
1446 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1447 |
|
|
else |
1448 |
|
|
echo "configure: failed program was:" >&5 |
1449 |
|
|
cat conftest.$ac_ext >&5 |
1450 |
|
|
rm -rf conftest* |
1451 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1452 |
|
|
fi |
1453 |
|
|
rm -f conftest* |
1454 |
|
|
LIBS="$ac_save_LIBS" |
1455 |
|
|
|
1456 |
|
|
fi |
1457 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1458 |
|
|
echo "$ac_t""yes" 1>&6 |
1459 |
|
|
|
1460 |
|
|
ac_have_libpng="yes" |
1461 |
|
|
LIBPNG="-lpng" |
1462 |
|
|
|
1463 |
|
|
else |
1464 |
|
|
echo "$ac_t""no" 1>&6 |
1465 |
|
|
|
1466 |
|
|
ac_have_libpng="no" |
1467 |
|
|
|
1468 |
|
|
fi |
1469 |
|
|
|
1470 |
|
|
|
1471 |
|
|
echo $ac_n "checking for jpeg_CreateCompress in -ljpeg""... $ac_c" 1>&6 |
1472 |
|
|
echo "configure:1473: checking for jpeg_CreateCompress in -ljpeg" >&5 |
1473 |
|
|
ac_lib_var=`echo jpeg'_'jpeg_CreateCompress | sed 'y%./+-%__p_%'` |
1474 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1475 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1476 |
|
|
else |
1477 |
|
|
ac_save_LIBS="$LIBS" |
1478 |
|
|
LIBS="-ljpeg ${LIBPATH} ${MATHLIBS} $LIBS" |
1479 |
|
|
cat > conftest.$ac_ext <<EOF |
1480 |
|
|
#line 1481 "configure" |
1481 |
|
|
#include "confdefs.h" |
1482 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1483 |
|
|
/* We use char because int might match the return type of a gcc2 |
1484 |
|
|
builtin and then its argument prototype would still apply. */ |
1485 |
|
|
char jpeg_CreateCompress(); |
1486 |
|
|
|
1487 |
|
|
int main() { |
1488 |
|
|
jpeg_CreateCompress() |
1489 |
|
|
; return 0; } |
1490 |
|
|
EOF |
1491 |
|
|
if { (eval echo configure:1492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1492 |
|
|
rm -rf conftest* |
1493 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1494 |
|
|
else |
1495 |
|
|
echo "configure: failed program was:" >&5 |
1496 |
|
|
cat conftest.$ac_ext >&5 |
1497 |
|
|
rm -rf conftest* |
1498 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1499 |
|
|
fi |
1500 |
|
|
rm -f conftest* |
1501 |
|
|
LIBS="$ac_save_LIBS" |
1502 |
|
|
|
1503 |
|
|
fi |
1504 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1505 |
|
|
echo "$ac_t""yes" 1>&6 |
1506 |
|
|
|
1507 |
|
|
ac_have_libjpeg="yes" |
1508 |
|
|
LIBJPEG="-ljpeg" |
1509 |
|
|
|
1510 |
|
|
else |
1511 |
|
|
echo "$ac_t""no" 1>&6 |
1512 |
|
|
|
1513 |
|
|
ac_have_libjpeg="no" |
1514 |
|
|
|
1515 |
|
|
fi |
1516 |
|
|
|
1517 |
|
|
|
1518 |
|
|
OLIBS="${LIBS}" |
1519 |
|
|
LIBS="${LIBS} ${MATHLIB}" |
1520 |
|
|
echo $ac_n "checking "whether libpng needs -lz"""... $ac_c" 1>&6 |
1521 |
|
|
echo "configure:1522: checking "whether libpng needs -lz"" >&5 |
1522 |
|
|
if eval "test \"`echo '$''{'ac_cv_png_needs_z'+set}'`\" = set"; then |
1523 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1524 |
|
|
else |
1525 |
|
|
cat > conftest.$ac_ext <<EOF |
1526 |
|
|
#line 1527 "configure" |
1527 |
|
|
#include "confdefs.h" |
1528 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1529 |
|
|
/* We use char because int might match the return type of a gcc2 |
1530 |
|
|
builtin and then its argument prototype would still apply. */ |
1531 |
|
|
char png_create_read_struct(); |
1532 |
|
|
|
1533 |
|
|
int main() { |
1534 |
|
|
png_create_read_struct() |
1535 |
|
|
; return 0; } |
1536 |
|
|
EOF |
1537 |
|
|
if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1538 |
|
|
rm -rf conftest* |
1539 |
|
|
ac_cv_png_needs_z="no" |
1540 |
|
|
|
1541 |
|
|
else |
1542 |
|
|
echo "configure: failed program was:" >&5 |
1543 |
|
|
cat conftest.$ac_ext >&5 |
1544 |
|
|
rm -rf conftest* |
1545 |
|
|
ac_cv_png_needs_z="yes" |
1546 |
|
|
|
1547 |
|
|
fi |
1548 |
|
|
rm -f conftest* |
1549 |
|
|
fi |
1550 |
|
|
|
1551 |
|
|
echo "$ac_t""$ac_cv_png_needs_z" 1>&6 |
1552 |
|
|
LIBS="${OLIBS}" |
1553 |
|
|
|
1554 |
|
|
|
1555 |
|
|
OLIBS="${LIBS}" |
1556 |
|
|
LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBJPEG} ${MATHLIB}" |
1557 |
|
|
echo $ac_n "checking "whether libgd needs -lpng"""... $ac_c" 1>&6 |
1558 |
|
|
echo "configure:1559: checking "whether libgd needs -lpng"" >&5 |
1559 |
|
|
if eval "test \"`echo '$''{'ac_cv_gd_needs_png'+set}'`\" = set"; then |
1560 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1561 |
|
|
else |
1562 |
|
|
cat > conftest.$ac_ext <<EOF |
1563 |
|
|
#line 1564 "configure" |
1564 |
|
|
#include "confdefs.h" |
1565 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1566 |
|
|
/* We use char because int might match the return type of a gcc2 |
1567 |
|
|
builtin and then its argument prototype would still apply. */ |
1568 |
bertho |
1.10 |
char gdImagePng(); |
1569 |
bertho |
1.9 |
|
1570 |
|
|
int main() { |
1571 |
bertho |
1.10 |
gdImagePng() |
1572 |
bertho |
1.9 |
; return 0; } |
1573 |
|
|
EOF |
1574 |
|
|
if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1575 |
|
|
rm -rf conftest* |
1576 |
|
|
ac_cv_gd_needs_png="no" |
1577 |
|
|
|
1578 |
|
|
else |
1579 |
|
|
echo "configure: failed program was:" >&5 |
1580 |
|
|
cat conftest.$ac_ext >&5 |
1581 |
|
|
rm -rf conftest* |
1582 |
|
|
ac_cv_gd_needs_png="yes" |
1583 |
|
|
|
1584 |
|
|
fi |
1585 |
|
|
rm -f conftest* |
1586 |
|
|
fi |
1587 |
|
|
|
1588 |
|
|
echo "$ac_t""$ac_cv_gd_needs_png" 1>&6 |
1589 |
|
|
LIBS="${OLIBS}" |
1590 |
|
|
|
1591 |
|
|
OLIBS="${LIBS}" |
1592 |
|
|
LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBPNG} ${LIBZ} ${MATHLIB}" |
1593 |
|
|
echo $ac_n "checking "whether libgd needs -ljpeg"""... $ac_c" 1>&6 |
1594 |
|
|
echo "configure:1595: checking "whether libgd needs -ljpeg"" >&5 |
1595 |
|
|
if eval "test \"`echo '$''{'ac_cv_gd_needs_jpeg'+set}'`\" = set"; then |
1596 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1597 |
|
|
else |
1598 |
|
|
cat > conftest.$ac_ext <<EOF |
1599 |
|
|
#line 1600 "configure" |
1600 |
|
|
#include "confdefs.h" |
1601 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1602 |
|
|
/* We use char because int might match the return type of a gcc2 |
1603 |
|
|
builtin and then its argument prototype would still apply. */ |
1604 |
bertho |
1.10 |
char gdImageJpeg(); |
1605 |
bertho |
1.9 |
|
1606 |
|
|
int main() { |
1607 |
bertho |
1.10 |
gdImageJpeg() |
1608 |
bertho |
1.9 |
; return 0; } |
1609 |
|
|
EOF |
1610 |
|
|
if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1611 |
|
|
rm -rf conftest* |
1612 |
|
|
ac_cv_gd_needs_jpeg="no" |
1613 |
|
|
|
1614 |
|
|
else |
1615 |
|
|
echo "configure: failed program was:" >&5 |
1616 |
|
|
cat conftest.$ac_ext >&5 |
1617 |
|
|
rm -rf conftest* |
1618 |
|
|
ac_cv_gd_needs_jpeg="yes" |
1619 |
|
|
|
1620 |
|
|
fi |
1621 |
|
|
rm -f conftest* |
1622 |
|
|
fi |
1623 |
|
|
|
1624 |
|
|
echo "$ac_t""$ac_cv_gd_needs_jpeg" 1>&6 |
1625 |
|
|
LIBS="${OLIBS}" |
1626 |
|
|
|
1627 |
|
|
OLIBS="${LIBS}" |
1628 |
|
|
LIBS="${LIBS} ${LIBFT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}" |
1629 |
|
|
echo $ac_n "checking "whether libgd needs -lttf"""... $ac_c" 1>&6 |
1630 |
|
|
echo "configure:1631: checking "whether libgd needs -lttf"" >&5 |
1631 |
|
|
if eval "test \"`echo '$''{'ac_cv_gd_needs_ttf'+set}'`\" = set"; then |
1632 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1633 |
|
|
else |
1634 |
|
|
cat > conftest.$ac_ext <<EOF |
1635 |
|
|
#line 1636 "configure" |
1636 |
|
|
#include "confdefs.h" |
1637 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1638 |
|
|
/* We use char because int might match the return type of a gcc2 |
1639 |
|
|
builtin and then its argument prototype would still apply. */ |
1640 |
bertho |
1.10 |
char gdImageStringTTF(); |
1641 |
bertho |
1.9 |
|
1642 |
|
|
int main() { |
1643 |
bertho |
1.10 |
gdImageStringTTF() |
1644 |
bertho |
1.9 |
; return 0; } |
1645 |
|
|
EOF |
1646 |
|
|
if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1647 |
|
|
rm -rf conftest* |
1648 |
|
|
ac_cv_gd_needs_ttf="no" |
1649 |
|
|
|
1650 |
|
|
else |
1651 |
|
|
echo "configure: failed program was:" >&5 |
1652 |
|
|
cat conftest.$ac_ext >&5 |
1653 |
|
|
rm -rf conftest* |
1654 |
|
|
ac_cv_gd_needs_ttf="yes" |
1655 |
|
|
|
1656 |
|
|
fi |
1657 |
|
|
rm -f conftest* |
1658 |
|
|
fi |
1659 |
|
|
|
1660 |
|
|
echo "$ac_t""$ac_cv_gd_needs_ttf" 1>&6 |
1661 |
|
|
LIBS="${OLIBS}" |
1662 |
|
|
|
1663 |
|
|
OLIBS="${LIBS}" |
1664 |
|
|
LIBS="${LIBS} ${LIBTT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}" |
1665 |
|
|
echo $ac_n "checking "whether libgd needs -lfreetype"""... $ac_c" 1>&6 |
1666 |
|
|
echo "configure:1667: checking "whether libgd needs -lfreetype"" >&5 |
1667 |
|
|
if eval "test \"`echo '$''{'ac_cv_gd_needs_freetype'+set}'`\" = set"; then |
1668 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1669 |
|
|
else |
1670 |
|
|
cat > conftest.$ac_ext <<EOF |
1671 |
|
|
#line 1672 "configure" |
1672 |
|
|
#include "confdefs.h" |
1673 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1674 |
|
|
/* We use char because int might match the return type of a gcc2 |
1675 |
|
|
builtin and then its argument prototype would still apply. */ |
1676 |
bertho |
1.10 |
char gdImageStringFT(); |
1677 |
bertho |
1.9 |
|
1678 |
|
|
int main() { |
1679 |
bertho |
1.10 |
gdImageStringFT() |
1680 |
bertho |
1.9 |
; return 0; } |
1681 |
|
|
EOF |
1682 |
|
|
if { (eval echo configure:1683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1683 |
|
|
rm -rf conftest* |
1684 |
|
|
ac_cv_gd_needs_freetype="no" |
1685 |
|
|
|
1686 |
|
|
else |
1687 |
|
|
echo "configure: failed program was:" >&5 |
1688 |
|
|
cat conftest.$ac_ext >&5 |
1689 |
|
|
rm -rf conftest* |
1690 |
|
|
ac_cv_gd_needs_freetype="yes" |
1691 |
|
|
|
1692 |
|
|
fi |
1693 |
|
|
rm -f conftest* |
1694 |
|
|
fi |
1695 |
|
|
|
1696 |
|
|
echo "$ac_t""$ac_cv_gd_needs_freetype" 1>&6 |
1697 |
|
|
LIBS="${OLIBS}" |
1698 |
|
|
|
1699 |
|
|
if test "$ac_cv_gd_needs_freetype" = "yes" |
1700 |
|
|
then |
1701 |
bertho |
1.10 |
if test "$ac_have_libfreetype" != "yes" -a "$ac_have_libttf" != "yes" |
1702 |
bertho |
1.9 |
then |
1703 |
|
|
echo "** WARNING: Required library libfreetype not found" |
1704 |
|
|
fi |
1705 |
|
|
LIBS="${LIBS} ${LIBFT}" |
1706 |
|
|
fi |
1707 |
|
|
|
1708 |
|
|
if test "$ac_cv_gd_needs_ttf" = "yes" |
1709 |
|
|
then |
1710 |
bertho |
1.10 |
if test "$ac_have_libttf" != "yes" -a "$ac_have_libfreetype" != "yes" |
1711 |
bertho |
1.9 |
then |
1712 |
|
|
echo "** WARNING: Required library libttf not found" |
1713 |
|
|
fi |
1714 |
|
|
LIBS="${LIBS} ${LIBTT}" |
1715 |
|
|
fi |
1716 |
|
|
|
1717 |
|
|
if test "$ac_cv_gd_needs_jpeg" = "yes" |
1718 |
|
|
then |
1719 |
|
|
if test "$ac_have_libjpeg" != "yes" |
1720 |
|
|
then |
1721 |
|
|
echo "** WARNING: Required library libjpeg not found" |
1722 |
|
|
fi |
1723 |
|
|
LIBS="${LIBS} ${LIBJPEG}" |
1724 |
|
|
fi |
1725 |
|
|
|
1726 |
|
|
if test "$ac_cv_gd_needs_png" = "yes" |
1727 |
|
|
then |
1728 |
|
|
if test "$ac_have_libpng" != "yes" |
1729 |
|
|
then |
1730 |
|
|
echo "** WARNING: Required library libpng not found" |
1731 |
|
|
fi |
1732 |
|
|
LIBS="${LIBS} ${LIBPNG}" |
1733 |
|
|
if test "$ac_cv_png_needs_z" = "yes" |
1734 |
|
|
then |
1735 |
|
|
if test "$ac_have_libz" != "yes" |
1736 |
|
|
then |
1737 |
|
|
echo "** WARNING: Required library libz not found" |
1738 |
|
|
fi |
1739 |
|
|
LIBS="${LIBS} ${LIBZ}" |
1740 |
|
|
fi |
1741 |
|
|
fi |
1742 |
|
|
|
1743 |
|
|
LIBS="${LIBS} ${MATHLIBS}" |
1744 |
|
|
|
1745 |
bertho |
1.1 |
echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6 |
1746 |
bertho |
1.9 |
echo "configure:1747: checking for gdImageGif in -lgd" >&5 |
1747 |
bertho |
1.1 |
ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'` |
1748 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1749 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1750 |
|
|
else |
1751 |
|
|
ac_save_LIBS="$LIBS" |
1752 |
bertho |
1.9 |
LIBS="-lgd $LIBS" |
1753 |
bertho |
1.1 |
cat > conftest.$ac_ext <<EOF |
1754 |
bertho |
1.9 |
#line 1755 "configure" |
1755 |
bertho |
1.1 |
#include "confdefs.h" |
1756 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1757 |
|
|
/* We use char because int might match the return type of a gcc2 |
1758 |
|
|
builtin and then its argument prototype would still apply. */ |
1759 |
|
|
char gdImageGif(); |
1760 |
|
|
|
1761 |
|
|
int main() { |
1762 |
|
|
gdImageGif() |
1763 |
|
|
; return 0; } |
1764 |
|
|
EOF |
1765 |
bertho |
1.9 |
if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1766 |
bertho |
1.1 |
rm -rf conftest* |
1767 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1768 |
|
|
else |
1769 |
|
|
echo "configure: failed program was:" >&5 |
1770 |
|
|
cat conftest.$ac_ext >&5 |
1771 |
|
|
rm -rf conftest* |
1772 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1773 |
|
|
fi |
1774 |
|
|
rm -f conftest* |
1775 |
|
|
LIBS="$ac_save_LIBS" |
1776 |
|
|
|
1777 |
|
|
fi |
1778 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1779 |
|
|
echo "$ac_t""yes" 1>&6 |
1780 |
|
|
|
1781 |
bertho |
1.2 |
cat >> confdefs.h <<\EOF |
1782 |
|
|
#define HAVE_IMAGE_GIF 1 |
1783 |
|
|
EOF |
1784 |
|
|
|
1785 |
bertho |
1.8 |
have_gifs="yes" |
1786 |
bertho |
1.9 |
|
1787 |
bertho |
1.1 |
else |
1788 |
|
|
echo "$ac_t""no" 1>&6 |
1789 |
bertho |
1.8 |
have_gifs="no" |
1790 |
bertho |
1.9 |
|
1791 |
bertho |
1.1 |
fi |
1792 |
|
|
|
1793 |
bertho |
1.8 |
|
1794 |
bertho |
1.9 |
if test "${have_gifs}" = "yes" |
1795 |
bertho |
1.8 |
then |
1796 |
bertho |
1.9 |
echo "** You have a very old GD library. Please consider" |
1797 |
|
|
echo " upgrading to a more recent version (1.8.4 or newer)." |
1798 |
|
|
echo " --Note that f.x. ViewCVS needs CvsGraph to generate PNG" |
1799 |
|
|
echo " images and ancient GD libraries might contain many bugs." |
1800 |
|
|
echo " However, if you need GIFs, then you must stick to this" |
1801 |
|
|
echo " old version." |
1802 |
bertho |
1.8 |
fi |
1803 |
|
|
|
1804 |
bertho |
1.1 |
echo $ac_n "checking for gdImagePng in -lgd""... $ac_c" 1>&6 |
1805 |
bertho |
1.9 |
echo "configure:1806: checking for gdImagePng in -lgd" >&5 |
1806 |
bertho |
1.1 |
ac_lib_var=`echo gd'_'gdImagePng | sed 'y%./+-%__p_%'` |
1807 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1808 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1809 |
|
|
else |
1810 |
|
|
ac_save_LIBS="$LIBS" |
1811 |
bertho |
1.2 |
LIBS="-lgd $LIBS" |
1812 |
bertho |
1.1 |
cat > conftest.$ac_ext <<EOF |
1813 |
bertho |
1.9 |
#line 1814 "configure" |
1814 |
bertho |
1.1 |
#include "confdefs.h" |
1815 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1816 |
|
|
/* We use char because int might match the return type of a gcc2 |
1817 |
|
|
builtin and then its argument prototype would still apply. */ |
1818 |
|
|
char gdImagePng(); |
1819 |
|
|
|
1820 |
|
|
int main() { |
1821 |
|
|
gdImagePng() |
1822 |
|
|
; return 0; } |
1823 |
|
|
EOF |
1824 |
bertho |
1.9 |
if { (eval echo configure:1825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1825 |
bertho |
1.2 |
rm -rf conftest* |
1826 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1827 |
|
|
else |
1828 |
|
|
echo "configure: failed program was:" >&5 |
1829 |
|
|
cat conftest.$ac_ext >&5 |
1830 |
|
|
rm -rf conftest* |
1831 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1832 |
|
|
fi |
1833 |
|
|
rm -f conftest* |
1834 |
|
|
LIBS="$ac_save_LIBS" |
1835 |
|
|
|
1836 |
|
|
fi |
1837 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1838 |
|
|
echo "$ac_t""yes" 1>&6 |
1839 |
|
|
|
1840 |
|
|
cat >> confdefs.h <<\EOF |
1841 |
|
|
#define HAVE_IMAGE_PNG 1 |
1842 |
|
|
EOF |
1843 |
|
|
|
1844 |
|
|
|
1845 |
|
|
else |
1846 |
|
|
echo "$ac_t""no" 1>&6 |
1847 |
|
|
fi |
1848 |
|
|
|
1849 |
|
|
echo $ac_n "checking for gdImageJpeg in -lgd""... $ac_c" 1>&6 |
1850 |
bertho |
1.9 |
echo "configure:1851: checking for gdImageJpeg in -lgd" >&5 |
1851 |
bertho |
1.2 |
ac_lib_var=`echo gd'_'gdImageJpeg | sed 'y%./+-%__p_%'` |
1852 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1853 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1854 |
|
|
else |
1855 |
|
|
ac_save_LIBS="$LIBS" |
1856 |
|
|
LIBS="-lgd $LIBS" |
1857 |
|
|
cat > conftest.$ac_ext <<EOF |
1858 |
bertho |
1.9 |
#line 1859 "configure" |
1859 |
bertho |
1.2 |
#include "confdefs.h" |
1860 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1861 |
|
|
/* We use char because int might match the return type of a gcc2 |
1862 |
|
|
builtin and then its argument prototype would still apply. */ |
1863 |
|
|
char gdImageJpeg(); |
1864 |
|
|
|
1865 |
|
|
int main() { |
1866 |
|
|
gdImageJpeg() |
1867 |
|
|
; return 0; } |
1868 |
|
|
EOF |
1869 |
bertho |
1.9 |
if { (eval echo configure:1870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1870 |
bertho |
1.1 |
rm -rf conftest* |
1871 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1872 |
|
|
else |
1873 |
|
|
echo "configure: failed program was:" >&5 |
1874 |
|
|
cat conftest.$ac_ext >&5 |
1875 |
|
|
rm -rf conftest* |
1876 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1877 |
|
|
fi |
1878 |
|
|
rm -f conftest* |
1879 |
|
|
LIBS="$ac_save_LIBS" |
1880 |
|
|
|
1881 |
|
|
fi |
1882 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1883 |
|
|
echo "$ac_t""yes" 1>&6 |
1884 |
|
|
|
1885 |
bertho |
1.2 |
cat >> confdefs.h <<\EOF |
1886 |
|
|
#define HAVE_IMAGE_JPEG 1 |
1887 |
|
|
EOF |
1888 |
|
|
|
1889 |
|
|
|
1890 |
bertho |
1.1 |
else |
1891 |
|
|
echo "$ac_t""no" 1>&6 |
1892 |
|
|
fi |
1893 |
|
|
|
1894 |
bertho |
1.7 |
echo $ac_n "checking for gdImageStringTTF in -lgd""... $ac_c" 1>&6 |
1895 |
bertho |
1.9 |
echo "configure:1896: checking for gdImageStringTTF in -lgd" >&5 |
1896 |
bertho |
1.7 |
ac_lib_var=`echo gd'_'gdImageStringTTF | sed 'y%./+-%__p_%'` |
1897 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1898 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1899 |
|
|
else |
1900 |
|
|
ac_save_LIBS="$LIBS" |
1901 |
|
|
LIBS="-lgd $LIBS" |
1902 |
|
|
cat > conftest.$ac_ext <<EOF |
1903 |
bertho |
1.9 |
#line 1904 "configure" |
1904 |
bertho |
1.7 |
#include "confdefs.h" |
1905 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1906 |
|
|
/* We use char because int might match the return type of a gcc2 |
1907 |
|
|
builtin and then its argument prototype would still apply. */ |
1908 |
|
|
char gdImageStringTTF(); |
1909 |
|
|
|
1910 |
|
|
int main() { |
1911 |
|
|
gdImageStringTTF() |
1912 |
|
|
; return 0; } |
1913 |
|
|
EOF |
1914 |
bertho |
1.9 |
if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1915 |
bertho |
1.7 |
rm -rf conftest* |
1916 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1917 |
|
|
else |
1918 |
|
|
echo "configure: failed program was:" >&5 |
1919 |
|
|
cat conftest.$ac_ext >&5 |
1920 |
|
|
rm -rf conftest* |
1921 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1922 |
|
|
fi |
1923 |
|
|
rm -f conftest* |
1924 |
|
|
LIBS="$ac_save_LIBS" |
1925 |
|
|
|
1926 |
|
|
fi |
1927 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1928 |
|
|
echo "$ac_t""yes" 1>&6 |
1929 |
|
|
|
1930 |
bertho |
1.10 |
if test "$ac_have_libttf" = "yes" |
1931 |
|
|
then |
1932 |
|
|
cat >> confdefs.h <<\EOF |
1933 |
bertho |
1.7 |
#define HAVE_GDIMAGESTRINGTTF 1 |
1934 |
|
|
EOF |
1935 |
|
|
|
1936 |
bertho |
1.10 |
fi |
1937 |
bertho |
1.7 |
|
1938 |
|
|
else |
1939 |
|
|
echo "$ac_t""no" 1>&6 |
1940 |
|
|
fi |
1941 |
|
|
|
1942 |
|
|
echo $ac_n "checking for gdImageStringFT in -lgd""... $ac_c" 1>&6 |
1943 |
bertho |
1.10 |
echo "configure:1944: checking for gdImageStringFT in -lgd" >&5 |
1944 |
bertho |
1.7 |
ac_lib_var=`echo gd'_'gdImageStringFT | sed 'y%./+-%__p_%'` |
1945 |
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1946 |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
1947 |
|
|
else |
1948 |
|
|
ac_save_LIBS="$LIBS" |
1949 |
|
|
LIBS="-lgd $LIBS" |
1950 |
|
|
cat > conftest.$ac_ext <<EOF |
1951 |
bertho |
1.10 |
#line 1952 "configure" |
1952 |
bertho |
1.7 |
#include "confdefs.h" |
1953 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
1954 |
|
|
/* We use char because int might match the return type of a gcc2 |
1955 |
|
|
builtin and then its argument prototype would still apply. */ |
1956 |
|
|
char gdImageStringFT(); |
1957 |
|
|
|
1958 |
|
|
int main() { |
1959 |
|
|
gdImageStringFT() |
1960 |
|
|
; return 0; } |
1961 |
|
|
EOF |
1962 |
bertho |
1.10 |
if { (eval echo configure:1963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1963 |
bertho |
1.7 |
rm -rf conftest* |
1964 |
|
|
eval "ac_cv_lib_$ac_lib_var=yes" |
1965 |
|
|
else |
1966 |
|
|
echo "configure: failed program was:" >&5 |
1967 |
|
|
cat conftest.$ac_ext >&5 |
1968 |
|
|
rm -rf conftest* |
1969 |
|
|
eval "ac_cv_lib_$ac_lib_var=no" |
1970 |
|
|
fi |
1971 |
|
|
rm -f conftest* |
1972 |
|
|
LIBS="$ac_save_LIBS" |
1973 |
|
|
|
1974 |
|
|
fi |
1975 |
|
|
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1976 |
|
|
echo "$ac_t""yes" 1>&6 |
1977 |
|
|
|
1978 |
bertho |
1.10 |
if test "$ac_have_libfreetype" = "yes" |
1979 |
|
|
then |
1980 |
|
|
cat >> confdefs.h <<\EOF |
1981 |
bertho |
1.7 |
#define HAVE_GDIMAGESTRINGFT 1 |
1982 |
|
|
EOF |
1983 |
|
|
|
1984 |
bertho |
1.10 |
fi |
1985 |
bertho |
1.7 |
|
1986 |
|
|
else |
1987 |
|
|
echo "$ac_t""no" 1>&6 |
1988 |
|
|
fi |
1989 |
|
|
|
1990 |
bertho |
1.1 |
|
1991 |
|
|
|
1992 |
|
|
|
1993 |
bertho |
1.3 |
|
1994 |
bertho |
1.1 |
trap '' 1 2 15 |
1995 |
|
|
cat > confcache <<\EOF |
1996 |
|
|
# This file is a shell script that caches the results of configure |
1997 |
|
|
# tests run on this system so they can be shared between configure |
1998 |
|
|
# scripts and configure runs. It is not useful on other systems. |
1999 |
|
|
# If it contains results you don't want to keep, you may remove or edit it. |
2000 |
|
|
# |
2001 |
|
|
# By default, configure uses ./config.cache as the cache file, |
2002 |
|
|
# creating it if it does not exist already. You can give configure |
2003 |
|
|
# the --cache-file=FILE option to use a different cache file; that is |
2004 |
|
|
# what configure does when it calls configure scripts in |
2005 |
|
|
# subdirectories, so they share the cache. |
2006 |
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
2007 |
|
|
# config.status only pays attention to the cache file if you give it the |
2008 |
|
|
# --recheck option to rerun configure. |
2009 |
|
|
# |
2010 |
|
|
EOF |
2011 |
|
|
# The following way of writing the cache mishandles newlines in values, |
2012 |
|
|
# but we know of no workaround that is simple, portable, and efficient. |
2013 |
|
|
# So, don't put newlines in cache variables' values. |
2014 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly, |
2015 |
|
|
# and sets the high bit in the cache file unless we assign to the vars. |
2016 |
|
|
(set) 2>&1 | |
2017 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
2018 |
|
|
*ac_space=\ *) |
2019 |
|
|
# `set' does not quote correctly, so add quotes (double-quote substitution |
2020 |
|
|
# turns \\\\ into \\, and sed turns \\ into \). |
2021 |
|
|
sed -n \ |
2022 |
|
|
-e "s/'/'\\\\''/g" \ |
2023 |
|
|
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
2024 |
|
|
;; |
2025 |
|
|
*) |
2026 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes. |
2027 |
|
|
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
2028 |
|
|
;; |
2029 |
|
|
esac >> confcache |
2030 |
|
|
if cmp -s $cache_file confcache; then |
2031 |
|
|
: |
2032 |
|
|
else |
2033 |
|
|
if test -w $cache_file; then |
2034 |
|
|
echo "updating cache $cache_file" |
2035 |
|
|
cat confcache > $cache_file |
2036 |
|
|
else |
2037 |
|
|
echo "not updating unwritable cache $cache_file" |
2038 |
|
|
fi |
2039 |
|
|
fi |
2040 |
|
|
rm -f confcache |
2041 |
|
|
|
2042 |
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
2043 |
|
|
|
2044 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
2045 |
|
|
# Let make expand exec_prefix. |
2046 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
2047 |
|
|
|
2048 |
|
|
# Any assignment to VPATH causes Sun make to only execute |
2049 |
|
|
# the first set of double-colon rules, so remove it if not needed. |
2050 |
|
|
# If there is a colon in the path, we need to keep it. |
2051 |
|
|
if test "x$srcdir" = x.; then |
2052 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
2053 |
|
|
fi |
2054 |
|
|
|
2055 |
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
2056 |
|
|
|
2057 |
bertho |
1.2 |
DEFS=-DHAVE_CONFIG_H |
2058 |
bertho |
1.1 |
|
2059 |
|
|
# Without the "./", some shells look in PATH for config.status. |
2060 |
|
|
: ${CONFIG_STATUS=./config.status} |
2061 |
|
|
|
2062 |
|
|
echo creating $CONFIG_STATUS |
2063 |
|
|
rm -f $CONFIG_STATUS |
2064 |
|
|
cat > $CONFIG_STATUS <<EOF |
2065 |
|
|
#! /bin/sh |
2066 |
|
|
# Generated automatically by configure. |
2067 |
|
|
# Run this file to recreate the current configuration. |
2068 |
|
|
# This directory was configured as follows, |
2069 |
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
2070 |
|
|
# |
2071 |
|
|
# $0 $ac_configure_args |
2072 |
|
|
# |
2073 |
|
|
# Compiler output produced by configure, useful for debugging |
2074 |
|
|
# configure, is in ./config.log if it exists. |
2075 |
|
|
|
2076 |
|
|
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
2077 |
|
|
for ac_option |
2078 |
|
|
do |
2079 |
|
|
case "\$ac_option" in |
2080 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
2081 |
|
|
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
2082 |
|
|
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
2083 |
|
|
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
2084 |
|
|
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
2085 |
|
|
exit 0 ;; |
2086 |
|
|
-help | --help | --hel | --he | --h) |
2087 |
|
|
echo "\$ac_cs_usage"; exit 0 ;; |
2088 |
|
|
*) echo "\$ac_cs_usage"; exit 1 ;; |
2089 |
|
|
esac |
2090 |
|
|
done |
2091 |
|
|
|
2092 |
|
|
ac_given_srcdir=$srcdir |
2093 |
|
|
|
2094 |
bertho |
1.2 |
trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
2095 |
bertho |
1.1 |
EOF |
2096 |
|
|
cat >> $CONFIG_STATUS <<EOF |
2097 |
|
|
|
2098 |
|
|
# Protect against being on the right side of a sed subst in config.status. |
2099 |
|
|
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
2100 |
|
|
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
2101 |
|
|
$ac_vpsub |
2102 |
|
|
$extrasub |
2103 |
|
|
s%@SHELL@%$SHELL%g |
2104 |
|
|
s%@CFLAGS@%$CFLAGS%g |
2105 |
|
|
s%@CPPFLAGS@%$CPPFLAGS%g |
2106 |
|
|
s%@CXXFLAGS@%$CXXFLAGS%g |
2107 |
|
|
s%@FFLAGS@%$FFLAGS%g |
2108 |
|
|
s%@DEFS@%$DEFS%g |
2109 |
|
|
s%@LDFLAGS@%$LDFLAGS%g |
2110 |
|
|
s%@LIBS@%$LIBS%g |
2111 |
|
|
s%@exec_prefix@%$exec_prefix%g |
2112 |
|
|
s%@prefix@%$prefix%g |
2113 |
|
|
s%@program_transform_name@%$program_transform_name%g |
2114 |
|
|
s%@bindir@%$bindir%g |
2115 |
|
|
s%@sbindir@%$sbindir%g |
2116 |
|
|
s%@libexecdir@%$libexecdir%g |
2117 |
|
|
s%@datadir@%$datadir%g |
2118 |
|
|
s%@sysconfdir@%$sysconfdir%g |
2119 |
|
|
s%@sharedstatedir@%$sharedstatedir%g |
2120 |
|
|
s%@localstatedir@%$localstatedir%g |
2121 |
|
|
s%@libdir@%$libdir%g |
2122 |
|
|
s%@includedir@%$includedir%g |
2123 |
|
|
s%@oldincludedir@%$oldincludedir%g |
2124 |
|
|
s%@infodir@%$infodir%g |
2125 |
|
|
s%@mandir@%$mandir%g |
2126 |
|
|
s%@CC@%$CC%g |
2127 |
|
|
s%@LEX@%$LEX%g |
2128 |
|
|
s%@LEXLIB@%$LEXLIB%g |
2129 |
|
|
s%@YACC@%$YACC%g |
2130 |
|
|
s%@CPP@%$CPP%g |
2131 |
bertho |
1.3 |
s%@LEXFLAGS@%$LEXFLAGS%g |
2132 |
bertho |
1.1 |
|
2133 |
|
|
CEOF |
2134 |
|
|
EOF |
2135 |
|
|
|
2136 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
2137 |
|
|
|
2138 |
|
|
# Split the substitutions into bite-sized pieces for seds with |
2139 |
|
|
# small command number limits, like on Digital OSF/1 and HP-UX. |
2140 |
|
|
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
2141 |
|
|
ac_file=1 # Number of current file. |
2142 |
|
|
ac_beg=1 # First line for current file. |
2143 |
|
|
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
2144 |
|
|
ac_more_lines=: |
2145 |
|
|
ac_sed_cmds="" |
2146 |
|
|
while $ac_more_lines; do |
2147 |
|
|
if test $ac_beg -gt 1; then |
2148 |
|
|
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
2149 |
|
|
else |
2150 |
|
|
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
2151 |
|
|
fi |
2152 |
|
|
if test ! -s conftest.s$ac_file; then |
2153 |
|
|
ac_more_lines=false |
2154 |
|
|
rm -f conftest.s$ac_file |
2155 |
|
|
else |
2156 |
|
|
if test -z "$ac_sed_cmds"; then |
2157 |
|
|
ac_sed_cmds="sed -f conftest.s$ac_file" |
2158 |
|
|
else |
2159 |
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
2160 |
|
|
fi |
2161 |
|
|
ac_file=`expr $ac_file + 1` |
2162 |
|
|
ac_beg=$ac_end |
2163 |
|
|
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
2164 |
|
|
fi |
2165 |
|
|
done |
2166 |
|
|
if test -z "$ac_sed_cmds"; then |
2167 |
|
|
ac_sed_cmds=cat |
2168 |
|
|
fi |
2169 |
|
|
EOF |
2170 |
|
|
|
2171 |
|
|
cat >> $CONFIG_STATUS <<EOF |
2172 |
|
|
|
2173 |
|
|
CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
2174 |
|
|
EOF |
2175 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
2176 |
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
2177 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2178 |
|
|
case "$ac_file" in |
2179 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
2180 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
2181 |
|
|
*) ac_file_in="${ac_file}.in" ;; |
2182 |
|
|
esac |
2183 |
|
|
|
2184 |
|
|
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
2185 |
|
|
|
2186 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname. |
2187 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
2188 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
2189 |
|
|
# The file is in a subdirectory. |
2190 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir" |
2191 |
|
|
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
2192 |
|
|
# A "../" for each directory in $ac_dir_suffix. |
2193 |
|
|
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
2194 |
|
|
else |
2195 |
|
|
ac_dir_suffix= ac_dots= |
2196 |
|
|
fi |
2197 |
|
|
|
2198 |
|
|
case "$ac_given_srcdir" in |
2199 |
|
|
.) srcdir=. |
2200 |
|
|
if test -z "$ac_dots"; then top_srcdir=. |
2201 |
|
|
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
2202 |
|
|
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
2203 |
|
|
*) # Relative path. |
2204 |
|
|
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
2205 |
|
|
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
2206 |
|
|
esac |
2207 |
|
|
|
2208 |
|
|
|
2209 |
|
|
echo creating "$ac_file" |
2210 |
|
|
rm -f "$ac_file" |
2211 |
|
|
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
2212 |
|
|
case "$ac_file" in |
2213 |
|
|
*Makefile*) ac_comsub="1i\\ |
2214 |
|
|
# $configure_input" ;; |
2215 |
|
|
*) ac_comsub= ;; |
2216 |
|
|
esac |
2217 |
|
|
|
2218 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
2219 |
|
|
sed -e "$ac_comsub |
2220 |
|
|
s%@configure_input@%$configure_input%g |
2221 |
|
|
s%@srcdir@%$srcdir%g |
2222 |
|
|
s%@top_srcdir@%$top_srcdir%g |
2223 |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
2224 |
|
|
fi; done |
2225 |
|
|
rm -f conftest.s* |
2226 |
bertho |
1.2 |
|
2227 |
|
|
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
2228 |
|
|
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
2229 |
|
|
# |
2230 |
|
|
# ac_d sets the value in "#define NAME VALUE" lines. |
2231 |
|
|
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
2232 |
|
|
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
2233 |
|
|
ac_dC='\3' |
2234 |
|
|
ac_dD='%g' |
2235 |
|
|
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
2236 |
|
|
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
2237 |
|
|
ac_uB='\([ ]\)%\1#\2define\3' |
2238 |
|
|
ac_uC=' ' |
2239 |
|
|
ac_uD='\4%g' |
2240 |
|
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
2241 |
|
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
2242 |
|
|
ac_eB='$%\1#\2define\3' |
2243 |
|
|
ac_eC=' ' |
2244 |
|
|
ac_eD='%g' |
2245 |
|
|
|
2246 |
|
|
if test "${CONFIG_HEADERS+set}" != set; then |
2247 |
|
|
EOF |
2248 |
|
|
cat >> $CONFIG_STATUS <<EOF |
2249 |
|
|
CONFIG_HEADERS="config.h" |
2250 |
|
|
EOF |
2251 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
2252 |
|
|
fi |
2253 |
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
2254 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2255 |
|
|
case "$ac_file" in |
2256 |
|
|
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
2257 |
|
|
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
2258 |
|
|
*) ac_file_in="${ac_file}.in" ;; |
2259 |
|
|
esac |
2260 |
|
|
|
2261 |
|
|
echo creating $ac_file |
2262 |
|
|
|
2263 |
|
|
rm -f conftest.frag conftest.in conftest.out |
2264 |
|
|
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
2265 |
|
|
cat $ac_file_inputs > conftest.in |
2266 |
|
|
|
2267 |
|
|
EOF |
2268 |
|
|
|
2269 |
|
|
# Transform confdefs.h into a sed script conftest.vals that substitutes |
2270 |
|
|
# the proper values into config.h.in to produce config.h. And first: |
2271 |
|
|
# Protect against being on the right side of a sed subst in config.status. |
2272 |
|
|
# Protect against being in an unquoted here document in config.status. |
2273 |
|
|
rm -f conftest.vals |
2274 |
|
|
cat > conftest.hdr <<\EOF |
2275 |
|
|
s/[\\&%]/\\&/g |
2276 |
|
|
s%[\\$`]%\\&%g |
2277 |
|
|
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
2278 |
|
|
s%ac_d%ac_u%gp |
2279 |
|
|
s%ac_u%ac_e%gp |
2280 |
|
|
EOF |
2281 |
|
|
sed -n -f conftest.hdr confdefs.h > conftest.vals |
2282 |
|
|
rm -f conftest.hdr |
2283 |
|
|
|
2284 |
|
|
# This sed command replaces #undef with comments. This is necessary, for |
2285 |
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required |
2286 |
|
|
# on some systems where configure will not decide to define it. |
2287 |
|
|
cat >> conftest.vals <<\EOF |
2288 |
|
|
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
2289 |
|
|
EOF |
2290 |
|
|
|
2291 |
|
|
# Break up conftest.vals because some shells have a limit on |
2292 |
|
|
# the size of here documents, and old seds have small limits too. |
2293 |
|
|
|
2294 |
|
|
rm -f conftest.tail |
2295 |
|
|
while : |
2296 |
|
|
do |
2297 |
|
|
ac_lines=`grep -c . conftest.vals` |
2298 |
|
|
# grep -c gives empty output for an empty file on some AIX systems. |
2299 |
|
|
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
2300 |
|
|
# Write a limited-size here document to conftest.frag. |
2301 |
|
|
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
2302 |
|
|
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
2303 |
|
|
echo 'CEOF |
2304 |
|
|
sed -f conftest.frag conftest.in > conftest.out |
2305 |
|
|
rm -f conftest.in |
2306 |
|
|
mv conftest.out conftest.in |
2307 |
|
|
' >> $CONFIG_STATUS |
2308 |
|
|
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
2309 |
|
|
rm -f conftest.vals |
2310 |
|
|
mv conftest.tail conftest.vals |
2311 |
|
|
done |
2312 |
|
|
rm -f conftest.vals |
2313 |
|
|
|
2314 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
2315 |
|
|
rm -f conftest.frag conftest.h |
2316 |
|
|
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
2317 |
|
|
cat conftest.in >> conftest.h |
2318 |
|
|
rm -f conftest.in |
2319 |
|
|
if cmp -s $ac_file conftest.h 2>/dev/null; then |
2320 |
|
|
echo "$ac_file is unchanged" |
2321 |
|
|
rm -f conftest.h |
2322 |
|
|
else |
2323 |
|
|
# Remove last slash and all that follows it. Not all systems have dirname. |
2324 |
|
|
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
2325 |
|
|
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
2326 |
|
|
# The file is in a subdirectory. |
2327 |
|
|
test ! -d "$ac_dir" && mkdir "$ac_dir" |
2328 |
|
|
fi |
2329 |
|
|
rm -f $ac_file |
2330 |
|
|
mv conftest.h $ac_file |
2331 |
|
|
fi |
2332 |
|
|
fi; done |
2333 |
bertho |
1.1 |
|
2334 |
|
|
EOF |
2335 |
|
|
cat >> $CONFIG_STATUS <<EOF |
2336 |
|
|
|
2337 |
|
|
EOF |
2338 |
|
|
cat >> $CONFIG_STATUS <<\EOF |
2339 |
|
|
|
2340 |
|
|
exit 0 |
2341 |
|
|
EOF |
2342 |
|
|
chmod +x $CONFIG_STATUS |
2343 |
|
|
rm -fr confdefs* $ac_clean_files |
2344 |
|
|
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
2345 |
|
|
|
2346 |
|
|
|
2347 |
|
|
echo "Configure done. Run 'make' to build CvsGraph" |
2348 |
|
|
|