/[CvsGraph]/cvsgraph/configure
ViewVC logotype

Annotate of /cvsgraph/configure

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


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

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0