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