/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Annotate of /cvsgraph/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.14 - (show annotations)
Thu Oct 21 20:08:42 2004 UTC (13 years, 1 month ago) by bertho
Branch: MAIN
CVS Tags: REL_1_5_1
Changes since 1.13: +795 -356 lines
Implement selection of png compression level with image_compress and enable
interlacing (progressive load) for both png and jpeg images with image_interlace.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="cvsgraph.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT YACC CPP EGREP LEXFLAGS INTTYPE LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833 _ACEOF
834 fi
835
836 if test -n "$ac_init_help"; then
837
838 cat <<\_ACEOF
839
840 Optional Features:
841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843 --disable-speed Turn off lex table optimization reducing speed and size of executable
844
845 Optional Packages:
846 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
847 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
848 --with-gd-inc=DIR location of the gd includes
849 --with-gd-lib=DIR location of the gd library
850 --with-freetype-lib=DIR location of freetype library
851 --with-freetype2-lib=DIR location of freetype2 library
852 --with-png-inc=DIR location of png includes
853 --with-png-lib=DIR location of png library
854 --with-jpeg-inc=DIR location of jpeg includes
855 --with-jpeg-lib=DIR location of jpeg library
856 --with-z-inc=DIR location of zlib includes
857 --with-z-lib=DIR location of zlib library
858
859 Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
866 CPP C preprocessor
867
868 Use these variables to override the choices made by `configure' or to help
869 it to find libraries and programs with nonstandard names/locations.
870
871 _ACEOF
872 fi
873
874 if test "$ac_init_help" = "recursive"; then
875 # If there are subdirs, report their specific --help.
876 ac_popdir=`pwd`
877 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878 test -d $ac_dir || continue
879 ac_builddir=.
880
881 if test "$ac_dir" != .; then
882 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883 # A "../" for each directory in $ac_dir_suffix.
884 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885 else
886 ac_dir_suffix= ac_top_builddir=
887 fi
888
889 case $srcdir in
890 .) # No --srcdir option. We are building in place.
891 ac_srcdir=.
892 if test -z "$ac_top_builddir"; then
893 ac_top_srcdir=.
894 else
895 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896 fi ;;
897 [\\/]* | ?:[\\/]* ) # Absolute path.
898 ac_srcdir=$srcdir$ac_dir_suffix;
899 ac_top_srcdir=$srcdir ;;
900 *) # Relative path.
901 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902 ac_top_srcdir=$ac_top_builddir$srcdir ;;
903 esac
904
905 # Do not use `cd foo && pwd` to compute absolute paths, because
906 # the directories may not exist.
907 case `pwd` in
908 .) ac_abs_builddir="$ac_dir";;
909 *)
910 case "$ac_dir" in
911 .) ac_abs_builddir=`pwd`;;
912 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
913 *) ac_abs_builddir=`pwd`/"$ac_dir";;
914 esac;;
915 esac
916 case $ac_abs_builddir in
917 .) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *)
919 case ${ac_top_builddir}. in
920 .) ac_abs_top_builddir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_srcdir=$ac_srcdir;;
927 *)
928 case $ac_srcdir in
929 .) ac_abs_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
931 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
932 esac;;
933 esac
934 case $ac_abs_builddir in
935 .) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *)
937 case $ac_top_srcdir in
938 .) ac_abs_top_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
941 esac;;
942 esac
943
944 cd $ac_dir
945 # Check for guested configure; otherwise get Cygnus style configure.
946 if test -f $ac_srcdir/configure.gnu; then
947 echo
948 $SHELL $ac_srcdir/configure.gnu --help=recursive
949 elif test -f $ac_srcdir/configure; then
950 echo
951 $SHELL $ac_srcdir/configure --help=recursive
952 elif test -f $ac_srcdir/configure.ac ||
953 test -f $ac_srcdir/configure.in; then
954 echo
955 $ac_configure --help
956 else
957 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958 fi
959 cd $ac_popdir
960 done
961 fi
962
963 test -n "$ac_init_help" && exit 0
964 if $ac_init_version; then
965 cat <<\_ACEOF
966
967 Copyright (C) 2003 Free Software Foundation, Inc.
968 This configure script is free software; the Free Software Foundation
969 gives unlimited permission to copy, distribute and modify it.
970 _ACEOF
971 exit 0
972 fi
973 exec 5>config.log
974 cat >&5 <<_ACEOF
975 This file contains any messages produced by compilers while
976 running configure, to aid debugging if configure makes a mistake.
977
978 It was created by $as_me, which was
979 generated by GNU Autoconf 2.59. Invocation command line was
980
981 $ $0 $@
982
983 _ACEOF
984 {
985 cat <<_ASUNAME
986 ## --------- ##
987 ## Platform. ##
988 ## --------- ##
989
990 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
991 uname -m = `(uname -m) 2>/dev/null || echo unknown`
992 uname -r = `(uname -r) 2>/dev/null || echo unknown`
993 uname -s = `(uname -s) 2>/dev/null || echo unknown`
994 uname -v = `(uname -v) 2>/dev/null || echo unknown`
995
996 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
997 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
998
999 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1000 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1001 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1002 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1003 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1004 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1005 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006
1007 _ASUNAME
1008
1009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010 for as_dir in $PATH
1011 do
1012 IFS=$as_save_IFS
1013 test -z "$as_dir" && as_dir=.
1014 echo "PATH: $as_dir"
1015 done
1016
1017 } >&5
1018
1019 cat >&5 <<_ACEOF
1020
1021
1022 ## ----------- ##
1023 ## Core tests. ##
1024 ## ----------- ##
1025
1026 _ACEOF
1027
1028
1029 # Keep a trace of the command line.
1030 # Strip out --no-create and --no-recursion so they do not pile up.
1031 # Strip out --silent because we don't want to record it for future runs.
1032 # Also quote any args containing shell meta-characters.
1033 # Make two passes to allow for proper duplicate-argument suppression.
1034 ac_configure_args=
1035 ac_configure_args0=
1036 ac_configure_args1=
1037 ac_sep=
1038 ac_must_keep_next=false
1039 for ac_pass in 1 2
1040 do
1041 for ac_arg
1042 do
1043 case $ac_arg in
1044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 continue ;;
1048 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1049 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1050 esac
1051 case $ac_pass in
1052 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1053 2)
1054 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1055 if test $ac_must_keep_next = true; then
1056 ac_must_keep_next=false # Got value, back to normal.
1057 else
1058 case $ac_arg in
1059 *=* | --config-cache | -C | -disable-* | --disable-* \
1060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1062 | -with-* | --with-* | -without-* | --without-* | --x)
1063 case "$ac_configure_args0 " in
1064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1065 esac
1066 ;;
1067 -* ) ac_must_keep_next=true ;;
1068 esac
1069 fi
1070 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1071 # Get rid of the leading space.
1072 ac_sep=" "
1073 ;;
1074 esac
1075 done
1076 done
1077 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1078 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1079
1080 # When interrupted or exit'd, cleanup temporary files, and complete
1081 # config.log. We remove comments because anyway the quotes in there
1082 # would cause problems or look ugly.
1083 # WARNING: Be sure not to use single quotes in there, as some shells,
1084 # such as our DU 5.0 friend, will then `close' the trap.
1085 trap 'exit_status=$?
1086 # Save into config.log some information that might help in debugging.
1087 {
1088 echo
1089
1090 cat <<\_ASBOX
1091 ## ---------------- ##
1092 ## Cache variables. ##
1093 ## ---------------- ##
1094 _ASBOX
1095 echo
1096 # The following way of writing the cache mishandles newlines in values,
1097 {
1098 (set) 2>&1 |
1099 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1100 *ac_space=\ *)
1101 sed -n \
1102 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104 ;;
1105 *)
1106 sed -n \
1107 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1108 ;;
1109 esac;
1110 }
1111 echo
1112
1113 cat <<\_ASBOX
1114 ## ----------------- ##
1115 ## Output variables. ##
1116 ## ----------------- ##
1117 _ASBOX
1118 echo
1119 for ac_var in $ac_subst_vars
1120 do
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1123 done | sort
1124 echo
1125
1126 if test -n "$ac_subst_files"; then
1127 cat <<\_ASBOX
1128 ## ------------- ##
1129 ## Output files. ##
1130 ## ------------- ##
1131 _ASBOX
1132 echo
1133 for ac_var in $ac_subst_files
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139 fi
1140
1141 if test -s confdefs.h; then
1142 cat <<\_ASBOX
1143 ## ----------- ##
1144 ## confdefs.h. ##
1145 ## ----------- ##
1146 _ASBOX
1147 echo
1148 sed "/^$/d" confdefs.h | sort
1149 echo
1150 fi
1151 test "$ac_signal" != 0 &&
1152 echo "$as_me: caught signal $ac_signal"
1153 echo "$as_me: exit $exit_status"
1154 } >&5
1155 rm -f core *.core &&
1156 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1157 exit $exit_status
1158 ' 0
1159 for ac_signal in 1 2 13 15; do
1160 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161 done
1162 ac_signal=0
1163
1164 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1165 rm -rf conftest* confdefs.h
1166 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1167 echo >confdefs.h
1168
1169 # Predefined preprocessor variables.
1170
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_NAME "$PACKAGE_NAME"
1173 _ACEOF
1174
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_STRING "$PACKAGE_STRING"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193 _ACEOF
1194
1195
1196 # Let the site file select an alternate cache file if it wants to.
1197 # Prefer explicitly selected file to automatically selected ones.
1198 if test -z "$CONFIG_SITE"; then
1199 if test "x$prefix" != xNONE; then
1200 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1201 else
1202 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1203 fi
1204 fi
1205 for ac_site_file in $CONFIG_SITE; do
1206 if test -r "$ac_site_file"; then
1207 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1208 echo "$as_me: loading site script $ac_site_file" >&6;}
1209 sed 's/^/| /' "$ac_site_file" >&5
1210 . "$ac_site_file"
1211 fi
1212 done
1213
1214 if test -r "$cache_file"; then
1215 # Some versions of bash will fail to source /dev/null (special
1216 # files actually), so we avoid doing that.
1217 if test -f "$cache_file"; then
1218 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1219 echo "$as_me: loading cache $cache_file" >&6;}
1220 case $cache_file in
1221 [\\/]* | ?:[\\/]* ) . $cache_file;;
1222 *) . ./$cache_file;;
1223 esac
1224 fi
1225 else
1226 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1227 echo "$as_me: creating cache $cache_file" >&6;}
1228 >$cache_file
1229 fi
1230
1231 # Check that the precious variables saved in the cache have kept the same
1232 # value.
1233 ac_cache_corrupted=false
1234 for ac_var in `(set) 2>&1 |
1235 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1236 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1237 eval ac_new_set=\$ac_env_${ac_var}_set
1238 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1239 eval ac_new_val="\$ac_env_${ac_var}_value"
1240 case $ac_old_set,$ac_new_set in
1241 set,)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1243 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,set)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,);;
1250 *)
1251 if test "x$ac_old_val" != "x$ac_new_val"; then
1252 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1253 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1254 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1255 echo "$as_me: former value: $ac_old_val" >&2;}
1256 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1257 echo "$as_me: current value: $ac_new_val" >&2;}
1258 ac_cache_corrupted=:
1259 fi;;
1260 esac
1261 # Pass precious variables to config.status.
1262 if test "$ac_new_set" = set; then
1263 case $ac_new_val in
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 *) ac_arg=$ac_var=$ac_new_val ;;
1267 esac
1268 case " $ac_configure_args " in
1269 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1270 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271 esac
1272 fi
1273 done
1274 if $ac_cache_corrupted; then
1275 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1276 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1277 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1278 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1279 { (exit 1); exit 1; }; }
1280 fi
1281
1282 ac_ext=c
1283 ac_cpp='$CPP $CPPFLAGS'
1284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306 ac_config_headers="$ac_config_headers config.h"
1307
1308
1309 ac_ext=c
1310 ac_cpp='$CPP $CPPFLAGS'
1311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314 if test -n "$ac_tool_prefix"; then
1315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1317 echo "$as_me:$LINENO: checking for $ac_word" >&5
1318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1319 if test "${ac_cv_prog_CC+set}" = set; then
1320 echo $ECHO_N "(cached) $ECHO_C" >&6
1321 else
1322 if test -n "$CC"; then
1323 ac_cv_prog_CC="$CC" # Let the user override the test.
1324 else
1325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1326 for as_dir in $PATH
1327 do
1328 IFS=$as_save_IFS
1329 test -z "$as_dir" && as_dir=.
1330 for ac_exec_ext in '' $ac_executable_extensions; do
1331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1332 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1334 break 2
1335 fi
1336 done
1337 done
1338
1339 fi
1340 fi
1341 CC=$ac_cv_prog_CC
1342 if test -n "$CC"; then
1343 echo "$as_me:$LINENO: result: $CC" >&5
1344 echo "${ECHO_T}$CC" >&6
1345 else
1346 echo "$as_me:$LINENO: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1348 fi
1349
1350 fi
1351 if test -z "$ac_cv_prog_CC"; then
1352 ac_ct_CC=$CC
1353 # Extract the first word of "gcc", so it can be a program name with args.
1354 set dummy gcc; ac_word=$2
1355 echo "$as_me:$LINENO: checking for $ac_word" >&5
1356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360 if test -n "$ac_ct_CC"; then
1361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1362 else
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 for as_dir in $PATH
1365 do
1366 IFS=$as_save_IFS
1367 test -z "$as_dir" && as_dir=.
1368 for ac_exec_ext in '' $ac_executable_extensions; do
1369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1370 ac_cv_prog_ac_ct_CC="gcc"
1371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1372 break 2
1373 fi
1374 done
1375 done
1376
1377 fi
1378 fi
1379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1380 if test -n "$ac_ct_CC"; then
1381 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1382 echo "${ECHO_T}$ac_ct_CC" >&6
1383 else
1384 echo "$as_me:$LINENO: result: no" >&5
1385 echo "${ECHO_T}no" >&6
1386 fi
1387
1388 CC=$ac_ct_CC
1389 else
1390 CC="$ac_cv_prog_CC"
1391 fi
1392
1393 if test -z "$CC"; then
1394 if test -n "$ac_tool_prefix"; then
1395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1396 set dummy ${ac_tool_prefix}cc; ac_word=$2
1397 echo "$as_me:$LINENO: checking for $ac_word" >&5
1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399 if test "${ac_cv_prog_CC+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 else
1402 if test -n "$CC"; then
1403 ac_cv_prog_CC="$CC" # Let the user override the test.
1404 else
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1407 do
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 for ac_exec_ext in '' $ac_executable_extensions; do
1411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412 ac_cv_prog_CC="${ac_tool_prefix}cc"
1413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414 break 2
1415 fi
1416 done
1417 done
1418
1419 fi
1420 fi
1421 CC=$ac_cv_prog_CC
1422 if test -n "$CC"; then
1423 echo "$as_me:$LINENO: result: $CC" >&5
1424 echo "${ECHO_T}$CC" >&6
1425 else
1426 echo "$as_me:$LINENO: result: no" >&5
1427 echo "${ECHO_T}no" >&6
1428 fi
1429
1430 fi
1431 if test -z "$ac_cv_prog_CC"; then
1432 ac_ct_CC=$CC
1433 # Extract the first word of "cc", so it can be a program name with args.
1434 set dummy cc; ac_word=$2
1435 echo "$as_me:$LINENO: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 else
1440 if test -n "$ac_ct_CC"; then
1441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1442 else
1443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444 for as_dir in $PATH
1445 do
1446 IFS=$as_save_IFS
1447 test -z "$as_dir" && as_dir=.
1448 for ac_exec_ext in '' $ac_executable_extensions; do
1449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1450 ac_cv_prog_ac_ct_CC="cc"
1451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1452 break 2
1453 fi
1454 done
1455 done
1456
1457 fi
1458 fi
1459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1460 if test -n "$ac_ct_CC"; then
1461 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1462 echo "${ECHO_T}$ac_ct_CC" >&6
1463 else
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1466 fi
1467
1468 CC=$ac_ct_CC
1469 else
1470 CC="$ac_cv_prog_CC"
1471 fi
1472
1473 fi
1474 if test -z "$CC"; then
1475 # Extract the first word of "cc", so it can be a program name with args.
1476 set dummy cc; ac_word=$2
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1479 if test "${ac_cv_prog_CC+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 else
1482 if test -n "$CC"; then
1483 ac_cv_prog_CC="$CC" # Let the user override the test.
1484 else
1485 ac_prog_rejected=no
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1494 ac_prog_rejected=yes
1495 continue
1496 fi
1497 ac_cv_prog_CC="cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501 done
1502 done
1503
1504 if test $ac_prog_rejected = yes; then
1505 # We found a bogon in the path, so make sure we never use it.
1506 set dummy $ac_cv_prog_CC
1507 shift
1508 if test $# != 0; then
1509 # We chose a different compiler from the bogus one.
1510 # However, it has the same basename, so the bogon will be chosen
1511 # first if we set CC to just the basename; use the full file name.
1512 shift
1513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1514 fi
1515 fi
1516 fi
1517 fi
1518 CC=$ac_cv_prog_CC
1519 if test -n "$CC"; then
1520 echo "$as_me:$LINENO: result: $CC" >&5
1521 echo "${ECHO_T}$CC" >&6
1522 else
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527 fi
1528 if test -z "$CC"; then
1529 if test -n "$ac_tool_prefix"; then
1530 for ac_prog in cl
1531 do
1532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1534 echo "$as_me:$LINENO: checking for $ac_word" >&5
1535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1536 if test "${ac_cv_prog_CC+set}" = set; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539 if test -n "$CC"; then
1540 ac_cv_prog_CC="$CC" # Let the user override the test.
1541 else
1542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 for as_dir in $PATH
1544 do
1545 IFS=$as_save_IFS
1546 test -z "$as_dir" && as_dir=.
1547 for ac_exec_ext in '' $ac_executable_extensions; do
1548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1549 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 break 2
1552 fi
1553 done
1554 done
1555
1556 fi
1557 fi
1558 CC=$ac_cv_prog_CC
1559 if test -n "$CC"; then
1560 echo "$as_me:$LINENO: result: $CC" >&5
1561 echo "${ECHO_T}$CC" >&6
1562 else
1563 echo "$as_me:$LINENO: result: no" >&5
1564 echo "${ECHO_T}no" >&6
1565 fi
1566
1567 test -n "$CC" && break
1568 done
1569 fi
1570 if test -z "$CC"; then
1571 ac_ct_CC=$CC
1572 for ac_prog in cl
1573 do
1574 # Extract the first word of "$ac_prog", so it can be a program name with args.
1575 set dummy $ac_prog; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581 if test -n "$ac_ct_CC"; then
1582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 for ac_exec_ext in '' $ac_executable_extensions; do
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591 ac_cv_prog_ac_ct_CC="$ac_prog"
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 break 2
1594 fi
1595 done
1596 done
1597
1598 fi
1599 fi
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1604 else
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609 test -n "$ac_ct_CC" && break
1610 done
1611
1612 CC=$ac_ct_CC
1613 fi
1614
1615 fi
1616
1617
1618 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1619 See \`config.log' for more details." >&5
1620 echo "$as_me: error: no acceptable C compiler found in \$PATH
1621 See \`config.log' for more details." >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624 # Provide some information about the compiler.
1625 echo "$as_me:$LINENO:" \
1626 "checking for C compiler version" >&5
1627 ac_compiler=`set X $ac_compile; echo $2`
1628 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1629 (eval $ac_compiler --version </dev/null >&5) 2>&5
1630 ac_status=$?
1631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1632 (exit $ac_status); }
1633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1634 (eval $ac_compiler -v </dev/null >&5) 2>&5
1635 ac_status=$?
1636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1637 (exit $ac_status); }
1638 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1639 (eval $ac_compiler -V </dev/null >&5) 2>&5
1640 ac_status=$?
1641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1642 (exit $ac_status); }
1643
1644 cat >conftest.$ac_ext <<_ACEOF
1645 /* confdefs.h. */
1646 _ACEOF
1647 cat confdefs.h >>conftest.$ac_ext
1648 cat >>conftest.$ac_ext <<_ACEOF
1649 /* end confdefs.h. */
1650
1651 int
1652 main ()
1653 {
1654
1655 ;
1656 return 0;
1657 }
1658 _ACEOF
1659 ac_clean_files_save=$ac_clean_files
1660 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1661 # Try to create an executable without -o first, disregard a.out.
1662 # It will help us diagnose broken compilers, and finding out an intuition
1663 # of exeext.
1664 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1665 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1666 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1667 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1668 (eval $ac_link_default) 2>&5
1669 ac_status=$?
1670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1671 (exit $ac_status); }; then
1672 # Find the output, starting from the most likely. This scheme is
1673 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1674 # resort.
1675
1676 # Be careful to initialize this variable, since it used to be cached.
1677 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1678 ac_cv_exeext=
1679 # b.out is created by i960 compilers.
1680 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1681 do
1682 test -f "$ac_file" || continue
1683 case $ac_file in
1684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1685 ;;
1686 conftest.$ac_ext )
1687 # This is the source file.
1688 ;;
1689 [ab].out )
1690 # We found the default executable, but exeext='' is most
1691 # certainly right.
1692 break;;
1693 *.* )
1694 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1695 # FIXME: I believe we export ac_cv_exeext for Libtool,
1696 # but it would be cool to find out if it's true. Does anybody
1697 # maintain Libtool? --akim.
1698 export ac_cv_exeext
1699 break;;
1700 * )
1701 break;;
1702 esac
1703 done
1704 else
1705 echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1709 See \`config.log' for more details." >&5
1710 echo "$as_me: error: C compiler cannot create executables
1711 See \`config.log' for more details." >&2;}
1712 { (exit 77); exit 77; }; }
1713 fi
1714
1715 ac_exeext=$ac_cv_exeext
1716 echo "$as_me:$LINENO: result: $ac_file" >&5
1717 echo "${ECHO_T}$ac_file" >&6
1718
1719 # Check the compiler produces executables we can run. If not, either
1720 # the compiler is broken, or we cross compile.
1721 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1722 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1723 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1724 # If not cross compiling, check that we can run a simple program.
1725 if test "$cross_compiling" != yes; then
1726 if { ac_try='./$ac_file'
1727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1728 (eval $ac_try) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; }; then
1732 cross_compiling=no
1733 else
1734 if test "$cross_compiling" = maybe; then
1735 cross_compiling=yes
1736 else
1737 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1738 If you meant to cross compile, use \`--host'.
1739 See \`config.log' for more details." >&5
1740 echo "$as_me: error: cannot run C compiled programs.
1741 If you meant to cross compile, use \`--host'.
1742 See \`config.log' for more details." >&2;}
1743 { (exit 1); exit 1; }; }
1744 fi
1745 fi
1746 fi
1747 echo "$as_me:$LINENO: result: yes" >&5
1748 echo "${ECHO_T}yes" >&6
1749
1750 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1751 ac_clean_files=$ac_clean_files_save
1752 # Check the compiler produces executables we can run. If not, either
1753 # the compiler is broken, or we cross compile.
1754 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1755 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1756 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1757 echo "${ECHO_T}$cross_compiling" >&6
1758
1759 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1760 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1762 (eval $ac_link) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }; then
1766 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1767 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1768 # work properly (i.e., refer to `conftest.exe'), while it won't with
1769 # `rm'.
1770 for ac_file in conftest.exe conftest conftest.*; do
1771 test -f "$ac_file" || continue
1772 case $ac_file in
1773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1774 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1775 export ac_cv_exeext
1776 break;;
1777 * ) break;;
1778 esac
1779 done
1780 else
1781 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1784 See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1786 fi
1787
1788 rm -f conftest$ac_cv_exeext
1789 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1790 echo "${ECHO_T}$ac_cv_exeext" >&6
1791
1792 rm -f conftest.$ac_ext
1793 EXEEXT=$ac_cv_exeext
1794 ac_exeext=$EXEEXT
1795 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1796 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1797 if test "${ac_cv_objext+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 cat >conftest.$ac_ext <<_ACEOF
1801 /* confdefs.h. */
1802 _ACEOF
1803 cat confdefs.h >>conftest.$ac_ext
1804 cat >>conftest.$ac_ext <<_ACEOF
1805 /* end confdefs.h. */
1806
1807 int
1808 main ()
1809 {
1810
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 rm -f conftest.o conftest.obj
1816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1817 (eval $ac_compile) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; then
1821 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1822 case $ac_file in
1823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1824 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1825 break;;
1826 esac
1827 done
1828 else
1829 echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1837 fi
1838
1839 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1840 fi
1841 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1842 echo "${ECHO_T}$ac_cv_objext" >&6
1843 OBJEXT=$ac_cv_objext
1844 ac_objext=$OBJEXT
1845 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1846 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1847 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 cat >conftest.$ac_ext <<_ACEOF
1851 /* confdefs.h. */
1852 _ACEOF
1853 cat confdefs.h >>conftest.$ac_ext
1854 cat >>conftest.$ac_ext <<_ACEOF
1855 /* end confdefs.h. */
1856
1857 int
1858 main ()
1859 {
1860 #ifndef __GNUC__
1861 choke me
1862 #endif
1863
1864 ;
1865 return 0;
1866 }
1867 _ACEOF
1868 rm -f conftest.$ac_objext
1869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1870 (eval $ac_compile) 2>conftest.er1
1871 ac_status=$?
1872 grep -v '^ *+' conftest.er1 >conftest.err
1873 rm -f conftest.er1
1874 cat conftest.err >&5
1875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1876 (exit $ac_status); } &&
1877 { ac_try='test -z "$ac_c_werror_flag"
1878 || test ! -s conftest.err'
1879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1880 (eval $ac_try) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; } &&
1884 { ac_try='test -s conftest.$ac_objext'
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886 (eval $ac_try) 2>&5
1887 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1890 ac_compiler_gnu=yes
1891 else
1892 echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_compiler_gnu=no
1896 fi
1897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1899
1900 fi
1901 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1902 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1903 GCC=`test $ac_compiler_gnu = yes && echo yes`
1904 ac_test_CFLAGS=${CFLAGS+set}
1905 ac_save_CFLAGS=$CFLAGS
1906 CFLAGS="-g"
1907 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1908 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1909 if test "${ac_cv_prog_cc_g+set}" = set; then
1910 echo $ECHO_N "(cached) $ECHO_C" >&6
1911 else
1912 cat >conftest.$ac_ext <<_ACEOF
1913 /* confdefs.h. */
1914 _ACEOF
1915 cat confdefs.h >>conftest.$ac_ext
1916 cat >>conftest.$ac_ext <<_ACEOF
1917 /* end confdefs.h. */
1918
1919 int
1920 main ()
1921 {
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 rm -f conftest.$ac_objext
1928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1929 (eval $ac_compile) 2>conftest.er1
1930 ac_status=$?
1931 grep -v '^ *+' conftest.er1 >conftest.err
1932 rm -f conftest.er1
1933 cat conftest.err >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); } &&
1936 { ac_try='test -z "$ac_c_werror_flag"
1937 || test ! -s conftest.err'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 (eval $ac_try) 2>&5
1940 ac_status=$?
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; } &&
1943 { ac_try='test -s conftest.$ac_objext'
1944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945 (eval $ac_try) 2>&5
1946 ac_status=$?
1947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948 (exit $ac_status); }; }; then
1949 ac_cv_prog_cc_g=yes
1950 else
1951 echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_cv_prog_cc_g=no
1955 fi
1956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1957 fi
1958 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1959 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1960 if test "$ac_test_CFLAGS" = set; then
1961 CFLAGS=$ac_save_CFLAGS
1962 elif test $ac_cv_prog_cc_g = yes; then
1963 if test "$GCC" = yes; then
1964 CFLAGS="-g -O2"
1965 else
1966 CFLAGS="-g"
1967 fi
1968 else
1969 if test "$GCC" = yes; then
1970 CFLAGS="-O2"
1971 else
1972 CFLAGS=
1973 fi
1974 fi
1975 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1976 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1977 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980 ac_cv_prog_cc_stdc=no
1981 ac_save_CC=$CC
1982 cat >conftest.$ac_ext <<_ACEOF
1983 /* confdefs.h. */
1984 _ACEOF
1985 cat confdefs.h >>conftest.$ac_ext
1986 cat >>conftest.$ac_ext <<_ACEOF
1987 /* end confdefs.h. */
1988 #include <stdarg.h>
1989 #include <stdio.h>
1990 #include <sys/types.h>
1991 #include <sys/stat.h>
1992 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1993 struct buf { int x; };
1994 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1995 static char *e (p, i)
1996 char **p;
1997 int i;
1998 {
1999 return p[i];
2000 }
2001 static char *f (char * (*g) (char **, int), char **p, ...)
2002 {
2003 char *s;
2004 va_list v;
2005 va_start (v,p);
2006 s = g (p, va_arg (v,int));
2007 va_end (v);
2008 return s;
2009 }
2010
2011 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2012 function prototypes and stuff, but not '\xHH' hex character constants.
2013 These don't provoke an error unfortunately, instead are silently treated
2014 as 'x'. The following induces an error, until -std1 is added to get
2015 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2016 array size at least. It's necessary to write '\x00'==0 to get something
2017 that's true only with -std1. */
2018 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2019
2020 int test (int i, double x);
2021 struct s1 {int (*f) (int a);};
2022 struct s2 {int (*f) (double a);};
2023 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2024 int argc;
2025 char **argv;
2026 int
2027 main ()
2028 {
2029 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2030 ;
2031 return 0;
2032 }
2033 _ACEOF
2034 # Don't try gcc -ansi; that turns off useful extensions and
2035 # breaks some systems' header files.
2036 # AIX -qlanglvl=ansi
2037 # Ultrix and OSF/1 -std1
2038 # HP-UX 10.20 and later -Ae
2039 # HP-UX older versions -Aa -D_HPUX_SOURCE
2040 # SVR4 -Xc -D__EXTENSIONS__
2041 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2042 do
2043 CC="$ac_save_CC $ac_arg"
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>conftest.er1
2047 ac_status=$?
2048 grep -v '^ *+' conftest.er1 >conftest.err
2049 rm -f conftest.er1
2050 cat conftest.err >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try='test -z "$ac_c_werror_flag"
2054 || test ! -s conftest.err'
2055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056 (eval $ac_try) 2>&5
2057 ac_status=$?
2058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2059 (exit $ac_status); }; } &&
2060 { ac_try='test -s conftest.$ac_objext'
2061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062 (eval $ac_try) 2>&5
2063 ac_status=$?
2064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2065 (exit $ac_status); }; }; then
2066 ac_cv_prog_cc_stdc=$ac_arg
2067 break
2068 else
2069 echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 fi
2073 rm -f conftest.err conftest.$ac_objext
2074 done
2075 rm -f conftest.$ac_ext conftest.$ac_objext
2076 CC=$ac_save_CC
2077
2078 fi
2079
2080 case "x$ac_cv_prog_cc_stdc" in
2081 x|xno)
2082 echo "$as_me:$LINENO: result: none needed" >&5
2083 echo "${ECHO_T}none needed" >&6 ;;
2084 *)
2085 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2086 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2087 CC="$CC $ac_cv_prog_cc_stdc" ;;
2088 esac
2089
2090 # Some people use a C++ compiler to compile C. Since we use `exit',
2091 # in C++ we need to declare it. In case someone uses the same compiler
2092 # for both compiling C and C++ we need to have the C++ compiler decide
2093 # the declaration of exit, since it's the most demanding environment.
2094 cat >conftest.$ac_ext <<_ACEOF
2095 #ifndef __cplusplus
2096 choke me
2097 #endif
2098 _ACEOF
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101 (eval $ac_compile) 2>conftest.er1
2102 ac_status=$?
2103 grep -v '^ *+' conftest.er1 >conftest.err
2104 rm -f conftest.er1
2105 cat conftest.err >&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); } &&
2108 { ac_try='test -z "$ac_c_werror_flag"
2109 || test ! -s conftest.err'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; } &&
2115 { ac_try='test -s conftest.$ac_objext'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2121 for ac_declaration in \
2122 '' \
2123 'extern "C" void std::exit (int) throw (); using std::exit;' \
2124 'extern "C" void std::exit (int); using std::exit;' \
2125 'extern "C" void exit (int) throw ();' \
2126 'extern "C" void exit (int);' \
2127 'void exit (int);'
2128 do
2129 cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h. */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2135 $ac_declaration
2136 #include <stdlib.h>
2137 int
2138 main ()
2139 {
2140 exit (42);
2141 ;
2142 return 0;
2143 }
2144 _ACEOF
2145 rm -f conftest.$ac_objext
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>conftest.er1
2148 ac_status=$?
2149 grep -v '^ *+' conftest.er1 >conftest.err
2150 rm -f conftest.er1
2151 cat conftest.err >&5
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); } &&
2154 { ac_try='test -z "$ac_c_werror_flag"
2155 || test ! -s conftest.err'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; } &&
2161 { ac_try='test -s conftest.$ac_objext'
2162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 (eval $ac_try) 2>&5
2164 ac_status=$?
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; }; then
2167 :
2168 else
2169 echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2171
2172 continue
2173 fi
2174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175 cat >conftest.$ac_ext <<_ACEOF
2176 /* confdefs.h. */
2177 _ACEOF
2178 cat confdefs.h >>conftest.$ac_ext
2179 cat >>conftest.$ac_ext <<_ACEOF
2180 /* end confdefs.h. */
2181 $ac_declaration
2182 int
2183 main ()
2184 {
2185 exit (42);
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 rm -f conftest.$ac_objext
2191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2192 (eval $ac_compile) 2>conftest.er1
2193 ac_status=$?
2194 grep -v '^ *+' conftest.er1 >conftest.err
2195 rm -f conftest.er1
2196 cat conftest.err >&5
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); } &&
2199 { ac_try='test -z "$ac_c_werror_flag"
2200 || test ! -s conftest.err'
2201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 (eval $ac_try) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; } &&
2206 { ac_try='test -s conftest.$ac_objext'
2207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 (eval $ac_try) 2>&5
2209 ac_status=$?
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; }; then
2212 break
2213 else
2214 echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2216
2217 fi
2218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219 done
2220 rm -f conftest*
2221 if test -n "$ac_declaration"; then
2222 echo '#ifdef __cplusplus' >>confdefs.h
2223 echo $ac_declaration >>confdefs.h
2224 echo '#endif' >>confdefs.h
2225 fi
2226
2227 else
2228 echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230
2231 fi
2232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2233 ac_ext=c
2234 ac_cpp='$CPP $CPPFLAGS'
2235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238
2239
2240 for ac_prog in flex lex
2241 do
2242 # Extract the first word of "$ac_prog", so it can be a program name with args.
2243 set dummy $ac_prog; ac_word=$2
2244 echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2246 if test "${ac_cv_prog_LEX+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249 if test -n "$LEX"; then
2250 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2251 else
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2254 do
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2259 ac_cv_prog_LEX="$ac_prog"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2262 fi
2263 done
2264 done
2265
2266 fi
2267 fi
2268 LEX=$ac_cv_prog_LEX
2269 if test -n "$LEX"; then
2270 echo "$as_me:$LINENO: result: $LEX" >&5
2271 echo "${ECHO_T}$LEX" >&6
2272 else
2273 echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6
2275 fi
2276
2277 test -n "$LEX" && break
2278 done
2279 test -n "$LEX" || LEX=":"
2280
2281 if test -z "$LEXLIB"
2282 then
2283 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
2284 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
2285 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 ac_check_lib_save_LIBS=$LIBS
2289 LIBS="-lfl $LIBS"
2290 cat >conftest.$ac_ext <<_ACEOF
2291 /* confdefs.h. */
2292 _ACEOF
2293 cat confdefs.h >>conftest.$ac_ext
2294 cat >>conftest.$ac_ext <<_ACEOF
2295 /* end confdefs.h. */
2296
2297 /* Override any gcc2 internal prototype to avoid an error. */
2298 #ifdef __cplusplus
2299 extern "C"
2300 #endif
2301 /* We use char because int might match the return type of a gcc2
2302 builtin and then its argument prototype would still apply. */
2303 char yywrap ();
2304 int
2305 main ()
2306 {
2307 yywrap ();
2308 ;
2309 return 0;
2310 }
2311 _ACEOF
2312 rm -f conftest.$ac_objext conftest$ac_exeext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2314 (eval $ac_link) 2>conftest.er1
2315 ac_status=$?
2316 grep -v '^ *+' conftest.er1 >conftest.err
2317 rm -f conftest.er1
2318 cat conftest.err >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
2321 { ac_try='test -z "$ac_c_werror_flag"
2322 || test ! -s conftest.err'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; } &&
2328 { ac_try='test -s conftest$ac_exeext'
2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2334 ac_cv_lib_fl_yywrap=yes
2335 else
2336 echo "$as_me: failed program was:" >&5
2337 sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 ac_cv_lib_fl_yywrap=no
2340 fi
2341 rm -f conftest.err conftest.$ac_objext \
2342 conftest$ac_exeext conftest.$ac_ext
2343 LIBS=$ac_check_lib_save_LIBS
2344 fi
2345 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
2346 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
2347 if test $ac_cv_lib_fl_yywrap = yes; then
2348 LEXLIB="-lfl"
2349 else
2350 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
2351 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
2352 if test "${ac_cv_lib_l_yywrap+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 else
2355 ac_check_lib_save_LIBS=$LIBS
2356 LIBS="-ll $LIBS"
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h. */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h. */
2363
2364 /* Override any gcc2 internal prototype to avoid an error. */
2365 #ifdef __cplusplus
2366 extern "C"
2367 #endif
2368 /* We use char because int might match the return type of a gcc2
2369 builtin and then its argument prototype would still apply. */
2370 char yywrap ();
2371 int
2372 main ()
2373 {
2374 yywrap ();
2375 ;
2376 return 0;
2377 }
2378 _ACEOF
2379 rm -f conftest.$ac_objext conftest$ac_exeext
2380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2381 (eval $ac_link) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } &&
2388 { ac_try='test -z "$ac_c_werror_flag"
2389 || test ! -s conftest.err'
2390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391 (eval $ac_try) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest$ac_exeext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 ac_cv_lib_l_yywrap=yes
2402 else
2403 echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2405
2406 ac_cv_lib_l_yywrap=no
2407 fi
2408 rm -f conftest.err conftest.$ac_objext \
2409 conftest$ac_exeext conftest.$ac_ext
2410 LIBS=$ac_check_lib_save_LIBS
2411 fi
2412 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
2413 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
2414 if test $ac_cv_lib_l_yywrap = yes; then
2415 LEXLIB="-ll"
2416 fi
2417
2418 fi
2419
2420 fi
2421
2422 if test "x$LEX" != "x:"; then
2423 echo "$as_me:$LINENO: checking lex output file root" >&5
2424 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
2425 if test "${ac_cv_prog_lex_root+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 # The minimal lex program is just a single line: %%. But some broken lexes
2429 # (Solaris, I think it was) want two %% lines, so accommodate them.
2430 cat >conftest.l <<_ACEOF
2431 %%
2432 %%
2433 _ACEOF
2434 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
2435 (eval $LEX conftest.l) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }
2439 if test -f lex.yy.c; then
2440 ac_cv_prog_lex_root=lex.yy
2441 elif test -f lexyy.c; then
2442 ac_cv_prog_lex_root=lexyy
2443 else
2444 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2445 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2446 { (exit 1); exit 1; }; }
2447 fi
2448 fi
2449 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2450 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
2451 rm -f conftest.l
2452 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2453
2454 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2455 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
2456 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459 # POSIX says lex can declare yytext either as a pointer or an array; the
2460 # default is implementation-dependent. Figure out which it is, since
2461 # not all implementations provide the %pointer and %array declarations.
2462 ac_cv_prog_lex_yytext_pointer=no
2463 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2464 ac_save_LIBS=$LIBS
2465 LIBS="$LIBS $LEXLIB"
2466 cat >conftest.$ac_ext <<_ACEOF
2467 `cat $LEX_OUTPUT_ROOT.c`
2468 _ACEOF
2469 rm -f conftest.$ac_objext conftest$ac_exeext
2470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2471 (eval $ac_link) 2>conftest.er1
2472 ac_status=$?
2473 grep -v '^ *+' conftest.er1 >conftest.err
2474 rm -f conftest.er1
2475 cat conftest.err >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try='test -z "$ac_c_werror_flag"
2479 || test ! -s conftest.err'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; } &&
2485 { ac_try='test -s conftest$ac_exeext'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 (eval $ac_try) 2>&5
2488 ac_status=$?
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; }; then
2491 ac_cv_prog_lex_yytext_pointer=yes
2492 else
2493 echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496 fi
2497 rm -f conftest.err conftest.$ac_objext \
2498 conftest$ac_exeext conftest.$ac_ext
2499 LIBS=$ac_save_LIBS
2500 rm -f "${LEX_OUTPUT_ROOT}.c"
2501
2502 fi
2503 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2504 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
2505 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2506
2507 cat >>confdefs.h <<\_ACEOF
2508 #define YYTEXT_POINTER 1
2509 _ACEOF
2510
2511 fi
2512
2513 fi
2514 for ac_prog in 'bison -y' byacc
2515 do
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2520 if test "${ac_cv_prog_YACC+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523 if test -n "$YACC"; then
2524 ac_cv_prog_YACC="$YACC" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2533 ac_cv_prog_YACC="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 break 2
2536 fi
2537 done
2538 done
2539
2540 fi
2541 fi
2542 YACC=$ac_cv_prog_YACC
2543 if test -n "$YACC"; then
2544 echo "$as_me:$LINENO: result: $YACC" >&5
2545 echo "${ECHO_T}$YACC" >&6
2546 else
2547 echo "$as_me:$LINENO: result: no" >&5
2548 echo "${ECHO_T}no" >&6
2549 fi
2550
2551 test -n "$YACC" && break
2552 done
2553 test -n "$YACC" || YACC="yacc"
2554
2555
2556 LEXFLAGS="-8"
2557 LEXSPEED="-Cf"
2558 INCL=""
2559
2560
2561 # Check whether --with-gd-inc or --without-gd-inc was given.
2562 if test "${with_gd_inc+set}" = set; then
2563 withval="$with_gd_inc"
2564 INCL="${INCL} -I${withval}"
2565
2566 fi;
2567
2568
2569 # Check whether --with-gd-lib or --without-gd-lib was given.
2570 if test "${with_gd_lib+set}" = set; then
2571 withval="$with_gd_lib"
2572 LIBS="${LIBS} -L${withval}"
2573
2574 fi;
2575
2576 LIBS="$LIBS -lgd"
2577 LIBPATH=""
2578
2579
2580 # Check whether --with-freetype-lib or --without-freetype-lib was given.
2581 if test "${with_freetype_lib+set}" = set; then
2582 withval="$with_freetype_lib"
2583 LIBS="${LIBS} -L${withval}"
2584
2585 fi;
2586
2587
2588 # Check whether --with-freetype2-lib or --without-freetype2-lib was given.
2589 if test "${with_freetype2_lib+set}" = set; then
2590 withval="$with_freetype2_lib"
2591 LIBS="${LIBS} -L${withval}"
2592
2593 fi;
2594
2595
2596 # Check whether --with-png-inc or --without-png-inc was given.
2597 if test "${with_png_inc+set}" = set; then
2598 withval="$with_png_inc"
2599 INCL="${INCL} -I${withval}"
2600
2601 fi;
2602
2603
2604 # Check whether --with-png-lib or --without-png-lib was given.
2605 if test "${with_png_lib+set}" = set; then
2606 withval="$with_png_lib"
2607 LIBS="${LIBS} -L${withval}"
2608
2609 fi;
2610
2611
2612 # Check whether --with-jpeg-inc or --without-jpeg-inc was given.
2613 if test "${with_jpeg_inc+set}" = set; then
2614 withval="$with_jpeg_inc"
2615 INCL="${INCL} -I${withval}"
2616
2617 fi;
2618
2619
2620 # Check whether --with-jpeg-lib or --without-jpeg-lib was given.
2621 if test "${with_jpeg_lib+set}" = set; then
2622 withval="$with_jpeg_lib"
2623 LIBS="${LIBS} -L${withval}"
2624
2625 fi;
2626
2627
2628 # Check whether --with-z-inc or --without-z-inc was given.
2629 if test "${with_z_inc+set}" = set; then
2630 withval="$with_z_inc"
2631 INCL="${INCL} -I${withval}"
2632
2633 fi;
2634
2635
2636 # Check whether --with-z-lib or --without-z-lib was given.
2637 if test "${with_z_lib+set}" = set; then
2638 withval="$with_z_lib"
2639 LIBS="${LIBS} -L${withval}"
2640
2641 fi;
2642
2643 # Check whether --enable-speed or --disable-speed was given.
2644 if test "${enable_speed+set}" = set; then
2645 enableval="$enable_speed"
2646 if test "$enableval" = "no"; then LEXSPEED=""; fi
2647 fi;
2648
2649 if test "x$LEXSPEED" != "x"
2650 then
2651 LEXFLAGS="$LEXFLAGS $LEXSPEED"
2652 fi
2653
2654 CPPFLAGS="$CPPFLAGS $INCL"
2655 CFLAGS="$CFLAGS $INCL"
2656
2657 if test "x${GCC}" = "xyes"
2658 then
2659 CFLAGS="$CFLAGS -Wall"
2660 echo "$as_me:$LINENO: checking \"for gcc strength-reduce bug\"" >&5
2661 echo $ECHO_N "checking \"for gcc strength-reduce bug\"... $ECHO_C" >&6
2662 if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 if test "$cross_compiling" = yes; then
2666 ac_cv_c_gcc_strength_bug="yes"
2667 else
2668 cat >conftest.$ac_ext <<_ACEOF
2669 /* confdefs.h. */
2670 _ACEOF
2671 cat confdefs.h >>conftest.$ac_ext
2672 cat >>conftest.$ac_ext <<_ACEOF
2673 /* end confdefs.h. */
2674
2675 int main(void) {
2676 static int Array[3];
2677 unsigned int B = 3;
2678 int i;
2679 for(i=0; i<B; i++) Array[i] = i - 3;
2680 exit( Array[1] != -2 );
2681 }
2682 _ACEOF
2683 rm -f conftest$ac_exeext
2684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2685 (eval $ac_link) 2>&5
2686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_c_gcc_strength_bug="no"
2695 else
2696 echo "$as_me: program exited with status $ac_status" >&5
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 ( exit $ac_status )
2701 ac_cv_c_gcc_strength_bug="yes"
2702 fi
2703 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2704 fi
2705 fi
2706 echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
2707 echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
2708 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2709 then
2710 CFLAGS="$CFLAGS -fno-strength-reduce"
2711 fi
2712 fi
2713
2714 echo "$as_me:$LINENO: checking \"sizes of int and void *\"" >&5
2715 echo $ECHO_N "checking \"sizes of int and void *\"... $ECHO_C" >&6
2716 if test "${ac_cv_c_size_int_ptr+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 if test "$cross_compiling" = yes; then
2720 ac_cv_c_size_int_ptr="yes"
2721 else
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728
2729 int main(void) {
2730 return sizeof(int) == sizeof(void *);
2731 }
2732 _ACEOF
2733 rm -f conftest$ac_exeext
2734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2735 (eval $ac_link) 2>&5
2736 ac_status=$?
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 (eval $ac_try) 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; }; then
2744 ac_cv_c_size_int_ptr="no"
2745 else
2746 echo "$as_me: program exited with status $ac_status" >&5
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749
2750 ( exit $ac_status )
2751 ac_cv_c_size_int_ptr="yes"
2752 fi
2753 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2754 fi
2755 fi
2756 echo "$as_me:$LINENO: result: $ac_cv_c_size_int_ptr" >&5
2757 echo "${ECHO_T}$ac_cv_c_size_int_ptr" >&6
2758
2759 echo "$as_me:$LINENO: checking \"sizes of long and void *\"" >&5
2760 echo $ECHO_N "checking \"sizes of long and void *\"... $ECHO_C" >&6
2761 if test "${ac_cv_c_size_long_ptr+set}" = set; then
2762 echo $ECHO_N "(cached) $ECHO_C" >&6
2763 else
2764 if test "$cross_compiling" = yes; then
2765 ac_cv_c_size_long_ptr="yes"
2766 else
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2773
2774 int main(void) {
2775 return sizeof(long) == sizeof(void *);
2776 }
2777 _ACEOF
2778 rm -f conftest$ac_exeext
2779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2780 (eval $ac_link) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 ac_cv_c_size_long_ptr="no"
2790 else
2791 echo "$as_me: program exited with status $ac_status" >&5
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 ( exit $ac_status )
2796 ac_cv_c_size_long_ptr="yes"
2797 fi
2798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2799 fi
2800 fi
2801 echo "$as_me:$LINENO: result: $ac_cv_c_size_long_ptr" >&5
2802 echo "${ECHO_T}$ac_cv_c_size_long_ptr" >&6
2803
2804 echo "$as_me:$LINENO: checking \"sizes of long long and void *\"" >&5
2805 echo $ECHO_N "checking \"sizes of long long and void *\"... $ECHO_C" >&6
2806 if test "${ac_cv_c_size_longlong_ptr+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809 if test "$cross_compiling" = yes; then
2810 ac_cv_c_size_longlong_ptr="yes"
2811 else
2812 cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h. */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h. */
2818
2819 int main(void) {
2820 return sizeof(long long) == sizeof(void *);
2821 }
2822 _ACEOF
2823 rm -f conftest$ac_exeext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2825 (eval $ac_link) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 (eval $ac_try) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }; }; then
2834 ac_cv_c_size_longlong_ptr="no"
2835 else
2836 echo "$as_me: program exited with status $ac_status" >&5
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839
2840 ( exit $ac_status )
2841 ac_cv_c_size_longlong_ptr="yes"
2842 fi
2843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2844 fi
2845 fi
2846 echo "$as_me:$LINENO: result: $ac_cv_c_size_longlong_ptr" >&5
2847 echo "${ECHO_T}$ac_cv_c_size_longlong_ptr" >&6
2848
2849 if test "$ac_cv_c_size_int_ptr" = "no"
2850 then
2851 if test "$ac_cv_c_size_long_ptr" = "no"
2852 then
2853 if test "$ac_cv_c_size_longlong_ptr" = "no"
2854 then
2855 echo "** The size of an integer is not equal to a pointer."
2856 echo " There are currently assumtions in the app that"
2857 echo " prevents it from running if these sizes are not"
2858 echo " equal."
2859 echo " Please configure with a compiler that uses the"
2860 echo " same sizes for ints and pointers."
2861 exit 1
2862 else
2863 INTTYPE="long long"
2864 fi
2865 else
2866 INTTYPE="long"
2867 fi
2868 else
2869 INTTYPE="int"
2870 fi
2871
2872 ac_ext=c
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2877 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2878 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2879 # On Suns, sometimes $CPP names a directory.
2880 if test -n "$CPP" && test -d "$CPP"; then
2881 CPP=
2882 fi
2883 if test -z "$CPP"; then
2884 if test "${ac_cv_prog_CPP+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887 # Double quotes because CPP needs to be expanded
2888 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2889 do
2890 ac_preproc_ok=false
2891 for ac_c_preproc_warn_flag in '' yes
2892 do
2893 # Use a header file that comes with gcc, so configuring glibc
2894 # with a fresh cross-compiler works.
2895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2896 # <limits.h> exists even on freestanding compilers.
2897 # On the NeXT, cc -E runs the code through the compiler's parser,
2898 # not just through cpp. "Syntax error" is here to catch this case.
2899 cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h. */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2905 #ifdef __STDC__
2906 # include <limits.h>
2907 #else
2908 # include <assert.h>
2909 #endif
2910 Syntax error
2911 _ACEOF
2912 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } >/dev/null; then
2920 if test -s conftest.err; then
2921 ac_cpp_err=$ac_c_preproc_warn_flag
2922 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2923 else
2924 ac_cpp_err=
2925 fi
2926 else
2927 ac_cpp_err=yes
2928 fi
2929 if test -z "$ac_cpp_err"; then
2930 :
2931 else
2932 echo "$as_me: failed program was:" >&5
2933 sed 's/^/| /' conftest.$ac_ext >&5
2934
2935 # Broken: fails on valid input.
2936 continue
2937 fi
2938 rm -f conftest.err conftest.$ac_ext
2939
2940 # OK, works on sane cases. Now check whether non-existent headers
2941 # can be detected and how.
2942 cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h. */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2948 #include <ac_nonexistent.h>
2949 _ACEOF
2950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } >/dev/null; then
2958 if test -s conftest.err; then
2959 ac_cpp_err=$ac_c_preproc_warn_flag
2960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2961 else
2962 ac_cpp_err=
2963 fi
2964 else
2965 ac_cpp_err=yes
2966 fi
2967 if test -z "$ac_cpp_err"; then
2968 # Broken: success on invalid input.
2969 continue
2970 else
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2973
2974 # Passes both tests.
2975 ac_preproc_ok=:
2976 break
2977 fi
2978 rm -f conftest.err conftest.$ac_ext
2979
2980 done
2981 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2982 rm -f conftest.err conftest.$ac_ext
2983 if $ac_preproc_ok; then
2984 break
2985 fi
2986
2987 done
2988 ac_cv_prog_CPP=$CPP
2989
2990 fi
2991 CPP=$ac_cv_prog_CPP
2992 else
2993 ac_cv_prog_CPP=$CPP
2994 fi
2995 echo "$as_me:$LINENO: result: $CPP" >&5
2996 echo "${ECHO_T}$CPP" >&6
2997 ac_preproc_ok=false
2998 for ac_c_preproc_warn_flag in '' yes
2999 do
3000 # Use a header file that comes with gcc, so configuring glibc
3001 # with a fresh cross-compiler works.
3002 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3003 # <limits.h> exists even on freestanding compilers.
3004 # On the NeXT, cc -E runs the code through the compiler's parser,
3005 # not just through cpp. "Syntax error" is here to catch this case.
3006 cat >conftest.$ac_ext <<_ACEOF
3007 /* confdefs.h. */
3008 _ACEOF
3009 cat confdefs.h >>conftest.$ac_ext
3010 cat >>conftest.$ac_ext <<_ACEOF
3011 /* end confdefs.h. */
3012 #ifdef __STDC__
3013 # include <limits.h>
3014 #else
3015 # include <assert.h>
3016 #endif
3017 Syntax error
3018 _ACEOF
3019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3021 ac_status=$?
3022 grep -v '^ *+' conftest.er1 >conftest.err
3023 rm -f conftest.er1
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } >/dev/null; then
3027 if test -s conftest.err; then
3028 ac_cpp_err=$ac_c_preproc_warn_flag
3029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3030 else
3031 ac_cpp_err=
3032 fi
3033 else
3034 ac_cpp_err=yes
3035 fi
3036 if test -z "$ac_cpp_err"; then
3037 :
3038 else
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3041
3042 # Broken: fails on valid input.
3043 continue
3044 fi
3045 rm -f conftest.err conftest.$ac_ext
3046
3047 # OK, works on sane cases. Now check whether non-existent headers
3048 # can be detected and how.
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3055 #include <ac_nonexistent.h>
3056 _ACEOF
3057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } >/dev/null; then
3065 if test -s conftest.err; then
3066 ac_cpp_err=$ac_c_preproc_warn_flag
3067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068 else
3069 ac_cpp_err=
3070 fi
3071 else
3072 ac_cpp_err=yes
3073 fi
3074 if test -z "$ac_cpp_err"; then
3075 # Broken: success on invalid input.
3076 continue
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3080
3081 # Passes both tests.
3082 ac_preproc_ok=:
3083 break
3084 fi
3085 rm -f conftest.err conftest.$ac_ext
3086
3087 done
3088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3089 rm -f conftest.err conftest.$ac_ext
3090 if $ac_preproc_ok; then
3091 :
3092 else
3093 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3094 See \`config.log' for more details." >&5
3095 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3096 See \`config.log' for more details." >&2;}
3097 { (exit 1); exit 1; }; }
3098 fi
3099
3100 ac_ext=c
3101 ac_cpp='$CPP $CPPFLAGS'
3102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105
3106
3107 echo "$as_me:$LINENO: checking for egrep" >&5
3108 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3109 if test "${ac_cv_prog_egrep+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 else
3112 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3113 then ac_cv_prog_egrep='grep -E'
3114 else ac_cv_prog_egrep='egrep'
3115 fi
3116 fi
3117 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3118 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3119 EGREP=$ac_cv_prog_egrep
3120
3121
3122 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3124 if test "${ac_cv_header_stdc+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 else
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #include <stdlib.h>
3134 #include <stdarg.h>
3135 #include <string.h>
3136 #include <float.h>
3137
3138 int
3139 main ()
3140 {
3141
3142 ;
3143 return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag"
3156 || test ! -s conftest.err'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 ac_cv_header_stdc=yes
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 ac_cv_header_stdc=no
3174 fi
3175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3176
3177 if test $ac_cv_header_stdc = yes; then
3178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3179 cat >conftest.$ac_ext <<_ACEOF
3180 /* confdefs.h. */
3181 _ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3185 #include <string.h>
3186
3187 _ACEOF
3188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3189 $EGREP "memchr" >/dev/null 2>&1; then
3190 :
3191 else
3192 ac_cv_header_stdc=no
3193 fi
3194 rm -f conftest*
3195
3196 fi
3197
3198 if test $ac_cv_header_stdc = yes; then
3199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3200 cat >conftest.$ac_ext <<_ACEOF
3201 /* confdefs.h. */
3202 _ACEOF
3203 cat confdefs.h >>conftest.$ac_ext
3204 cat >>conftest.$ac_ext <<_ACEOF
3205 /* end confdefs.h. */
3206 #include <stdlib.h>
3207
3208 _ACEOF
3209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3210 $EGREP "free" >/dev/null 2>&1; then
3211 :
3212 else
3213 ac_cv_header_stdc=no
3214 fi
3215 rm -f conftest*
3216
3217 fi
3218
3219 if test $ac_cv_header_stdc = yes; then
3220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3221 if test "$cross_compiling" = yes; then
3222 :
3223 else
3224 cat >conftest.$ac_ext <<_ACEOF
3225 /* confdefs.h. */
3226 _ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3230 #include <ctype.h>
3231 #if ((' ' & 0x0FF) == 0x020)
3232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3234 #else
3235 # define ISLOWER(c) \
3236 (('a' <= (c) && (c) <= 'i') \
3237 || ('j' <= (c) && (c) <= 'r') \
3238 || ('s' <= (c) && (c) <= 'z'))
3239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3240 #endif
3241
3242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3243 int
3244 main ()
3245 {
3246 int i;
3247 for (i = 0; i < 256; i++)
3248 if (XOR (islower (i), ISLOWER (i))
3249 || toupper (i) != TOUPPER (i))
3250 exit(2);
3251 exit (0);
3252 }
3253 _ACEOF
3254 rm -f conftest$ac_exeext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3256 (eval $ac_link) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3261 (eval $ac_try) 2>&5
3262 ac_status=$?
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }; }; then
3265 :
3266 else
3267 echo "$as_me: program exited with status $ac_status" >&5
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 ( exit $ac_status )
3272 ac_cv_header_stdc=no
3273 fi
3274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3275 fi
3276 fi
3277 fi
3278 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3279 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3280 if test $ac_cv_header_stdc = yes; then
3281
3282 cat >>confdefs.h <<\_ACEOF
3283 #define STDC_HEADERS 1
3284 _ACEOF
3285
3286 fi
3287
3288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3299 inttypes.h stdint.h unistd.h
3300 do
3301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3302 echo "$as_me:$LINENO: checking for $ac_header" >&5
3303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h. */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h. */
3313 $ac_includes_default
3314
3315 #include <$ac_header>
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_c_werror_flag"
3327 || test ! -s conftest.err'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 eval "$as_ac_Header=yes"
3340 else
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 eval "$as_ac_Header=no"
3345 fi
3346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347 fi
3348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3351 cat >>confdefs.h <<_ACEOF
3352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3353 _ACEOF
3354
3355 fi
3356
3357 done
3358
3359
3360 if test "${ac_cv_header_getopt_h+set}" = set; then
3361 echo "$as_me:$LINENO: checking for getopt.h" >&5
3362 echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6
3363 if test "${ac_cv_header_getopt_h+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 fi
3366 echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
3367 echo "${ECHO_T}$ac_cv_header_getopt_h" >&6
3368 else
3369 # Is the header compilable?
3370 echo "$as_me:$LINENO: checking getopt.h usability" >&5
3371 echo $ECHO_N "checking getopt.h usability... $ECHO_C" >&6
3372 cat >conftest.$ac_ext <<_ACEOF
3373 /* confdefs.h. */
3374 _ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 $ac_includes_default
3379 #include <getopt.h>
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 ac_header_compiler=yes
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 ac_header_compiler=no
3409 fi
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3412 echo "${ECHO_T}$ac_header_compiler" >&6
3413
3414 # Is the header present?
3415 echo "$as_me:$LINENO: checking getopt.h presence" >&5
3416 echo $ECHO_N "checking getopt.h presence... $ECHO_C" >&6
3417 cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h. */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <getopt.h>
3424 _ACEOF
3425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null; then
3433 if test -s conftest.err; then
3434 ac_cpp_err=$ac_c_preproc_warn_flag
3435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3436 else
3437 ac_cpp_err=
3438 fi
3439 else
3440 ac_cpp_err=yes
3441 fi
3442 if test -z "$ac_cpp_err"; then
3443 ac_header_preproc=yes
3444 else
3445 echo "$as_me: failed program was:" >&5
3446 sed 's/^/| /' conftest.$ac_ext >&5
3447
3448 ac_header_preproc=no
3449 fi
3450 rm -f conftest.err conftest.$ac_ext
3451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3452 echo "${ECHO_T}$ac_header_preproc" >&6
3453
3454 # So? What about this header?
3455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3456 yes:no: )
3457 { echo "$as_me:$LINENO: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&5
3458 echo "$as_me: WARNING: getopt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3459 { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the compiler's result" >&5
3460 echo "$as_me: WARNING: getopt.h: proceeding with the compiler's result" >&2;}
3461 ac_header_preproc=yes
3462 ;;
3463 no:yes:* )
3464 { echo "$as_me:$LINENO: WARNING: getopt.h: present but cannot be compiled" >&5
3465 echo "$as_me: WARNING: getopt.h: present but cannot be compiled" >&2;}
3466 { echo "$as_me:$LINENO: WARNING: getopt.h: check for missing prerequisite headers?" >&5
3467 echo "$as_me: WARNING: getopt.h: check for missing prerequisite headers?" >&2;}
3468 { echo "$as_me:$LINENO: WARNING: getopt.h: see the Autoconf documentation" >&5
3469 echo "$as_me: WARNING: getopt.h: see the Autoconf documentation" >&2;}
3470 { echo "$as_me:$LINENO: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&5
3471 echo "$as_me: WARNING: getopt.h: section \"Present But Cannot Be Compiled\"" >&2;}
3472 { echo "$as_me:$LINENO: WARNING: getopt.h: proceeding with the preprocessor's result" >&5
3473 echo "$as_me: WARNING: getopt.h: proceeding with the preprocessor's result" >&2;}
3474 { echo "$as_me:$LINENO: WARNING: getopt.h: in the future, the compiler will take precedence" >&5
3475 echo "$as_me: WARNING: getopt.h: in the future, the compiler will take precedence" >&2;}
3476 (
3477 cat <<\_ASBOX
3478 ## ------------------------------------------ ##
3479 ## Report this to the AC_PACKAGE_NAME lists. ##
3480 ## ------------------------------------------ ##
3481 _ASBOX
3482 ) |
3483 sed "s/^/$as_me: WARNING: /" >&2
3484 ;;
3485 esac
3486 echo "$as_me:$LINENO: checking for getopt.h" >&5
3487 echo $ECHO_N "checking for getopt.h... $ECHO_C" >&6
3488 if test "${ac_cv_header_getopt_h+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 else
3491 ac_cv_header_getopt_h=$ac_header_preproc
3492 fi
3493 echo "$as_me:$LINENO: result: $ac_cv_header_getopt_h" >&5
3494 echo "${ECHO_T}$ac_cv_header_getopt_h" >&6
3495
3496 fi
3497 if test $ac_cv_header_getopt_h = yes; then
3498 cat >>confdefs.h <<\_ACEOF
3499 #define HAVE_GETOPT_H 1
3500 _ACEOF
3501
3502 fi
3503
3504
3505
3506 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3507 echo "$as_me:$LINENO: checking for sys/wait.h" >&5
3508 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
3509 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 fi
3512 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3513 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3514 else
3515 # Is the header compilable?
3516 echo "$as_me:$LINENO: checking sys/wait.h usability" >&5
3517 echo $ECHO_N "checking sys/wait.h usability... $ECHO_C" >&6
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h. */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h. */
3524 $ac_includes_default
3525 #include <sys/wait.h>
3526 _ACEOF
3527 rm -f conftest.$ac_objext
3528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3529 (eval $ac_compile) 2>conftest.er1
3530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -z "$ac_c_werror_flag"
3537 || test ! -s conftest.err'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; } &&
3543 { ac_try='test -s conftest.$ac_objext'
3544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 (eval $ac_try) 2>&5
3546 ac_status=$?
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); }; }; then
3549 ac_header_compiler=yes
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 ac_header_compiler=no
3555 fi
3556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3557 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3558 echo "${ECHO_T}$ac_header_compiler" >&6
3559
3560 # Is the header present?
3561 echo "$as_me:$LINENO: checking sys/wait.h presence" >&5
3562 echo $ECHO_N "checking sys/wait.h presence... $ECHO_C" >&6
3563 cat >conftest.$ac_ext <<_ACEOF
3564 /* confdefs.h. */
3565 _ACEOF
3566 cat confdefs.h >>conftest.$ac_ext
3567 cat >>conftest.$ac_ext <<_ACEOF
3568 /* end confdefs.h. */
3569 #include <sys/wait.h>
3570 _ACEOF
3571 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); } >/dev/null; then
3579 if test -s conftest.err; then
3580 ac_cpp_err=$ac_c_preproc_warn_flag
3581 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3582 else
3583 ac_cpp_err=
3584 fi
3585 else
3586 ac_cpp_err=yes
3587 fi
3588 if test -z "$ac_cpp_err"; then
3589 ac_header_preproc=yes
3590 else
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 ac_header_preproc=no
3595 fi
3596 rm -f conftest.err conftest.$ac_ext
3597 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3598 echo "${ECHO_T}$ac_header_preproc" >&6
3599
3600 # So? What about this header?
3601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3602 yes:no: )
3603 { echo "$as_me:$LINENO: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&5
3604 echo "$as_me: WARNING: sys/wait.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3605 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the compiler's result" >&5
3606 echo "$as_me: WARNING: sys/wait.h: proceeding with the compiler's result" >&2;}
3607 ac_header_preproc=yes
3608 ;;
3609 no:yes:* )
3610 { echo "$as_me:$LINENO: WARNING: sys/wait.h: present but cannot be compiled" >&5
3611 echo "$as_me: WARNING: sys/wait.h: present but cannot be compiled" >&2;}
3612 { echo "$as_me:$LINENO: WARNING: sys/wait.h: check for missing prerequisite headers?" >&5
3613 echo "$as_me: WARNING: sys/wait.h: check for missing prerequisite headers?" >&2;}
3614 { echo "$as_me:$LINENO: WARNING: sys/wait.h: see the Autoconf documentation" >&5
3615 echo "$as_me: WARNING: sys/wait.h: see the Autoconf documentation" >&2;}
3616 { echo "$as_me:$LINENO: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&5
3617 echo "$as_me: WARNING: sys/wait.h: section \"Present But Cannot Be Compiled\"" >&2;}
3618 { echo "$as_me:$LINENO: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&5
3619 echo "$as_me: WARNING: sys/wait.h: proceeding with the preprocessor's result" >&2;}
3620 { echo "$as_me:$LINENO: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&5
3621 echo "$as_me: WARNING: sys/wait.h: in the future, the compiler will take precedence" >&2;}
3622 (
3623 cat <<\_ASBOX
3624 ## ------------------------------------------ ##
3625 ## Report this to the AC_PACKAGE_NAME lists. ##
3626 ## ------------------------------------------ ##
3627 _ASBOX
3628 ) |
3629 sed "s/^/$as_me: WARNING: /" >&2
3630 ;;
3631 esac
3632 echo "$as_me:$LINENO: checking for sys/wait.h" >&5
3633 echo $ECHO_N "checking for sys/wait.h... $ECHO_C" >&6
3634 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637 ac_cv_header_sys_wait_h=$ac_header_preproc
3638 fi
3639 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3640 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3641
3642 fi
3643 if test $ac_cv_header_sys_wait_h = yes; then
3644 cat >>confdefs.h <<\_ACEOF
3645 #define HAVE_SYS_WAIT_H 1
3646 _ACEOF
3647
3648 fi
3649
3650
3651
3652 if test "${ac_cv_header_gd_h+set}" = set; then
3653 echo "$as_me:$LINENO: checking for gd.h" >&5
3654 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
3655 if test "${ac_cv_header_gd_h+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 fi
3658 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
3659 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
3660 else
3661 # Is the header compilable?
3662 echo "$as_me:$LINENO: checking gd.h usability" >&5
3663 echo $ECHO_N "checking gd.h usability... $ECHO_C" >&6
3664 cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h. */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h. */
3670 $ac_includes_default
3671 #include <gd.h>
3672 _ACEOF
3673 rm -f conftest.$ac_objext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3675 (eval $ac_compile) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_c_werror_flag"
3683 || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest.$ac_objext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_header_compiler=yes
3696 else
3697 echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3699
3700 ac_header_compiler=no
3701 fi
3702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3704 echo "${ECHO_T}$ac_header_compiler" >&6
3705
3706 # Is the header present?
3707 echo "$as_me:$LINENO: checking gd.h presence" >&5
3708 echo $ECHO_N "checking gd.h presence... $ECHO_C" >&6
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 #include <gd.h>
3716 _ACEOF
3717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3719 ac_status=$?
3720 grep -v '^ *+' conftest.er1 >conftest.err
3721 rm -f conftest.er1
3722 cat conftest.err >&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); } >/dev/null; then
3725 if test -s conftest.err; then
3726 ac_cpp_err=$ac_c_preproc_warn_flag
3727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3728 else
3729 ac_cpp_err=
3730 fi
3731 else
3732 ac_cpp_err=yes
3733 fi
3734 if test -z "$ac_cpp_err"; then
3735 ac_header_preproc=yes
3736 else
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740 ac_header_preproc=no
3741 fi
3742 rm -f conftest.err conftest.$ac_ext
3743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3744 echo "${ECHO_T}$ac_header_preproc" >&6
3745
3746 # So? What about this header?
3747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3748 yes:no: )
3749 { echo "$as_me:$LINENO: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&5
3750 echo "$as_me: WARNING: gd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3751 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the compiler's result" >&5
3752 echo "$as_me: WARNING: gd.h: proceeding with the compiler's result" >&2;}
3753 ac_header_preproc=yes
3754 ;;
3755 no:yes:* )
3756 { echo "$as_me:$LINENO: WARNING: gd.h: present but cannot be compiled" >&5
3757 echo "$as_me: WARNING: gd.h: present but cannot be compiled" >&2;}
3758 { echo "$as_me:$LINENO: WARNING: gd.h: check for missing prerequisite headers?" >&5
3759 echo "$as_me: WARNING: gd.h: check for missing prerequisite headers?" >&2;}
3760 { echo "$as_me:$LINENO: WARNING: gd.h: see the Autoconf documentation" >&5
3761 echo "$as_me: WARNING: gd.h: see the Autoconf documentation" >&2;}
3762 { echo "$as_me:$LINENO: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&5
3763 echo "$as_me: WARNING: gd.h: section \"Present But Cannot Be Compiled\"" >&2;}
3764 { echo "$as_me:$LINENO: WARNING: gd.h: proceeding with the preprocessor's result" >&5
3765 echo "$as_me: WARNING: gd.h: proceeding with the preprocessor's result" >&2;}
3766 { echo "$as_me:$LINENO: WARNING: gd.h: in the future, the compiler will take precedence" >&5
3767 echo "$as_me: WARNING: gd.h: in the future, the compiler will take precedence" >&2;}
3768 (
3769 cat <<\_ASBOX
3770 ## ------------------------------------------ ##
3771 ## Report this to the AC_PACKAGE_NAME lists. ##
3772 ## ------------------------------------------ ##
3773 _ASBOX
3774 ) |
3775 sed "s/^/$as_me: WARNING: /" >&2
3776 ;;
3777 esac
3778 echo "$as_me:$LINENO: checking for gd.h" >&5
3779 echo $ECHO_N "checking for gd.h... $ECHO_C" >&6
3780 if test "${ac_cv_header_gd_h+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 ac_cv_header_gd_h=$ac_header_preproc
3784 fi
3785 echo "$as_me:$LINENO: result: $ac_cv_header_gd_h" >&5
3786 echo "${ECHO_T}$ac_cv_header_gd_h" >&6
3787
3788 fi
3789 if test $ac_cv_header_gd_h = yes; then
3790 have_gd_h="yes"
3791 else
3792 have_gd_h="no"
3793 fi
3794
3795
3796
3797 if test "$have_gd_h" != "yes"; then
3798 echo
3799 echo "** The GD library is required for CvsGraph to function."
3800 echo " Get it from http://www.boutell.com, compile it and"
3801 echo " use either --with-gd-lib=DIR and --with-gd-inc=DIR to specify"
3802 echo " its location. You might also have to use --with-z-inc, --with-z-lib"
3803 echo " and --with-png-inc, --with-png-lib for gd versions 1.6 and higher."
3804 echo " Check config.log for more information on the problem. If your system"
3805 echo " has libgd installed, you probably mis the gd.h header file."
3806 exit 1
3807 fi
3808
3809 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
3810 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
3811 if test "${ac_cv_lib_m_sqrt+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814 ac_check_lib_save_LIBS=$LIBS
3815 LIBS="-lm $LIBS"
3816 cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h. */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3822
3823 /* Override any gcc2 internal prototype to avoid an error. */
3824 #ifdef __cplusplus
3825 extern "C"
3826 #endif
3827 /* We use char because int might match the return type of a gcc2
3828 builtin and then its argument prototype would still apply. */
3829 char sqrt ();
3830 int
3831 main ()
3832 {
3833 sqrt ();
3834 ;
3835 return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext conftest$ac_exeext
3839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3840 (eval $ac_link) 2>conftest.er1
3841 ac_status=$?
3842 grep -v '^ *+' conftest.er1 >conftest.err
3843 rm -f conftest.er1
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag"
3848 || test ! -s conftest.err'
3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850 (eval $ac_try) 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; } &&
3854 { ac_try='test -s conftest$ac_exeext'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856 (eval $ac_try) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then
3860 ac_cv_lib_m_sqrt=yes
3861 else
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865 ac_cv_lib_m_sqrt=no
3866 fi
3867 rm -f conftest.err conftest.$ac_objext \
3868 conftest$ac_exeext conftest.$ac_ext
3869 LIBS=$ac_check_lib_save_LIBS
3870 fi
3871 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
3872 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
3873 if test $ac_cv_lib_m_sqrt = yes; then
3874
3875 cat >>confdefs.h <<\_ACEOF
3876 #define LIBM 1
3877 _ACEOF
3878
3879 MATHLIBS="-lm"
3880
3881 fi
3882
3883
3884 echo "$as_me:$LINENO: checking for compress in -lz" >&5
3885 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6
3886 if test "${ac_cv_lib_z_compress+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 ac_check_lib_save_LIBS=$LIBS
3890 LIBS="-lz ${LIBPATH} ${MATHLIBS} $LIBS"
3891 cat >conftest.$ac_ext <<_ACEOF
3892 /* confdefs.h. */
3893 _ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3897
3898 /* Override any gcc2 internal prototype to avoid an error. */
3899 #ifdef __cplusplus
3900 extern "C"
3901 #endif
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904 char compress ();
3905 int
3906 main ()
3907 {
3908 compress ();
3909 ;
3910 return 0;
3911 }
3912 _ACEOF
3913 rm -f conftest.$ac_objext conftest$ac_exeext
3914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3915 (eval $ac_link) 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -z "$ac_c_werror_flag"
3923 || test ! -s conftest.err'
3924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3925 (eval $ac_try) 2>&5
3926 ac_status=$?
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); }; } &&
3929 { ac_try='test -s conftest$ac_exeext'
3930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3931 (eval $ac_try) 2>&5
3932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); }; }; then
3935 ac_cv_lib_z_compress=yes
3936 else
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940 ac_cv_lib_z_compress=no
3941 fi
3942 rm -f conftest.err conftest.$ac_objext \
3943 conftest$ac_exeext conftest.$ac_ext
3944 LIBS=$ac_check_lib_save_LIBS
3945 fi
3946 echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
3947 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6
3948 if test $ac_cv_lib_z_compress = yes; then
3949
3950 ac_have_libz="yes"
3951 ZLIB="-lz"
3952
3953 else
3954
3955 ac_have_libz="no"
3956
3957 fi
3958
3959
3960 echo "$as_me:$LINENO: checking for FT_Load_Glyph in -lfreetype" >&5
3961 echo $ECHO_N "checking for FT_Load_Glyph in -lfreetype... $ECHO_C" >&6
3962 if test "${ac_cv_lib_freetype_FT_Load_Glyph+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 else
3965 ac_check_lib_save_LIBS=$LIBS
3966 LIBS="-lfreetype ${LIBPATH} ${MATHLIBS} $LIBS"
3967 cat >conftest.$ac_ext <<_ACEOF
3968 /* confdefs.h. */
3969 _ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3973
3974 /* Override any gcc2 internal prototype to avoid an error. */
3975 #ifdef __cplusplus
3976 extern "C"
3977 #endif
3978 /* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3980 char FT_Load_Glyph ();
3981 int
3982 main ()
3983 {
3984 FT_Load_Glyph ();
3985 ;
3986 return 0;
3987 }
3988 _ACEOF
3989 rm -f conftest.$ac_objext conftest$ac_exeext
3990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3991 (eval $ac_link) 2>conftest.er1
3992 ac_status=$?
3993 grep -v '^ *+' conftest.er1 >conftest.err
3994 rm -f conftest.er1
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
3998 { ac_try='test -z "$ac_c_werror_flag"
3999 || test ! -s conftest.err'
4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4001 (eval $ac_try) 2>&5
4002 ac_status=$?
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; } &&
4005 { ac_try='test -s conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_lib_freetype_FT_Load_Glyph=yes
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016 ac_cv_lib_freetype_FT_Load_Glyph=no
4017 fi
4018 rm -f conftest.err conftest.$ac_objext \
4019 conftest$ac_exeext conftest.$ac_ext
4020 LIBS=$ac_check_lib_save_LIBS
4021 fi
4022 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Load_Glyph" >&5
4023 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Load_Glyph" >&6
4024 if test $ac_cv_lib_freetype_FT_Load_Glyph = yes; then
4025
4026 ac_have_libfreetype="yes"
4027 LIBFT="-lfreetype"
4028
4029 else
4030
4031 ac_have_libfreetype="no"
4032
4033 fi
4034
4035
4036 echo "$as_me:$LINENO: checking for TT_Load_Glyph in -lttf" >&5
4037 echo $ECHO_N "checking for TT_Load_Glyph in -lttf... $ECHO_C" >&6
4038 if test "${ac_cv_lib_ttf_TT_Load_Glyph+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 ac_check_lib_save_LIBS=$LIBS
4042 LIBS="-lttf ${LIBPATH} ${MATHLIBS} $LIBS"
4043 cat >conftest.$ac_ext <<_ACEOF
4044 /* confdefs.h. */
4045 _ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4049
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 #ifdef __cplusplus
4052 extern "C"
4053 #endif
4054 /* We use char because int might match the return type of a gcc2
4055 builtin and then its argument prototype would still apply. */
4056 char TT_Load_Glyph ();
4057 int
4058 main ()
4059 {
4060 TT_Load_Glyph ();
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.$ac_objext conftest$ac_exeext
4066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4067 (eval $ac_link) 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_c_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest$ac_exeext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 ac_cv_lib_ttf_TT_Load_Glyph=yes
4088 else
4089 echo "$as_me: failed program was:" >&5
4090 sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 ac_cv_lib_ttf_TT_Load_Glyph=no
4093 fi
4094 rm -f conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
4096 LIBS=$ac_check_lib_save_LIBS
4097 fi
4098 echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_TT_Load_Glyph" >&5
4099 echo "${ECHO_T}$ac_cv_lib_ttf_TT_Load_Glyph" >&6
4100 if test $ac_cv_lib_ttf_TT_Load_Glyph = yes; then
4101
4102 ac_have_libttf="yes"
4103 LIBTT="-lttf"
4104
4105 else
4106
4107 ac_have_libttf="no"
4108
4109 fi
4110
4111
4112 echo "$as_me:$LINENO: checking for png_create_read_struct in -lpng" >&5
4113 echo $ECHO_N "checking for png_create_read_struct in -lpng... $ECHO_C" >&6
4114 if test "${ac_cv_lib_png_png_create_read_struct_+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117 ac_check_lib_save_LIBS=$LIBS
4118 LIBS="-lpng ${LIBPATH} ${ZLIB} ${MATHLIBS} $LIBS"
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h. */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4125
4126 /* Override any gcc2 internal prototype to avoid an error. */
4127 #ifdef __cplusplus
4128 extern "C"
4129 #endif
4130 /* We use char because int might match the return type of a gcc2
4131 builtin and then its argument prototype would still apply. */
4132 char png_create_read_struct ();
4133 int
4134 main ()
4135 {
4136 png_create_read_struct ();
4137 ;
4138 return 0;
4139 }
4140 _ACEOF
4141 rm -f conftest.$ac_objext conftest$ac_exeext
4142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4143 (eval $ac_link) 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag"
4151 || test ! -s conftest.err'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 (eval $ac_try) 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; } &&
4157 { ac_try='test -s conftest$ac_exeext'
4158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 (eval $ac_try) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; }; then
4163 ac_cv_lib_png_png_create_read_struct_=yes
4164 else
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 ac_cv_lib_png_png_create_read_struct_=no
4169 fi
4170 rm -f conftest.err conftest.$ac_objext \
4171 conftest$ac_exeext conftest.$ac_ext
4172 LIBS=$ac_check_lib_save_LIBS
4173 fi
4174 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_read_struct_" >&5
4175 echo "${ECHO_T}$ac_cv_lib_png_png_create_read_struct_" >&6
4176 if test $ac_cv_lib_png_png_create_read_struct_ = yes; then
4177
4178 ac_have_libpng="yes"
4179 LIBPNG="-lpng"
4180
4181 else
4182
4183 ac_have_libpng="no"
4184
4185 fi
4186
4187
4188 echo "$as_me:$LINENO: checking for jpeg_CreateCompress in -ljpeg" >&5
4189 echo $ECHO_N "checking for jpeg_CreateCompress in -ljpeg... $ECHO_C" >&6
4190 if test "${ac_cv_lib_jpeg_jpeg_CreateCompress+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 ac_check_lib_save_LIBS=$LIBS
4194 LIBS="-ljpeg ${LIBPATH} ${MATHLIBS} $LIBS"
4195 cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h. */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4201
4202 /* Override any gcc2 internal prototype to avoid an error. */
4203 #ifdef __cplusplus
4204 extern "C"
4205 #endif
4206 /* We use char because int might match the return type of a gcc2
4207 builtin and then its argument prototype would still apply. */
4208 char jpeg_CreateCompress ();
4209 int
4210 main ()
4211 {
4212 jpeg_CreateCompress ();
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 rm -f conftest.$ac_objext conftest$ac_exeext
4218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4219 (eval $ac_link) 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag"
4227 || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest$ac_exeext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_cv_lib_jpeg_jpeg_CreateCompress=yes
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244 ac_cv_lib_jpeg_jpeg_CreateCompress=no
4245 fi
4246 rm -f conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4248 LIBS=$ac_check_lib_save_LIBS
4249 fi
4250 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateCompress" >&5
4251 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_CreateCompress" >&6
4252 if test $ac_cv_lib_jpeg_jpeg_CreateCompress = yes; then
4253
4254 ac_have_libjpeg="yes"
4255 LIBJPEG="-ljpeg"
4256
4257 else
4258
4259 ac_have_libjpeg="no"
4260
4261 fi
4262
4263
4264 OLIBS="${LIBS}"
4265 LIBS="${LIBS} ${MATHLIB}"
4266 echo "$as_me:$LINENO: checking \"whether libpng needs -lz\"" >&5
4267 echo $ECHO_N "checking \"whether libpng needs -lz\"... $ECHO_C" >&6
4268 if test "${ac_cv_png_needs_z+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 else
4271 cat >conftest.$ac_ext <<_ACEOF
4272 /* confdefs.h. */
4273 _ACEOF
4274 cat confdefs.h >>conftest.$ac_ext
4275 cat >>conftest.$ac_ext <<_ACEOF
4276 /* end confdefs.h. */
4277
4278 /* Override any gcc2 internal prototype to avoid an error. */
4279 #ifdef __cplusplus
4280 extern "C"
4281 #endif
4282 /* We use char because int might match the return type of a gcc2
4283 builtin and then its argument prototype would still apply. */
4284 char png_create_read_struct ();
4285 int
4286 main ()
4287 {
4288 png_create_read_struct ();
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 rm -f conftest.$ac_objext conftest$ac_exeext
4294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4295 (eval $ac_link) 2>conftest.er1
4296 ac_status=$?
4297 grep -v '^ *+' conftest.er1 >conftest.err
4298 rm -f conftest.er1
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); } &&
4302 { ac_try='test -z "$ac_c_werror_flag"
4303 || test ! -s conftest.err'
4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 (eval $ac_try) 2>&5
4306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest$ac_exeext'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4311 (eval $ac_try) 2>&5
4312 ac_status=$?
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315
4316 ac_cv_png_needs_z="no"
4317
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322
4323 ac_cv_png_needs_z="yes"
4324
4325 fi
4326 rm -f conftest.err conftest.$ac_objext \
4327 conftest$ac_exeext conftest.$ac_ext
4328 fi
4329 echo "$as_me:$LINENO: result: $ac_cv_png_needs_z" >&5
4330 echo "${ECHO_T}$ac_cv_png_needs_z" >&6
4331 LIBS="${OLIBS}"
4332
4333
4334 OLIBS="${LIBS}"
4335 LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBJPEG} ${MATHLIB}"
4336 echo "$as_me:$LINENO: checking \"whether libgd needs -lpng\"" >&5
4337 echo $ECHO_N "checking \"whether libgd needs -lpng\"... $ECHO_C" >&6
4338 if test "${ac_cv_gd_needs_png+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341 cat >conftest.$ac_ext <<_ACEOF
4342 /* confdefs.h. */
4343 _ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347
4348 /* Override any gcc2 internal prototype to avoid an error. */
4349 #ifdef __cplusplus
4350 extern "C"
4351 #endif
4352 /* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
4354 char gdImagePng ();
4355 int
4356 main ()
4357 {
4358 gdImagePng ();
4359 ;
4360 return 0;
4361 }
4362 _ACEOF
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4365 (eval $ac_link) 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } &&
4372 { ac_try='test -z "$ac_c_werror_flag"
4373 || test ! -s conftest.err'
4374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; } &&
4379 { ac_try='test -s conftest$ac_exeext'
4380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4381 (eval $ac_try) 2>&5
4382 ac_status=$?
4383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384 (exit $ac_status); }; }; then
4385
4386 ac_cv_gd_needs_png="no"
4387
4388 else
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392
4393 ac_cv_gd_needs_png="yes"
4394
4395 fi
4396 rm -f conftest.err conftest.$ac_objext \
4397 conftest$ac_exeext conftest.$ac_ext
4398 fi
4399 echo "$as_me:$LINENO: result: $ac_cv_gd_needs_png" >&5
4400 echo "${ECHO_T}$ac_cv_gd_needs_png" >&6
4401 LIBS="${OLIBS}"
4402
4403 OLIBS="${LIBS}"
4404 LIBS="${LIBS} ${LIBFT} ${LIBTT} ${LIBPNG} ${LIBZ} ${MATHLIB}"
4405 echo "$as_me:$LINENO: checking \"whether libgd needs -ljpeg\"" >&5
4406 echo $ECHO_N "checking \"whether libgd needs -ljpeg\"... $ECHO_C" >&6
4407 if test "${ac_cv_gd_needs_jpeg+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 #ifdef __cplusplus
4419 extern "C"
4420 #endif
4421 /* We use char because int might match the return type of a gcc2
4422 builtin and then its argument prototype would still apply. */
4423 char gdImageJpeg ();
4424 int
4425 main ()
4426 {
4427 gdImageJpeg ();
4428 ;
4429 return 0;
4430 }
4431 _ACEOF
4432 rm -f conftest.$ac_objext conftest$ac_exeext
4433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4434 (eval $ac_link) 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -z "$ac_c_werror_flag"
4442 || test ! -s conftest.err'
4443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; } &&
4448 { ac_try='test -s conftest$ac_exeext'
4449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4450 (eval $ac_try) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454
4455 ac_cv_gd_needs_jpeg="no"
4456
4457 else
4458 echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4460
4461
4462 ac_cv_gd_needs_jpeg="yes"
4463
4464 fi
4465 rm -f conftest.err conftest.$ac_objext \
4466 conftest$ac_exeext conftest.$ac_ext
4467 fi
4468 echo "$as_me:$LINENO: result: $ac_cv_gd_needs_jpeg" >&5
4469 echo "${ECHO_T}$ac_cv_gd_needs_jpeg" >&6
4470 LIBS="${OLIBS}"
4471
4472 OLIBS="${LIBS}"
4473 LIBS="${LIBS} ${LIBFT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
4474 echo "$as_me:$LINENO: checking \"whether libgd needs -lttf\"" >&5
4475 echo $ECHO_N "checking \"whether libgd needs -lttf\"... $ECHO_C" >&6
4476 if test "${ac_cv_gd_needs_ttf+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 else
4479 cat >conftest.$ac_ext <<_ACEOF
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485
4486 /* Override any gcc2 internal prototype to avoid an error. */
4487 #ifdef __cplusplus
4488 extern "C"
4489 #endif
4490 /* We use char because int might match the return type of a gcc2
4491 builtin and then its argument prototype would still apply. */
4492 char gdImageStringTTF ();
4493 int
4494 main ()
4495 {
4496 gdImageStringTTF ();
4497 ;
4498 return 0;
4499 }
4500 _ACEOF
4501 rm -f conftest.$ac_objext conftest$ac_exeext
4502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4503 (eval $ac_link) 2>conftest.er1
4504 ac_status=$?
4505 grep -v '^ *+' conftest.er1 >conftest.err
4506 rm -f conftest.er1
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } &&
4510 { ac_try='test -z "$ac_c_werror_flag"
4511 || test ! -s conftest.err'
4512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 (eval $ac_try) 2>&5
4514 ac_status=$?
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); }; } &&
4517 { ac_try='test -s conftest$ac_exeext'
4518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523
4524 ac_cv_gd_needs_ttf="no"
4525
4526 else
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530
4531 ac_cv_gd_needs_ttf="yes"
4532
4533 fi
4534 rm -f conftest.err conftest.$ac_objext \
4535 conftest$ac_exeext conftest.$ac_ext
4536 fi
4537 echo "$as_me:$LINENO: result: $ac_cv_gd_needs_ttf" >&5
4538 echo "${ECHO_T}$ac_cv_gd_needs_ttf" >&6
4539 LIBS="${OLIBS}"
4540
4541 OLIBS="${LIBS}"
4542 LIBS="${LIBS} ${LIBTT} ${LIBJPEG} ${LIBPNG} ${LIBZ} ${MATHLIB}"
4543 echo "$as_me:$LINENO: checking \"whether libgd needs -lfreetype\"" >&5
4544 echo $ECHO_N "checking \"whether libgd needs -lfreetype\"... $ECHO_C" >&6
4545 if test "${ac_cv_gd_needs_freetype+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 cat >conftest.$ac_ext <<_ACEOF
4549 /* confdefs.h. */
4550 _ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4554
4555 /* Override any gcc2 internal prototype to avoid an error. */
4556 #ifdef __cplusplus
4557 extern "C"
4558 #endif
4559 /* We use char because int might match the return type of a gcc2
4560 builtin and then its argument prototype would still apply. */
4561 char gdImageStringFT ();
4562 int
4563 main ()
4564 {
4565 gdImageStringFT ();
4566 ;
4567 return 0;
4568 }
4569 _ACEOF
4570 rm -f conftest.$ac_objext conftest$ac_exeext
4571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4572 (eval $ac_link) 2>conftest.er1
4573 ac_status=$?
4574 grep -v '^ *+' conftest.er1 >conftest.err
4575 rm -f conftest.er1
4576 cat conftest.err >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); } &&
4579 { ac_try='test -z "$ac_c_werror_flag"
4580 || test ! -s conftest.err'
4581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4582 (eval $ac_try) 2>&5
4583 ac_status=$?
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); }; } &&
4586 { ac_try='test -s conftest$ac_exeext'
4587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4588 (eval $ac_try) 2>&5
4589 ac_status=$?
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); }; }; then
4592
4593 ac_cv_gd_needs_freetype="no"
4594
4595 else
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599
4600 ac_cv_gd_needs_freetype="yes"
4601
4602 fi
4603 rm -f conftest.err conftest.$ac_objext \
4604 conftest$ac_exeext conftest.$ac_ext
4605 fi
4606 echo "$as_me:$LINENO: result: $ac_cv_gd_needs_freetype" >&5
4607 echo "${ECHO_T}$ac_cv_gd_needs_freetype" >&6
4608 LIBS="${OLIBS}"
4609
4610 if test "$ac_cv_gd_needs_freetype" = "yes"
4611 then
4612 if test "$ac_have_libfreetype" != "yes" -a "$ac_have_libttf" != "yes"
4613 then
4614 echo "** WARNING: Required library libfreetype not found"
4615 fi
4616 LIBS="${LIBS} ${LIBFT}"
4617 fi
4618
4619 if test "$ac_cv_gd_needs_ttf" = "yes"
4620 then
4621 if test "$ac_have_libttf" != "yes" -a "$ac_have_libfreetype" != "yes"
4622 then
4623 echo "** WARNING: Required library libttf not found"
4624 fi
4625 LIBS="${LIBS} ${LIBTT}"
4626 fi
4627
4628 if test "$ac_cv_gd_needs_jpeg" = "yes"
4629 then
4630 if test "$ac_have_libjpeg" != "yes"
4631 then
4632 echo "** WARNING: Required library libjpeg not found"
4633 fi
4634 LIBS="${LIBS} ${LIBJPEG}"
4635 fi
4636
4637 if test "$ac_cv_gd_needs_png" = "yes"
4638 then
4639 if test "$ac_have_libpng" != "yes"
4640 then
4641 echo "** WARNING: Required library libpng not found"
4642 fi
4643 LIBS="${LIBS} ${LIBPNG}"
4644 if test "$ac_cv_png_needs_z" = "yes"
4645 then
4646 if test "$ac_have_libz" != "yes"
4647 then
4648 echo "** WARNING: Required library libz not found"
4649 fi
4650 LIBS="${LIBS} ${LIBZ}"
4651 fi
4652 fi
4653
4654 LIBS="${LIBS} ${MATHLIBS}"
4655
4656 echo "$as_me:$LINENO: checking for gdImageGif in -lgd" >&5
4657 echo $ECHO_N "checking for gdImageGif in -lgd... $ECHO_C" >&6
4658 if test "${ac_cv_lib_gd_gdImageGif+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661 ac_check_lib_save_LIBS=$LIBS
4662 LIBS="-lgd $LIBS"
4663 cat >conftest.$ac_ext <<_ACEOF
4664 /* confdefs.h. */
4665 _ACEOF
4666 cat confdefs.h >>conftest.$ac_ext
4667 cat >>conftest.$ac_ext <<_ACEOF
4668 /* end confdefs.h. */
4669
4670 /* Override any gcc2 internal prototype to avoid an error. */
4671 #ifdef __cplusplus
4672 extern "C"
4673 #endif
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4676 char gdImageGif ();
4677 int
4678 main ()
4679 {
4680 gdImageGif ();
4681 ;
4682 return 0;
4683 }
4684 _ACEOF
4685 rm -f conftest.$ac_objext conftest$ac_exeext
4686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687 (eval $ac_link) 2>conftest.er1
4688 ac_status=$?
4689 grep -v '^ *+' conftest.er1 >conftest.err
4690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
4694 { ac_try='test -z "$ac_c_werror_flag"
4695 || test ! -s conftest.err'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4697 (eval $ac_try) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; } &&
4701 { ac_try='test -s conftest$ac_exeext'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4703 (eval $ac_try) 2>&5
4704 ac_status=$?
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 ac_cv_lib_gd_gdImageGif=yes
4708 else
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 ac_cv_lib_gd_gdImageGif=no
4713 fi
4714 rm -f conftest.err conftest.$ac_objext \
4715 conftest$ac_exeext conftest.$ac_ext
4716 LIBS=$ac_check_lib_save_LIBS
4717 fi
4718 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageGif" >&5
4719 echo "${ECHO_T}$ac_cv_lib_gd_gdImageGif" >&6
4720 if test $ac_cv_lib_gd_gdImageGif = yes; then
4721
4722 cat >>confdefs.h <<\_ACEOF
4723 #define HAVE_IMAGE_GIF 1
4724 _ACEOF
4725
4726 have_gifs="yes"
4727
4728 else
4729 have_gifs="no"
4730
4731 fi
4732
4733
4734
4735 echo "$as_me:$LINENO: checking for gdImagePng in -lgd" >&5
4736 echo $ECHO_N "checking for gdImagePng in -lgd... $ECHO_C" >&6
4737 if test "${ac_cv_lib_gd_gdImagePng+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740 ac_check_lib_save_LIBS=$LIBS
4741 LIBS="-lgd $LIBS"
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748
4749 /* Override any gcc2 internal prototype to avoid an error. */
4750 #ifdef __cplusplus
4751 extern "C"
4752 #endif
4753 /* We use char because int might match the return type of a gcc2
4754 builtin and then its argument prototype would still apply. */
4755 char gdImagePng ();
4756 int
4757 main ()
4758 {
4759 gdImagePng ();
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 rm -f conftest.$ac_objext conftest$ac_exeext
4765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4766 (eval $ac_link) 2>conftest.er1
4767 ac_status=$?
4768 grep -v '^ *+' conftest.er1 >conftest.err
4769 rm -f conftest.er1
4770 cat conftest.err >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); } &&
4773 { ac_try='test -z "$ac_c_werror_flag"
4774 || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest$ac_exeext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 ac_cv_lib_gd_gdImagePng=yes
4787 else
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 ac_cv_lib_gd_gdImagePng=no
4792 fi
4793 rm -f conftest.err conftest.$ac_objext \
4794 conftest$ac_exeext conftest.$ac_ext
4795 LIBS=$ac_check_lib_save_LIBS
4796 fi
4797 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePng" >&5
4798 echo "${ECHO_T}$ac_cv_lib_gd_gdImagePng" >&6
4799 if test $ac_cv_lib_gd_gdImagePng = yes; then
4800
4801 cat >>confdefs.h <<\_ACEOF
4802 #define HAVE_IMAGE_PNG 1
4803 _ACEOF
4804
4805
4806 fi
4807
4808 echo "$as_me:$LINENO: checking for gdImagePngEx in -lgd" >&5
4809 echo $ECHO_N "checking for gdImagePngEx in -lgd... $ECHO_C" >&6
4810 if test "${ac_cv_lib_gd_gdImagePngEx+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4812 else
4813 ac_check_lib_save_LIBS=$LIBS
4814 LIBS="-lgd $LIBS"
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821
4822 /* Override any gcc2 internal prototype to avoid an error. */
4823 #ifdef __cplusplus
4824 extern "C"
4825 #endif
4826 /* We use char because int might match the return type of a gcc2
4827 builtin and then its argument prototype would still apply. */
4828 char gdImagePngEx ();
4829 int
4830 main ()
4831 {
4832 gdImagePngEx ();
4833 ;
4834 return 0;
4835 }
4836 _ACEOF
4837 rm -f conftest.$ac_objext conftest$ac_exeext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4839 (eval $ac_link) 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } &&
4846 { ac_try='test -z "$ac_c_werror_flag"
4847 || test ! -s conftest.err'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; } &&
4853 { ac_try='test -s conftest$ac_exeext'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4855 (eval $ac_try) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 ac_cv_lib_gd_gdImagePngEx=yes
4860 else
4861 echo "$as_me: failed program was:" >&5
4862 sed 's/^/| /' conftest.$ac_ext >&5
4863
4864 ac_cv_lib_gd_gdImagePngEx=no
4865 fi
4866 rm -f conftest.err conftest.$ac_objext \
4867 conftest$ac_exeext conftest.$ac_ext
4868 LIBS=$ac_check_lib_save_LIBS
4869 fi
4870 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImagePngEx" >&5
4871 echo "${ECHO_T}$ac_cv_lib_gd_gdImagePngEx" >&6
4872 if test $ac_cv_lib_gd_gdImagePngEx = yes; then
4873
4874 cat >>confdefs.h <<\_ACEOF
4875 #define HAVE_GDIMAGEPNGEX 1
4876 _ACEOF
4877
4878
4879 fi
4880
4881 echo "$as_me:$LINENO: checking for gdImageJpeg in -lgd" >&5
4882 echo $ECHO_N "checking for gdImageJpeg in -lgd... $ECHO_C" >&6
4883 if test "${ac_cv_lib_gd_gdImageJpeg+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886 ac_check_lib_save_LIBS=$LIBS
4887 LIBS="-lgd $LIBS"
4888 cat >conftest.$ac_ext <<_ACEOF
4889 /* confdefs.h. */
4890 _ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4894
4895 /* Override any gcc2 internal prototype to avoid an error. */
4896 #ifdef __cplusplus
4897 extern "C"
4898 #endif
4899 /* We use char because int might match the return type of a gcc2
4900 builtin and then its argument prototype would still apply. */
4901 char gdImageJpeg ();
4902 int
4903 main ()
4904 {
4905 gdImageJpeg ();
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 rm -f conftest.$ac_objext conftest$ac_exeext
4911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4912 (eval $ac_link) 2>conftest.er1
4913 ac_status=$?
4914 grep -v '^ *+' conftest.er1 >conftest.err
4915 rm -f conftest.er1
4916 cat conftest.err >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); } &&
4919 { ac_try='test -z "$ac_c_werror_flag"
4920 || test ! -s conftest.err'
4921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922 (eval $ac_try) 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; } &&
4926 { ac_try='test -s conftest$ac_exeext'
4927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928 (eval $ac_try) 2>&5
4929 ac_status=$?
4930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4932 ac_cv_lib_gd_gdImageJpeg=yes
4933 else
4934 echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937 ac_cv_lib_gd_gdImageJpeg=no
4938 fi
4939 rm -f conftest.err conftest.$ac_objext \
4940 conftest$ac_exeext conftest.$ac_ext
4941 LIBS=$ac_check_lib_save_LIBS
4942 fi
4943 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageJpeg" >&5
4944 echo "${ECHO_T}$ac_cv_lib_gd_gdImageJpeg" >&6
4945 if test $ac_cv_lib_gd_gdImageJpeg = yes; then
4946
4947 cat >>confdefs.h <<\_ACEOF
4948 #define HAVE_IMAGE_JPEG 1
4949 _ACEOF
4950
4951
4952 fi
4953
4954 echo "$as_me:$LINENO: checking for gdImageStringTTF in -lgd" >&5
4955 echo $ECHO_N "checking for gdImageStringTTF in -lgd... $ECHO_C" >&6
4956 if test "${ac_cv_lib_gd_gdImageStringTTF+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 ac_check_lib_save_LIBS=$LIBS
4960 LIBS="-lgd $LIBS"
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4967
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 #ifdef __cplusplus
4970 extern "C"
4971 #endif
4972 /* We use char because int might match the return type of a gcc2
4973 builtin and then its argument prototype would still apply. */
4974 char gdImageStringTTF ();
4975 int
4976 main ()
4977 {
4978 gdImageStringTTF ();
4979 ;
4980 return 0;
4981 }
4982 _ACEOF
4983 rm -f conftest.$ac_objext conftest$ac_exeext
4984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4985 (eval $ac_link) 2>conftest.er1
4986 ac_status=$?
4987 grep -v '^ *+' conftest.er1 >conftest.err
4988 rm -f conftest.er1
4989 cat conftest.err >&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -z "$ac_c_werror_flag"
4993 || test ! -s conftest.err'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4995 (eval $ac_try) 2>&5
4996 ac_status=$?
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; } &&
4999 { ac_try='test -s conftest$ac_exeext'
5000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 (eval $ac_try) 2>&5
5002 ac_status=$?
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); }; }; then
5005 ac_cv_lib_gd_gdImageStringTTF=yes
5006 else
5007 echo "$as_me: failed program was:" >&5
5008 sed 's/^/| /' conftest.$ac_ext >&5
5009
5010 ac_cv_lib_gd_gdImageStringTTF=no
5011 fi
5012 rm -f conftest.err conftest.$ac_objext \
5013 conftest$ac_exeext conftest.$ac_ext
5014 LIBS=$ac_check_lib_save_LIBS
5015 fi
5016 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringTTF" >&5
5017 echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringTTF" >&6
5018 if test $ac_cv_lib_gd_gdImageStringTTF = yes; then
5019
5020 if test "$ac_have_libttf" = "yes"
5021 then
5022 cat >>confdefs.h <<\_ACEOF
5023 #define HAVE_GDIMAGESTRINGTTF 1
5024 _ACEOF
5025
5026 fi
5027
5028 fi
5029
5030 echo "$as_me:$LINENO: checking for gdImageStringFT in -lgd" >&5
5031 echo $ECHO_N "checking for gdImageStringFT in -lgd... $ECHO_C" >&6
5032 if test "${ac_cv_lib_gd_gdImageStringFT+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 ac_check_lib_save_LIBS=$LIBS
5036 LIBS="-lgd $LIBS"
5037 cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 #ifdef __cplusplus
5046 extern "C"
5047 #endif
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5050 char gdImageStringFT ();
5051 int
5052 main ()
5053 {
5054 gdImageStringFT ();
5055 ;
5056 return 0;
5057 }
5058 _ACEOF
5059 rm -f conftest.$ac_objext conftest$ac_exeext
5060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5061 (eval $ac_link) 2>conftest.er1
5062 ac_status=$?
5063 grep -v '^ *+' conftest.er1 >conftest.err
5064 rm -f conftest.er1
5065 cat conftest.err >&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -z "$ac_c_werror_flag"
5069 || test ! -s conftest.err'
5070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5071 (eval $ac_try) 2>&5
5072 ac_status=$?
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); }; } &&
5075 { ac_try='test -s conftest$ac_exeext'
5076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5077 (eval $ac_try) 2>&5
5078 ac_status=$?
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080 (exit $ac_status); }; }; then
5081 ac_cv_lib_gd_gdImageStringFT=yes
5082 else
5083 echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 ac_cv_lib_gd_gdImageStringFT=no
5087 fi
5088 rm -f conftest.err conftest.$ac_objext \
5089 conftest$ac_exeext conftest.$ac_ext
5090 LIBS=$ac_check_lib_save_LIBS
5091 fi
5092 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageStringFT" >&5
5093 echo "${ECHO_T}$ac_cv_lib_gd_gdImageStringFT" >&6
5094 if test $ac_cv_lib_gd_gdImageStringFT = yes; then
5095
5096 if test "$ac_have_libfreetype" = "yes"
5097 then
5098 cat >>confdefs.h <<\_ACEOF
5099 #define HAVE_GDIMAGESTRINGFT 1
5100 _ACEOF
5101
5102 fi
5103
5104 fi
5105
5106 echo "$as_me:$LINENO: checking for gdImageFilledArc in -lgd" >&5
5107 echo $ECHO_N "checking for gdImageFilledArc in -lgd... $ECHO_C" >&6
5108 if test "${ac_cv_lib_gd_gdImageFilledArc+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 else
5111 ac_check_lib_save_LIBS=$LIBS
5112 LIBS="-lgd $LIBS"
5113 cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h. */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119
5120 /* Override any gcc2 internal prototype to avoid an error. */
5121 #ifdef __cplusplus
5122 extern "C"
5123 #endif
5124 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5126 char gdImageFilledArc ();
5127 int
5128 main ()
5129 {
5130 gdImageFilledArc ();
5131 ;
5132 return 0;
5133 }
5134 _ACEOF
5135 rm -f conftest.$ac_objext conftest$ac_exeext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5137 (eval $ac_link) 2>conftest.er1
5138 ac_status=$?
5139 grep -v '^ *+' conftest.er1 >conftest.err
5140 rm -f conftest.er1
5141 cat conftest.err >&5
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try='test -z "$ac_c_werror_flag"
5145 || test ! -s conftest.err'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; } &&
5151 { ac_try='test -s conftest$ac_exeext'
5152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153 (eval $ac_try) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }; }; then
5157 ac_cv_lib_gd_gdImageFilledArc=yes
5158 else
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5161
5162 ac_cv_lib_gd_gdImageFilledArc=no
5163 fi
5164 rm -f conftest.err conftest.$ac_objext \
5165 conftest$ac_exeext conftest.$ac_ext
5166 LIBS=$ac_check_lib_save_LIBS
5167 fi
5168 echo "$as_me:$LINENO: result: $ac_cv_lib_gd_gdImageFilledArc" >&5
5169 echo "${ECHO_T}$ac_cv_lib_gd_gdImageFilledArc" >&6
5170 if test $ac_cv_lib_gd_gdImageFilledArc = yes; then
5171
5172 cat >>confdefs.h <<\_ACEOF
5173 #define HAVE_GDIMAGEFILLEDARC 1
5174 _ACEOF
5175
5176
5177 fi
5178
5179
5180
5181
5182
5183
5184 ac_config_files="$ac_config_files Makefile"
5185 cat >confcache <<\_ACEOF
5186 # This file is a shell script that caches the results of configure
5187 # tests run on this system so they can be shared between configure
5188 # scripts and configure runs, see configure's option --config-cache.
5189 # It is not useful on other systems. If it contains results you don't
5190 # want to keep, you may remove or edit it.
5191 #
5192 # config.status only pays attention to the cache file if you give it
5193 # the --recheck option to rerun configure.
5194 #
5195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5197 # following values.
5198
5199 _ACEOF
5200
5201 # The following way of writing the cache mishandles newlines in values,
5202 # but we know of no workaround that is simple, portable, and efficient.
5203 # So, don't put newlines in cache variables' values.
5204 # Ultrix sh set writes to stderr and can't be redirected directly,
5205 # and sets the high bit in the cache file unless we assign to the vars.
5206 {
5207 (set) 2>&1 |
5208 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5209 *ac_space=\ *)
5210 # `set' does not quote correctly, so add quotes (double-quote
5211 # substitution turns \\\\ into \\, and sed turns \\ into \).
5212 sed -n \
5213 "s/'/'\\\\''/g;
5214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5215 ;;
5216 *)
5217 # `set' quotes correctly as required by POSIX, so do not add quotes.
5218 sed -n \
5219 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5220 ;;
5221 esac;
5222 } |
5223 sed '
5224 t clear
5225 : clear
5226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5227 t end
5228 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5229 : end' >>confcache
5230 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5231 if test -w $cache_file; then
5232 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5233 cat confcache >$cache_file
5234 else
5235 echo "not updating unwritable cache $cache_file"
5236 fi
5237 fi
5238 rm -f confcache
5239
5240 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5241 # Let make expand exec_prefix.
5242 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5243
5244 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5245 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5246 # trailing colons and then remove the whole line if VPATH becomes empty
5247 # (actually we leave an empty line to preserve line numbers).
5248 if test "x$srcdir" = x.; then
5249 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5250 s/:*\$(srcdir):*/:/;
5251 s/:*\${srcdir}:*/:/;
5252 s/:*@srcdir@:*/:/;
5253 s/^\([^=]*=[ ]*\):*/\1/;
5254 s/:*$//;
5255 s/^[^=]*=[ ]*$//;
5256 }'
5257 fi
5258
5259 DEFS=-DHAVE_CONFIG_H
5260
5261 ac_libobjs=
5262 ac_ltlibobjs=
5263 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5264 # 1. Remove the extension, and $U if already installed.
5265 ac_i=`echo "$ac_i" |
5266 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5267 # 2. Add them.
5268 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5269 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5270 done
5271 LIBOBJS=$ac_libobjs
5272
5273 LTLIBOBJS=$ac_ltlibobjs
5274
5275
5276
5277 : ${CONFIG_STATUS=./config.status}
5278 ac_clean_files_save=$ac_clean_files
5279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5280 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5281 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5282 cat >$CONFIG_STATUS <<_ACEOF
5283 #! $SHELL
5284 # Generated by $as_me.
5285 # Run this file to recreate the current configuration.
5286 # Compiler output produced by configure, useful for debugging
5287 # configure, is in config.log if it exists.
5288
5289 debug=false
5290 ac_cs_recheck=false
5291 ac_cs_silent=false
5292 SHELL=\${CONFIG_SHELL-$SHELL}
5293 _ACEOF
5294
5295 cat >>$CONFIG_STATUS <<\_ACEOF
5296 ## --------------------- ##
5297 ## M4sh Initialization. ##
5298 ## --------------------- ##
5299
5300 # Be Bourne compatible
5301 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5302 emulate sh
5303 NULLCMD=:
5304 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5305 # is contrary to our usage. Disable this feature.
5306 alias -g '${1+"$@"}'='"$@"'
5307 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5308 set -o posix
5309 fi
5310 DUALCASE=1; export DUALCASE # for MKS sh
5311
5312 # Support unset when possible.
5313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5314 as_unset=unset
5315 else
5316 as_unset=false
5317 fi
5318
5319
5320 # Work around bugs in pre-3.0 UWIN ksh.
5321 $as_unset ENV MAIL MAILPATH
5322 PS1='$ '
5323 PS2='> '
5324 PS4='+ '
5325
5326 # NLS nuisances.
5327 for as_var in \
5328 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5329 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5330 LC_TELEPHONE LC_TIME
5331 do
5332 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5333 eval $as_var=C; export $as_var
5334 else
5335 $as_unset $as_var
5336 fi
5337 done
5338
5339 # Required to use basename.
5340 if expr a : '\(a\)' >/dev/null 2>&1; then
5341 as_expr=expr
5342 else
5343 as_expr=false
5344 fi
5345
5346 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5347 as_basename=basename
5348 else
5349 as_basename=false
5350 fi
5351
5352
5353 # Name of the executable.
5354 as_me=`$as_basename "$0" ||
5355 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5356 X"$0" : 'X\(//\)$' \| \
5357 X"$0" : 'X\(/\)$' \| \
5358 . : '\(.\)' 2>/dev/null ||
5359 echo X/"$0" |
5360 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5361 /^X\/\(\/\/\)$/{ s//\1/; q; }
5362 /^X\/\(\/\).*/{ s//\1/; q; }
5363 s/.*/./; q'`
5364
5365
5366 # PATH needs CR, and LINENO needs CR and PATH.
5367 # Avoid depending upon Character Ranges.
5368 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5369 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5370 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5371 as_cr_digits='0123456789'
5372 as_cr_alnum=$as_cr_Letters$as_cr_digits
5373
5374 # The user is always right.
5375 if test "${PATH_SEPARATOR+set}" != set; then
5376 echo "#! /bin/sh" >conf$$.sh
5377 echo "exit 0" >>conf$$.sh
5378 chmod +x conf$$.sh
5379 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5380 PATH_SEPARATOR=';'
5381 else
5382 PATH_SEPARATOR=:
5383 fi
5384 rm -f conf$$.sh
5385 fi
5386
5387
5388 as_lineno_1=$LINENO
5389 as_lineno_2=$LINENO
5390 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5391 test "x$as_lineno_1" != "x$as_lineno_2" &&
5392 test "x$as_lineno_3" = "x$as_lineno_2" || {
5393 # Find who we are. Look in the path if we contain no path at all
5394 # relative or not.
5395 case $0 in
5396 *[\\/]* ) as_myself=$0 ;;
5397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5403 done
5404
5405 ;;
5406 esac
5407 # We did not find ourselves, most probably we were run as `sh COMMAND'
5408 # in which case we are not to be found in the path.
5409 if test "x$as_myself" = x; then
5410 as_myself=$0
5411 fi
5412 if test ! -f "$as_myself"; then
5413 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5414 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5415 { (exit 1); exit 1; }; }
5416 fi
5417 case $CONFIG_SHELL in
5418 '')
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5421 do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for as_base in sh bash ksh sh5; do
5425 case $as_dir in
5426 /*)
5427 if ("$as_dir/$as_base" -c '
5428 as_lineno_1=$LINENO
5429 as_lineno_2=$LINENO
5430 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5431 test "x$as_lineno_1" != "x$as_lineno_2" &&
5432 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5433 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5434 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5435 CONFIG_SHELL=$as_dir/$as_base
5436 export CONFIG_SHELL
5437 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5438 fi;;
5439 esac
5440 done
5441 done
5442 ;;
5443 esac
5444
5445 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5446 # uniformly replaced by the line number. The first 'sed' inserts a
5447 # line-number line before each line; the second 'sed' does the real
5448 # work. The second script uses 'N' to pair each line-number line
5449 # with the numbered line, and appends trailing '-' during
5450 # substitution so that $LINENO is not a special case at line end.
5451 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5452 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5453 sed '=' <$as_myself |
5454 sed '
5455 N
5456 s,$,-,
5457 : loop
5458 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5459 t loop
5460 s,-$,,
5461 s,^['$as_cr_digits']*\n,,
5462 ' >$as_me.lineno &&
5463 chmod +x $as_me.lineno ||
5464 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5465 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5466 { (exit 1); exit 1; }; }
5467
5468 # Don't try to exec as it changes $[0], causing all sort of problems
5469 # (the dirname of $[0] is not the place where we might find the
5470 # original and so on. Autoconf is especially sensible to this).
5471 . ./$as_me.lineno
5472 # Exit status is that of the last command.
5473 exit
5474 }
5475
5476
5477 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5478 *c*,-n*) ECHO_N= ECHO_C='
5479 ' ECHO_T=' ' ;;
5480 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5481 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5482 esac
5483
5484 if expr a : '\(a\)' >/dev/null 2>&1; then
5485 as_expr=expr
5486 else
5487 as_expr=false
5488 fi
5489
5490 rm -f conf$$ conf$$.exe conf$$.file
5491 echo >conf$$.file
5492 if ln -s conf$$.file conf$$ 2>/dev/null; then
5493 # We could just check for DJGPP; but this test a) works b) is more generic
5494 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5495 if test -f conf$$.exe; then
5496 # Don't use ln at all; we don't have any links
5497 as_ln_s='cp -p'
5498 else
5499 as_ln_s='ln -s'
5500 fi
5501 elif ln conf$$.file conf$$ 2>/dev/null; then
5502 as_ln_s=ln
5503 else
5504 as_ln_s='cp -p'
5505 fi
5506 rm -f conf$$ conf$$.exe conf$$.file
5507
5508 if mkdir -p . 2>/dev/null; then
5509 as_mkdir_p=:
5510 else
5511 test -d ./-p && rmdir ./-p
5512 as_mkdir_p=false
5513 fi
5514
5515 as_executable_p="test -f"
5516
5517 # Sed expression to map a string onto a valid CPP name.
5518 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5519
5520 # Sed expression to map a string onto a valid variable name.
5521 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5522
5523
5524 # IFS
5525 # We need space, tab and new line, in precisely that order.
5526 as_nl='
5527 '
5528 IFS=" $as_nl"
5529
5530 # CDPATH.
5531 $as_unset CDPATH
5532
5533 exec 6>&1
5534
5535 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5536 # report actual input values of CONFIG_FILES etc. instead of their
5537 # values after options handling. Logging --version etc. is OK.
5538 exec 5>>config.log
5539 {
5540 echo
5541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5542 ## Running $as_me. ##
5543 _ASBOX
5544 } >&5
5545 cat >&5 <<_CSEOF
5546
5547 This file was extended by $as_me, which was
5548 generated by GNU Autoconf 2.59. Invocation command line was
5549
5550 CONFIG_FILES = $CONFIG_FILES
5551 CONFIG_HEADERS = $CONFIG_HEADERS
5552 CONFIG_LINKS = $CONFIG_LINKS
5553 CONFIG_COMMANDS = $CONFIG_COMMANDS
5554 $ $0 $@
5555
5556 _CSEOF
5557 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5558 echo >&5
5559 _ACEOF
5560
5561 # Files that config.status was made for.
5562 if test -n "$ac_config_files"; then
5563 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5564 fi
5565
5566 if test -n "$ac_config_headers"; then
5567 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5568 fi
5569
5570 if test -n "$ac_config_links"; then
5571 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5572 fi
5573
5574 if test -n "$ac_config_commands"; then
5575 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5576 fi
5577
5578 cat >>$CONFIG_STATUS <<\_ACEOF
5579
5580 ac_cs_usage="\
5581 \`$as_me' instantiates files from templates according to the
5582 current configuration.
5583
5584 Usage: $0 [OPTIONS] [FILE]...
5585
5586 -h, --help print this help, then exit
5587 -V, --version print version number, then exit
5588 -q, --quiet do not print progress messages
5589 -d, --debug don't remove temporary files
5590 --recheck update $as_me by reconfiguring in the same conditions
5591 --file=FILE[:TEMPLATE]
5592 instantiate the configuration file FILE
5593 --header=FILE[:TEMPLATE]
5594 instantiate the configuration header FILE
5595
5596 Configuration files:
5597 $config_files
5598
5599 Configuration headers:
5600 $config_headers
5601
5602 Report bugs to <bug-autoconf@gnu.org>."
5603 _ACEOF
5604
5605 cat >>$CONFIG_STATUS <<_ACEOF
5606 ac_cs_version="\\
5607 config.status
5608 configured by $0, generated by GNU Autoconf 2.59,
5609 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5610
5611 Copyright (C) 2003 Free Software Foundation, Inc.
5612 This config.status script is free software; the Free Software Foundation
5613 gives unlimited permission to copy, distribute and modify it."
5614 srcdir=$srcdir
5615 _ACEOF
5616
5617 cat >>$CONFIG_STATUS <<\_ACEOF
5618 # If no file are specified by the user, then we need to provide default
5619 # value. By we need to know if files were specified by the user.
5620 ac_need_defaults=:
5621 while test $# != 0
5622 do
5623 case $1 in
5624 --*=*)
5625 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5626 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5627 ac_shift=:
5628 ;;
5629 -*)
5630 ac_option=$1
5631 ac_optarg=$2
5632 ac_shift=shift
5633 ;;
5634 *) # This is not an option, so the user has probably given explicit
5635 # arguments.
5636 ac_option=$1
5637 ac_need_defaults=false;;
5638 esac
5639
5640 case $ac_option in
5641 # Handling of the options.
5642 _ACEOF
5643 cat >>$CONFIG_STATUS <<\_ACEOF
5644 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5645 ac_cs_recheck=: ;;
5646 --version | --vers* | -V )
5647 echo "$ac_cs_version"; exit 0 ;;
5648 --he | --h)
5649 # Conflict between --help and --header
5650 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5651 Try \`$0 --help' for more information." >&5
5652 echo "$as_me: error: ambiguous option: $1
5653 Try \`$0 --help' for more information." >&2;}
5654 { (exit 1); exit 1; }; };;
5655 --help | --hel | -h )
5656 echo "$ac_cs_usage"; exit 0 ;;
5657 --debug | --d* | -d )
5658 debug=: ;;
5659 --file | --fil | --fi | --f )
5660 $ac_shift
5661 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5662 ac_need_defaults=false;;
5663 --header | --heade | --head | --hea )
5664 $ac_shift
5665 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5666 ac_need_defaults=false;;
5667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5668 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5669 ac_cs_silent=: ;;
5670
5671 # This is an error.
5672 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5673 Try \`$0 --help' for more information." >&5
5674 echo "$as_me: error: unrecognized option: $1
5675 Try \`$0 --help' for more information." >&2;}
5676 { (exit 1); exit 1; }; } ;;
5677
5678 *) ac_config_targets="$ac_config_targets $1" ;;
5679
5680 esac
5681 shift
5682 done
5683
5684 ac_configure_extra_args=
5685
5686 if $ac_cs_silent; then
5687 exec 6>/dev/null
5688 ac_configure_extra_args="$ac_configure_extra_args --silent"
5689 fi
5690
5691 _ACEOF
5692 cat >>$CONFIG_STATUS <<_ACEOF
5693 if \$ac_cs_recheck; then
5694 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5695 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5696 fi
5697
5698 _ACEOF
5699
5700
5701
5702
5703
5704 cat >>$CONFIG_STATUS <<\_ACEOF
5705 for ac_config_target in $ac_config_targets
5706 do
5707 case "$ac_config_target" in
5708 # Handling of arguments.
5709 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5710 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5711 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5712 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5713 { (exit 1); exit 1; }; };;
5714 esac
5715 done
5716
5717 # If the user did not use the arguments to specify the items to instantiate,
5718 # then the envvar interface is used. Set only those that are not.
5719 # We use the long form for the default assignment because of an extremely
5720 # bizarre bug on SunOS 4.1.3.
5721 if $ac_need_defaults; then
5722 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5723 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5724 fi
5725
5726 # Have a temporary directory for convenience. Make it in the build tree
5727 # simply because there is no reason to put it here, and in addition,
5728 # creating and moving files from /tmp can sometimes cause problems.
5729 # Create a temporary directory, and hook for its removal unless debugging.
5730 $debug ||
5731 {
5732 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5733 trap '{ (exit 1); exit 1; }' 1 2 13 15
5734 }
5735
5736 # Create a (secure) tmp directory for tmp files.
5737
5738 {
5739 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5740 test -n "$tmp" && test -d "$tmp"
5741 } ||
5742 {
5743 tmp=./confstat$$-$RANDOM
5744 (umask 077 && mkdir $tmp)
5745 } ||
5746 {
5747 echo "$me: cannot create a temporary directory in ." >&2
5748 { (exit 1); exit 1; }
5749 }
5750
5751 _ACEOF
5752
5753 cat >>$CONFIG_STATUS <<_ACEOF
5754
5755 #
5756 # CONFIG_FILES section.
5757 #
5758
5759 # No need to generate the scripts if there are no CONFIG_FILES.
5760 # This happens for instance when ./config.status config.h
5761 if test -n "\$CONFIG_FILES"; then
5762 # Protect against being on the right side of a sed subst in config.status.
5763 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5764 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5765 s,@SHELL@,$SHELL,;t t
5766 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5767 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5768 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5769 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5770 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5771 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5772 s,@exec_prefix@,$exec_prefix,;t t
5773 s,@prefix@,$prefix,;t t
5774 s,@program_transform_name@,$program_transform_name,;t t
5775 s,@bindir@,$bindir,;t t
5776 s,@sbindir@,$sbindir,;t t
5777 s,@libexecdir@,$libexecdir,;t t
5778 s,@datadir@,$datadir,;t t
5779 s,@sysconfdir@,$sysconfdir,;t t
5780 s,@sharedstatedir@,$sharedstatedir,;t t
5781 s,@localstatedir@,$localstatedir,;t t
5782 s,@libdir@,$libdir,;t t
5783 s,@includedir@,$includedir,;t t
5784 s,@oldincludedir@,$oldincludedir,;t t
5785 s,@infodir@,$infodir,;t t
5786 s,@mandir@,$mandir,;t t
5787 s,@build_alias@,$build_alias,;t t
5788 s,@host_alias@,$host_alias,;t t
5789 s,@target_alias@,$target_alias,;t t
5790 s,@DEFS@,$DEFS,;t t
5791 s,@ECHO_C@,$ECHO_C,;t t
5792 s,@ECHO_N@,$ECHO_N,;t t
5793 s,@ECHO_T@,$ECHO_T,;t t
5794 s,@LIBS@,$LIBS,;t t
5795 s,@CC@,$CC,;t t
5796 s,@CFLAGS@,$CFLAGS,;t t
5797 s,@LDFLAGS@,$LDFLAGS,;t t
5798 s,@CPPFLAGS@,$CPPFLAGS,;t t
5799 s,@ac_ct_CC@,$ac_ct_CC,;t t
5800 s,@EXEEXT@,$EXEEXT,;t t
5801 s,@OBJEXT@,$OBJEXT,;t t
5802 s,@LEX@,$LEX,;t t
5803 s,@LEXLIB@,$LEXLIB,;t t
5804 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
5805 s,@YACC@,$YACC,;t t
5806 s,@CPP@,$CPP,;t t
5807 s,@EGREP@,$EGREP,;t t
5808 s,@LEXFLAGS@,$LEXFLAGS,;t t
5809 s,@INTTYPE@,$INTTYPE,;t t
5810 s,@LIBOBJS@,$LIBOBJS,;t t
5811 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5812 CEOF
5813
5814 _ACEOF
5815
5816 cat >>$CONFIG_STATUS <<\_ACEOF
5817 # Split the substitutions into bite-sized pieces for seds with
5818 # small command number limits, like on Digital OSF/1 and HP-UX.
5819 ac_max_sed_lines=48
5820 ac_sed_frag=1 # Number of current file.
5821 ac_beg=1 # First line for current file.
5822 ac_end=$ac_max_sed_lines # Line after last line for current file.
5823 ac_more_lines=:
5824 ac_sed_cmds=
5825 while $ac_more_lines; do
5826 if test $ac_beg -gt 1; then
5827 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5828 else
5829 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5830 fi
5831 if test ! -s $tmp/subs.frag; then
5832 ac_more_lines=false
5833 else
5834 # The purpose of the label and of the branching condition is to
5835 # speed up the sed processing (if there are no `@' at all, there
5836 # is no need to browse any of the substitutions).
5837 # These are the two extra sed commands mentioned above.
5838 (echo ':t
5839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5840 if test -z "$ac_sed_cmds"; then
5841 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5842 else
5843 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5844 fi
5845 ac_sed_frag=`expr $ac_sed_frag + 1`
5846 ac_beg=$ac_end
5847 ac_end=`expr $ac_end + $ac_max_sed_lines`
5848 fi
5849 done
5850 if test -z "$ac_sed_cmds"; then
5851 ac_sed_cmds=cat
5852 fi
5853 fi # test -n "$CONFIG_FILES"
5854
5855 _ACEOF
5856 cat >>$CONFIG_STATUS <<\_ACEOF
5857 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5858 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5859 case $ac_file in
5860 - | *:- | *:-:* ) # input from stdin
5861 cat >$tmp/stdin
5862 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5863 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5864 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5865 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5866 * ) ac_file_in=$ac_file.in ;;
5867 esac
5868
5869 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5870 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5871 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5872 X"$ac_file" : 'X\(//\)[^/]' \| \
5873 X"$ac_file" : 'X\(//\)$' \| \
5874 X"$ac_file" : 'X\(/\)' \| \
5875 . : '\(.\)' 2>/dev/null ||
5876 echo X"$ac_file" |
5877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5878 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5879 /^X\(\/\/\)$/{ s//\1/; q; }
5880 /^X\(\/\).*/{ s//\1/; q; }
5881 s/.*/./; q'`
5882 { if $as_mkdir_p; then
5883 mkdir -p "$ac_dir"
5884 else
5885 as_dir="$ac_dir"
5886 as_dirs=
5887 while test ! -d "$as_dir"; do
5888 as_dirs="$as_dir $as_dirs"
5889 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5890 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5891 X"$as_dir" : 'X\(//\)[^/]' \| \
5892 X"$as_dir" : 'X\(//\)$' \| \
5893 X"$as_dir" : 'X\(/\)' \| \
5894 . : '\(.\)' 2>/dev/null ||
5895 echo X"$as_dir" |
5896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5898 /^X\(\/\/\)$/{ s//\1/; q; }
5899 /^X\(\/\).*/{ s//\1/; q; }
5900 s/.*/./; q'`
5901 done
5902 test ! -n "$as_dirs" || mkdir $as_dirs
5903 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5904 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5905 { (exit 1); exit 1; }; }; }
5906
5907 ac_builddir=.
5908
5909 if test "$ac_dir" != .; then
5910 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5911 # A "../" for each directory in $ac_dir_suffix.
5912 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5913 else
5914 ac_dir_suffix= ac_top_builddir=
5915 fi
5916
5917 case $srcdir in
5918 .) # No --srcdir option. We are building in place.
5919 ac_srcdir=.
5920 if test -z "$ac_top_builddir"; then
5921 ac_top_srcdir=.
5922 else
5923 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5924 fi ;;
5925 [\\/]* | ?:[\\/]* ) # Absolute path.
5926 ac_srcdir=$srcdir$ac_dir_suffix;
5927 ac_top_srcdir=$srcdir ;;
5928 *) # Relative path.
5929 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5930 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5931 esac
5932
5933 # Do not use `cd foo && pwd` to compute absolute paths, because
5934 # the directories may not exist.
5935 case `pwd` in
5936 .) ac_abs_builddir="$ac_dir";;
5937 *)
5938 case "$ac_dir" in
5939 .) ac_abs_builddir=`pwd`;;
5940 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5941 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5942 esac;;
5943 esac
5944 case $ac_abs_builddir in
5945 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5946 *)
5947 case ${ac_top_builddir}. in
5948 .) ac_abs_top_builddir=$ac_abs_builddir;;
5949 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5950 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5951 esac;;
5952 esac
5953 case $ac_abs_builddir in
5954 .) ac_abs_srcdir=$ac_srcdir;;
5955 *)
5956 case $ac_srcdir in
5957 .) ac_abs_srcdir=$ac_abs_builddir;;
5958 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5959 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5960 esac;;
5961 esac
5962 case $ac_abs_builddir in
5963 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5964 *)
5965 case $ac_top_srcdir in
5966 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5967 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5968 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5969 esac;;
5970 esac
5971
5972
5973
5974 if test x"$ac_file" != x-; then
5975 { echo "$as_me:$LINENO: creating $ac_file" >&5
5976 echo "$as_me: creating $ac_file" >&6;}
5977 rm -f "$ac_file"
5978 fi
5979 # Let's still pretend it is `configure' which instantiates (i.e., don't
5980 # use $as_me), people would be surprised to read:
5981 # /* config.h. Generated by config.status. */
5982 if test x"$ac_file" = x-; then
5983 configure_input=
5984 else
5985 configure_input="$ac_file. "
5986 fi
5987 configure_input=$configure_input"Generated from `echo $ac_file_in |
5988 sed 's,.*/,,'` by configure."
5989
5990 # First look for the input files in the build tree, otherwise in the
5991 # src tree.
5992 ac_file_inputs=`IFS=:
5993 for f in $ac_file_in; do
5994 case $f in
5995 -) echo $tmp/stdin ;;
5996 [\\/$]*)
5997 # Absolute (can't be DOS-style, as IFS=:)
5998 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5999 echo "$as_me: error: cannot find input file: $f" >&2;}
6000 { (exit 1); exit 1; }; }
6001 echo "$f";;
6002 *) # Relative
6003 if test -f "$f"; then
6004 # Build tree
6005 echo "$f"
6006 elif test -f "$srcdir/$f"; then
6007 # Source tree
6008 echo "$srcdir/$f"
6009 else
6010 # /dev/null tree
6011 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6012 echo "$as_me: error: cannot find input file: $f" >&2;}
6013 { (exit 1); exit 1; }; }
6014 fi;;
6015 esac
6016 done` || { (exit 1); exit 1; }
6017 _ACEOF
6018 cat >>$CONFIG_STATUS <<_ACEOF
6019 sed "$ac_vpsub
6020 $extrasub
6021 _ACEOF
6022 cat >>$CONFIG_STATUS <<\_ACEOF
6023 :t
6024 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6025 s,@configure_input@,$configure_input,;t t
6026 s,@srcdir@,$ac_srcdir,;t t
6027 s,@abs_srcdir@,$ac_abs_srcdir,;t t
6028 s,@top_srcdir@,$ac_top_srcdir,;t t
6029 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6030 s,@builddir@,$ac_builddir,;t t
6031 s,@abs_builddir@,$ac_abs_builddir,;t t
6032 s,@top_builddir@,$ac_top_builddir,;t t
6033 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6034 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6035 rm -f $tmp/stdin
6036 if test x"$ac_file" != x-; then
6037 mv $tmp/out $ac_file
6038 else
6039 cat $tmp/out
6040 rm -f $tmp/out
6041 fi
6042
6043 done
6044 _ACEOF
6045 cat >>$CONFIG_STATUS <<\_ACEOF
6046
6047 #
6048 # CONFIG_HEADER section.
6049 #
6050
6051 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6052 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6053 #
6054 # ac_d sets the value in "#define NAME VALUE" lines.
6055 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6056 ac_dB='[ ].*$,\1#\2'
6057 ac_dC=' '
6058 ac_dD=',;t'
6059 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6060 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6061 ac_uB='$,\1#\2define\3'
6062 ac_uC=' '
6063 ac_uD=',;t'
6064
6065 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6066 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6067 case $ac_file in
6068 - | *:- | *:-:* ) # input from stdin
6069 cat >$tmp/stdin
6070 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6071 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6072 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6073 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6074 * ) ac_file_in=$ac_file.in ;;
6075 esac
6076
6077 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6078 echo "$as_me: creating $ac_file" >&6;}
6079
6080 # First look for the input files in the build tree, otherwise in the
6081 # src tree.
6082 ac_file_inputs=`IFS=:
6083 for f in $ac_file_in; do
6084 case $f in
6085 -) echo $tmp/stdin ;;
6086 [\\/$]*)
6087 # Absolute (can't be DOS-style, as IFS=:)
6088 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6089 echo "$as_me: error: cannot find input file: $f" >&2;}
6090 { (exit 1); exit 1; }; }
6091 # Do quote $f, to prevent DOS paths from being IFS'd.
6092 echo "$f";;
6093 *) # Relative
6094 if test -f "$f"; then
6095 # Build tree
6096 echo "$f"
6097 elif test -f "$srcdir/$f"; then
6098 # Source tree
6099 echo "$srcdir/$f"
6100 else
6101 # /dev/null tree
6102 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6103 echo "$as_me: error: cannot find input file: $f" >&2;}
6104 { (exit 1); exit 1; }; }
6105 fi;;
6106 esac
6107 done` || { (exit 1); exit 1; }
6108 # Remove the trailing spaces.
6109 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6110
6111 _ACEOF
6112
6113 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6114 # `conftest.undefs', that substitutes the proper values into
6115 # config.h.in to produce config.h. The first handles `#define'
6116 # templates, and the second `#undef' templates.
6117 # And first: Protect against being on the right side of a sed subst in
6118 # config.status. Protect against being in an unquoted here document
6119 # in config.status.
6120 rm -f conftest.defines conftest.undefs
6121 # Using a here document instead of a string reduces the quoting nightmare.
6122 # Putting comments in sed scripts is not portable.
6123 #
6124 # `end' is used to avoid that the second main sed command (meant for
6125 # 0-ary CPP macros) applies to n-ary macro definitions.
6126 # See the Autoconf documentation for `clear'.
6127 cat >confdef2sed.sed <<\_ACEOF
6128 s/[\\&,]/\\&/g
6129 s,[\\$`],\\&,g
6130 t clear
6131 : clear
6132 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6133 t end
6134 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6135 : end
6136 _ACEOF
6137 # If some macros were called several times there might be several times
6138 # the same #defines, which is useless. Nevertheless, we may not want to
6139 # sort them, since we want the *last* AC-DEFINE to be honored.
6140 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6141 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6142 rm -f confdef2sed.sed
6143
6144 # This sed command replaces #undef with comments. This is necessary, for
6145 # example, in the case of _POSIX_SOURCE, which is predefined and required
6146 # on some systems where configure will not decide to define it.
6147 cat >>conftest.undefs <<\_ACEOF
6148 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6149 _ACEOF
6150
6151 # Break up conftest.defines because some shells have a limit on the size
6152 # of here documents, and old seds have small limits too (100 cmds).
6153 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6154 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6155 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6156 echo ' :' >>$CONFIG_STATUS
6157 rm -f conftest.tail
6158 while grep . conftest.defines >/dev/null
6159 do
6160 # Write a limited-size here document to $tmp/defines.sed.
6161 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6162 # Speed up: don't consider the non `#define' lines.
6163 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6164 # Work around the forget-to-reset-the-flag bug.
6165 echo 't clr' >>$CONFIG_STATUS
6166 echo ': clr' >>$CONFIG_STATUS
6167 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6168 echo 'CEOF
6169 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6170 rm -f $tmp/in
6171 mv $tmp/out $tmp/in
6172 ' >>$CONFIG_STATUS
6173 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6174 rm -f conftest.defines
6175 mv conftest.tail conftest.defines
6176 done
6177 rm -f conftest.defines
6178 echo ' fi # grep' >>$CONFIG_STATUS
6179 echo >>$CONFIG_STATUS
6180
6181 # Break up conftest.undefs because some shells have a limit on the size
6182 # of here documents, and old seds have small limits too (100 cmds).
6183 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6184 rm -f conftest.tail
6185 while grep . conftest.undefs >/dev/null
6186 do
6187 # Write a limited-size here document to $tmp/undefs.sed.
6188 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6189 # Speed up: don't consider the non `#undef'
6190 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6191 # Work around the forget-to-reset-the-flag bug.
6192 echo 't clr' >>$CONFIG_STATUS
6193 echo ': clr' >>$CONFIG_STATUS
6194 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6195 echo 'CEOF
6196 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6197 rm -f $tmp/in
6198 mv $tmp/out $tmp/in
6199 ' >>$CONFIG_STATUS
6200 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6201 rm -f conftest.undefs
6202 mv conftest.tail conftest.undefs
6203 done
6204 rm -f conftest.undefs
6205
6206 cat >>$CONFIG_STATUS <<\_ACEOF
6207 # Let's still pretend it is `configure' which instantiates (i.e., don't
6208 # use $as_me), people would be surprised to read:
6209 # /* config.h. Generated by config.status. */
6210 if test x"$ac_file" = x-; then
6211 echo "/* Generated by configure. */" >$tmp/config.h
6212 else
6213 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6214 fi
6215 cat $tmp/in >>$tmp/config.h
6216 rm -f $tmp/in
6217 if test x"$ac_file" != x-; then
6218 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6219 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6220 echo "$as_me: $ac_file is unchanged" >&6;}
6221 else
6222 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6223 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6224 X"$ac_file" : 'X\(//\)[^/]' \| \
6225 X"$ac_file" : 'X\(//\)$' \| \
6226 X"$ac_file" : 'X\(/\)' \| \
6227 . : '\(.\)' 2>/dev/null ||
6228 echo X"$ac_file" |
6229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6230 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6231 /^X\(\/\/\)$/{ s//\1/; q; }
6232 /^X\(\/\).*/{ s//\1/; q; }
6233 s/.*/./; q'`
6234 { if $as_mkdir_p; then
6235 mkdir -p "$ac_dir"
6236 else
6237 as_dir="$ac_dir"
6238 as_dirs=
6239 while test ! -d "$as_dir"; do
6240 as_dirs="$as_dir $as_dirs"
6241 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6242 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6243 X"$as_dir" : 'X\(//\)[^/]' \| \
6244 X"$as_dir" : 'X\(//\)$' \| \
6245 X"$as_dir" : 'X\(/\)' \| \
6246 . : '\(.\)' 2>/dev/null ||
6247 echo X"$as_dir" |
6248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6250 /^X\(\/\/\)$/{ s//\1/; q; }
6251 /^X\(\/\).*/{ s//\1/; q; }
6252 s/.*/./; q'`
6253 done
6254 test ! -n "$as_dirs" || mkdir $as_dirs
6255 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6256 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6257 { (exit 1); exit 1; }; }; }
6258
6259 rm -f $ac_file
6260 mv $tmp/config.h $ac_file
6261 fi
6262 else
6263 cat $tmp/config.h
6264 rm -f $tmp/config.h
6265 fi
6266 done
6267 _ACEOF
6268
6269 cat >>$CONFIG_STATUS <<\_ACEOF
6270
6271 { (exit 0); exit 0; }
6272 _ACEOF
6273 chmod +x $CONFIG_STATUS
6274 ac_clean_files=$ac_clean_files_save
6275
6276
6277 # configure is writing to config.log, and then calls config.status.
6278 # config.status does its own redirection, appending to config.log.
6279 # Unfortunately, on DOS this fails, as config.log is still kept open
6280 # by configure, so config.status won't be able to write to it; its
6281 # output is simply discarded. So we exec the FD to /dev/null,
6282 # effectively closing config.log, so it can be properly (re)opened and
6283 # appended to by config.status. When coming back to configure, we
6284 # need to make the FD available again.
6285 if test "$no_create" != yes; then
6286 ac_cs_success=:
6287 ac_config_status_args=
6288 test "$silent" = yes &&
6289 ac_config_status_args="$ac_config_status_args --quiet"
6290 exec 5>/dev/null
6291 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6292 exec 5>>config.log
6293 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6294 # would make configure fail if this is the last instruction.
6295 $ac_cs_success || { (exit 1); exit 1; }
6296 fi
6297
6298
6299 echo "Configure done. Run 'make' to build CvsGraph"
6300

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0