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 |
--enable-shared[=PKGS] build shared libraries [default=yes]" |
16 |
ac_help="$ac_help |
17 |
--enable-static[=PKGS] build static libraries [default=yes]" |
18 |
ac_help="$ac_help |
19 |
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
20 |
ac_help="$ac_help |
21 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
22 |
ac_help="$ac_help |
23 |
--disable-libtool-lock avoid locking (might break parallel builds)" |
24 |
ac_help="$ac_help |
25 |
--with-imagemagick enable ImageMagick (default = yes)" |
26 |
ac_help="$ac_help |
27 |
--disable-html-docs Disable generation of HTML 3.2 docs (default: on)" |
28 |
ac_help="$ac_help |
29 |
--enable-html4-docs Enable generation of HTML 4 docs (default: off)" |
30 |
ac_help="$ac_help |
31 |
--enable-ascii-docs Enable generation of ASCII docs (default: off)" |
32 |
ac_help="$ac_help |
33 |
--enable-rtf-docs Enable generation of RTF docs (default: off)" |
34 |
|
35 |
# Initialize some variables set by options. |
36 |
# The variables have the same names as the options, with |
37 |
# dashes changed to underlines. |
38 |
build=NONE |
39 |
cache_file=./config.cache |
40 |
exec_prefix=NONE |
41 |
host=NONE |
42 |
no_create= |
43 |
nonopt=NONE |
44 |
no_recursion= |
45 |
prefix=NONE |
46 |
program_prefix=NONE |
47 |
program_suffix=NONE |
48 |
program_transform_name=s,x,x, |
49 |
silent= |
50 |
site= |
51 |
srcdir= |
52 |
target=NONE |
53 |
verbose= |
54 |
x_includes=NONE |
55 |
x_libraries=NONE |
56 |
bindir='${exec_prefix}/bin' |
57 |
sbindir='${exec_prefix}/sbin' |
58 |
libexecdir='${exec_prefix}/libexec' |
59 |
datadir='${prefix}/share' |
60 |
sysconfdir='${prefix}/etc' |
61 |
sharedstatedir='${prefix}/com' |
62 |
localstatedir='${prefix}/var' |
63 |
libdir='${exec_prefix}/lib' |
64 |
includedir='${prefix}/include' |
65 |
oldincludedir='/usr/include' |
66 |
infodir='${prefix}/info' |
67 |
mandir='${prefix}/man' |
68 |
|
69 |
# Initialize some other variables. |
70 |
subdirs= |
71 |
MFLAGS= MAKEFLAGS= |
72 |
SHELL=${CONFIG_SHELL-/bin/sh} |
73 |
# Maximum number of lines to put in a shell here document. |
74 |
ac_max_here_lines=12 |
75 |
|
76 |
ac_prev= |
77 |
for ac_option |
78 |
do |
79 |
|
80 |
# If the previous option needs an argument, assign it. |
81 |
if test -n "$ac_prev"; then |
82 |
eval "$ac_prev=\$ac_option" |
83 |
ac_prev= |
84 |
continue |
85 |
fi |
86 |
|
87 |
case "$ac_option" in |
88 |
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
89 |
*) ac_optarg= ;; |
90 |
esac |
91 |
|
92 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
93 |
|
94 |
case "$ac_option" in |
95 |
|
96 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
97 |
ac_prev=bindir ;; |
98 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
99 |
bindir="$ac_optarg" ;; |
100 |
|
101 |
-build | --build | --buil | --bui | --bu) |
102 |
ac_prev=build ;; |
103 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
104 |
build="$ac_optarg" ;; |
105 |
|
106 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
107 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
108 |
ac_prev=cache_file ;; |
109 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
110 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
111 |
cache_file="$ac_optarg" ;; |
112 |
|
113 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
114 |
ac_prev=datadir ;; |
115 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
116 |
| --da=*) |
117 |
datadir="$ac_optarg" ;; |
118 |
|
119 |
-disable-* | --disable-*) |
120 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
121 |
# Reject names that are not valid shell variable names. |
122 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
123 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
124 |
fi |
125 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
126 |
eval "enable_${ac_feature}=no" ;; |
127 |
|
128 |
-enable-* | --enable-*) |
129 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
130 |
# Reject names that are not valid shell variable names. |
131 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
132 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
133 |
fi |
134 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
135 |
case "$ac_option" in |
136 |
*=*) ;; |
137 |
*) ac_optarg=yes ;; |
138 |
esac |
139 |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
140 |
|
141 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
142 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
143 |
| --exec | --exe | --ex) |
144 |
ac_prev=exec_prefix ;; |
145 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
146 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
147 |
| --exec=* | --exe=* | --ex=*) |
148 |
exec_prefix="$ac_optarg" ;; |
149 |
|
150 |
-gas | --gas | --ga | --g) |
151 |
# Obsolete; use --with-gas. |
152 |
with_gas=yes ;; |
153 |
|
154 |
-help | --help | --hel | --he) |
155 |
# Omit some internal or obsolete options to make the list less imposing. |
156 |
# This message is too long to be a string in the A/UX 3.1 sh. |
157 |
cat << EOF |
158 |
Usage: configure [options] [host] |
159 |
Options: [defaults in brackets after descriptions] |
160 |
Configuration: |
161 |
--cache-file=FILE cache test results in FILE |
162 |
--help print this message |
163 |
--no-create do not create output files |
164 |
--quiet, --silent do not print \`checking...' messages |
165 |
--version print the version of autoconf that created configure |
166 |
Directory and file names: |
167 |
--prefix=PREFIX install architecture-independent files in PREFIX |
168 |
[$ac_default_prefix] |
169 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
170 |
[same as prefix] |
171 |
--bindir=DIR user executables in DIR [EPREFIX/bin] |
172 |
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
173 |
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
174 |
--datadir=DIR read-only architecture-independent data in DIR |
175 |
[PREFIX/share] |
176 |
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
177 |
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
178 |
[PREFIX/com] |
179 |
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
180 |
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
181 |
--includedir=DIR C header files in DIR [PREFIX/include] |
182 |
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
183 |
--infodir=DIR info documentation in DIR [PREFIX/info] |
184 |
--mandir=DIR man documentation in DIR [PREFIX/man] |
185 |
--srcdir=DIR find the sources in DIR [configure dir or ..] |
186 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
187 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
188 |
--program-transform-name=PROGRAM |
189 |
run sed PROGRAM on installed program names |
190 |
EOF |
191 |
cat << EOF |
192 |
Host type: |
193 |
--build=BUILD configure for building on BUILD [BUILD=HOST] |
194 |
--host=HOST configure for HOST [guessed] |
195 |
--target=TARGET configure for TARGET [TARGET=HOST] |
196 |
Features and packages: |
197 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
198 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
199 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
200 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
201 |
--x-includes=DIR X include files are in DIR |
202 |
--x-libraries=DIR X library files are in DIR |
203 |
EOF |
204 |
if test -n "$ac_help"; then |
205 |
echo "--enable and --with options recognized:$ac_help" |
206 |
fi |
207 |
exit 0 ;; |
208 |
|
209 |
-host | --host | --hos | --ho) |
210 |
ac_prev=host ;; |
211 |
-host=* | --host=* | --hos=* | --ho=*) |
212 |
host="$ac_optarg" ;; |
213 |
|
214 |
-includedir | --includedir | --includedi | --included | --include \ |
215 |
| --includ | --inclu | --incl | --inc) |
216 |
ac_prev=includedir ;; |
217 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
218 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
219 |
includedir="$ac_optarg" ;; |
220 |
|
221 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
222 |
ac_prev=infodir ;; |
223 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
224 |
infodir="$ac_optarg" ;; |
225 |
|
226 |
-libdir | --libdir | --libdi | --libd) |
227 |
ac_prev=libdir ;; |
228 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
229 |
libdir="$ac_optarg" ;; |
230 |
|
231 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
232 |
| --libexe | --libex | --libe) |
233 |
ac_prev=libexecdir ;; |
234 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
235 |
| --libexe=* | --libex=* | --libe=*) |
236 |
libexecdir="$ac_optarg" ;; |
237 |
|
238 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
239 |
| --localstate | --localstat | --localsta | --localst \ |
240 |
| --locals | --local | --loca | --loc | --lo) |
241 |
ac_prev=localstatedir ;; |
242 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
243 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
244 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
245 |
localstatedir="$ac_optarg" ;; |
246 |
|
247 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
248 |
ac_prev=mandir ;; |
249 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
250 |
mandir="$ac_optarg" ;; |
251 |
|
252 |
-nfp | --nfp | --nf) |
253 |
# Obsolete; use --without-fp. |
254 |
with_fp=no ;; |
255 |
|
256 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
257 |
| --no-cr | --no-c) |
258 |
no_create=yes ;; |
259 |
|
260 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
261 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
262 |
no_recursion=yes ;; |
263 |
|
264 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
265 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
266 |
| --oldin | --oldi | --old | --ol | --o) |
267 |
ac_prev=oldincludedir ;; |
268 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
269 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
270 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
271 |
oldincludedir="$ac_optarg" ;; |
272 |
|
273 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
274 |
ac_prev=prefix ;; |
275 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
276 |
prefix="$ac_optarg" ;; |
277 |
|
278 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
279 |
| --program-pre | --program-pr | --program-p) |
280 |
ac_prev=program_prefix ;; |
281 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
282 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
283 |
program_prefix="$ac_optarg" ;; |
284 |
|
285 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
286 |
| --program-suf | --program-su | --program-s) |
287 |
ac_prev=program_suffix ;; |
288 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
289 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
290 |
program_suffix="$ac_optarg" ;; |
291 |
|
292 |
-program-transform-name | --program-transform-name \ |
293 |
| --program-transform-nam | --program-transform-na \ |
294 |
| --program-transform-n | --program-transform- \ |
295 |
| --program-transform | --program-transfor \ |
296 |
| --program-transfo | --program-transf \ |
297 |
| --program-trans | --program-tran \ |
298 |
| --progr-tra | --program-tr | --program-t) |
299 |
ac_prev=program_transform_name ;; |
300 |
-program-transform-name=* | --program-transform-name=* \ |
301 |
| --program-transform-nam=* | --program-transform-na=* \ |
302 |
| --program-transform-n=* | --program-transform-=* \ |
303 |
| --program-transform=* | --program-transfor=* \ |
304 |
| --program-transfo=* | --program-transf=* \ |
305 |
| --program-trans=* | --program-tran=* \ |
306 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
307 |
program_transform_name="$ac_optarg" ;; |
308 |
|
309 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
310 |
| -silent | --silent | --silen | --sile | --sil) |
311 |
silent=yes ;; |
312 |
|
313 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
314 |
ac_prev=sbindir ;; |
315 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
316 |
| --sbi=* | --sb=*) |
317 |
sbindir="$ac_optarg" ;; |
318 |
|
319 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
320 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
321 |
| --sharedst | --shareds | --shared | --share | --shar \ |
322 |
| --sha | --sh) |
323 |
ac_prev=sharedstatedir ;; |
324 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
325 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
326 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
327 |
| --sha=* | --sh=*) |
328 |
sharedstatedir="$ac_optarg" ;; |
329 |
|
330 |
-site | --site | --sit) |
331 |
ac_prev=site ;; |
332 |
-site=* | --site=* | --sit=*) |
333 |
site="$ac_optarg" ;; |
334 |
|
335 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
336 |
ac_prev=srcdir ;; |
337 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
338 |
srcdir="$ac_optarg" ;; |
339 |
|
340 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
341 |
| --syscon | --sysco | --sysc | --sys | --sy) |
342 |
ac_prev=sysconfdir ;; |
343 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
344 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
345 |
sysconfdir="$ac_optarg" ;; |
346 |
|
347 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
348 |
ac_prev=target ;; |
349 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
350 |
target="$ac_optarg" ;; |
351 |
|
352 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
353 |
verbose=yes ;; |
354 |
|
355 |
-version | --version | --versio | --versi | --vers) |
356 |
echo "configure generated by autoconf version 2.13" |
357 |
exit 0 ;; |
358 |
|
359 |
-with-* | --with-*) |
360 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
361 |
# Reject names that are not valid shell variable names. |
362 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
363 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
364 |
fi |
365 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
366 |
case "$ac_option" in |
367 |
*=*) ;; |
368 |
*) ac_optarg=yes ;; |
369 |
esac |
370 |
eval "with_${ac_package}='$ac_optarg'" ;; |
371 |
|
372 |
-without-* | --without-*) |
373 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
374 |
# Reject names that are not valid shell variable names. |
375 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
376 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
377 |
fi |
378 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
379 |
eval "with_${ac_package}=no" ;; |
380 |
|
381 |
--x) |
382 |
# Obsolete; use --with-x. |
383 |
with_x=yes ;; |
384 |
|
385 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
386 |
| --x-incl | --x-inc | --x-in | --x-i) |
387 |
ac_prev=x_includes ;; |
388 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
389 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
390 |
x_includes="$ac_optarg" ;; |
391 |
|
392 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
393 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
394 |
ac_prev=x_libraries ;; |
395 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
396 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
397 |
x_libraries="$ac_optarg" ;; |
398 |
|
399 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
400 |
;; |
401 |
|
402 |
*) |
403 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
404 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
405 |
fi |
406 |
if test "x$nonopt" != xNONE; then |
407 |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
408 |
fi |
409 |
nonopt="$ac_option" |
410 |
;; |
411 |
|
412 |
esac |
413 |
done |
414 |
|
415 |
if test -n "$ac_prev"; then |
416 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
417 |
fi |
418 |
|
419 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
420 |
|
421 |
# File descriptor usage: |
422 |
# 0 standard input |
423 |
# 1 file creation |
424 |
# 2 errors and warnings |
425 |
# 3 some systems may open it to /dev/tty |
426 |
# 4 used on the Kubota Titan |
427 |
# 6 checking for... messages and results |
428 |
# 5 compiler messages saved in config.log |
429 |
if test "$silent" = yes; then |
430 |
exec 6>/dev/null |
431 |
else |
432 |
exec 6>&1 |
433 |
fi |
434 |
exec 5>./config.log |
435 |
|
436 |
echo "\ |
437 |
This file contains any messages produced by compilers while |
438 |
running configure, to aid debugging if configure makes a mistake. |
439 |
" 1>&5 |
440 |
|
441 |
# Strip out --no-create and --no-recursion so they do not pile up. |
442 |
# Also quote any args containing shell metacharacters. |
443 |
ac_configure_args= |
444 |
for ac_arg |
445 |
do |
446 |
case "$ac_arg" in |
447 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
448 |
| --no-cr | --no-c) ;; |
449 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
450 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
451 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
452 |
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
453 |
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
454 |
esac |
455 |
done |
456 |
|
457 |
# NLS nuisances. |
458 |
# Only set these to C if already set. These must not be set unconditionally |
459 |
# because not all systems understand e.g. LANG=C (notably SCO). |
460 |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
461 |
# Non-C LC_CTYPE values break the ctype check. |
462 |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
463 |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
464 |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
465 |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
466 |
|
467 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
468 |
rm -rf conftest* confdefs.h |
469 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
470 |
echo > confdefs.h |
471 |
|
472 |
# A filename unique to this package, relative to the directory that |
473 |
# configure is in, which we can look for to find out if srcdir is correct. |
474 |
ac_unique_file=psiconv |
475 |
|
476 |
# Find the source files, if location was not specified. |
477 |
if test -z "$srcdir"; then |
478 |
ac_srcdir_defaulted=yes |
479 |
# Try the directory containing this script, then its parent. |
480 |
ac_prog=$0 |
481 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
482 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
483 |
srcdir=$ac_confdir |
484 |
if test ! -r $srcdir/$ac_unique_file; then |
485 |
srcdir=.. |
486 |
fi |
487 |
else |
488 |
ac_srcdir_defaulted=no |
489 |
fi |
490 |
if test ! -r $srcdir/$ac_unique_file; then |
491 |
if test "$ac_srcdir_defaulted" = yes; then |
492 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
493 |
else |
494 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
495 |
fi |
496 |
fi |
497 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
498 |
|
499 |
# Prefer explicitly selected file to automatically selected ones. |
500 |
if test -z "$CONFIG_SITE"; then |
501 |
if test "x$prefix" != xNONE; then |
502 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
503 |
else |
504 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
505 |
fi |
506 |
fi |
507 |
for ac_site_file in $CONFIG_SITE; do |
508 |
if test -r "$ac_site_file"; then |
509 |
echo "loading site script $ac_site_file" |
510 |
. "$ac_site_file" |
511 |
fi |
512 |
done |
513 |
|
514 |
if test -r "$cache_file"; then |
515 |
echo "loading cache $cache_file" |
516 |
. $cache_file |
517 |
else |
518 |
echo "creating cache $cache_file" |
519 |
> $cache_file |
520 |
fi |
521 |
|
522 |
ac_ext=c |
523 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
524 |
ac_cpp='$CPP $CPPFLAGS' |
525 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
526 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
527 |
cross_compiling=$ac_cv_prog_cc_cross |
528 |
|
529 |
ac_exeext= |
530 |
ac_objext=o |
531 |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
532 |
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
533 |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
534 |
ac_n= ac_c=' |
535 |
' ac_t=' ' |
536 |
else |
537 |
ac_n=-n ac_c= ac_t= |
538 |
fi |
539 |
else |
540 |
ac_n= ac_c='\c' ac_t= |
541 |
fi |
542 |
|
543 |
|
544 |
ac_aux_dir= |
545 |
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
546 |
if test -f $ac_dir/install-sh; then |
547 |
ac_aux_dir=$ac_dir |
548 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
549 |
break |
550 |
elif test -f $ac_dir/install.sh; then |
551 |
ac_aux_dir=$ac_dir |
552 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
553 |
break |
554 |
fi |
555 |
done |
556 |
if test -z "$ac_aux_dir"; then |
557 |
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
558 |
fi |
559 |
ac_config_guess=$ac_aux_dir/config.guess |
560 |
ac_config_sub=$ac_aux_dir/config.sub |
561 |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
562 |
|
563 |
# Find a good install program. We prefer a C program (faster), |
564 |
# so one script is as good as another. But avoid the broken or |
565 |
# incompatible versions: |
566 |
# SysV /etc/install, /usr/sbin/install |
567 |
# SunOS /usr/etc/install |
568 |
# IRIX /sbin/install |
569 |
# AIX /bin/install |
570 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
571 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
572 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
573 |
# ./install, which can be erroneously created by make from ./install.sh. |
574 |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
575 |
echo "configure:576: checking for a BSD compatible install" >&5 |
576 |
if test -z "$INSTALL"; then |
577 |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
578 |
echo $ac_n "(cached) $ac_c" 1>&6 |
579 |
else |
580 |
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
581 |
for ac_dir in $PATH; do |
582 |
# Account for people who put trailing slashes in PATH elements. |
583 |
case "$ac_dir/" in |
584 |
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
585 |
*) |
586 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
587 |
# Don't use installbsd from OSF since it installs stuff as root |
588 |
# by default. |
589 |
for ac_prog in ginstall scoinst install; do |
590 |
if test -f $ac_dir/$ac_prog; then |
591 |
if test $ac_prog = install && |
592 |
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
593 |
# AIX install. It has an incompatible calling convention. |
594 |
: |
595 |
else |
596 |
ac_cv_path_install="$ac_dir/$ac_prog -c" |
597 |
break 2 |
598 |
fi |
599 |
fi |
600 |
done |
601 |
;; |
602 |
esac |
603 |
done |
604 |
IFS="$ac_save_IFS" |
605 |
|
606 |
fi |
607 |
if test "${ac_cv_path_install+set}" = set; then |
608 |
INSTALL="$ac_cv_path_install" |
609 |
else |
610 |
# As a last resort, use the slow shell script. We don't cache a |
611 |
# path for INSTALL within a source directory, because that will |
612 |
# break other packages using the cache if that directory is |
613 |
# removed, or if the path is relative. |
614 |
INSTALL="$ac_install_sh" |
615 |
fi |
616 |
fi |
617 |
echo "$ac_t""$INSTALL" 1>&6 |
618 |
|
619 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
620 |
# It thinks the first close brace ends the variable substitution. |
621 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
622 |
|
623 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
624 |
|
625 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
626 |
|
627 |
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
628 |
echo "configure:629: checking whether build environment is sane" >&5 |
629 |
# Just in case |
630 |
sleep 1 |
631 |
echo timestamp > conftestfile |
632 |
# Do `set' in a subshell so we don't clobber the current shell's |
633 |
# arguments. Must try -L first in case configure is actually a |
634 |
# symlink; some systems play weird games with the mod time of symlinks |
635 |
# (eg FreeBSD returns the mod time of the symlink's containing |
636 |
# directory). |
637 |
if ( |
638 |
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
639 |
if test "$*" = "X"; then |
640 |
# -L didn't work. |
641 |
set X `ls -t $srcdir/configure conftestfile` |
642 |
fi |
643 |
if test "$*" != "X $srcdir/configure conftestfile" \ |
644 |
&& test "$*" != "X conftestfile $srcdir/configure"; then |
645 |
|
646 |
# If neither matched, then we have a broken ls. This can happen |
647 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
648 |
# broken ls alias from the environment. This has actually |
649 |
# happened. Such a system could not be considered "sane". |
650 |
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
651 |
alias in your environment" 1>&2; exit 1; } |
652 |
fi |
653 |
|
654 |
test "$2" = conftestfile |
655 |
) |
656 |
then |
657 |
# Ok. |
658 |
: |
659 |
else |
660 |
{ echo "configure: error: newly created file is older than distributed files! |
661 |
Check your system clock" 1>&2; exit 1; } |
662 |
fi |
663 |
rm -f conftest* |
664 |
echo "$ac_t""yes" 1>&6 |
665 |
if test "$program_transform_name" = s,x,x,; then |
666 |
program_transform_name= |
667 |
else |
668 |
# Double any \ or $. echo might interpret backslashes. |
669 |
cat <<\EOF_SED > conftestsed |
670 |
s,\\,\\\\,g; s,\$,$$,g |
671 |
EOF_SED |
672 |
program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
673 |
rm -f conftestsed |
674 |
fi |
675 |
test "$program_prefix" != NONE && |
676 |
program_transform_name="s,^,${program_prefix},; $program_transform_name" |
677 |
# Use a double $ so make ignores it. |
678 |
test "$program_suffix" != NONE && |
679 |
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
680 |
|
681 |
# sed with no file args requires a program. |
682 |
test "$program_transform_name" = "" && program_transform_name="s,x,x," |
683 |
|
684 |
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
685 |
echo "configure:686: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
686 |
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
687 |
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
688 |
echo $ac_n "(cached) $ac_c" 1>&6 |
689 |
else |
690 |
cat > conftestmake <<\EOF |
691 |
all: |
692 |
@echo 'ac_maketemp="${MAKE}"' |
693 |
EOF |
694 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
695 |
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
696 |
if test -n "$ac_maketemp"; then |
697 |
eval ac_cv_prog_make_${ac_make}_set=yes |
698 |
else |
699 |
eval ac_cv_prog_make_${ac_make}_set=no |
700 |
fi |
701 |
rm -f conftestmake |
702 |
fi |
703 |
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
704 |
echo "$ac_t""yes" 1>&6 |
705 |
SET_MAKE= |
706 |
else |
707 |
echo "$ac_t""no" 1>&6 |
708 |
SET_MAKE="MAKE=${MAKE-make}" |
709 |
fi |
710 |
|
711 |
|
712 |
PACKAGE=psiconv |
713 |
|
714 |
VERSION=0.5.0a |
715 |
|
716 |
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
717 |
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
718 |
fi |
719 |
cat >> confdefs.h <<EOF |
720 |
#define PACKAGE "$PACKAGE" |
721 |
EOF |
722 |
|
723 |
cat >> confdefs.h <<EOF |
724 |
#define VERSION "$VERSION" |
725 |
EOF |
726 |
|
727 |
|
728 |
|
729 |
missing_dir=`cd $ac_aux_dir && pwd` |
730 |
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
731 |
echo "configure:732: checking for working aclocal" >&5 |
732 |
# Run test in a subshell; some versions of sh will print an error if |
733 |
# an executable is not found, even if stderr is redirected. |
734 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
735 |
if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
736 |
ACLOCAL=aclocal |
737 |
echo "$ac_t""found" 1>&6 |
738 |
else |
739 |
ACLOCAL="$missing_dir/missing aclocal" |
740 |
echo "$ac_t""missing" 1>&6 |
741 |
fi |
742 |
|
743 |
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
744 |
echo "configure:745: checking for working autoconf" >&5 |
745 |
# Run test in a subshell; some versions of sh will print an error if |
746 |
# an executable is not found, even if stderr is redirected. |
747 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
748 |
if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
749 |
AUTOCONF=autoconf |
750 |
echo "$ac_t""found" 1>&6 |
751 |
else |
752 |
AUTOCONF="$missing_dir/missing autoconf" |
753 |
echo "$ac_t""missing" 1>&6 |
754 |
fi |
755 |
|
756 |
echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
757 |
echo "configure:758: checking for working automake" >&5 |
758 |
# Run test in a subshell; some versions of sh will print an error if |
759 |
# an executable is not found, even if stderr is redirected. |
760 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
761 |
if (automake --version) < /dev/null > /dev/null 2>&1; then |
762 |
AUTOMAKE=automake |
763 |
echo "$ac_t""found" 1>&6 |
764 |
else |
765 |
AUTOMAKE="$missing_dir/missing automake" |
766 |
echo "$ac_t""missing" 1>&6 |
767 |
fi |
768 |
|
769 |
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
770 |
echo "configure:771: checking for working autoheader" >&5 |
771 |
# Run test in a subshell; some versions of sh will print an error if |
772 |
# an executable is not found, even if stderr is redirected. |
773 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
774 |
if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
775 |
AUTOHEADER=autoheader |
776 |
echo "$ac_t""found" 1>&6 |
777 |
else |
778 |
AUTOHEADER="$missing_dir/missing autoheader" |
779 |
echo "$ac_t""missing" 1>&6 |
780 |
fi |
781 |
|
782 |
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
783 |
echo "configure:784: checking for working makeinfo" >&5 |
784 |
# Run test in a subshell; some versions of sh will print an error if |
785 |
# an executable is not found, even if stderr is redirected. |
786 |
# Redirect stdin to placate older versions of autoconf. Sigh. |
787 |
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
788 |
MAKEINFO=makeinfo |
789 |
echo "$ac_t""found" 1>&6 |
790 |
else |
791 |
MAKEINFO="$missing_dir/missing makeinfo" |
792 |
echo "$ac_t""missing" 1>&6 |
793 |
fi |
794 |
|
795 |
|
796 |
|
797 |
|
798 |
|
799 |
|
800 |
|
801 |
# Check whether --enable-shared or --disable-shared was given. |
802 |
if test "${enable_shared+set}" = set; then |
803 |
enableval="$enable_shared" |
804 |
p=${PACKAGE-default} |
805 |
case "$enableval" in |
806 |
yes) enable_shared=yes ;; |
807 |
no) enable_shared=no ;; |
808 |
*) |
809 |
enable_shared=no |
810 |
# Look at the argument we got. We use all the common list separators. |
811 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
812 |
for pkg in $enableval; do |
813 |
if test "X$pkg" = "X$p"; then |
814 |
enable_shared=yes |
815 |
fi |
816 |
done |
817 |
IFS="$ac_save_ifs" |
818 |
;; |
819 |
esac |
820 |
else |
821 |
enable_shared=yes |
822 |
fi |
823 |
|
824 |
# Check whether --enable-static or --disable-static was given. |
825 |
if test "${enable_static+set}" = set; then |
826 |
enableval="$enable_static" |
827 |
p=${PACKAGE-default} |
828 |
case "$enableval" in |
829 |
yes) enable_static=yes ;; |
830 |
no) enable_static=no ;; |
831 |
*) |
832 |
enable_static=no |
833 |
# Look at the argument we got. We use all the common list separators. |
834 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
835 |
for pkg in $enableval; do |
836 |
if test "X$pkg" = "X$p"; then |
837 |
enable_static=yes |
838 |
fi |
839 |
done |
840 |
IFS="$ac_save_ifs" |
841 |
;; |
842 |
esac |
843 |
else |
844 |
enable_static=yes |
845 |
fi |
846 |
|
847 |
# Check whether --enable-fast-install or --disable-fast-install was given. |
848 |
if test "${enable_fast_install+set}" = set; then |
849 |
enableval="$enable_fast_install" |
850 |
p=${PACKAGE-default} |
851 |
case "$enableval" in |
852 |
yes) enable_fast_install=yes ;; |
853 |
no) enable_fast_install=no ;; |
854 |
*) |
855 |
enable_fast_install=no |
856 |
# Look at the argument we got. We use all the common list separators. |
857 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
858 |
for pkg in $enableval; do |
859 |
if test "X$pkg" = "X$p"; then |
860 |
enable_fast_install=yes |
861 |
fi |
862 |
done |
863 |
IFS="$ac_save_ifs" |
864 |
;; |
865 |
esac |
866 |
else |
867 |
enable_fast_install=yes |
868 |
fi |
869 |
|
870 |
|
871 |
# Make sure we can run config.sub. |
872 |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
873 |
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
874 |
fi |
875 |
|
876 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
877 |
echo "configure:878: checking host system type" >&5 |
878 |
|
879 |
host_alias=$host |
880 |
case "$host_alias" in |
881 |
NONE) |
882 |
case $nonopt in |
883 |
NONE) |
884 |
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
885 |
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
886 |
fi ;; |
887 |
*) host_alias=$nonopt ;; |
888 |
esac ;; |
889 |
esac |
890 |
|
891 |
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
892 |
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
893 |
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
894 |
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
895 |
echo "$ac_t""$host" 1>&6 |
896 |
|
897 |
echo $ac_n "checking build system type""... $ac_c" 1>&6 |
898 |
echo "configure:899: checking build system type" >&5 |
899 |
|
900 |
build_alias=$build |
901 |
case "$build_alias" in |
902 |
NONE) |
903 |
case $nonopt in |
904 |
NONE) build_alias=$host_alias ;; |
905 |
*) build_alias=$nonopt ;; |
906 |
esac ;; |
907 |
esac |
908 |
|
909 |
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
910 |
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
911 |
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
912 |
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
913 |
echo "$ac_t""$build" 1>&6 |
914 |
|
915 |
# Extract the first word of "ranlib", so it can be a program name with args. |
916 |
set dummy ranlib; ac_word=$2 |
917 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
918 |
echo "configure:919: checking for $ac_word" >&5 |
919 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
920 |
echo $ac_n "(cached) $ac_c" 1>&6 |
921 |
else |
922 |
if test -n "$RANLIB"; then |
923 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
924 |
else |
925 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
926 |
ac_dummy="$PATH" |
927 |
for ac_dir in $ac_dummy; do |
928 |
test -z "$ac_dir" && ac_dir=. |
929 |
if test -f $ac_dir/$ac_word; then |
930 |
ac_cv_prog_RANLIB="ranlib" |
931 |
break |
932 |
fi |
933 |
done |
934 |
IFS="$ac_save_ifs" |
935 |
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
936 |
fi |
937 |
fi |
938 |
RANLIB="$ac_cv_prog_RANLIB" |
939 |
if test -n "$RANLIB"; then |
940 |
echo "$ac_t""$RANLIB" 1>&6 |
941 |
else |
942 |
echo "$ac_t""no" 1>&6 |
943 |
fi |
944 |
|
945 |
# Extract the first word of "gcc", so it can be a program name with args. |
946 |
set dummy gcc; ac_word=$2 |
947 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
948 |
echo "configure:949: checking for $ac_word" >&5 |
949 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
950 |
echo $ac_n "(cached) $ac_c" 1>&6 |
951 |
else |
952 |
if test -n "$CC"; then |
953 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
954 |
else |
955 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
956 |
ac_dummy="$PATH" |
957 |
for ac_dir in $ac_dummy; do |
958 |
test -z "$ac_dir" && ac_dir=. |
959 |
if test -f $ac_dir/$ac_word; then |
960 |
ac_cv_prog_CC="gcc" |
961 |
break |
962 |
fi |
963 |
done |
964 |
IFS="$ac_save_ifs" |
965 |
fi |
966 |
fi |
967 |
CC="$ac_cv_prog_CC" |
968 |
if test -n "$CC"; then |
969 |
echo "$ac_t""$CC" 1>&6 |
970 |
else |
971 |
echo "$ac_t""no" 1>&6 |
972 |
fi |
973 |
|
974 |
if test -z "$CC"; then |
975 |
# Extract the first word of "cc", so it can be a program name with args. |
976 |
set dummy cc; ac_word=$2 |
977 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
978 |
echo "configure:979: checking for $ac_word" >&5 |
979 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
980 |
echo $ac_n "(cached) $ac_c" 1>&6 |
981 |
else |
982 |
if test -n "$CC"; then |
983 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
984 |
else |
985 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
986 |
ac_prog_rejected=no |
987 |
ac_dummy="$PATH" |
988 |
for ac_dir in $ac_dummy; do |
989 |
test -z "$ac_dir" && ac_dir=. |
990 |
if test -f $ac_dir/$ac_word; then |
991 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
992 |
ac_prog_rejected=yes |
993 |
continue |
994 |
fi |
995 |
ac_cv_prog_CC="cc" |
996 |
break |
997 |
fi |
998 |
done |
999 |
IFS="$ac_save_ifs" |
1000 |
if test $ac_prog_rejected = yes; then |
1001 |
# We found a bogon in the path, so make sure we never use it. |
1002 |
set dummy $ac_cv_prog_CC |
1003 |
shift |
1004 |
if test $# -gt 0; then |
1005 |
# We chose a different compiler from the bogus one. |
1006 |
# However, it has the same basename, so the bogon will be chosen |
1007 |
# first if we set CC to just the basename; use the full file name. |
1008 |
shift |
1009 |
set dummy "$ac_dir/$ac_word" "$@" |
1010 |
shift |
1011 |
ac_cv_prog_CC="$@" |
1012 |
fi |
1013 |
fi |
1014 |
fi |
1015 |
fi |
1016 |
CC="$ac_cv_prog_CC" |
1017 |
if test -n "$CC"; then |
1018 |
echo "$ac_t""$CC" 1>&6 |
1019 |
else |
1020 |
echo "$ac_t""no" 1>&6 |
1021 |
fi |
1022 |
|
1023 |
if test -z "$CC"; then |
1024 |
case "`uname -s`" in |
1025 |
*win32* | *WIN32*) |
1026 |
# Extract the first word of "cl", so it can be a program name with args. |
1027 |
set dummy cl; ac_word=$2 |
1028 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
1029 |
echo "configure:1030: checking for $ac_word" >&5 |
1030 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1031 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1032 |
else |
1033 |
if test -n "$CC"; then |
1034 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1035 |
else |
1036 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
1037 |
ac_dummy="$PATH" |
1038 |
for ac_dir in $ac_dummy; do |
1039 |
test -z "$ac_dir" && ac_dir=. |
1040 |
if test -f $ac_dir/$ac_word; then |
1041 |
ac_cv_prog_CC="cl" |
1042 |
break |
1043 |
fi |
1044 |
done |
1045 |
IFS="$ac_save_ifs" |
1046 |
fi |
1047 |
fi |
1048 |
CC="$ac_cv_prog_CC" |
1049 |
if test -n "$CC"; then |
1050 |
echo "$ac_t""$CC" 1>&6 |
1051 |
else |
1052 |
echo "$ac_t""no" 1>&6 |
1053 |
fi |
1054 |
;; |
1055 |
esac |
1056 |
fi |
1057 |
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
1058 |
fi |
1059 |
|
1060 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
1061 |
echo "configure:1062: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
1062 |
|
1063 |
ac_ext=c |
1064 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1065 |
ac_cpp='$CPP $CPPFLAGS' |
1066 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1067 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1068 |
cross_compiling=$ac_cv_prog_cc_cross |
1069 |
|
1070 |
cat > conftest.$ac_ext << EOF |
1071 |
|
1072 |
#line 1073 "configure" |
1073 |
#include "confdefs.h" |
1074 |
|
1075 |
main(){return(0);} |
1076 |
EOF |
1077 |
if { (eval echo configure:1078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1078 |
ac_cv_prog_cc_works=yes |
1079 |
# If we can't run a trivial program, we are probably using a cross compiler. |
1080 |
if (./conftest; exit) 2>/dev/null; then |
1081 |
ac_cv_prog_cc_cross=no |
1082 |
else |
1083 |
ac_cv_prog_cc_cross=yes |
1084 |
fi |
1085 |
else |
1086 |
echo "configure: failed program was:" >&5 |
1087 |
cat conftest.$ac_ext >&5 |
1088 |
ac_cv_prog_cc_works=no |
1089 |
fi |
1090 |
rm -fr conftest* |
1091 |
ac_ext=c |
1092 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
1093 |
ac_cpp='$CPP $CPPFLAGS' |
1094 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
1095 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
1096 |
cross_compiling=$ac_cv_prog_cc_cross |
1097 |
|
1098 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
1099 |
if test $ac_cv_prog_cc_works = no; then |
1100 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
1101 |
fi |
1102 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
1103 |
echo "configure:1104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
1104 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1105 |
cross_compiling=$ac_cv_prog_cc_cross |
1106 |
|
1107 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
1108 |
echo "configure:1109: checking whether we are using GNU C" >&5 |
1109 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1110 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1111 |
else |
1112 |
cat > conftest.c <<EOF |
1113 |
#ifdef __GNUC__ |
1114 |
yes; |
1115 |
#endif |
1116 |
EOF |
1117 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
1118 |
ac_cv_prog_gcc=yes |
1119 |
else |
1120 |
ac_cv_prog_gcc=no |
1121 |
fi |
1122 |
fi |
1123 |
|
1124 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1125 |
|
1126 |
if test $ac_cv_prog_gcc = yes; then |
1127 |
GCC=yes |
1128 |
else |
1129 |
GCC= |
1130 |
fi |
1131 |
|
1132 |
ac_test_CFLAGS="${CFLAGS+set}" |
1133 |
ac_save_CFLAGS="$CFLAGS" |
1134 |
CFLAGS= |
1135 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
1136 |
echo "configure:1137: checking whether ${CC-cc} accepts -g" >&5 |
1137 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1138 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1139 |
else |
1140 |
echo 'void f(){}' > conftest.c |
1141 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
1142 |
ac_cv_prog_cc_g=yes |
1143 |
else |
1144 |
ac_cv_prog_cc_g=no |
1145 |
fi |
1146 |
rm -f conftest* |
1147 |
|
1148 |
fi |
1149 |
|
1150 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
1151 |
if test "$ac_test_CFLAGS" = set; then |
1152 |
CFLAGS="$ac_save_CFLAGS" |
1153 |
elif test $ac_cv_prog_cc_g = yes; then |
1154 |
if test "$GCC" = yes; then |
1155 |
CFLAGS="-g -O2" |
1156 |
else |
1157 |
CFLAGS="-g" |
1158 |
fi |
1159 |
else |
1160 |
if test "$GCC" = yes; then |
1161 |
CFLAGS="-O2" |
1162 |
else |
1163 |
CFLAGS= |
1164 |
fi |
1165 |
fi |
1166 |
|
1167 |
# Check whether --with-gnu-ld or --without-gnu-ld was given. |
1168 |
if test "${with_gnu_ld+set}" = set; then |
1169 |
withval="$with_gnu_ld" |
1170 |
test "$withval" = no || with_gnu_ld=yes |
1171 |
else |
1172 |
with_gnu_ld=no |
1173 |
fi |
1174 |
|
1175 |
ac_prog=ld |
1176 |
if test "$ac_cv_prog_gcc" = yes; then |
1177 |
# Check if gcc -print-prog-name=ld gives a path. |
1178 |
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
1179 |
echo "configure:1180: checking for ld used by GCC" >&5 |
1180 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1181 |
case "$ac_prog" in |
1182 |
# Accept absolute paths. |
1183 |
[\\/]* | [A-Za-z]:[\\/]*) |
1184 |
re_direlt='/[^/][^/]*/\.\./' |
1185 |
# Canonicalize the path of ld |
1186 |
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
1187 |
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
1188 |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
1189 |
done |
1190 |
test -z "$LD" && LD="$ac_prog" |
1191 |
;; |
1192 |
"") |
1193 |
# If it fails, then pretend we aren't using GCC. |
1194 |
ac_prog=ld |
1195 |
;; |
1196 |
*) |
1197 |
# If it is relative, then search for the first ld in PATH. |
1198 |
with_gnu_ld=unknown |
1199 |
;; |
1200 |
esac |
1201 |
elif test "$with_gnu_ld" = yes; then |
1202 |
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
1203 |
echo "configure:1204: checking for GNU ld" >&5 |
1204 |
else |
1205 |
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
1206 |
echo "configure:1207: checking for non-GNU ld" >&5 |
1207 |
fi |
1208 |
if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
1209 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1210 |
else |
1211 |
if test -z "$LD"; then |
1212 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
1213 |
for ac_dir in $PATH; do |
1214 |
test -z "$ac_dir" && ac_dir=. |
1215 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
1216 |
ac_cv_path_LD="$ac_dir/$ac_prog" |
1217 |
# Check to see if the program is GNU ld. I'd rather use --version, |
1218 |
# but apparently some GNU ld's only accept -v. |
1219 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
1220 |
if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
1221 |
test "$with_gnu_ld" != no && break |
1222 |
else |
1223 |
test "$with_gnu_ld" != yes && break |
1224 |
fi |
1225 |
fi |
1226 |
done |
1227 |
IFS="$ac_save_ifs" |
1228 |
else |
1229 |
ac_cv_path_LD="$LD" # Let the user override the test with a path. |
1230 |
fi |
1231 |
fi |
1232 |
|
1233 |
LD="$ac_cv_path_LD" |
1234 |
if test -n "$LD"; then |
1235 |
echo "$ac_t""$LD" 1>&6 |
1236 |
else |
1237 |
echo "$ac_t""no" 1>&6 |
1238 |
fi |
1239 |
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
1240 |
|
1241 |
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
1242 |
echo "configure:1243: checking if the linker ($LD) is GNU ld" >&5 |
1243 |
if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1244 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1245 |
else |
1246 |
# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
1247 |
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
1248 |
ac_cv_prog_gnu_ld=yes |
1249 |
else |
1250 |
ac_cv_prog_gnu_ld=no |
1251 |
fi |
1252 |
fi |
1253 |
|
1254 |
echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
1255 |
|
1256 |
|
1257 |
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
1258 |
echo "configure:1259: checking for BSD-compatible nm" >&5 |
1259 |
if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1260 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1261 |
else |
1262 |
if test -n "$NM"; then |
1263 |
# Let the user override the test. |
1264 |
ac_cv_path_NM="$NM" |
1265 |
else |
1266 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
1267 |
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
1268 |
test -z "$ac_dir" && ac_dir=. |
1269 |
if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
1270 |
# Check to see if the nm accepts a BSD-compat flag. |
1271 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
1272 |
# nm: unknown option "B" ignored |
1273 |
if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
1274 |
ac_cv_path_NM="$ac_dir/nm -B" |
1275 |
break |
1276 |
elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
1277 |
ac_cv_path_NM="$ac_dir/nm -p" |
1278 |
break |
1279 |
else |
1280 |
ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
1281 |
continue # so that we can try to find one that supports BSD flags |
1282 |
fi |
1283 |
fi |
1284 |
done |
1285 |
IFS="$ac_save_ifs" |
1286 |
test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
1287 |
fi |
1288 |
fi |
1289 |
|
1290 |
NM="$ac_cv_path_NM" |
1291 |
echo "$ac_t""$NM" 1>&6 |
1292 |
|
1293 |
|
1294 |
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1295 |
echo "configure:1296: checking whether ln -s works" >&5 |
1296 |
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1297 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1298 |
else |
1299 |
rm -f conftestdata |
1300 |
if ln -s X conftestdata 2>/dev/null |
1301 |
then |
1302 |
rm -f conftestdata |
1303 |
ac_cv_prog_LN_S="ln -s" |
1304 |
else |
1305 |
ac_cv_prog_LN_S=ln |
1306 |
fi |
1307 |
fi |
1308 |
LN_S="$ac_cv_prog_LN_S" |
1309 |
if test "$ac_cv_prog_LN_S" = "ln -s"; then |
1310 |
echo "$ac_t""yes" 1>&6 |
1311 |
else |
1312 |
echo "$ac_t""no" 1>&6 |
1313 |
fi |
1314 |
|
1315 |
|
1316 |
# Check for any special flags to pass to ltconfig. |
1317 |
libtool_flags="--cache-file=$cache_file" |
1318 |
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
1319 |
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
1320 |
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
1321 |
test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
1322 |
test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
1323 |
|
1324 |
|
1325 |
# Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
1326 |
if test "${enable_libtool_lock+set}" = set; then |
1327 |
enableval="$enable_libtool_lock" |
1328 |
: |
1329 |
fi |
1330 |
|
1331 |
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
1332 |
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
1333 |
|
1334 |
# Some flags need to be propagated to the compiler or linker for good |
1335 |
# libtool support. |
1336 |
case "$host" in |
1337 |
*-*-irix6*) |
1338 |
# Find out which ABI we are using. |
1339 |
echo '#line 1340 "configure"' > conftest.$ac_ext |
1340 |
if { (eval echo configure:1341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1341 |
case "`/usr/bin/file conftest.o`" in |
1342 |
*32-bit*) |
1343 |
LD="${LD-ld} -32" |
1344 |
;; |
1345 |
*N32*) |
1346 |
LD="${LD-ld} -n32" |
1347 |
;; |
1348 |
*64-bit*) |
1349 |
LD="${LD-ld} -64" |
1350 |
;; |
1351 |
esac |
1352 |
fi |
1353 |
rm -rf conftest* |
1354 |
;; |
1355 |
|
1356 |
*-*-sco3.2v5*) |
1357 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1358 |
SAVE_CFLAGS="$CFLAGS" |
1359 |
CFLAGS="$CFLAGS -belf" |
1360 |
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
1361 |
echo "configure:1362: checking whether the C compiler needs -belf" >&5 |
1362 |
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1363 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1364 |
else |
1365 |
cat > conftest.$ac_ext <<EOF |
1366 |
#line 1367 "configure" |
1367 |
#include "confdefs.h" |
1368 |
|
1369 |
int main() { |
1370 |
|
1371 |
; return 0; } |
1372 |
EOF |
1373 |
if { (eval echo configure:1374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1374 |
rm -rf conftest* |
1375 |
lt_cv_cc_needs_belf=yes |
1376 |
else |
1377 |
echo "configure: failed program was:" >&5 |
1378 |
cat conftest.$ac_ext >&5 |
1379 |
rm -rf conftest* |
1380 |
lt_cv_cc_needs_belf=no |
1381 |
fi |
1382 |
rm -f conftest* |
1383 |
fi |
1384 |
|
1385 |
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
1386 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
1387 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
1388 |
CFLAGS="$SAVE_CFLAGS" |
1389 |
fi |
1390 |
;; |
1391 |
|
1392 |
|
1393 |
esac |
1394 |
|
1395 |
|
1396 |
# Save cache, so that ltconfig can load it |
1397 |
cat > confcache <<\EOF |
1398 |
# This file is a shell script that caches the results of configure |
1399 |
# tests run on this system so they can be shared between configure |
1400 |
# scripts and configure runs. It is not useful on other systems. |
1401 |
# If it contains results you don't want to keep, you may remove or edit it. |
1402 |
# |
1403 |
# By default, configure uses ./config.cache as the cache file, |
1404 |
# creating it if it does not exist already. You can give configure |
1405 |
# the --cache-file=FILE option to use a different cache file; that is |
1406 |
# what configure does when it calls configure scripts in |
1407 |
# subdirectories, so they share the cache. |
1408 |
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
1409 |
# config.status only pays attention to the cache file if you give it the |
1410 |
# --recheck option to rerun configure. |
1411 |
# |
1412 |
EOF |
1413 |
# The following way of writing the cache mishandles newlines in values, |
1414 |
# but we know of no workaround that is simple, portable, and efficient. |
1415 |
# So, don't put newlines in cache variables' values. |
1416 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
1417 |
# and sets the high bit in the cache file unless we assign to the vars. |
1418 |
(set) 2>&1 | |
1419 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
1420 |
*ac_space=\ *) |
1421 |
# `set' does not quote correctly, so add quotes (double-quote substitution |
1422 |
# turns \\\\ into \\, and sed turns \\ into \). |
1423 |
sed -n \ |
1424 |
-e "s/'/'\\\\''/g" \ |
1425 |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
1426 |
;; |
1427 |
*) |
1428 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
1429 |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
1430 |
;; |
1431 |
esac >> confcache |
1432 |
if cmp -s $cache_file confcache; then |
1433 |
: |
1434 |
else |
1435 |
if test -w $cache_file; then |
1436 |
echo "updating cache $cache_file" |
1437 |
cat confcache > $cache_file |
1438 |
else |
1439 |
echo "not updating unwritable cache $cache_file" |
1440 |
fi |
1441 |
fi |
1442 |
rm -f confcache |
1443 |
|
1444 |
|
1445 |
# Actually configure libtool. ac_aux_dir is where install-sh is found. |
1446 |
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
1447 |
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
1448 |
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
1449 |
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
1450 |
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
1451 |
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
1452 |
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
1453 |
|
1454 |
# Reload cache, that may have been modified by ltconfig |
1455 |
if test -r "$cache_file"; then |
1456 |
echo "loading cache $cache_file" |
1457 |
. $cache_file |
1458 |
else |
1459 |
echo "creating cache $cache_file" |
1460 |
> $cache_file |
1461 |
fi |
1462 |
|
1463 |
|
1464 |
# This can be used to rebuild libtool when needed |
1465 |
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" |
1466 |
|
1467 |
# Always use our own libtool. |
1468 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
1469 |
|
1470 |
# Redirect the config.log output again, so that the ltconfig log is not |
1471 |
# clobbered by the next message. |
1472 |
exec 5>>./config.log |
1473 |
|
1474 |
|
1475 |
# Check whether --with-imagemagick or --without-imagemagick was given. |
1476 |
if test "${with_imagemagick+set}" = set; then |
1477 |
withval="$with_imagemagick" |
1478 |
IMAGEMAGICK=$withval |
1479 |
else |
1480 |
IMAGEMAGICK='yes' |
1481 |
fi |
1482 |
|
1483 |
if test x"$IMAGEMAGICK" != xno ; then |
1484 |
echo $ac_n "checking for MagickWarning in -lMagick""... $ac_c" 1>&6 |
1485 |
echo "configure:1486: checking for MagickWarning in -lMagick" >&5 |
1486 |
ac_lib_var=`echo Magick'_'MagickWarning | sed 'y%./+-%__p_%'` |
1487 |
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
1488 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1489 |
else |
1490 |
ac_save_LIBS="$LIBS" |
1491 |
LIBS="-lMagick $LIBS" |
1492 |
cat > conftest.$ac_ext <<EOF |
1493 |
#line 1494 "configure" |
1494 |
#include "confdefs.h" |
1495 |
/* Override any gcc2 internal prototype to avoid an error. */ |
1496 |
/* We use char because int might match the return type of a gcc2 |
1497 |
builtin and then its argument prototype would still apply. */ |
1498 |
char MagickWarning(); |
1499 |
|
1500 |
int main() { |
1501 |
MagickWarning() |
1502 |
; return 0; } |
1503 |
EOF |
1504 |
if { (eval echo configure:1505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
1505 |
rm -rf conftest* |
1506 |
eval "ac_cv_lib_$ac_lib_var=yes" |
1507 |
else |
1508 |
echo "configure: failed program was:" >&5 |
1509 |
cat conftest.$ac_ext >&5 |
1510 |
rm -rf conftest* |
1511 |
eval "ac_cv_lib_$ac_lib_var=no" |
1512 |
fi |
1513 |
rm -f conftest* |
1514 |
LIBS="$ac_save_LIBS" |
1515 |
|
1516 |
fi |
1517 |
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
1518 |
echo "$ac_t""yes" 1>&6 |
1519 |
IMAGEMAGICK=yes |
1520 |
else |
1521 |
echo "$ac_t""no" 1>&6 |
1522 |
IMAGEMAGICK=no |
1523 |
fi |
1524 |
|
1525 |
if test x"$IMAGEMAGICK" = xno ; then |
1526 |
echo "configure: warning: ImageMagick support disabled!" 1>&2 |
1527 |
fi |
1528 |
fi |
1529 |
if test x"$IMAGEMAGICK" = xyes ; then |
1530 |
LIB_MAGICK=-lMagick |
1531 |
cat >> confdefs.h <<\EOF |
1532 |
#define IMAGEMAGICK 1 |
1533 |
EOF |
1534 |
|
1535 |
else |
1536 |
LIB_MAGICK= |
1537 |
fi |
1538 |
|
1539 |
|
1540 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
1541 |
echo "configure:1542: checking how to run the C preprocessor" >&5 |
1542 |
# On Suns, sometimes $CPP names a directory. |
1543 |
if test -n "$CPP" && test -d "$CPP"; then |
1544 |
CPP= |
1545 |
fi |
1546 |
if test -z "$CPP"; then |
1547 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
1548 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1549 |
else |
1550 |
# This must be in double quotes, not single quotes, because CPP may get |
1551 |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
1552 |
CPP="${CC-cc} -E" |
1553 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
1554 |
# not just through cpp. |
1555 |
cat > conftest.$ac_ext <<EOF |
1556 |
#line 1557 "configure" |
1557 |
#include "confdefs.h" |
1558 |
#include <assert.h> |
1559 |
Syntax Error |
1560 |
EOF |
1561 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1562 |
{ (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1563 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1564 |
if test -z "$ac_err"; then |
1565 |
: |
1566 |
else |
1567 |
echo "$ac_err" >&5 |
1568 |
echo "configure: failed program was:" >&5 |
1569 |
cat conftest.$ac_ext >&5 |
1570 |
rm -rf conftest* |
1571 |
CPP="${CC-cc} -E -traditional-cpp" |
1572 |
cat > conftest.$ac_ext <<EOF |
1573 |
#line 1574 "configure" |
1574 |
#include "confdefs.h" |
1575 |
#include <assert.h> |
1576 |
Syntax Error |
1577 |
EOF |
1578 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1579 |
{ (eval echo configure:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1580 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1581 |
if test -z "$ac_err"; then |
1582 |
: |
1583 |
else |
1584 |
echo "$ac_err" >&5 |
1585 |
echo "configure: failed program was:" >&5 |
1586 |
cat conftest.$ac_ext >&5 |
1587 |
rm -rf conftest* |
1588 |
CPP="${CC-cc} -nologo -E" |
1589 |
cat > conftest.$ac_ext <<EOF |
1590 |
#line 1591 "configure" |
1591 |
#include "confdefs.h" |
1592 |
#include <assert.h> |
1593 |
Syntax Error |
1594 |
EOF |
1595 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1596 |
{ (eval echo configure:1597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1597 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1598 |
if test -z "$ac_err"; then |
1599 |
: |
1600 |
else |
1601 |
echo "$ac_err" >&5 |
1602 |
echo "configure: failed program was:" >&5 |
1603 |
cat conftest.$ac_ext >&5 |
1604 |
rm -rf conftest* |
1605 |
CPP=/lib/cpp |
1606 |
fi |
1607 |
rm -f conftest* |
1608 |
fi |
1609 |
rm -f conftest* |
1610 |
fi |
1611 |
rm -f conftest* |
1612 |
ac_cv_prog_CPP="$CPP" |
1613 |
fi |
1614 |
CPP="$ac_cv_prog_CPP" |
1615 |
else |
1616 |
ac_cv_prog_CPP="$CPP" |
1617 |
fi |
1618 |
echo "$ac_t""$CPP" 1>&6 |
1619 |
|
1620 |
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
1621 |
echo "configure:1622: checking for ANSI C header files" >&5 |
1622 |
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
1623 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1624 |
else |
1625 |
cat > conftest.$ac_ext <<EOF |
1626 |
#line 1627 "configure" |
1627 |
#include "confdefs.h" |
1628 |
#include <stdlib.h> |
1629 |
#include <stdarg.h> |
1630 |
#include <string.h> |
1631 |
#include <float.h> |
1632 |
EOF |
1633 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1634 |
{ (eval echo configure:1635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1635 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1636 |
if test -z "$ac_err"; then |
1637 |
rm -rf conftest* |
1638 |
ac_cv_header_stdc=yes |
1639 |
else |
1640 |
echo "$ac_err" >&5 |
1641 |
echo "configure: failed program was:" >&5 |
1642 |
cat conftest.$ac_ext >&5 |
1643 |
rm -rf conftest* |
1644 |
ac_cv_header_stdc=no |
1645 |
fi |
1646 |
rm -f conftest* |
1647 |
|
1648 |
if test $ac_cv_header_stdc = yes; then |
1649 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
1650 |
cat > conftest.$ac_ext <<EOF |
1651 |
#line 1652 "configure" |
1652 |
#include "confdefs.h" |
1653 |
#include <string.h> |
1654 |
EOF |
1655 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1656 |
egrep "memchr" >/dev/null 2>&1; then |
1657 |
: |
1658 |
else |
1659 |
rm -rf conftest* |
1660 |
ac_cv_header_stdc=no |
1661 |
fi |
1662 |
rm -f conftest* |
1663 |
|
1664 |
fi |
1665 |
|
1666 |
if test $ac_cv_header_stdc = yes; then |
1667 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
1668 |
cat > conftest.$ac_ext <<EOF |
1669 |
#line 1670 "configure" |
1670 |
#include "confdefs.h" |
1671 |
#include <stdlib.h> |
1672 |
EOF |
1673 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1674 |
egrep "free" >/dev/null 2>&1; then |
1675 |
: |
1676 |
else |
1677 |
rm -rf conftest* |
1678 |
ac_cv_header_stdc=no |
1679 |
fi |
1680 |
rm -f conftest* |
1681 |
|
1682 |
fi |
1683 |
|
1684 |
if test $ac_cv_header_stdc = yes; then |
1685 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
1686 |
if test "$cross_compiling" = yes; then |
1687 |
: |
1688 |
else |
1689 |
cat > conftest.$ac_ext <<EOF |
1690 |
#line 1691 "configure" |
1691 |
#include "confdefs.h" |
1692 |
#include <ctype.h> |
1693 |
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
1694 |
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
1695 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
1696 |
int main () { int i; for (i = 0; i < 256; i++) |
1697 |
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
1698 |
exit (0); } |
1699 |
|
1700 |
EOF |
1701 |
if { (eval echo configure:1702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1702 |
then |
1703 |
: |
1704 |
else |
1705 |
echo "configure: failed program was:" >&5 |
1706 |
cat conftest.$ac_ext >&5 |
1707 |
rm -fr conftest* |
1708 |
ac_cv_header_stdc=no |
1709 |
fi |
1710 |
rm -fr conftest* |
1711 |
fi |
1712 |
|
1713 |
fi |
1714 |
fi |
1715 |
|
1716 |
echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
1717 |
if test $ac_cv_header_stdc = yes; then |
1718 |
cat >> confdefs.h <<\EOF |
1719 |
#define STDC_HEADERS 1 |
1720 |
EOF |
1721 |
|
1722 |
fi |
1723 |
|
1724 |
for ac_hdr in unistd.h |
1725 |
do |
1726 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
1727 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1728 |
echo "configure:1729: checking for $ac_hdr" >&5 |
1729 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
1730 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1731 |
else |
1732 |
cat > conftest.$ac_ext <<EOF |
1733 |
#line 1734 "configure" |
1734 |
#include "confdefs.h" |
1735 |
#include <$ac_hdr> |
1736 |
EOF |
1737 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
1738 |
{ (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
1739 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
1740 |
if test -z "$ac_err"; then |
1741 |
rm -rf conftest* |
1742 |
eval "ac_cv_header_$ac_safe=yes" |
1743 |
else |
1744 |
echo "$ac_err" >&5 |
1745 |
echo "configure: failed program was:" >&5 |
1746 |
cat conftest.$ac_ext >&5 |
1747 |
rm -rf conftest* |
1748 |
eval "ac_cv_header_$ac_safe=no" |
1749 |
fi |
1750 |
rm -f conftest* |
1751 |
fi |
1752 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
1753 |
echo "$ac_t""yes" 1>&6 |
1754 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
1755 |
cat >> confdefs.h <<EOF |
1756 |
#define $ac_tr_hdr 1 |
1757 |
EOF |
1758 |
|
1759 |
else |
1760 |
echo "$ac_t""no" 1>&6 |
1761 |
fi |
1762 |
done |
1763 |
|
1764 |
|
1765 |
echo $ac_n "checking for working const""... $ac_c" 1>&6 |
1766 |
echo "configure:1767: checking for working const" >&5 |
1767 |
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
1768 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1769 |
else |
1770 |
cat > conftest.$ac_ext <<EOF |
1771 |
#line 1772 "configure" |
1772 |
#include "confdefs.h" |
1773 |
|
1774 |
int main() { |
1775 |
|
1776 |
/* Ultrix mips cc rejects this. */ |
1777 |
typedef int charset[2]; const charset x; |
1778 |
/* SunOS 4.1.1 cc rejects this. */ |
1779 |
char const *const *ccp; |
1780 |
char **p; |
1781 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
1782 |
struct point {int x, y;}; |
1783 |
static struct point const zero = {0,0}; |
1784 |
/* AIX XL C 1.02.0.0 rejects this. |
1785 |
It does not let you subtract one const X* pointer from another in an arm |
1786 |
of an if-expression whose if-part is not a constant expression */ |
1787 |
const char *g = "string"; |
1788 |
ccp = &g + (g ? g-g : 0); |
1789 |
/* HPUX 7.0 cc rejects these. */ |
1790 |
++ccp; |
1791 |
p = (char**) ccp; |
1792 |
ccp = (char const *const *) p; |
1793 |
{ /* SCO 3.2v4 cc rejects this. */ |
1794 |
char *t; |
1795 |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
1796 |
|
1797 |
*t++ = 0; |
1798 |
} |
1799 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
1800 |
int x[] = {25, 17}; |
1801 |
const int *foo = &x[0]; |
1802 |
++foo; |
1803 |
} |
1804 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
1805 |
typedef const int *iptr; |
1806 |
iptr p = 0; |
1807 |
++p; |
1808 |
} |
1809 |
{ /* AIX XL C 1.02.0.0 rejects this saying |
1810 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
1811 |
struct s { int j; const int *ap[3]; }; |
1812 |
struct s *b; b->j = 5; |
1813 |
} |
1814 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
1815 |
const int foo = 10; |
1816 |
} |
1817 |
|
1818 |
; return 0; } |
1819 |
EOF |
1820 |
if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
1821 |
rm -rf conftest* |
1822 |
ac_cv_c_const=yes |
1823 |
else |
1824 |
echo "configure: failed program was:" >&5 |
1825 |
cat conftest.$ac_ext >&5 |
1826 |
rm -rf conftest* |
1827 |
ac_cv_c_const=no |
1828 |
fi |
1829 |
rm -f conftest* |
1830 |
fi |
1831 |
|
1832 |
echo "$ac_t""$ac_cv_c_const" 1>&6 |
1833 |
if test $ac_cv_c_const = no; then |
1834 |
cat >> confdefs.h <<\EOF |
1835 |
#define const |
1836 |
EOF |
1837 |
|
1838 |
fi |
1839 |
|
1840 |
echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
1841 |
echo "configure:1842: checking for size_t" >&5 |
1842 |
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
1843 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1844 |
else |
1845 |
cat > conftest.$ac_ext <<EOF |
1846 |
#line 1847 "configure" |
1847 |
#include "confdefs.h" |
1848 |
#include <sys/types.h> |
1849 |
#if STDC_HEADERS |
1850 |
#include <stdlib.h> |
1851 |
#include <stddef.h> |
1852 |
#endif |
1853 |
EOF |
1854 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
1855 |
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
1856 |
rm -rf conftest* |
1857 |
ac_cv_type_size_t=yes |
1858 |
else |
1859 |
rm -rf conftest* |
1860 |
ac_cv_type_size_t=no |
1861 |
fi |
1862 |
rm -f conftest* |
1863 |
|
1864 |
fi |
1865 |
echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
1866 |
if test $ac_cv_type_size_t = no; then |
1867 |
cat >> confdefs.h <<\EOF |
1868 |
#define size_t unsigned |
1869 |
EOF |
1870 |
|
1871 |
fi |
1872 |
|
1873 |
|
1874 |
|
1875 |
echo $ac_n "checking size of char""... $ac_c" 1>&6 |
1876 |
echo "configure:1877: checking size of char" >&5 |
1877 |
if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
1878 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1879 |
else |
1880 |
if test "$cross_compiling" = yes; then |
1881 |
ac_cv_sizeof_char=1 |
1882 |
else |
1883 |
cat > conftest.$ac_ext <<EOF |
1884 |
#line 1885 "configure" |
1885 |
#include "confdefs.h" |
1886 |
#include <stdio.h> |
1887 |
main() |
1888 |
{ |
1889 |
FILE *f=fopen("conftestval", "w"); |
1890 |
if (!f) exit(1); |
1891 |
fprintf(f, "%d\n", sizeof(char)); |
1892 |
exit(0); |
1893 |
} |
1894 |
EOF |
1895 |
if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1896 |
then |
1897 |
ac_cv_sizeof_char=`cat conftestval` |
1898 |
else |
1899 |
echo "configure: failed program was:" >&5 |
1900 |
cat conftest.$ac_ext >&5 |
1901 |
rm -fr conftest* |
1902 |
ac_cv_sizeof_char=0 |
1903 |
fi |
1904 |
rm -fr conftest* |
1905 |
fi |
1906 |
|
1907 |
fi |
1908 |
echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
1909 |
cat >> confdefs.h <<EOF |
1910 |
#define SIZEOF_CHAR $ac_cv_sizeof_char |
1911 |
EOF |
1912 |
|
1913 |
|
1914 |
echo $ac_n "checking size of short""... $ac_c" 1>&6 |
1915 |
echo "configure:1916: checking size of short" >&5 |
1916 |
if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
1917 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1918 |
else |
1919 |
if test "$cross_compiling" = yes; then |
1920 |
ac_cv_sizeof_short=1 |
1921 |
else |
1922 |
cat > conftest.$ac_ext <<EOF |
1923 |
#line 1924 "configure" |
1924 |
#include "confdefs.h" |
1925 |
#include <stdio.h> |
1926 |
main() |
1927 |
{ |
1928 |
FILE *f=fopen("conftestval", "w"); |
1929 |
if (!f) exit(1); |
1930 |
fprintf(f, "%d\n", sizeof(short)); |
1931 |
exit(0); |
1932 |
} |
1933 |
EOF |
1934 |
if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1935 |
then |
1936 |
ac_cv_sizeof_short=`cat conftestval` |
1937 |
else |
1938 |
echo "configure: failed program was:" >&5 |
1939 |
cat conftest.$ac_ext >&5 |
1940 |
rm -fr conftest* |
1941 |
ac_cv_sizeof_short=0 |
1942 |
fi |
1943 |
rm -fr conftest* |
1944 |
fi |
1945 |
|
1946 |
fi |
1947 |
echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
1948 |
cat >> confdefs.h <<EOF |
1949 |
#define SIZEOF_SHORT $ac_cv_sizeof_short |
1950 |
EOF |
1951 |
|
1952 |
|
1953 |
echo $ac_n "checking size of int""... $ac_c" 1>&6 |
1954 |
echo "configure:1955: checking size of int" >&5 |
1955 |
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
1956 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1957 |
else |
1958 |
if test "$cross_compiling" = yes; then |
1959 |
ac_cv_sizeof_int=2 |
1960 |
else |
1961 |
cat > conftest.$ac_ext <<EOF |
1962 |
#line 1963 "configure" |
1963 |
#include "confdefs.h" |
1964 |
#include <stdio.h> |
1965 |
main() |
1966 |
{ |
1967 |
FILE *f=fopen("conftestval", "w"); |
1968 |
if (!f) exit(1); |
1969 |
fprintf(f, "%d\n", sizeof(int)); |
1970 |
exit(0); |
1971 |
} |
1972 |
EOF |
1973 |
if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
1974 |
then |
1975 |
ac_cv_sizeof_int=`cat conftestval` |
1976 |
else |
1977 |
echo "configure: failed program was:" >&5 |
1978 |
cat conftest.$ac_ext >&5 |
1979 |
rm -fr conftest* |
1980 |
ac_cv_sizeof_int=0 |
1981 |
fi |
1982 |
rm -fr conftest* |
1983 |
fi |
1984 |
|
1985 |
fi |
1986 |
echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
1987 |
cat >> confdefs.h <<EOF |
1988 |
#define SIZEOF_INT $ac_cv_sizeof_int |
1989 |
EOF |
1990 |
|
1991 |
|
1992 |
echo $ac_n "checking size of long""... $ac_c" 1>&6 |
1993 |
echo "configure:1994: checking size of long" >&5 |
1994 |
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
1995 |
echo $ac_n "(cached) $ac_c" 1>&6 |
1996 |
else |
1997 |
if test "$cross_compiling" = yes; then |
1998 |
ac_cv_sizeof_long=4 |
1999 |
else |
2000 |
cat > conftest.$ac_ext <<EOF |
2001 |
#line 2002 "configure" |
2002 |
#include "confdefs.h" |
2003 |
#include <stdio.h> |
2004 |
main() |
2005 |
{ |
2006 |
FILE *f=fopen("conftestval", "w"); |
2007 |
if (!f) exit(1); |
2008 |
fprintf(f, "%d\n", sizeof(long)); |
2009 |
exit(0); |
2010 |
} |
2011 |
EOF |
2012 |
if { (eval echo configure:2013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
2013 |
then |
2014 |
ac_cv_sizeof_long=`cat conftestval` |
2015 |
else |
2016 |
echo "configure: failed program was:" >&5 |
2017 |
cat conftest.$ac_ext >&5 |
2018 |
rm -fr conftest* |
2019 |
ac_cv_sizeof_long=0 |
2020 |
fi |
2021 |
rm -fr conftest* |
2022 |
fi |
2023 |
|
2024 |
fi |
2025 |
echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
2026 |
cat >> confdefs.h <<EOF |
2027 |
#define SIZEOF_LONG $ac_cv_sizeof_long |
2028 |
EOF |
2029 |
|
2030 |
|
2031 |
|
2032 |
echo $ac_n "checking for an 8 bit integer type""... $ac_c" 1>&6 |
2033 |
echo "configure:2034: checking for an 8 bit integer type" >&5 |
2034 |
if test $ac_cv_sizeof_char -ge 1 ; then |
2035 |
INT_8_BIT=char |
2036 |
echo "$ac_t""char" 1>&6 |
2037 |
elif test $ac_cv_sizeof_short -ge 1 ; then |
2038 |
INT_8_BIT=short |
2039 |
echo "$ac_t""short" 1>&6 |
2040 |
elif test $ac_cv_sizeof_int -ge 1 ; then |
2041 |
INT_8_BIT=int |
2042 |
echo "$ac_t""int" 1>&6 |
2043 |
elif test $ac_cv_sizeof_long -ge 1 ; then |
2044 |
INT_8_BIT=long |
2045 |
echo "$ac_t""long" 1>&6 |
2046 |
else |
2047 |
{ echo "configure: error: No integer type of at least 8 bits found" 1>&2; exit 1; } |
2048 |
fi |
2049 |
|
2050 |
echo $ac_n "checking for a 16 bit integer type""... $ac_c" 1>&6 |
2051 |
echo "configure:2052: checking for a 16 bit integer type" >&5 |
2052 |
if test $ac_cv_sizeof_char -ge 2 ; then |
2053 |
INT_16_BIT=char |
2054 |
echo "$ac_t""char" 1>&6 |
2055 |
elif test $ac_cv_sizeof_short -ge 2 ; then |
2056 |
INT_16_BIT=short |
2057 |
echo "$ac_t""short" 1>&6 |
2058 |
elif test $ac_cv_sizeof_int -ge 2 ; then |
2059 |
INT_16_BIT=int |
2060 |
echo "$ac_t""int" 1>&6 |
2061 |
elif test $ac_cv_sizeof_long -ge 2 ; then |
2062 |
INT_16_BIT=long |
2063 |
echo "$ac_t""long" 1>&6 |
2064 |
else |
2065 |
{ echo "configure: error: No integer type of at least 16 bits found" 1>&2; exit 1; } |
2066 |
fi |
2067 |
|
2068 |
echo $ac_n "checking for a 32 bit integer type""... $ac_c" 1>&6 |
2069 |
echo "configure:2070: checking for a 32 bit integer type" >&5 |
2070 |
if test $ac_cv_sizeof_char -ge 4 ; then |
2071 |
INT_32_BIT=char |
2072 |
echo "$ac_t""char" 1>&6 |
2073 |
elif test $ac_cv_sizeof_short -ge 4 ; then |
2074 |
INT_32_BIT=short |
2075 |
echo "$ac_t""short" 1>&6 |
2076 |
elif test $ac_cv_sizeof_int -ge 4 ; then |
2077 |
INT_32_BIT=int |
2078 |
echo "$ac_t""int" 1>&6 |
2079 |
elif test $ac_cv_sizeof_long -ge 4 ; then |
2080 |
INT_32_BIT=long |
2081 |
echo "$ac_t""long" 1>&6 |
2082 |
else |
2083 |
{ echo "configure: error: No integer type of at least 32 bits found" 1>&2; exit 1; } |
2084 |
fi |
2085 |
|
2086 |
|
2087 |
|
2088 |
|
2089 |
|
2090 |
echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
2091 |
echo "configure:2092: checking for vprintf" >&5 |
2092 |
if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
2093 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2094 |
else |
2095 |
cat > conftest.$ac_ext <<EOF |
2096 |
#line 2097 "configure" |
2097 |
#include "confdefs.h" |
2098 |
/* System header to define __stub macros and hopefully few prototypes, |
2099 |
which can conflict with char vprintf(); below. */ |
2100 |
#include <assert.h> |
2101 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2102 |
/* We use char because int might match the return type of a gcc2 |
2103 |
builtin and then its argument prototype would still apply. */ |
2104 |
char vprintf(); |
2105 |
|
2106 |
int main() { |
2107 |
|
2108 |
/* The GNU C library defines this for functions which it implements |
2109 |
to always fail with ENOSYS. Some functions are actually named |
2110 |
something starting with __ and the normal name is an alias. */ |
2111 |
#if defined (__stub_vprintf) || defined (__stub___vprintf) |
2112 |
choke me |
2113 |
#else |
2114 |
vprintf(); |
2115 |
#endif |
2116 |
|
2117 |
; return 0; } |
2118 |
EOF |
2119 |
if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2120 |
rm -rf conftest* |
2121 |
eval "ac_cv_func_vprintf=yes" |
2122 |
else |
2123 |
echo "configure: failed program was:" >&5 |
2124 |
cat conftest.$ac_ext >&5 |
2125 |
rm -rf conftest* |
2126 |
eval "ac_cv_func_vprintf=no" |
2127 |
fi |
2128 |
rm -f conftest* |
2129 |
fi |
2130 |
|
2131 |
if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
2132 |
echo "$ac_t""yes" 1>&6 |
2133 |
cat >> confdefs.h <<\EOF |
2134 |
#define HAVE_VPRINTF 1 |
2135 |
EOF |
2136 |
|
2137 |
else |
2138 |
echo "$ac_t""no" 1>&6 |
2139 |
fi |
2140 |
|
2141 |
if test "$ac_cv_func_vprintf" != yes; then |
2142 |
echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
2143 |
echo "configure:2144: checking for _doprnt" >&5 |
2144 |
if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
2145 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2146 |
else |
2147 |
cat > conftest.$ac_ext <<EOF |
2148 |
#line 2149 "configure" |
2149 |
#include "confdefs.h" |
2150 |
/* System header to define __stub macros and hopefully few prototypes, |
2151 |
which can conflict with char _doprnt(); below. */ |
2152 |
#include <assert.h> |
2153 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2154 |
/* We use char because int might match the return type of a gcc2 |
2155 |
builtin and then its argument prototype would still apply. */ |
2156 |
char _doprnt(); |
2157 |
|
2158 |
int main() { |
2159 |
|
2160 |
/* The GNU C library defines this for functions which it implements |
2161 |
to always fail with ENOSYS. Some functions are actually named |
2162 |
something starting with __ and the normal name is an alias. */ |
2163 |
#if defined (__stub__doprnt) || defined (__stub____doprnt) |
2164 |
choke me |
2165 |
#else |
2166 |
_doprnt(); |
2167 |
#endif |
2168 |
|
2169 |
; return 0; } |
2170 |
EOF |
2171 |
if { (eval echo configure:2172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2172 |
rm -rf conftest* |
2173 |
eval "ac_cv_func__doprnt=yes" |
2174 |
else |
2175 |
echo "configure: failed program was:" >&5 |
2176 |
cat conftest.$ac_ext >&5 |
2177 |
rm -rf conftest* |
2178 |
eval "ac_cv_func__doprnt=no" |
2179 |
fi |
2180 |
rm -f conftest* |
2181 |
fi |
2182 |
|
2183 |
if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
2184 |
echo "$ac_t""yes" 1>&6 |
2185 |
cat >> confdefs.h <<\EOF |
2186 |
#define HAVE_DOPRNT 1 |
2187 |
EOF |
2188 |
|
2189 |
else |
2190 |
echo "$ac_t""no" 1>&6 |
2191 |
fi |
2192 |
|
2193 |
fi |
2194 |
|
2195 |
for ac_func in strdup |
2196 |
do |
2197 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2198 |
echo "configure:2199: checking for $ac_func" >&5 |
2199 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2200 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2201 |
else |
2202 |
cat > conftest.$ac_ext <<EOF |
2203 |
#line 2204 "configure" |
2204 |
#include "confdefs.h" |
2205 |
/* System header to define __stub macros and hopefully few prototypes, |
2206 |
which can conflict with char $ac_func(); below. */ |
2207 |
#include <assert.h> |
2208 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2209 |
/* We use char because int might match the return type of a gcc2 |
2210 |
builtin and then its argument prototype would still apply. */ |
2211 |
char $ac_func(); |
2212 |
|
2213 |
int main() { |
2214 |
|
2215 |
/* The GNU C library defines this for functions which it implements |
2216 |
to always fail with ENOSYS. Some functions are actually named |
2217 |
something starting with __ and the normal name is an alias. */ |
2218 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
2219 |
choke me |
2220 |
#else |
2221 |
$ac_func(); |
2222 |
#endif |
2223 |
|
2224 |
; return 0; } |
2225 |
EOF |
2226 |
if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2227 |
rm -rf conftest* |
2228 |
eval "ac_cv_func_$ac_func=yes" |
2229 |
else |
2230 |
echo "configure: failed program was:" >&5 |
2231 |
cat conftest.$ac_ext >&5 |
2232 |
rm -rf conftest* |
2233 |
eval "ac_cv_func_$ac_func=no" |
2234 |
fi |
2235 |
rm -f conftest* |
2236 |
fi |
2237 |
|
2238 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2239 |
echo "$ac_t""yes" 1>&6 |
2240 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2241 |
cat >> confdefs.h <<EOF |
2242 |
#define $ac_tr_func 1 |
2243 |
EOF |
2244 |
|
2245 |
else |
2246 |
echo "$ac_t""no" 1>&6 |
2247 |
fi |
2248 |
done |
2249 |
|
2250 |
for ac_func in strdup |
2251 |
do |
2252 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2253 |
echo "configure:2254: checking for $ac_func" >&5 |
2254 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2255 |
echo $ac_n "(cached) $ac_c" 1>&6 |
2256 |
else |
2257 |
cat > conftest.$ac_ext <<EOF |
2258 |
#line 2259 "configure" |
2259 |
#include "confdefs.h" |
2260 |
/* System header to define __stub macros and hopefully few prototypes, |
2261 |
which can conflict with char $ac_func(); below. */ |
2262 |
#include <assert.h> |
2263 |
/* Override any gcc2 internal prototype to avoid an error. */ |
2264 |
/* We use char because int might match the return type of a gcc2 |
2265 |
builtin and then its argument prototype would still apply. */ |
2266 |
char $ac_func(); |
2267 |
|
2268 |
int main() { |
2269 |
|
2270 |
/* The GNU C library defines this for functions which it implements |
2271 |
to always fail with ENOSYS. Some functions are actually named |
2272 |
something starting with __ and the normal name is an alias. */ |
2273 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
2274 |
choke me |
2275 |
#else |
2276 |
$ac_func(); |
2277 |
#endif |
2278 |
|
2279 |
; return 0; } |
2280 |
EOF |
2281 |
if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2282 |
rm -rf conftest* |
2283 |
eval "ac_cv_func_$ac_func=yes" |
2284 |
else |
2285 |
echo "configure: failed program was:" >&5 |
2286 |
cat conftest.$ac_ext >&5 |
2287 |
rm -rf conftest* |
2288 |
eval "ac_cv_func_$ac_func=no" |
2289 |
fi |
2290 |
rm -f conftest* |
2291 |
fi |
2292 |
|
2293 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
2294 |
echo "$ac_t""yes" 1>&6 |
2295 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
2296 |
cat >> confdefs.h <<EOF |
2297 |
#define $ac_tr_func 1 |
2298 |
EOF |
2299 |
|
2300 |
else |
2301 |
echo "$ac_t""no" 1>&6 |
2302 |
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
2303 |
fi |
2304 |
done |
2305 |
|
2306 |
|
2307 |
|
2308 |
# Check whether --enable-html-docs or --disable-html-docs was given. |
2309 |
if test "${enable_html_docs+set}" = set; then |
2310 |
enableval="$enable_html_docs" |
2311 |
case "${enableval}" in |
2312 |
yes) htmldocs=true ;; |
2313 |
no) htmldocs=false ;; |
2314 |
*) { echo "configure: error: bad value ${enableval} for --enable-html-docs" 1>&2; exit 1; } ;; |
2315 |
esac |
2316 |
else |
2317 |
htmldocs=true |
2318 |
fi |
2319 |
|
2320 |
|
2321 |
|
2322 |
if test x$htmldocs = xtrue; then |
2323 |
HTMLDOCS_TRUE= |
2324 |
HTMLDOCS_FALSE='#' |
2325 |
else |
2326 |
HTMLDOCS_TRUE='#' |
2327 |
HTMLDOCS_FALSE= |
2328 |
fi |
2329 |
|
2330 |
# Check whether --enable-html4-docs or --disable-html4-docs was given. |
2331 |
if test "${enable_html4_docs+set}" = set; then |
2332 |
enableval="$enable_html4_docs" |
2333 |
case "${enableval}" in |
2334 |
yes) html4docs=true ;; |
2335 |
no) html4docs=false ;; |
2336 |
*) { echo "configure: error: bad value ${enableval} for --enable-html4-docs" 1>&2; exit 1; } ;; |
2337 |
esac |
2338 |
else |
2339 |
html4docs=false |
2340 |
fi |
2341 |
|
2342 |
|
2343 |
|
2344 |
if test x$html4docs = xtrue; then |
2345 |
HTML4DOCS_TRUE= |
2346 |
HTML4DOCS_FALSE='#' |
2347 |
else |
2348 |
HTML4DOCS_TRUE='#' |
2349 |
HTML4DOCS_FALSE= |
2350 |
fi |
2351 |
|
2352 |
# Check whether --enable-ascii-docs or --disable-ascii-docs was given. |
2353 |
if test "${enable_ascii_docs+set}" = set; then |
2354 |
enableval="$enable_ascii_docs" |
2355 |
case "${enableval}" in |
2356 |
yes) asciidocs=true ;; |
2357 |
no) asciidocs=false ;; |
2358 |
*) { echo "configure: error: bad value ${enableval} for --enable-ascii-docs" 1>&2; exit 1; } ;; |
2359 |
esac |
2360 |
else |
2361 |
asciidocs=false |
2362 |
fi |
2363 |
|
2364 |
|
2365 |
|
2366 |
if test x$asciidocs = xtrue; then |
2367 |
ASCIIDOCS_TRUE= |
2368 |
ASCIIDOCS_FALSE='#' |
2369 |
else |
2370 |
ASCIIDOCS_TRUE='#' |
2371 |
ASCIIDOCS_FALSE= |
2372 |
fi |
2373 |
|
2374 |
# Check whether --enable-rtf-docs or --disable-rtf-docs was given. |
2375 |
if test "${enable_rtf_docs+set}" = set; then |
2376 |
enableval="$enable_rtf_docs" |
2377 |
case "${enableval}" in |
2378 |
yes) rtfdocs=true ;; |
2379 |
no) rtfdocs=false ;; |
2380 |
*) { echo "configure: error: bad value ${enableval} for --enable-rtf-docs" 1>&2; exit 1; } ;; |
2381 |
esac |
2382 |
else |
2383 |
rtfdocs=false |
2384 |
fi |
2385 |
|
2386 |
|
2387 |
|
2388 |
if test x$rtfdocs = xtrue; then |
2389 |
RTFDOCS_TRUE= |
2390 |
RTFDOCS_FALSE='#' |
2391 |
else |
2392 |
RTFDOCS_TRUE='#' |
2393 |
RTFDOCS_FALSE= |
2394 |
fi |
2395 |
|
2396 |
trap '' 1 2 15 |
2397 |
cat > confcache <<\EOF |
2398 |
# This file is a shell script that caches the results of configure |
2399 |
# tests run on this system so they can be shared between configure |
2400 |
# scripts and configure runs. It is not useful on other systems. |
2401 |
# If it contains results you don't want to keep, you may remove or edit it. |
2402 |
# |
2403 |
# By default, configure uses ./config.cache as the cache file, |
2404 |
# creating it if it does not exist already. You can give configure |
2405 |
# the --cache-file=FILE option to use a different cache file; that is |
2406 |
# what configure does when it calls configure scripts in |
2407 |
# subdirectories, so they share the cache. |
2408 |
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
2409 |
# config.status only pays attention to the cache file if you give it the |
2410 |
# --recheck option to rerun configure. |
2411 |
# |
2412 |
EOF |
2413 |
# The following way of writing the cache mishandles newlines in values, |
2414 |
# but we know of no workaround that is simple, portable, and efficient. |
2415 |
# So, don't put newlines in cache variables' values. |
2416 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
2417 |
# and sets the high bit in the cache file unless we assign to the vars. |
2418 |
(set) 2>&1 | |
2419 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
2420 |
*ac_space=\ *) |
2421 |
# `set' does not quote correctly, so add quotes (double-quote substitution |
2422 |
# turns \\\\ into \\, and sed turns \\ into \). |
2423 |
sed -n \ |
2424 |
-e "s/'/'\\\\''/g" \ |
2425 |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
2426 |
;; |
2427 |
*) |
2428 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
2429 |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
2430 |
;; |
2431 |
esac >> confcache |
2432 |
if cmp -s $cache_file confcache; then |
2433 |
: |
2434 |
else |
2435 |
if test -w $cache_file; then |
2436 |
echo "updating cache $cache_file" |
2437 |
cat confcache > $cache_file |
2438 |
else |
2439 |
echo "not updating unwritable cache $cache_file" |
2440 |
fi |
2441 |
fi |
2442 |
rm -f confcache |
2443 |
|
2444 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
2445 |
|
2446 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
2447 |
# Let make expand exec_prefix. |
2448 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
2449 |
|
2450 |
# Any assignment to VPATH causes Sun make to only execute |
2451 |
# the first set of double-colon rules, so remove it if not needed. |
2452 |
# If there is a colon in the path, we need to keep it. |
2453 |
if test "x$srcdir" = x.; then |
2454 |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
2455 |
fi |
2456 |
|
2457 |
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
2458 |
|
2459 |
DEFS=-DHAVE_CONFIG_H |
2460 |
|
2461 |
# Without the "./", some shells look in PATH for config.status. |
2462 |
: ${CONFIG_STATUS=./config.status} |
2463 |
|
2464 |
echo creating $CONFIG_STATUS |
2465 |
rm -f $CONFIG_STATUS |
2466 |
cat > $CONFIG_STATUS <<EOF |
2467 |
#! /bin/sh |
2468 |
# Generated automatically by configure. |
2469 |
# Run this file to recreate the current configuration. |
2470 |
# This directory was configured as follows, |
2471 |
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
2472 |
# |
2473 |
# $0 $ac_configure_args |
2474 |
# |
2475 |
# Compiler output produced by configure, useful for debugging |
2476 |
# configure, is in ./config.log if it exists. |
2477 |
|
2478 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
2479 |
for ac_option |
2480 |
do |
2481 |
case "\$ac_option" in |
2482 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
2483 |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
2484 |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
2485 |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
2486 |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
2487 |
exit 0 ;; |
2488 |
-help | --help | --hel | --he | --h) |
2489 |
echo "\$ac_cs_usage"; exit 0 ;; |
2490 |
*) echo "\$ac_cs_usage"; exit 1 ;; |
2491 |
esac |
2492 |
done |
2493 |
|
2494 |
ac_given_srcdir=$srcdir |
2495 |
ac_given_INSTALL="$INSTALL" |
2496 |
|
2497 |
trap 'rm -fr `echo "Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
2498 |
EOF |
2499 |
cat >> $CONFIG_STATUS <<EOF |
2500 |
|
2501 |
# Protect against being on the right side of a sed subst in config.status. |
2502 |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
2503 |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
2504 |
$ac_vpsub |
2505 |
$extrasub |
2506 |
s%@SHELL@%$SHELL%g |
2507 |
s%@CFLAGS@%$CFLAGS%g |
2508 |
s%@CPPFLAGS@%$CPPFLAGS%g |
2509 |
s%@CXXFLAGS@%$CXXFLAGS%g |
2510 |
s%@FFLAGS@%$FFLAGS%g |
2511 |
s%@DEFS@%$DEFS%g |
2512 |
s%@LDFLAGS@%$LDFLAGS%g |
2513 |
s%@LIBS@%$LIBS%g |
2514 |
s%@exec_prefix@%$exec_prefix%g |
2515 |
s%@prefix@%$prefix%g |
2516 |
s%@program_transform_name@%$program_transform_name%g |
2517 |
s%@bindir@%$bindir%g |
2518 |
s%@sbindir@%$sbindir%g |
2519 |
s%@libexecdir@%$libexecdir%g |
2520 |
s%@datadir@%$datadir%g |
2521 |
s%@sysconfdir@%$sysconfdir%g |
2522 |
s%@sharedstatedir@%$sharedstatedir%g |
2523 |
s%@localstatedir@%$localstatedir%g |
2524 |
s%@libdir@%$libdir%g |
2525 |
s%@includedir@%$includedir%g |
2526 |
s%@oldincludedir@%$oldincludedir%g |
2527 |
s%@infodir@%$infodir%g |
2528 |
s%@mandir@%$mandir%g |
2529 |
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
2530 |
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
2531 |
s%@INSTALL_DATA@%$INSTALL_DATA%g |
2532 |
s%@PACKAGE@%$PACKAGE%g |
2533 |
s%@VERSION@%$VERSION%g |
2534 |
s%@ACLOCAL@%$ACLOCAL%g |
2535 |
s%@AUTOCONF@%$AUTOCONF%g |
2536 |
s%@AUTOMAKE@%$AUTOMAKE%g |
2537 |
s%@AUTOHEADER@%$AUTOHEADER%g |
2538 |
s%@MAKEINFO@%$MAKEINFO%g |
2539 |
s%@SET_MAKE@%$SET_MAKE%g |
2540 |
s%@host@%$host%g |
2541 |
s%@host_alias@%$host_alias%g |
2542 |
s%@host_cpu@%$host_cpu%g |
2543 |
s%@host_vendor@%$host_vendor%g |
2544 |
s%@host_os@%$host_os%g |
2545 |
s%@build@%$build%g |
2546 |
s%@build_alias@%$build_alias%g |
2547 |
s%@build_cpu@%$build_cpu%g |
2548 |
s%@build_vendor@%$build_vendor%g |
2549 |
s%@build_os@%$build_os%g |
2550 |
s%@RANLIB@%$RANLIB%g |
2551 |
s%@CC@%$CC%g |
2552 |
s%@LD@%$LD%g |
2553 |
s%@NM@%$NM%g |
2554 |
s%@LN_S@%$LN_S%g |
2555 |
s%@LIBTOOL@%$LIBTOOL%g |
2556 |
s%@LIB_MAGICK@%$LIB_MAGICK%g |
2557 |
s%@CPP@%$CPP%g |
2558 |
s%@INT_8_BIT@%$INT_8_BIT%g |
2559 |
s%@INT_16_BIT@%$INT_16_BIT%g |
2560 |
s%@INT_32_BIT@%$INT_32_BIT%g |
2561 |
s%@LIBOBJS@%$LIBOBJS%g |
2562 |
s%@HTMLDOCS_TRUE@%$HTMLDOCS_TRUE%g |
2563 |
s%@HTMLDOCS_FALSE@%$HTMLDOCS_FALSE%g |
2564 |
s%@HTML4DOCS_TRUE@%$HTML4DOCS_TRUE%g |
2565 |
s%@HTML4DOCS_FALSE@%$HTML4DOCS_FALSE%g |
2566 |
s%@ASCIIDOCS_TRUE@%$ASCIIDOCS_TRUE%g |
2567 |
s%@ASCIIDOCS_FALSE@%$ASCIIDOCS_FALSE%g |
2568 |
s%@RTFDOCS_TRUE@%$RTFDOCS_TRUE%g |
2569 |
s%@RTFDOCS_FALSE@%$RTFDOCS_FALSE%g |
2570 |
|
2571 |
CEOF |
2572 |
EOF |
2573 |
|
2574 |
cat >> $CONFIG_STATUS <<\EOF |
2575 |
|
2576 |
# Split the substitutions into bite-sized pieces for seds with |
2577 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
2578 |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
2579 |
ac_file=1 # Number of current file. |
2580 |
ac_beg=1 # First line for current file. |
2581 |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
2582 |
ac_more_lines=: |
2583 |
ac_sed_cmds="" |
2584 |
while $ac_more_lines; do |
2585 |
if test $ac_beg -gt 1; then |
2586 |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
2587 |
else |
2588 |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
2589 |
fi |
2590 |
if test ! -s conftest.s$ac_file; then |
2591 |
ac_more_lines=false |
2592 |
rm -f conftest.s$ac_file |
2593 |
else |
2594 |
if test -z "$ac_sed_cmds"; then |
2595 |
ac_sed_cmds="sed -f conftest.s$ac_file" |
2596 |
else |
2597 |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
2598 |
fi |
2599 |
ac_file=`expr $ac_file + 1` |
2600 |
ac_beg=$ac_end |
2601 |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
2602 |
fi |
2603 |
done |
2604 |
if test -z "$ac_sed_cmds"; then |
2605 |
ac_sed_cmds=cat |
2606 |
fi |
2607 |
EOF |
2608 |
|
2609 |
cat >> $CONFIG_STATUS <<EOF |
2610 |
|
2611 |
CONFIG_FILES=\${CONFIG_FILES-"Makefile compat/Makefile lib/Makefile psiconv/Makefile lib/general.h formats/Makefile docs/Makefile"} |
2612 |
EOF |
2613 |
cat >> $CONFIG_STATUS <<\EOF |
2614 |
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
2615 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2616 |
case "$ac_file" in |
2617 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
2618 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
2619 |
*) ac_file_in="${ac_file}.in" ;; |
2620 |
esac |
2621 |
|
2622 |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
2623 |
|
2624 |
# Remove last slash and all that follows it. Not all systems have dirname. |
2625 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
2626 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
2627 |
# The file is in a subdirectory. |
2628 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
2629 |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
2630 |
# A "../" for each directory in $ac_dir_suffix. |
2631 |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
2632 |
else |
2633 |
ac_dir_suffix= ac_dots= |
2634 |
fi |
2635 |
|
2636 |
case "$ac_given_srcdir" in |
2637 |
.) srcdir=. |
2638 |
if test -z "$ac_dots"; then top_srcdir=. |
2639 |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
2640 |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
2641 |
*) # Relative path. |
2642 |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
2643 |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
2644 |
esac |
2645 |
|
2646 |
case "$ac_given_INSTALL" in |
2647 |
[/$]*) INSTALL="$ac_given_INSTALL" ;; |
2648 |
*) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
2649 |
esac |
2650 |
|
2651 |
echo creating "$ac_file" |
2652 |
rm -f "$ac_file" |
2653 |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
2654 |
case "$ac_file" in |
2655 |
*Makefile*) ac_comsub="1i\\ |
2656 |
# $configure_input" ;; |
2657 |
*) ac_comsub= ;; |
2658 |
esac |
2659 |
|
2660 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
2661 |
sed -e "$ac_comsub |
2662 |
s%@configure_input@%$configure_input%g |
2663 |
s%@srcdir@%$srcdir%g |
2664 |
s%@top_srcdir@%$top_srcdir%g |
2665 |
s%@INSTALL@%$INSTALL%g |
2666 |
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
2667 |
fi; done |
2668 |
rm -f conftest.s* |
2669 |
|
2670 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
2671 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
2672 |
# |
2673 |
# ac_d sets the value in "#define NAME VALUE" lines. |
2674 |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
2675 |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
2676 |
ac_dC='\3' |
2677 |
ac_dD='%g' |
2678 |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
2679 |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
2680 |
ac_uB='\([ ]\)%\1#\2define\3' |
2681 |
ac_uC=' ' |
2682 |
ac_uD='\4%g' |
2683 |
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
2684 |
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
2685 |
ac_eB='$%\1#\2define\3' |
2686 |
ac_eC=' ' |
2687 |
ac_eD='%g' |
2688 |
|
2689 |
if test "${CONFIG_HEADERS+set}" != set; then |
2690 |
EOF |
2691 |
cat >> $CONFIG_STATUS <<EOF |
2692 |
CONFIG_HEADERS="config.h" |
2693 |
EOF |
2694 |
cat >> $CONFIG_STATUS <<\EOF |
2695 |
fi |
2696 |
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
2697 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
2698 |
case "$ac_file" in |
2699 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
2700 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
2701 |
*) ac_file_in="${ac_file}.in" ;; |
2702 |
esac |
2703 |
|
2704 |
echo creating $ac_file |
2705 |
|
2706 |
rm -f conftest.frag conftest.in conftest.out |
2707 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
2708 |
cat $ac_file_inputs > conftest.in |
2709 |
|
2710 |
EOF |
2711 |
|
2712 |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
2713 |
# the proper values into config.h.in to produce config.h. And first: |
2714 |
# Protect against being on the right side of a sed subst in config.status. |
2715 |
# Protect against being in an unquoted here document in config.status. |
2716 |
rm -f conftest.vals |
2717 |
cat > conftest.hdr <<\EOF |
2718 |
s/[\\&%]/\\&/g |
2719 |
s%[\\$`]%\\&%g |
2720 |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
2721 |
s%ac_d%ac_u%gp |
2722 |
s%ac_u%ac_e%gp |
2723 |
EOF |
2724 |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
2725 |
rm -f conftest.hdr |
2726 |
|
2727 |
# This sed command replaces #undef with comments. This is necessary, for |
2728 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
2729 |
# on some systems where configure will not decide to define it. |
2730 |
cat >> conftest.vals <<\EOF |
2731 |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
2732 |
EOF |
2733 |
|
2734 |
# Break up conftest.vals because some shells have a limit on |
2735 |
# the size of here documents, and old seds have small limits too. |
2736 |
|
2737 |
rm -f conftest.tail |
2738 |
while : |
2739 |
do |
2740 |
ac_lines=`grep -c . conftest.vals` |
2741 |
# grep -c gives empty output for an empty file on some AIX systems. |
2742 |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
2743 |
# Write a limited-size here document to conftest.frag. |
2744 |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
2745 |
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
2746 |
echo 'CEOF |
2747 |
sed -f conftest.frag conftest.in > conftest.out |
2748 |
rm -f conftest.in |
2749 |
mv conftest.out conftest.in |
2750 |
' >> $CONFIG_STATUS |
2751 |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
2752 |
rm -f conftest.vals |
2753 |
mv conftest.tail conftest.vals |
2754 |
done |
2755 |
rm -f conftest.vals |
2756 |
|
2757 |
cat >> $CONFIG_STATUS <<\EOF |
2758 |
rm -f conftest.frag conftest.h |
2759 |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
2760 |
cat conftest.in >> conftest.h |
2761 |
rm -f conftest.in |
2762 |
if cmp -s $ac_file conftest.h 2>/dev/null; then |
2763 |
echo "$ac_file is unchanged" |
2764 |
rm -f conftest.h |
2765 |
else |
2766 |
# Remove last slash and all that follows it. Not all systems have dirname. |
2767 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
2768 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
2769 |
# The file is in a subdirectory. |
2770 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
2771 |
fi |
2772 |
rm -f $ac_file |
2773 |
mv conftest.h $ac_file |
2774 |
fi |
2775 |
fi; done |
2776 |
|
2777 |
EOF |
2778 |
cat >> $CONFIG_STATUS <<EOF |
2779 |
|
2780 |
|
2781 |
EOF |
2782 |
cat >> $CONFIG_STATUS <<\EOF |
2783 |
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
2784 |
|
2785 |
exit 0 |
2786 |
EOF |
2787 |
chmod +x $CONFIG_STATUS |
2788 |
rm -fr confdefs* $ac_clean_files |
2789 |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
2790 |
|