Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="image/imagetypes.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 SET_MAKE
654 build
655 build_cpu
656 build_vendor
657 build_os
658 host
659 host_cpu
660 host_vendor
661 host_os
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CPP
670 AWK
671 YACC
672 YFLAGS
673 LEX
674 LEX_OUTPUT_ROOT
675 LEXLIB
676 mgp_cv_path_perl
677 mgp_cv_path_uuencode
678 mgp_cv_path_gzip
679 mgp_cv_path_uudecode
680 mgp_cv_path_gunzip
681 OPTFLAGS
682 DEPLIBS
683 GREP
684 EGREP
685 LIBOBJS
686 mgp_cv_vflib_a
687 XMKMF
688 USE_IMLIB
689 HAVE_M17NLIB
690 mgp_keywords
691 LTLIBOBJS'
692 ac_subst_files=''
693 ac_precious_vars='build_alias
694 host_alias
695 target_alias
696 CC
697 CFLAGS
698 LDFLAGS
699 LIBS
700 CPPFLAGS
701 CPP
702 YACC
703 YFLAGS
704 XMKMF'
705
706
707 # Initialize some variables set by options.
708 ac_init_help=
709 ac_init_version=false
710 # The variables have the same names as the options, with
711 # dashes changed to underlines.
712 cache_file=/dev/null
713 exec_prefix=NONE
714 no_create=
715 no_recursion=
716 prefix=NONE
717 program_prefix=NONE
718 program_suffix=NONE
719 program_transform_name=s,x,x,
720 silent=
721 site=
722 srcdir=
723 verbose=
724 x_includes=NONE
725 x_libraries=NONE
726
727 # Installation directory options.
728 # These are left unexpanded so users can "make install exec_prefix=/foo"
729 # and all the variables that are supposed to be based on exec_prefix
730 # by default will actually change.
731 # Use braces instead of parens because sh, perl, etc. also accept them.
732 # (The list follows the same order as the GNU Coding Standards.)
733 bindir='${exec_prefix}/bin'
734 sbindir='${exec_prefix}/sbin'
735 libexecdir='${exec_prefix}/libexec'
736 datarootdir='${prefix}/share'
737 datadir='${datarootdir}'
738 sysconfdir='${prefix}/etc'
739 sharedstatedir='${prefix}/com'
740 localstatedir='${prefix}/var'
741 includedir='${prefix}/include'
742 oldincludedir='/usr/include'
743 docdir='${datarootdir}/doc/${PACKAGE}'
744 infodir='${datarootdir}/info'
745 htmldir='${docdir}'
746 dvidir='${docdir}'
747 pdfdir='${docdir}'
748 psdir='${docdir}'
749 libdir='${exec_prefix}/lib'
750 localedir='${datarootdir}/locale'
751 mandir='${datarootdir}/man'
752
753 ac_prev=
754 ac_dashdash=
755 for ac_option
756 do
757 # If the previous option needs an argument, assign it.
758 if test -n "$ac_prev"; then
759 eval $ac_prev=\$ac_option
760 ac_prev=
761 continue
762 fi
763
764 case $ac_option in
765 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
766 *) ac_optarg=yes ;;
767 esac
768
769 # Accept the important Cygnus configure options, so we can diagnose typos.
770
771 case $ac_dashdash$ac_option in
772 --)
773 ac_dashdash=yes ;;
774
775 -bindir | --bindir | --bindi | --bind | --bin | --bi)
776 ac_prev=bindir ;;
777 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
778 bindir=$ac_optarg ;;
779
780 -build | --build | --buil | --bui | --bu)
781 ac_prev=build_alias ;;
782 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
783 build_alias=$ac_optarg ;;
784
785 -cache-file | --cache-file | --cache-fil | --cache-fi \
786 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
787 ac_prev=cache_file ;;
788 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
789 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
790 cache_file=$ac_optarg ;;
791
792 --config-cache | -C)
793 cache_file=config.cache ;;
794
795 -datadir | --datadir | --datadi | --datad)
796 ac_prev=datadir ;;
797 -datadir=* | --datadir=* | --datadi=* | --datad=*)
798 datadir=$ac_optarg ;;
799
800 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
801 | --dataroo | --dataro | --datar)
802 ac_prev=datarootdir ;;
803 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
804 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
805 datarootdir=$ac_optarg ;;
806
807 -disable-* | --disable-*)
808 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
809 # Reject names that are not valid shell variable names.
810 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
811 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
812 { (exit 1); exit 1; }; }
813 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
814 eval enable_$ac_feature=no ;;
815
816 -docdir | --docdir | --docdi | --doc | --do)
817 ac_prev=docdir ;;
818 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
819 docdir=$ac_optarg ;;
820
821 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
822 ac_prev=dvidir ;;
823 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
824 dvidir=$ac_optarg ;;
825
826 -enable-* | --enable-*)
827 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_$ac_feature=\$ac_optarg ;;
834
835 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
836 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
837 | --exec | --exe | --ex)
838 ac_prev=exec_prefix ;;
839 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
840 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
841 | --exec=* | --exe=* | --ex=*)
842 exec_prefix=$ac_optarg ;;
843
844 -gas | --gas | --ga | --g)
845 # Obsolete; use --with-gas.
846 with_gas=yes ;;
847
848 -help | --help | --hel | --he | -h)
849 ac_init_help=long ;;
850 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
851 ac_init_help=recursive ;;
852 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
853 ac_init_help=short ;;
854
855 -host | --host | --hos | --ho)
856 ac_prev=host_alias ;;
857 -host=* | --host=* | --hos=* | --ho=*)
858 host_alias=$ac_optarg ;;
859
860 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
861 ac_prev=htmldir ;;
862 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
863 | --ht=*)
864 htmldir=$ac_optarg ;;
865
866 -includedir | --includedir | --includedi | --included | --include \
867 | --includ | --inclu | --incl | --inc)
868 ac_prev=includedir ;;
869 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
870 | --includ=* | --inclu=* | --incl=* | --inc=*)
871 includedir=$ac_optarg ;;
872
873 -infodir | --infodir | --infodi | --infod | --info | --inf)
874 ac_prev=infodir ;;
875 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
876 infodir=$ac_optarg ;;
877
878 -libdir | --libdir | --libdi | --libd)
879 ac_prev=libdir ;;
880 -libdir=* | --libdir=* | --libdi=* | --libd=*)
881 libdir=$ac_optarg ;;
882
883 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
884 | --libexe | --libex | --libe)
885 ac_prev=libexecdir ;;
886 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
887 | --libexe=* | --libex=* | --libe=*)
888 libexecdir=$ac_optarg ;;
889
890 -localedir | --localedir | --localedi | --localed | --locale)
891 ac_prev=localedir ;;
892 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
893 localedir=$ac_optarg ;;
894
895 -localstatedir | --localstatedir | --localstatedi | --localstated \
896 | --localstate | --localstat | --localsta | --localst | --locals)
897 ac_prev=localstatedir ;;
898 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
899 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
900 localstatedir=$ac_optarg ;;
901
902 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
903 ac_prev=mandir ;;
904 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
905 mandir=$ac_optarg ;;
906
907 -nfp | --nfp | --nf)
908 # Obsolete; use --without-fp.
909 with_fp=no ;;
910
911 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
912 | --no-cr | --no-c | -n)
913 no_create=yes ;;
914
915 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
916 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
917 no_recursion=yes ;;
918
919 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
920 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
921 | --oldin | --oldi | --old | --ol | --o)
922 ac_prev=oldincludedir ;;
923 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
924 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
925 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
926 oldincludedir=$ac_optarg ;;
927
928 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
929 ac_prev=prefix ;;
930 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
931 prefix=$ac_optarg ;;
932
933 -program-prefix | --program-prefix | --program-prefi | --program-pref \
934 | --program-pre | --program-pr | --program-p)
935 ac_prev=program_prefix ;;
936 -program-prefix=* | --program-prefix=* | --program-prefi=* \
937 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
938 program_prefix=$ac_optarg ;;
939
940 -program-suffix | --program-suffix | --program-suffi | --program-suff \
941 | --program-suf | --program-su | --program-s)
942 ac_prev=program_suffix ;;
943 -program-suffix=* | --program-suffix=* | --program-suffi=* \
944 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
945 program_suffix=$ac_optarg ;;
946
947 -program-transform-name | --program-transform-name \
948 | --program-transform-nam | --program-transform-na \
949 | --program-transform-n | --program-transform- \
950 | --program-transform | --program-transfor \
951 | --program-transfo | --program-transf \
952 | --program-trans | --program-tran \
953 | --progr-tra | --program-tr | --program-t)
954 ac_prev=program_transform_name ;;
955 -program-transform-name=* | --program-transform-name=* \
956 | --program-transform-nam=* | --program-transform-na=* \
957 | --program-transform-n=* | --program-transform-=* \
958 | --program-transform=* | --program-transfor=* \
959 | --program-transfo=* | --program-transf=* \
960 | --program-trans=* | --program-tran=* \
961 | --progr-tra=* | --program-tr=* | --program-t=*)
962 program_transform_name=$ac_optarg ;;
963
964 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
965 ac_prev=pdfdir ;;
966 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
967 pdfdir=$ac_optarg ;;
968
969 -psdir | --psdir | --psdi | --psd | --ps)
970 ac_prev=psdir ;;
971 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
972 psdir=$ac_optarg ;;
973
974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
975 | -silent | --silent | --silen | --sile | --sil)
976 silent=yes ;;
977
978 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
979 ac_prev=sbindir ;;
980 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
981 | --sbi=* | --sb=*)
982 sbindir=$ac_optarg ;;
983
984 -sharedstatedir | --sharedstatedir | --sharedstatedi \
985 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
986 | --sharedst | --shareds | --shared | --share | --shar \
987 | --sha | --sh)
988 ac_prev=sharedstatedir ;;
989 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
990 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
991 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
992 | --sha=* | --sh=*)
993 sharedstatedir=$ac_optarg ;;
994
995 -site | --site | --sit)
996 ac_prev=site ;;
997 -site=* | --site=* | --sit=*)
998 site=$ac_optarg ;;
999
1000 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1001 ac_prev=srcdir ;;
1002 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1003 srcdir=$ac_optarg ;;
1004
1005 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1006 | --syscon | --sysco | --sysc | --sys | --sy)
1007 ac_prev=sysconfdir ;;
1008 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1009 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1010 sysconfdir=$ac_optarg ;;
1011
1012 -target | --target | --targe | --targ | --tar | --ta | --t)
1013 ac_prev=target_alias ;;
1014 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1015 target_alias=$ac_optarg ;;
1016
1017 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1018 verbose=yes ;;
1019
1020 -version | --version | --versio | --versi | --vers | -V)
1021 ac_init_version=: ;;
1022
1023 -with-* | --with-*)
1024 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1027 { echo "$as_me: error: invalid package name: $ac_package" >&2
1028 { (exit 1); exit 1; }; }
1029 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1030 eval with_$ac_package=\$ac_optarg ;;
1031
1032 -without-* | --without-*)
1033 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid package name: $ac_package" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039 eval with_$ac_package=no ;;
1040
1041 --x)
1042 # Obsolete; use --with-x.
1043 with_x=yes ;;
1044
1045 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1046 | --x-incl | --x-inc | --x-in | --x-i)
1047 ac_prev=x_includes ;;
1048 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1049 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1050 x_includes=$ac_optarg ;;
1051
1052 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1053 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1054 ac_prev=x_libraries ;;
1055 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1056 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1057 x_libraries=$ac_optarg ;;
1058
1059 -*) { echo "$as_me: error: unrecognized option: $ac_option
1060 Try \`$0 --help' for more information." >&2
1061 { (exit 1); exit 1; }; }
1062 ;;
1063
1064 *=*)
1065 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1068 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1069 { (exit 1); exit 1; }; }
1070 eval $ac_envvar=\$ac_optarg
1071 export $ac_envvar ;;
1072
1073 *)
1074 # FIXME: should be removed in autoconf 3.0.
1075 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1076 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1078 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1079 ;;
1080
1081 esac
1082 done
1083
1084 if test -n "$ac_prev"; then
1085 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1086 { echo "$as_me: error: missing argument to $ac_option" >&2
1087 { (exit 1); exit 1; }; }
1088 fi
1089
1090 # Be sure to have absolute directory names.
1091 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1092 datadir sysconfdir sharedstatedir localstatedir includedir \
1093 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1094 libdir localedir mandir
1095 do
1096 eval ac_val=\$$ac_var
1097 case $ac_val in
1098 [\\/$]* | ?:[\\/]* ) continue;;
1099 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1100 esac
1101 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1102 { (exit 1); exit 1; }; }
1103 done
1104
1105 # There might be people who depend on the old broken behavior: `$host'
1106 # used to hold the argument of --host etc.
1107 # FIXME: To remove some day.
1108 build=$build_alias
1109 host=$host_alias
1110 target=$target_alias
1111
1112 # FIXME: To remove some day.
1113 if test "x$host_alias" != x; then
1114 if test "x$build_alias" = x; then
1115 cross_compiling=maybe
1116 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1117 If a cross compiler is detected then cross compile mode will be used." >&2
1118 elif test "x$build_alias" != "x$host_alias"; then
1119 cross_compiling=yes
1120 fi
1121 fi
1122
1123 ac_tool_prefix=
1124 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1125
1126 test "$silent" = yes && exec 6>/dev/null
1127
1128
1129 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1130 ac_ls_di=`ls -di .` &&
1131 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1132 { echo "$as_me: error: Working directory cannot be determined" >&2
1133 { (exit 1); exit 1; }; }
1134 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1135 { echo "$as_me: error: pwd does not report name of working directory" >&2
1136 { (exit 1); exit 1; }; }
1137
1138
1139 # Find the source files, if location was not specified.
1140 if test -z "$srcdir"; then
1141 ac_srcdir_defaulted=yes
1142 # Try the directory containing this script, then the parent directory.
1143 ac_confdir=`$as_dirname -- "$0" ||
1144 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1145 X"$0" : 'X\(//\)[^/]' \| \
1146 X"$0" : 'X\(//\)$' \| \
1147 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1148 echo X"$0" |
1149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1150 s//\1/
1151 q
1152 }
1153 /^X\(\/\/\)[^/].*/{
1154 s//\1/
1155 q
1156 }
1157 /^X\(\/\/\)$/{
1158 s//\1/
1159 q
1160 }
1161 /^X\(\/\).*/{
1162 s//\1/
1163 q
1164 }
1165 s/.*/./; q'`
1166 srcdir=$ac_confdir
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 srcdir=..
1169 fi
1170 else
1171 ac_srcdir_defaulted=no
1172 fi
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1174 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1175 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1176 { (exit 1); exit 1; }; }
1177 fi
1178 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1179 ac_abs_confdir=`(
1180 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1181 { (exit 1); exit 1; }; }
1182 pwd)`
1183 # When building in place, set srcdir=.
1184 if test "$ac_abs_confdir" = "$ac_pwd"; then
1185 srcdir=.
1186 fi
1187 # Remove unnecessary trailing slashes from srcdir.
1188 # Double slashes in file names in object file debugging info
1189 # mess up M-x gdb in Emacs.
1190 case $srcdir in
1191 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1192 esac
1193 for ac_var in $ac_precious_vars; do
1194 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1195 eval ac_env_${ac_var}_value=\$${ac_var}
1196 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1197 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1198 done
1199
1200 #
1201 # Report the --help message.
1202 #
1203 if test "$ac_init_help" = "long"; then
1204 # Omit some internal or obsolete options to make the list less imposing.
1205 # This message is too long to be a string in the A/UX 3.1 sh.
1206 cat <<_ACEOF
1207 \`configure' configures this package to adapt to many kinds of systems.
1208
1209 Usage: $0 [OPTION]... [VAR=VALUE]...
1210
1211 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1212 VAR=VALUE. See below for descriptions of some of the useful variables.
1213
1214 Defaults for the options are specified in brackets.
1215
1216 Configuration:
1217 -h, --help display this help and exit
1218 --help=short display options specific to this package
1219 --help=recursive display the short help of all the included packages
1220 -V, --version display version information and exit
1221 -q, --quiet, --silent do not print \`checking...' messages
1222 --cache-file=FILE cache test results in FILE [disabled]
1223 -C, --config-cache alias for \`--cache-file=config.cache'
1224 -n, --no-create do not create output files
1225 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1226
1227 Installation directories:
1228 --prefix=PREFIX install architecture-independent files in PREFIX
1229 [$ac_default_prefix]
1230 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1231 [PREFIX]
1232
1233 By default, \`make install' will install all the files in
1234 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1235 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1236 for instance \`--prefix=\$HOME'.
1237
1238 For better control, use the options below.
1239
1240 Fine tuning of the installation directories:
1241 --bindir=DIR user executables [EPREFIX/bin]
1242 --sbindir=DIR system admin executables [EPREFIX/sbin]
1243 --libexecdir=DIR program executables [EPREFIX/libexec]
1244 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1245 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1246 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1247 --libdir=DIR object code libraries [EPREFIX/lib]
1248 --includedir=DIR C header files [PREFIX/include]
1249 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1250 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1251 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1252 --infodir=DIR info documentation [DATAROOTDIR/info]
1253 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1254 --mandir=DIR man documentation [DATAROOTDIR/man]
1255 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1256 --htmldir=DIR html documentation [DOCDIR]
1257 --dvidir=DIR dvi documentation [DOCDIR]
1258 --pdfdir=DIR pdf documentation [DOCDIR]
1259 --psdir=DIR ps documentation [DOCDIR]
1260 _ACEOF
1261
1262 cat <<\_ACEOF
1263
1264 X features:
1265 --x-includes=DIR X include files are in DIR
1266 --x-libraries=DIR X library files are in DIR
1267
1268 System types:
1269 --build=BUILD configure for building on BUILD [guessed]
1270 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1271 _ACEOF
1272 fi
1273
1274 if test -n "$ac_init_help"; then
1275
1276 cat <<\_ACEOF
1277
1278 Optional Features:
1279 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1280 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1281 --enable-debug compile debugging information in.
1282 --enable-locale perform setlocale() on invocation.
1283 --disable-freetype DON'T use freetype1 routines.
1284 --disable-vflib DON'T use vflib routines.
1285 --enable-freetype-charset16 use freetype for chaset16.
1286 --disable-xft2 DON'T use xft2 libraries.
1287 --enable-gif compile gif support in (need libungif).
1288 --enable-imlib use imlib2 exclusively to load images.
1289
1290 Optional Packages:
1291 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1292 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1293 --with-searchpath=PATH additional path for searching includes & libaries.
1294 --with-vfontcap=PATH use PATH as vfontcap
1295 --with-x use the X Window System
1296 --with-m17n-lib use the m17n library
1297
1298 Some influential environment variables:
1299 CC C compiler command
1300 CFLAGS C compiler flags
1301 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1302 nonstandard directory <lib dir>
1303 LIBS libraries to pass to the linker, e.g. -l<library>
1304 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1305 you have headers in a nonstandard directory <include dir>
1306 CPP C preprocessor
1307 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1308 the first program found out of: `bison -y', `byacc', `yacc'.
1309 YFLAGS The list of arguments that will be passed by default to $YACC.
1310 This script will default YFLAGS to the empty string to avoid a
1311 default value of `-d' given by some make applications.
1312 XMKMF Path to xmkmf, Makefile generator for X Window System
1313
1314 Use these variables to override the choices made by `configure' or to help
1315 it to find libraries and programs with nonstandard names/locations.
1316
1317 _ACEOF
1318 ac_status=$?
1319 fi
1320
1321 if test "$ac_init_help" = "recursive"; then
1322 # If there are subdirs, report their specific --help.
1323 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1324 test -d "$ac_dir" || continue
1325 ac_builddir=.
1326
1327 case "$ac_dir" in
1328 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 *)
1330 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1331 # A ".." for each directory in $ac_dir_suffix.
1332 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1333 case $ac_top_builddir_sub in
1334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1336 esac ;;
1337 esac
1338 ac_abs_top_builddir=$ac_pwd
1339 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1340 # for backward compatibility:
1341 ac_top_builddir=$ac_top_build_prefix
1342
1343 case $srcdir in
1344 .) # We are building in place.
1345 ac_srcdir=.
1346 ac_top_srcdir=$ac_top_builddir_sub
1347 ac_abs_top_srcdir=$ac_pwd ;;
1348 [\\/]* | ?:[\\/]* ) # Absolute name.
1349 ac_srcdir=$srcdir$ac_dir_suffix;
1350 ac_top_srcdir=$srcdir
1351 ac_abs_top_srcdir=$srcdir ;;
1352 *) # Relative name.
1353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1354 ac_top_srcdir=$ac_top_build_prefix$srcdir
1355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1356 esac
1357 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358
1359 cd "$ac_dir" || { ac_status=$?; continue; }
1360 # Check for guested configure.
1361 if test -f "$ac_srcdir/configure.gnu"; then
1362 echo &&
1363 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1364 elif test -f "$ac_srcdir/configure"; then
1365 echo &&
1366 $SHELL "$ac_srcdir/configure" --help=recursive
1367 else
1368 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1369 fi || ac_status=$?
1370 cd "$ac_pwd" || { ac_status=$?; break; }
1371 done
1372 fi
1373
1374 test -n "$ac_init_help" && exit $ac_status
1375 if $ac_init_version; then
1376 cat <<\_ACEOF
1377 configure
1378 generated by GNU Autoconf 2.61
1379
1380 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1381 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1382 This configure script is free software; the Free Software Foundation
1383 gives unlimited permission to copy, distribute and modify it.
1384 _ACEOF
1385 exit
1386 fi
1387 cat >config.log <<_ACEOF
1388 This file contains any messages produced by compilers while
1389 running configure, to aid debugging if configure makes a mistake.
1390
1391 It was created by $as_me, which was
1392 generated by GNU Autoconf 2.61. Invocation command line was
1393
1394 $ $0 $@
1395
1396 _ACEOF
1397 exec 5>>config.log
1398 {
1399 cat <<_ASUNAME
1400 ## --------- ##
1401 ## Platform. ##
1402 ## --------- ##
1403
1404 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1405 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1406 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1407 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1408 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1409
1410 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1411 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1412
1413 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1414 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1415 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1416 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1417 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1418 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1419 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1420
1421 _ASUNAME
1422
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1425 do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 echo "PATH: $as_dir"
1429 done
1430 IFS=$as_save_IFS
1431
1432 } >&5
1433
1434 cat >&5 <<_ACEOF
1435
1436
1437 ## ----------- ##
1438 ## Core tests. ##
1439 ## ----------- ##
1440
1441 _ACEOF
1442
1443
1444 # Keep a trace of the command line.
1445 # Strip out --no-create and --no-recursion so they do not pile up.
1446 # Strip out --silent because we don't want to record it for future runs.
1447 # Also quote any args containing shell meta-characters.
1448 # Make two passes to allow for proper duplicate-argument suppression.
1449 ac_configure_args=
1450 ac_configure_args0=
1451 ac_configure_args1=
1452 ac_must_keep_next=false
1453 for ac_pass in 1 2
1454 do
1455 for ac_arg
1456 do
1457 case $ac_arg in
1458 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1460 | -silent | --silent | --silen | --sile | --sil)
1461 continue ;;
1462 *\'*)
1463 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 esac
1465 case $ac_pass in
1466 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1467 2)
1468 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1469 if test $ac_must_keep_next = true; then
1470 ac_must_keep_next=false # Got value, back to normal.
1471 else
1472 case $ac_arg in
1473 *=* | --config-cache | -C | -disable-* | --disable-* \
1474 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1475 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1476 | -with-* | --with-* | -without-* | --without-* | --x)
1477 case "$ac_configure_args0 " in
1478 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1479 esac
1480 ;;
1481 -* ) ac_must_keep_next=true ;;
1482 esac
1483 fi
1484 ac_configure_args="$ac_configure_args '$ac_arg'"
1485 ;;
1486 esac
1487 done
1488 done
1489 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1490 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1491
1492 # When interrupted or exit'd, cleanup temporary files, and complete
1493 # config.log. We remove comments because anyway the quotes in there
1494 # would cause problems or look ugly.
1495 # WARNING: Use '\'' to represent an apostrophe within the trap.
1496 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1497 trap 'exit_status=$?
1498 # Save into config.log some information that might help in debugging.
1499 {
1500 echo
1501
1502 cat <<\_ASBOX
1503 ## ---------------- ##
1504 ## Cache variables. ##
1505 ## ---------------- ##
1506 _ASBOX
1507 echo
1508 # The following way of writing the cache mishandles newlines in values,
1509 (
1510 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1511 eval ac_val=\$$ac_var
1512 case $ac_val in #(
1513 *${as_nl}*)
1514 case $ac_var in #(
1515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1516 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1517 esac
1518 case $ac_var in #(
1519 _ | IFS | as_nl) ;; #(
1520 *) $as_unset $ac_var ;;
1521 esac ;;
1522 esac
1523 done
1524 (set) 2>&1 |
1525 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1526 *${as_nl}ac_space=\ *)
1527 sed -n \
1528 "s/'\''/'\''\\\\'\'''\''/g;
1529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1530 ;; #(
1531 *)
1532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1533 ;;
1534 esac |
1535 sort
1536 )
1537 echo
1538
1539 cat <<\_ASBOX
1540 ## ----------------- ##
1541 ## Output variables. ##
1542 ## ----------------- ##
1543 _ASBOX
1544 echo
1545 for ac_var in $ac_subst_vars
1546 do
1547 eval ac_val=\$$ac_var
1548 case $ac_val in
1549 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1550 esac
1551 echo "$ac_var='\''$ac_val'\''"
1552 done | sort
1553 echo
1554
1555 if test -n "$ac_subst_files"; then
1556 cat <<\_ASBOX
1557 ## ------------------- ##
1558 ## File substitutions. ##
1559 ## ------------------- ##
1560 _ASBOX
1561 echo
1562 for ac_var in $ac_subst_files
1563 do
1564 eval ac_val=\$$ac_var
1565 case $ac_val in
1566 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1567 esac
1568 echo "$ac_var='\''$ac_val'\''"
1569 done | sort
1570 echo
1571 fi
1572
1573 if test -s confdefs.h; then
1574 cat <<\_ASBOX
1575 ## ----------- ##
1576 ## confdefs.h. ##
1577 ## ----------- ##
1578 _ASBOX
1579 echo
1580 cat confdefs.h
1581 echo
1582 fi
1583 test "$ac_signal" != 0 &&
1584 echo "$as_me: caught signal $ac_signal"
1585 echo "$as_me: exit $exit_status"
1586 } >&5
1587 rm -f core *.core core.conftest.* &&
1588 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1589 exit $exit_status
1590 ' 0
1591 for ac_signal in 1 2 13 15; do
1592 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1593 done
1594 ac_signal=0
1595
1596 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1597 rm -f -r conftest* confdefs.h
1598
1599 # Predefined preprocessor variables.
1600
1601 cat >>confdefs.h <<_ACEOF
1602 #define PACKAGE_NAME "$PACKAGE_NAME"
1603 _ACEOF
1604
1605
1606 cat >>confdefs.h <<_ACEOF
1607 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1608 _ACEOF
1609
1610
1611 cat >>confdefs.h <<_ACEOF
1612 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1613 _ACEOF
1614
1615
1616 cat >>confdefs.h <<_ACEOF
1617 #define PACKAGE_STRING "$PACKAGE_STRING"
1618 _ACEOF
1619
1620
1621 cat >>confdefs.h <<_ACEOF
1622 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1623 _ACEOF
1624
1625
1626 # Let the site file select an alternate cache file if it wants to.
1627 # Prefer explicitly selected file to automatically selected ones.
1628 if test -n "$CONFIG_SITE"; then
1629 set x "$CONFIG_SITE"
1630 elif test "x$prefix" != xNONE; then
1631 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1632 else
1633 set x "$ac_default_prefix/share/config.site" \
1634 "$ac_default_prefix/etc/config.site"
1635 fi
1636 shift
1637 for ac_site_file
1638 do
1639 if test -r "$ac_site_file"; then
1640 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1641 echo "$as_me: loading site script $ac_site_file" >&6;}
1642 sed 's/^/| /' "$ac_site_file" >&5
1643 . "$ac_site_file"
1644 fi
1645 done
1646
1647 if test -r "$cache_file"; then
1648 # Some versions of bash will fail to source /dev/null (special
1649 # files actually), so we avoid doing that.
1650 if test -f "$cache_file"; then
1651 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1652 echo "$as_me: loading cache $cache_file" >&6;}
1653 case $cache_file in
1654 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1655 *) . "./$cache_file";;
1656 esac
1657 fi
1658 else
1659 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1660 echo "$as_me: creating cache $cache_file" >&6;}
1661 >$cache_file
1662 fi
1663
1664 # Check that the precious variables saved in the cache have kept the same
1665 # value.
1666 ac_cache_corrupted=false
1667 for ac_var in $ac_precious_vars; do
1668 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1669 eval ac_new_set=\$ac_env_${ac_var}_set
1670 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1671 eval ac_new_val=\$ac_env_${ac_var}_value
1672 case $ac_old_set,$ac_new_set in
1673 set,)
1674 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1675 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1676 ac_cache_corrupted=: ;;
1677 ,set)
1678 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1679 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1680 ac_cache_corrupted=: ;;
1681 ,);;
1682 *)
1683 if test "x$ac_old_val" != "x$ac_new_val"; then
1684 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1685 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1686 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1687 echo "$as_me: former value: $ac_old_val" >&2;}
1688 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1689 echo "$as_me: current value: $ac_new_val" >&2;}
1690 ac_cache_corrupted=:
1691 fi;;
1692 esac
1693 # Pass precious variables to config.status.
1694 if test "$ac_new_set" = set; then
1695 case $ac_new_val in
1696 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1697 *) ac_arg=$ac_var=$ac_new_val ;;
1698 esac
1699 case " $ac_configure_args " in
1700 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1701 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1702 esac
1703 fi
1704 done
1705 if $ac_cache_corrupted; then
1706 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1707 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1708 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1709 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1710 { (exit 1); exit 1; }; }
1711 fi
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729 ac_ext=c
1730 ac_cpp='$CPP $CPPFLAGS'
1731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1734
1735
1736
1737 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1738 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1739 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1740 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1741 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 else
1743 cat >conftest.make <<\_ACEOF
1744 SHELL = /bin/sh
1745 all:
1746 @echo '@@@%%%=$(MAKE)=@@@%%%'
1747 _ACEOF
1748 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1749 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1750 *@@@%%%=?*=@@@%%%*)
1751 eval ac_cv_prog_make_${ac_make}_set=yes;;
1752 *)
1753 eval ac_cv_prog_make_${ac_make}_set=no;;
1754 esac
1755 rm -f conftest.make
1756 fi
1757 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1758 { echo "$as_me:$LINENO: result: yes" >&5
1759 echo "${ECHO_T}yes" >&6; }
1760 SET_MAKE=
1761 else
1762 { echo "$as_me:$LINENO: result: no" >&5
1763 echo "${ECHO_T}no" >&6; }
1764 SET_MAKE="MAKE=${MAKE-make}"
1765 fi
1766
1767 ac_aux_dir=
1768 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1769 if test -f "$ac_dir/install-sh"; then
1770 ac_aux_dir=$ac_dir
1771 ac_install_sh="$ac_aux_dir/install-sh -c"
1772 break
1773 elif test -f "$ac_dir/install.sh"; then
1774 ac_aux_dir=$ac_dir
1775 ac_install_sh="$ac_aux_dir/install.sh -c"
1776 break
1777 elif test -f "$ac_dir/shtool"; then
1778 ac_aux_dir=$ac_dir
1779 ac_install_sh="$ac_aux_dir/shtool install -c"
1780 break
1781 fi
1782 done
1783 if test -z "$ac_aux_dir"; then
1784 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1785 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1786 { (exit 1); exit 1; }; }
1787 fi
1788
1789 # These three variables are undocumented and unsupported,
1790 # and are intended to be withdrawn in a future Autoconf release.
1791 # They can cause serious problems if a builder's source tree is in a directory
1792 # whose full name contains unusual characters.
1793 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1794 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1795 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1796
1797
1798 # Make sure we can run config.sub.
1799 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1800 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1801 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1802 { (exit 1); exit 1; }; }
1803
1804 { echo "$as_me:$LINENO: checking build system type" >&5
1805 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1806 if test "${ac_cv_build+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 ac_build_alias=$build_alias
1810 test "x$ac_build_alias" = x &&
1811 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1812 test "x$ac_build_alias" = x &&
1813 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1814 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1815 { (exit 1); exit 1; }; }
1816 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1817 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1818 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1819 { (exit 1); exit 1; }; }
1820
1821 fi
1822 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1823 echo "${ECHO_T}$ac_cv_build" >&6; }
1824 case $ac_cv_build in
1825 *-*-*) ;;
1826 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1827 echo "$as_me: error: invalid value of canonical build" >&2;}
1828 { (exit 1); exit 1; }; };;
1829 esac
1830 build=$ac_cv_build
1831 ac_save_IFS=$IFS; IFS='-'
1832 set x $ac_cv_build
1833 shift
1834 build_cpu=$1
1835 build_vendor=$2
1836 shift; shift
1837 # Remember, the first character of IFS is used to create $*,
1838 # except with old shells:
1839 build_os=$*
1840 IFS=$ac_save_IFS
1841 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1842
1843
1844 { echo "$as_me:$LINENO: checking host system type" >&5
1845 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1846 if test "${ac_cv_host+set}" = set; then
1847 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849 if test "x$host_alias" = x; then
1850 ac_cv_host=$ac_cv_build
1851 else
1852 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1853 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1854 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1855 { (exit 1); exit 1; }; }
1856 fi
1857
1858 fi
1859 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1860 echo "${ECHO_T}$ac_cv_host" >&6; }
1861 case $ac_cv_host in
1862 *-*-*) ;;
1863 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1864 echo "$as_me: error: invalid value of canonical host" >&2;}
1865 { (exit 1); exit 1; }; };;
1866 esac
1867 host=$ac_cv_host
1868 ac_save_IFS=$IFS; IFS='-'
1869 set x $ac_cv_host
1870 shift
1871 host_cpu=$1
1872 host_vendor=$2
1873 shift; shift
1874 # Remember, the first character of IFS is used to create $*,
1875 # except with old shells:
1876 host_os=$*
1877 IFS=$ac_save_IFS
1878 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1879
1880
1881 ac_ext=c
1882 ac_cpp='$CPP $CPPFLAGS'
1883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1888 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC="$CC" # Let the user override the test.
1896 else
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1907 fi
1908 done
1909 done
1910 IFS=$as_save_IFS
1911
1912 fi
1913 fi
1914 CC=$ac_cv_prog_CC
1915 if test -n "$CC"; then
1916 { echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6; }
1918 else
1919 { echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6; }
1921 fi
1922
1923
1924 fi
1925 if test -z "$ac_cv_prog_CC"; then
1926 ac_ct_CC=$CC
1927 # Extract the first word of "gcc", so it can be a program name with args.
1928 set dummy gcc; ac_word=$2
1929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 if test -n "$ac_ct_CC"; then
1935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1936 else
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1944 ac_cv_prog_ac_ct_CC="gcc"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1946 break 2
1947 fi
1948 done
1949 done
1950 IFS=$as_save_IFS
1951
1952 fi
1953 fi
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6; }
1958 else
1959 { echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6; }
1961 fi
1962
1963 if test "x$ac_ct_CC" = x; then
1964 CC=""
1965 else
1966 case $cross_compiling:$ac_tool_warned in
1967 yes:)
1968 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1969 whose name does not start with the host triplet. If you think this
1970 configuration is useful to you, please write to [email protected]." >&5
1971 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1972 whose name does not start with the host triplet. If you think this
1973 configuration is useful to you, please write to [email protected]." >&2;}
1974 ac_tool_warned=yes ;;
1975 esac
1976 CC=$ac_ct_CC
1977 fi
1978 else
1979 CC="$ac_cv_prog_CC"
1980 fi
1981
1982 if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1985 set dummy ${ac_tool_prefix}cc; ac_word=$2
1986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1988 if test "${ac_cv_prog_CC+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 if test -n "$CC"; then
1992 ac_cv_prog_CC="$CC" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2001 ac_cv_prog_CC="${ac_tool_prefix}cc"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2004 fi
2005 done
2006 done
2007 IFS=$as_save_IFS
2008
2009 fi
2010 fi
2011 CC=$ac_cv_prog_CC
2012 if test -n "$CC"; then
2013 { echo "$as_me:$LINENO: result: $CC" >&5
2014 echo "${ECHO_T}$CC" >&6; }
2015 else
2016 { echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6; }
2018 fi
2019
2020
2021 fi
2022 fi
2023 if test -z "$CC"; then
2024 # Extract the first word of "cc", so it can be a program name with args.
2025 set dummy cc; ac_word=$2
2026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2028 if test "${ac_cv_prog_CC+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031 if test -n "$CC"; then
2032 ac_cv_prog_CC="$CC" # Let the user override the test.
2033 else
2034 ac_prog_rejected=no
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2037 do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2043 ac_prog_rejected=yes
2044 continue
2045 fi
2046 ac_cv_prog_CC="cc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050 done
2051 done
2052 IFS=$as_save_IFS
2053
2054 if test $ac_prog_rejected = yes; then
2055 # We found a bogon in the path, so make sure we never use it.
2056 set dummy $ac_cv_prog_CC
2057 shift
2058 if test $# != 0; then
2059 # We chose a different compiler from the bogus one.
2060 # However, it has the same basename, so the bogon will be chosen
2061 # first if we set CC to just the basename; use the full file name.
2062 shift
2063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2064 fi
2065 fi
2066 fi
2067 fi
2068 CC=$ac_cv_prog_CC
2069 if test -n "$CC"; then
2070 { echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6; }
2072 else
2073 { echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6; }
2075 fi
2076
2077
2078 fi
2079 if test -z "$CC"; then
2080 if test -n "$ac_tool_prefix"; then
2081 for ac_prog in cl.exe
2082 do
2083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2087 if test "${ac_cv_prog_CC+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 else
2090 if test -n "$CC"; then
2091 ac_cv_prog_CC="$CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 break 2
2103 fi
2104 done
2105 done
2106 IFS=$as_save_IFS
2107
2108 fi
2109 fi
2110 CC=$ac_cv_prog_CC
2111 if test -n "$CC"; then
2112 { echo "$as_me:$LINENO: result: $CC" >&5
2113 echo "${ECHO_T}$CC" >&6; }
2114 else
2115 { echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6; }
2117 fi
2118
2119
2120 test -n "$CC" && break
2121 done
2122 fi
2123 if test -z "$CC"; then
2124 ac_ct_CC=$CC
2125 for ac_prog in cl.exe
2126 do
2127 # Extract the first word of "$ac_prog", so it can be a program name with args.
2128 set dummy $ac_prog; ac_word=$2
2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134 if test -n "$ac_ct_CC"; then
2135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2136 else
2137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 for as_dir in $PATH
2139 do
2140 IFS=$as_save_IFS
2141 test -z "$as_dir" && as_dir=.
2142 for ac_exec_ext in '' $ac_executable_extensions; do
2143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2144 ac_cv_prog_ac_ct_CC="$ac_prog"
2145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2146 break 2
2147 fi
2148 done
2149 done
2150 IFS=$as_save_IFS
2151
2152 fi
2153 fi
2154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2155 if test -n "$ac_ct_CC"; then
2156 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2157 echo "${ECHO_T}$ac_ct_CC" >&6; }
2158 else
2159 { echo "$as_me:$LINENO: result: no" >&5
2160 echo "${ECHO_T}no" >&6; }
2161 fi
2162
2163
2164 test -n "$ac_ct_CC" && break
2165 done
2166
2167 if test "x$ac_ct_CC" = x; then
2168 CC=""
2169 else
2170 case $cross_compiling:$ac_tool_warned in
2171 yes:)
2172 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2173 whose name does not start with the host triplet. If you think this
2174 configuration is useful to you, please write to [email protected]." >&5
2175 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2176 whose name does not start with the host triplet. If you think this
2177 configuration is useful to you, please write to [email protected]." >&2;}
2178 ac_tool_warned=yes ;;
2179 esac
2180 CC=$ac_ct_CC
2181 fi
2182 fi
2183
2184 fi
2185
2186
2187 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: no acceptable C compiler found in \$PATH
2190 See \`config.log' for more details." >&2;}
2191 { (exit 1); exit 1; }; }
2192
2193 # Provide some information about the compiler.
2194 echo "$as_me:$LINENO: checking for C compiler version" >&5
2195 ac_compiler=`set X $ac_compile; echo $2`
2196 { (ac_try="$ac_compiler --version >&5"
2197 case "(($ac_try" in
2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199 *) ac_try_echo=$ac_try;;
2200 esac
2201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2202 (eval "$ac_compiler --version >&5") 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }
2206 { (ac_try="$ac_compiler -v >&5"
2207 case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210 esac
2211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2212 (eval "$ac_compiler -v >&5") 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }
2216 { (ac_try="$ac_compiler -V >&5"
2217 case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2220 esac
2221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2222 (eval "$ac_compiler -V >&5") 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }
2226
2227 cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h. */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2233
2234 int
2235 main ()
2236 {
2237
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 ac_clean_files_save=$ac_clean_files
2243 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2244 # Try to create an executable without -o first, disregard a.out.
2245 # It will help us diagnose broken compilers, and finding out an intuition
2246 # of exeext.
2247 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2248 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2249 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2250 #
2251 # List of possible output files, starting from the most likely.
2252 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2253 # only as a last resort. b.out is created by i960 compilers.
2254 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2255 #
2256 # The IRIX 6 linker writes into existing files which may not be
2257 # executable, retaining their permissions. Remove them first so a
2258 # subsequent execution test works.
2259 ac_rmfiles=
2260 for ac_file in $ac_files
2261 do
2262 case $ac_file in
2263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2264 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2265 esac
2266 done
2267 rm -f $ac_rmfiles
2268
2269 if { (ac_try="$ac_link_default"
2270 case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273 esac
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275 (eval "$ac_link_default") 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; then
2279 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2280 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2281 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2282 # so that the user can short-circuit this test for compilers unknown to
2283 # Autoconf.
2284 for ac_file in $ac_files ''
2285 do
2286 test -f "$ac_file" || continue
2287 case $ac_file in
2288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2289 ;;
2290 [ab].out )
2291 # We found the default executable, but exeext='' is most
2292 # certainly right.
2293 break;;
2294 *.* )
2295 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2296 then :; else
2297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2298 fi
2299 # We set ac_cv_exeext here because the later test for it is not
2300 # safe: cross compilers may not add the suffix if given an `-o'
2301 # argument, so we may need to know it at that point already.
2302 # Even if this section looks crufty: it has the advantage of
2303 # actually working.
2304 break;;
2305 * )
2306 break;;
2307 esac
2308 done
2309 test "$ac_cv_exeext" = no && ac_cv_exeext=
2310
2311 else
2312 ac_file=''
2313 fi
2314
2315 { echo "$as_me:$LINENO: result: $ac_file" >&5
2316 echo "${ECHO_T}$ac_file" >&6; }
2317 if test -z "$ac_file"; then
2318 echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: C compiler cannot create executables
2324 See \`config.log' for more details." >&2;}
2325 { (exit 77); exit 77; }; }
2326 fi
2327
2328 ac_exeext=$ac_cv_exeext
2329
2330 # Check that the compiler produces executables we can run. If not, either
2331 # the compiler is broken, or we cross compile.
2332 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2333 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2334 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2335 # If not cross compiling, check that we can run a simple program.
2336 if test "$cross_compiling" != yes; then
2337 if { ac_try='./$ac_file'
2338 { (case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_try") 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 cross_compiling=no
2348 else
2349 if test "$cross_compiling" = maybe; then
2350 cross_compiling=yes
2351 else
2352 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2353 If you meant to cross compile, use \`--host'.
2354 See \`config.log' for more details." >&5
2355 echo "$as_me: error: cannot run C compiled programs.
2356 If you meant to cross compile, use \`--host'.
2357 See \`config.log' for more details." >&2;}
2358 { (exit 1); exit 1; }; }
2359 fi
2360 fi
2361 fi
2362 { echo "$as_me:$LINENO: result: yes" >&5
2363 echo "${ECHO_T}yes" >&6; }
2364
2365 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2366 ac_clean_files=$ac_clean_files_save
2367 # Check that the compiler produces executables we can run. If not, either
2368 # the compiler is broken, or we cross compile.
2369 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2370 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2371 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2372 echo "${ECHO_T}$cross_compiling" >&6; }
2373
2374 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2375 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2376 if { (ac_try="$ac_link"
2377 case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380 esac
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_link") 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; then
2386 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2387 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2388 # work properly (i.e., refer to `conftest.exe'), while it won't with
2389 # `rm'.
2390 for ac_file in conftest.exe conftest conftest.*; do
2391 test -f "$ac_file" || continue
2392 case $ac_file in
2393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2394 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2395 break;;
2396 * ) break;;
2397 esac
2398 done
2399 else
2400 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2403 See \`config.log' for more details." >&2;}
2404 { (exit 1); exit 1; }; }
2405 fi
2406
2407 rm -f conftest$ac_cv_exeext
2408 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2409 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2410
2411 rm -f conftest.$ac_ext
2412 EXEEXT=$ac_cv_exeext
2413 ac_exeext=$EXEEXT
2414 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2415 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2416 if test "${ac_cv_objext+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 cat >conftest.$ac_ext <<_ACEOF
2420 /* confdefs.h. */
2421 _ACEOF
2422 cat confdefs.h >>conftest.$ac_ext
2423 cat >>conftest.$ac_ext <<_ACEOF
2424 /* end confdefs.h. */
2425
2426 int
2427 main ()
2428 {
2429
2430 ;
2431 return 0;
2432 }
2433 _ACEOF
2434 rm -f conftest.o conftest.obj
2435 if { (ac_try="$ac_compile"
2436 case "(($ac_try" in
2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438 *) ac_try_echo=$ac_try;;
2439 esac
2440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2441 (eval "$ac_compile") 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; then
2445 for ac_file in conftest.o conftest.obj conftest.*; do
2446 test -f "$ac_file" || continue;
2447 case $ac_file in
2448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2449 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2450 break;;
2451 esac
2452 done
2453 else
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456
2457 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2458 See \`config.log' for more details." >&5
2459 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2460 See \`config.log' for more details." >&2;}
2461 { (exit 1); exit 1; }; }
2462 fi
2463
2464 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2465 fi
2466 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2467 echo "${ECHO_T}$ac_cv_objext" >&6; }
2468 OBJEXT=$ac_cv_objext
2469 ac_objext=$OBJEXT
2470 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2471 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2472 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h. */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2481
2482 int
2483 main ()
2484 {
2485 #ifndef __GNUC__
2486 choke me
2487 #endif
2488
2489 ;
2490 return 0;
2491 }
2492 _ACEOF
2493 rm -f conftest.$ac_objext
2494 if { (ac_try="$ac_compile"
2495 case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_compile") 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } && {
2507 test -z "$ac_c_werror_flag" ||
2508 test ! -s conftest.err
2509 } && test -s conftest.$ac_objext; then
2510 ac_compiler_gnu=yes
2511 else
2512 echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 ac_compiler_gnu=no
2516 fi
2517
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2519 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2520
2521 fi
2522 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2523 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2524 GCC=`test $ac_compiler_gnu = yes && echo yes`
2525 ac_test_CFLAGS=${CFLAGS+set}
2526 ac_save_CFLAGS=$CFLAGS
2527 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2528 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_cc_g+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 else
2532 ac_save_c_werror_flag=$ac_c_werror_flag
2533 ac_c_werror_flag=yes
2534 ac_cv_prog_cc_g=no
2535 CFLAGS="-g"
2536 cat >conftest.$ac_ext <<_ACEOF
2537 /* confdefs.h. */
2538 _ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h. */
2542
2543 int
2544 main ()
2545 {
2546
2547 ;
2548 return 0;
2549 }
2550 _ACEOF
2551 rm -f conftest.$ac_objext
2552 if { (ac_try="$ac_compile"
2553 case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2556 esac
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558 (eval "$ac_compile") 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } && {
2565 test -z "$ac_c_werror_flag" ||
2566 test ! -s conftest.err
2567 } && test -s conftest.$ac_objext; then
2568 ac_cv_prog_cc_g=yes
2569 else
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 CFLAGS=""
2574 cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2580
2581 int
2582 main ()
2583 {
2584
2585 ;
2586 return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2591 case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_compile") 2>conftest.er1
2597 ac_status=$?
2598 grep -v '^ *+' conftest.er1 >conftest.err
2599 rm -f conftest.er1
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } && {
2603 test -z "$ac_c_werror_flag" ||
2604 test ! -s conftest.err
2605 } && test -s conftest.$ac_objext; then
2606 :
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 ac_c_werror_flag=$ac_save_c_werror_flag
2612 CFLAGS="-g"
2613 cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h. */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h. */
2619
2620 int
2621 main ()
2622 {
2623
2624 ;
2625 return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (ac_try="$ac_compile"
2630 case "(($ac_try" in
2631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632 *) ac_try_echo=$ac_try;;
2633 esac
2634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635 (eval "$ac_compile") 2>conftest.er1
2636 ac_status=$?
2637 grep -v '^ *+' conftest.er1 >conftest.err
2638 rm -f conftest.er1
2639 cat conftest.err >&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); } && {
2642 test -z "$ac_c_werror_flag" ||
2643 test ! -s conftest.err
2644 } && test -s conftest.$ac_objext; then
2645 ac_cv_prog_cc_g=yes
2646 else
2647 echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650
2651 fi
2652
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 fi
2655
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_c_werror_flag=$ac_save_c_werror_flag
2661 fi
2662 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2664 if test "$ac_test_CFLAGS" = set; then
2665 CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667 if test "$GCC" = yes; then
2668 CFLAGS="-g -O2"
2669 else
2670 CFLAGS="-g"
2671 fi
2672 else
2673 if test "$GCC" = yes; then
2674 CFLAGS="-O2"
2675 else
2676 CFLAGS=
2677 fi
2678 fi
2679 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2680 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2681 if test "${ac_cv_prog_cc_c89+set}" = set; then
2682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684 ac_cv_prog_cc_c89=no
2685 ac_save_CC=$CC
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h. */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h. */
2692 #include <stdarg.h>
2693 #include <stdio.h>
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2700 char **p;
2701 int i;
2702 {
2703 return p[i];
2704 }
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2706 {
2707 char *s;
2708 va_list v;
2709 va_start (v,p);
2710 s = g (p, va_arg (v,int));
2711 va_end (v);
2712 return s;
2713 }
2714
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2716 function prototypes and stuff, but not '\xHH' hex character constants.
2717 These don't provoke an error unfortunately, instead are silently treated
2718 as 'x'. The following induces an error, until -std is added to get
2719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2720 array size at least. It's necessary to write '\x00'==0 to get something
2721 that's true only with -std. */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2723
2724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2725 inside strings and character constants. */
2726 #define FOO(x) 'x'
2727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2728
2729 int test (int i, double x);
2730 struct s1 {int (*f) (int a);};
2731 struct s2 {int (*f) (double a);};
2732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2733 int argc;
2734 char **argv;
2735 int
2736 main ()
2737 {
2738 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2739 ;
2740 return 0;
2741 }
2742 _ACEOF
2743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2744 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2745 do
2746 CC="$ac_save_CC $ac_arg"
2747 rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compile") 2>conftest.er1
2755 ac_status=$?
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } && {
2761 test -z "$ac_c_werror_flag" ||
2762 test ! -s conftest.err
2763 } && test -s conftest.$ac_objext; then
2764 ac_cv_prog_cc_c89=$ac_arg
2765 else
2766 echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769
2770 fi
2771
2772 rm -f core conftest.err conftest.$ac_objext
2773 test "x$ac_cv_prog_cc_c89" != "xno" && break
2774 done
2775 rm -f conftest.$ac_ext
2776 CC=$ac_save_CC
2777
2778 fi
2779 # AC_CACHE_VAL
2780 case "x$ac_cv_prog_cc_c89" in
2781 x)
2782 { echo "$as_me:$LINENO: result: none needed" >&5
2783 echo "${ECHO_T}none needed" >&6; } ;;
2784 xno)
2785 { echo "$as_me:$LINENO: result: unsupported" >&5
2786 echo "${ECHO_T}unsupported" >&6; } ;;
2787 *)
2788 CC="$CC $ac_cv_prog_cc_c89"
2789 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2790 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2791 esac
2792
2793
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2806 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2807 # On Suns, sometimes $CPP names a directory.
2808 if test -n "$CPP" && test -d "$CPP"; then
2809 CPP=
2810 fi
2811 if test -z "$CPP"; then
2812 if test "${ac_cv_prog_CPP+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 else
2815 # Double quotes because CPP needs to be expanded
2816 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2817 do
2818 ac_preproc_ok=false
2819 for ac_c_preproc_warn_flag in '' yes
2820 do
2821 # Use a header file that comes with gcc, so configuring glibc
2822 # with a fresh cross-compiler works.
2823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2824 # <limits.h> exists even on freestanding compilers.
2825 # On the NeXT, cc -E runs the code through the compiler's parser,
2826 # not just through cpp. "Syntax error" is here to catch this case.
2827 cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h. */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2833 #ifdef __STDC__
2834 # include <limits.h>
2835 #else
2836 # include <assert.h>
2837 #endif
2838 Syntax error
2839 _ACEOF
2840 if { (ac_try="$ac_cpp conftest.$ac_ext"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2847 ac_status=$?
2848 grep -v '^ *+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } >/dev/null && {
2853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2854 test ! -s conftest.err
2855 }; then
2856 :
2857 else
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2860
2861 # Broken: fails on valid input.
2862 continue
2863 fi
2864
2865 rm -f conftest.err conftest.$ac_ext
2866
2867 # OK, works on sane cases. Now check whether nonexistent headers
2868 # can be detected and how.
2869 cat >conftest.$ac_ext <<_ACEOF
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875 #include <ac_nonexistent.h>
2876 _ACEOF
2877 if { (ac_try="$ac_cpp conftest.$ac_ext"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } >/dev/null && {
2890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 }; then
2893 # Broken: success on invalid input.
2894 continue
2895 else
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2898
2899 # Passes both tests.
2900 ac_preproc_ok=:
2901 break
2902 fi
2903
2904 rm -f conftest.err conftest.$ac_ext
2905
2906 done
2907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2908 rm -f conftest.err conftest.$ac_ext
2909 if $ac_preproc_ok; then
2910 break
2911 fi
2912
2913 done
2914 ac_cv_prog_CPP=$CPP
2915
2916 fi
2917 CPP=$ac_cv_prog_CPP
2918 else
2919 ac_cv_prog_CPP=$CPP
2920 fi
2921 { echo "$as_me:$LINENO: result: $CPP" >&5
2922 echo "${ECHO_T}$CPP" >&6; }
2923 ac_preproc_ok=false
2924 for ac_c_preproc_warn_flag in '' yes
2925 do
2926 # Use a header file that comes with gcc, so configuring glibc
2927 # with a fresh cross-compiler works.
2928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929 # <limits.h> exists even on freestanding compilers.
2930 # On the NeXT, cc -E runs the code through the compiler's parser,
2931 # not just through cpp. "Syntax error" is here to catch this case.
2932 cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h. */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2938 #ifdef __STDC__
2939 # include <limits.h>
2940 #else
2941 # include <assert.h>
2942 #endif
2943 Syntax error
2944 _ACEOF
2945 if { (ac_try="$ac_cpp conftest.$ac_ext"
2946 case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } >/dev/null && {
2958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2959 test ! -s conftest.err
2960 }; then
2961 :
2962 else
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 # Broken: fails on valid input.
2967 continue
2968 fi
2969
2970 rm -f conftest.err conftest.$ac_ext
2971
2972 # OK, works on sane cases. Now check whether nonexistent headers
2973 # can be detected and how.
2974 cat >conftest.$ac_ext <<_ACEOF
2975 /* confdefs.h. */
2976 _ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 #include <ac_nonexistent.h>
2981 _ACEOF
2982 if { (ac_try="$ac_cpp conftest.$ac_ext"
2983 case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986 esac
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null && {
2995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 }; then
2998 # Broken: success on invalid input.
2999 continue
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 # Passes both tests.
3005 ac_preproc_ok=:
3006 break
3007 fi
3008
3009 rm -f conftest.err conftest.$ac_ext
3010
3011 done
3012 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3013 rm -f conftest.err conftest.$ac_ext
3014 if $ac_preproc_ok; then
3015 :
3016 else
3017 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3020 See \`config.log' for more details." >&2;}
3021 { (exit 1); exit 1; }; }
3022 fi
3023
3024 ac_ext=c
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3029
3030 for ac_prog in gawk mawk nawk awk
3031 do
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3036 if test "${ac_cv_prog_AWK+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039 if test -n "$AWK"; then
3040 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_AWK="$ac_prog"
3050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 AWK=$ac_cv_prog_AWK
3060 if test -n "$AWK"; then
3061 { echo "$as_me:$LINENO: result: $AWK" >&5
3062 echo "${ECHO_T}$AWK" >&6; }
3063 else
3064 { echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6; }
3066 fi
3067
3068
3069 test -n "$AWK" && break
3070 done
3071
3072 for ac_prog in 'bison -y' byacc
3073 do
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3078 if test "${ac_cv_prog_YACC+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081 if test -n "$YACC"; then
3082 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087 IFS=$as_save_IFS
3088 test -z "$as_dir" && as_dir=.
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091 ac_cv_prog_YACC="$ac_prog"
3092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 YACC=$ac_cv_prog_YACC
3102 if test -n "$YACC"; then
3103 { echo "$as_me:$LINENO: result: $YACC" >&5
3104 echo "${ECHO_T}$YACC" >&6; }
3105 else
3106 { echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6; }
3108 fi
3109
3110
3111 test -n "$YACC" && break
3112 done
3113 test -n "$YACC" || YACC="yacc"
3114
3115
3116 for ac_prog in flex lex
3117 do
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3122 if test "${ac_cv_prog_LEX+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 else
3125 if test -n "$LEX"; then
3126 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131 IFS=$as_save_IFS
3132 test -z "$as_dir" && as_dir=.
3133 for ac_exec_ext in '' $ac_executable_extensions; do
3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135 ac_cv_prog_LEX="$ac_prog"
3136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 LEX=$ac_cv_prog_LEX
3146 if test -n "$LEX"; then
3147 { echo "$as_me:$LINENO: result: $LEX" >&5
3148 echo "${ECHO_T}$LEX" >&6; }
3149 else
3150 { echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6; }
3152 fi
3153
3154
3155 test -n "$LEX" && break
3156 done
3157 test -n "$LEX" || LEX=":"
3158
3159 if test "x$LEX" != "x:"; then
3160 cat >conftest.l <<_ACEOF
3161 %%
3162 a { ECHO; }
3163 b { REJECT; }
3164 c { yymore (); }
3165 d { yyless (1); }
3166 e { yyless (input () != 0); }
3167 f { unput (yytext[0]); }
3168 . { BEGIN INITIAL; }
3169 %%
3170 #ifdef YYTEXT_POINTER
3171 extern char *yytext;
3172 #endif
3173 int
3174 main (void)
3175 {
3176 return ! yylex () + ! yywrap ();
3177 }
3178 _ACEOF
3179 { (ac_try="$LEX conftest.l"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$LEX conftest.l") 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }
3189 { echo "$as_me:$LINENO: checking lex output file root" >&5
3190 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
3191 if test "${ac_cv_prog_lex_root+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194
3195 if test -f lex.yy.c; then
3196 ac_cv_prog_lex_root=lex.yy
3197 elif test -f lexyy.c; then
3198 ac_cv_prog_lex_root=lexyy
3199 else
3200 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3201 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3202 { (exit 1); exit 1; }; }
3203 fi
3204 fi
3205 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3206 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
3207 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3208
3209 if test -z "${LEXLIB+set}"; then
3210 { echo "$as_me:$LINENO: checking lex library" >&5
3211 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
3212 if test "${ac_cv_lib_lex+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215
3216 ac_save_LIBS=$LIBS
3217 ac_cv_lib_lex='none needed'
3218 for ac_lib in '' -lfl -ll; do
3219 LIBS="$ac_lib $ac_save_LIBS"
3220 cat >conftest.$ac_ext <<_ACEOF
3221 `cat $LEX_OUTPUT_ROOT.c`
3222 _ACEOF
3223 rm -f conftest.$ac_objext conftest$ac_exeext
3224 if { (ac_try="$ac_link"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_link") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest$ac_exeext &&
3240 $as_test_x conftest$ac_exeext; then
3241 ac_cv_lib_lex=$ac_lib
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246
3247 fi
3248
3249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3250 conftest$ac_exeext conftest.$ac_ext
3251 test "$ac_cv_lib_lex" != 'none needed' && break
3252 done
3253 LIBS=$ac_save_LIBS
3254
3255 fi
3256 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3257 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
3258 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3259 fi
3260
3261
3262 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3263 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
3264 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 else
3267 # POSIX says lex can declare yytext either as a pointer or an array; the
3268 # default is implementation-dependent. Figure out which it is, since
3269 # not all implementations provide the %pointer and %array declarations.
3270 ac_cv_prog_lex_yytext_pointer=no
3271 ac_save_LIBS=$LIBS
3272 LIBS="$LEXLIB $ac_save_LIBS"
3273 cat >conftest.$ac_ext <<_ACEOF
3274 #define YYTEXT_POINTER 1
3275 `cat $LEX_OUTPUT_ROOT.c`
3276 _ACEOF
3277 rm -f conftest.$ac_objext conftest$ac_exeext
3278 if { (ac_try="$ac_link"
3279 case "(($ac_try" in
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3282 esac
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_link") 2>conftest.er1
3285 ac_status=$?
3286 grep -v '^ *+' conftest.er1 >conftest.err
3287 rm -f conftest.er1
3288 cat conftest.err >&5
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); } && {
3291 test -z "$ac_c_werror_flag" ||
3292 test ! -s conftest.err
3293 } && test -s conftest$ac_exeext &&
3294 $as_test_x conftest$ac_exeext; then
3295 ac_cv_prog_lex_yytext_pointer=yes
3296 else
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300
3301 fi
3302
3303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3304 conftest$ac_exeext conftest.$ac_ext
3305 LIBS=$ac_save_LIBS
3306
3307 fi
3308 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3309 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
3310 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3311
3312 cat >>confdefs.h <<\_ACEOF
3313 #define YYTEXT_POINTER 1
3314 _ACEOF
3315
3316 fi
3317 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3318
3319 fi
3320 for ac_prog in perl5 perl
3321 do
3322 # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3326 if test "${ac_cv_path_mgp_cv_path_perl+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 case $mgp_cv_path_perl in
3330 [\\/]* | ?:[\\/]*)
3331 ac_cv_path_mgp_cv_path_perl="$mgp_cv_path_perl" # Let the user override the test with a path.
3332 ;;
3333 *)
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 ac_cv_path_mgp_cv_path_perl="$as_dir/$ac_word$ac_exec_ext"
3342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345 done
3346 done
3347 IFS=$as_save_IFS
3348
3349 ;;
3350 esac
3351 fi
3352 mgp_cv_path_perl=$ac_cv_path_mgp_cv_path_perl
3353 if test -n "$mgp_cv_path_perl"; then
3354 { echo "$as_me:$LINENO: result: $mgp_cv_path_perl" >&5
3355 echo "${ECHO_T}$mgp_cv_path_perl" >&6; }
3356 else
3357 { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3359 fi
3360
3361
3362 test -n "$mgp_cv_path_perl" && break
3363 done
3364 test -n "$mgp_cv_path_perl" || mgp_cv_path_perl="no"
3365
3366
3367 for ac_prog in uuencode
3368 do
3369 # Extract the first word of "$ac_prog", so it can be a program name with args.
3370 set dummy $ac_prog; ac_word=$2
3371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3373 if test "${ac_cv_path_mgp_cv_path_uuencode+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 case $mgp_cv_path_uuencode in
3377 [\\/]* | ?:[\\/]*)
3378 ac_cv_path_mgp_cv_path_uuencode="$mgp_cv_path_uuencode" # Let the user override the test with a path.
3379 ;;
3380 *)
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_path_mgp_cv_path_uuencode="$as_dir/$ac_word$ac_exec_ext"
3389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 ;;
3397 esac
3398 fi
3399 mgp_cv_path_uuencode=$ac_cv_path_mgp_cv_path_uuencode
3400 if test -n "$mgp_cv_path_uuencode"; then
3401 { echo "$as_me:$LINENO: result: $mgp_cv_path_uuencode" >&5
3402 echo "${ECHO_T}$mgp_cv_path_uuencode" >&6; }
3403 else
3404 { echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6; }
3406 fi
3407
3408
3409 test -n "$mgp_cv_path_uuencode" && break
3410 done
3411 test -n "$mgp_cv_path_uuencode" || mgp_cv_path_uuencode="no"
3412
3413
3414 for ac_prog in gzip
3415 do
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417 set dummy $ac_prog; ac_word=$2
3418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3420 if test "${ac_cv_path_mgp_cv_path_gzip+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423 case $mgp_cv_path_gzip in
3424 [\\/]* | ?:[\\/]*)
3425 ac_cv_path_mgp_cv_path_gzip="$mgp_cv_path_gzip" # Let the user override the test with a path.
3426 ;;
3427 *)
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_path_mgp_cv_path_gzip="$as_dir/$ac_word$ac_exec_ext"
3436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 ;;
3444 esac
3445 fi
3446 mgp_cv_path_gzip=$ac_cv_path_mgp_cv_path_gzip
3447 if test -n "$mgp_cv_path_gzip"; then
3448 { echo "$as_me:$LINENO: result: $mgp_cv_path_gzip" >&5
3449 echo "${ECHO_T}$mgp_cv_path_gzip" >&6; }
3450 else
3451 { echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6; }
3453 fi
3454
3455
3456 test -n "$mgp_cv_path_gzip" && break
3457 done
3458 test -n "$mgp_cv_path_gzip" || mgp_cv_path_gzip="no"
3459
3460
3461 for ac_prog in uudecode
3462 do
3463 # Extract the first word of "$ac_prog", so it can be a program name with args.
3464 set dummy $ac_prog; ac_word=$2
3465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3467 if test "${ac_cv_path_mgp_cv_path_uudecode+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470 case $mgp_cv_path_uudecode in
3471 [\\/]* | ?:[\\/]*)
3472 ac_cv_path_mgp_cv_path_uudecode="$mgp_cv_path_uudecode" # Let the user override the test with a path.
3473 ;;
3474 *)
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3482 ac_cv_path_mgp_cv_path_uudecode="$as_dir/$ac_word$ac_exec_ext"
3483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486 done
3487 done
3488 IFS=$as_save_IFS
3489
3490 ;;
3491 esac
3492 fi
3493 mgp_cv_path_uudecode=$ac_cv_path_mgp_cv_path_uudecode
3494 if test -n "$mgp_cv_path_uudecode"; then
3495 { echo "$as_me:$LINENO: result: $mgp_cv_path_uudecode" >&5
3496 echo "${ECHO_T}$mgp_cv_path_uudecode" >&6; }
3497 else
3498 { echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6; }
3500 fi
3501
3502
3503 test -n "$mgp_cv_path_uudecode" && break
3504 done
3505 test -n "$mgp_cv_path_uudecode" || mgp_cv_path_uudecode="no"
3506
3507 for ac_prog in gunzip
3508 do
3509 # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3513 if test "${ac_cv_path_mgp_cv_path_gunzip+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516 case $mgp_cv_path_gunzip in
3517 [\\/]* | ?:[\\/]*)
3518 ac_cv_path_mgp_cv_path_gunzip="$mgp_cv_path_gunzip" # Let the user override the test with a path.
3519 ;;
3520 *)
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_path_mgp_cv_path_gunzip="$as_dir/$ac_word$ac_exec_ext"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532 done
3533 done
3534 IFS=$as_save_IFS
3535
3536 ;;
3537 esac
3538 fi
3539 mgp_cv_path_gunzip=$ac_cv_path_mgp_cv_path_gunzip
3540 if test -n "$mgp_cv_path_gunzip"; then
3541 { echo "$as_me:$LINENO: result: $mgp_cv_path_gunzip" >&5
3542 echo "${ECHO_T}$mgp_cv_path_gunzip" >&6; }
3543 else
3544 { echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6; }
3546 fi
3547
3548
3549 test -n "$mgp_cv_path_gunzip" && break
3550 done
3551 test -n "$mgp_cv_path_gunzip" || mgp_cv_path_gunzip="no"
3552
3553
3554 OPTFLAGS=
3555
3556 DEPLIBS=
3557
3558
3559 SHLIBEXT=so
3560 case $host_os in
3561 freebsd5*|freebsd4*|freebsd3*|freebsd2.2.6*|freebsd2.2.7*|freebsd2.2.8*)
3562 OPTFLAGS="$OPTFLAGS -DUUDECODEOPT=\\\"-s\\\""
3563 ;;
3564 darwin*)
3565 SHLIBEXT=dylib
3566 ;;
3567 esac
3568 OPTFLAGS="$OPTFLAGS -DUUDECODE=\\\"$mgp_cv_path_uudecode\\\""
3569 OPTFLAGS="$OPTFLAGS -DGUNZIP=\\\"$mgp_cv_path_gunzip\\\""
3570
3571 { echo "$as_me:$LINENO: checking if debugging is enabled" >&5
3572 echo $ECHO_N "checking if debugging is enabled... $ECHO_C" >&6; }
3573 # Check whether --enable-debug was given.
3574 if test "${enable_debug+set}" = set; then
3575 enableval=$enable_debug; mgp_debug="$enableval"
3576 else
3577 mgp_debug="no"
3578 fi
3579
3580 if test "$mgp_debug" = "yes"; then
3581 OPTFLAGS="$OPTFLAGS -g -DDEBUG -Wall"
3582 fi
3583 { echo "$as_me:$LINENO: result: $mgp_debug" >&5
3584 echo "${ECHO_T}$mgp_debug" >&6; }
3585
3586 { echo "$as_me:$LINENO: checking if setlocale() should be used" >&5
3587 echo $ECHO_N "checking if setlocale() should be used... $ECHO_C" >&6; }
3588 # Check whether --enable-locale was given.
3589 if test "${enable_locale+set}" = set; then
3590 enableval=$enable_locale; mgp_locale="$enableval"
3591 else
3592 mgp_locale="no"
3593 fi
3594
3595 if test $mgp_locale = "yes"; then
3596 OPTFLAGS="$OPTFLAGS -DUSE_SETLOCALE"
3597 fi
3598 { echo "$as_me:$LINENO: result: $mgp_locale" >&5
3599 echo "${ECHO_T}$mgp_locale" >&6; }
3600
3601
3602 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3603 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3604 if test "${ac_cv_path_GREP+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606 else
3607 # Extract the first word of "grep ggrep" to use in msg output
3608 if test -z "$GREP"; then
3609 set dummy grep ggrep; ac_prog_name=$2
3610 if test "${ac_cv_path_GREP+set}" = set; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613 ac_path_GREP_found=false
3614 # Loop through the user's path and test for each of PROGNAME-LIST
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3617 do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_prog in grep ggrep; do
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3623 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3624 # Check for GNU ac_path_GREP and select it if it is found.
3625 # Check for GNU $ac_path_GREP
3626 case `"$ac_path_GREP" --version 2>&1` in
3627 *GNU*)
3628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3629 *)
3630 ac_count=0
3631 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3632 while :
3633 do
3634 cat "conftest.in" "conftest.in" >"conftest.tmp"
3635 mv "conftest.tmp" "conftest.in"
3636 cp "conftest.in" "conftest.nl"
3637 echo 'GREP' >> "conftest.nl"
3638 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3640 ac_count=`expr $ac_count + 1`
3641 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3642 # Best one so far, save it but keep looking for a better one
3643 ac_cv_path_GREP="$ac_path_GREP"
3644 ac_path_GREP_max=$ac_count
3645 fi
3646 # 10*(2^10) chars as input seems more than enough
3647 test $ac_count -gt 10 && break
3648 done
3649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3650 esac
3651
3652
3653 $ac_path_GREP_found && break 3
3654 done
3655 done
3656
3657 done
3658 IFS=$as_save_IFS
3659
3660
3661 fi
3662
3663 GREP="$ac_cv_path_GREP"
3664 if test -z "$GREP"; then
3665 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3666 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3667 { (exit 1); exit 1; }; }
3668 fi
3669
3670 else
3671 ac_cv_path_GREP=$GREP
3672 fi
3673
3674
3675 fi
3676 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3677 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3678 GREP="$ac_cv_path_GREP"
3679
3680
3681 { echo "$as_me:$LINENO: checking for egrep" >&5
3682 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3683 if test "${ac_cv_path_EGREP+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 else
3686 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3687 then ac_cv_path_EGREP="$GREP -E"
3688 else
3689 # Extract the first word of "egrep" to use in msg output
3690 if test -z "$EGREP"; then
3691 set dummy egrep; ac_prog_name=$2
3692 if test "${ac_cv_path_EGREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 ac_path_EGREP_found=false
3696 # Loop through the user's path and test for each of PROGNAME-LIST
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_prog in egrep; do
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3705 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3706 # Check for GNU ac_path_EGREP and select it if it is found.
3707 # Check for GNU $ac_path_EGREP
3708 case `"$ac_path_EGREP" --version 2>&1` in
3709 *GNU*)
3710 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3711 *)
3712 ac_count=0
3713 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3714 while :
3715 do
3716 cat "conftest.in" "conftest.in" >"conftest.tmp"
3717 mv "conftest.tmp" "conftest.in"
3718 cp "conftest.in" "conftest.nl"
3719 echo 'EGREP' >> "conftest.nl"
3720 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3721 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3722 ac_count=`expr $ac_count + 1`
3723 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3724 # Best one so far, save it but keep looking for a better one
3725 ac_cv_path_EGREP="$ac_path_EGREP"
3726 ac_path_EGREP_max=$ac_count
3727 fi
3728 # 10*(2^10) chars as input seems more than enough
3729 test $ac_count -gt 10 && break
3730 done
3731 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3732 esac
3733
3734
3735 $ac_path_EGREP_found && break 3
3736 done
3737 done
3738
3739 done
3740 IFS=$as_save_IFS
3741
3742
3743 fi
3744
3745 EGREP="$ac_cv_path_EGREP"
3746 if test -z "$EGREP"; then
3747 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3748 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3749 { (exit 1); exit 1; }; }
3750 fi
3751
3752 else
3753 ac_cv_path_EGREP=$EGREP
3754 fi
3755
3756
3757 fi
3758 fi
3759 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3760 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3761 EGREP="$ac_cv_path_EGREP"
3762
3763
3764 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3765 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3766 if test "${ac_cv_header_stdc+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 cat >conftest.$ac_ext <<_ACEOF
3770 /* confdefs.h. */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3775 #include <stdlib.h>
3776 #include <stdarg.h>
3777 #include <string.h>
3778 #include <float.h>
3779
3780 int
3781 main ()
3782 {
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (ac_try="$ac_compile"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_compile") 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && {
3802 test -z "$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 } && test -s conftest.$ac_objext; then
3805 ac_cv_header_stdc=yes
3806 else
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 ac_cv_header_stdc=no
3811 fi
3812
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814
3815 if test $ac_cv_header_stdc = yes; then
3816 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3817 cat >conftest.$ac_ext <<_ACEOF
3818 /* confdefs.h. */
3819 _ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3823 #include <string.h>
3824
3825 _ACEOF
3826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3827 $EGREP "memchr" >/dev/null 2>&1; then
3828 :
3829 else
3830 ac_cv_header_stdc=no
3831 fi
3832 rm -f conftest*
3833
3834 fi
3835
3836 if test $ac_cv_header_stdc = yes; then
3837 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <stdlib.h>
3845
3846 _ACEOF
3847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3848 $EGREP "free" >/dev/null 2>&1; then
3849 :
3850 else
3851 ac_cv_header_stdc=no
3852 fi
3853 rm -f conftest*
3854
3855 fi
3856
3857 if test $ac_cv_header_stdc = yes; then
3858 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3859 if test "$cross_compiling" = yes; then
3860 :
3861 else
3862 cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h. */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3868 #include <ctype.h>
3869 #include <stdlib.h>
3870 #if ((' ' & 0x0FF) == 0x020)
3871 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3872 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3873 #else
3874 # define ISLOWER(c) \
3875 (('a' <= (c) && (c) <= 'i') \
3876 || ('j' <= (c) && (c) <= 'r') \
3877 || ('s' <= (c) && (c) <= 'z'))
3878 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3879 #endif
3880
3881 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3882 int
3883 main ()
3884 {
3885 int i;
3886 for (i = 0; i < 256; i++)
3887 if (XOR (islower (i), ISLOWER (i))
3888 || toupper (i) != TOUPPER (i))
3889 return 2;
3890 return 0;
3891 }
3892 _ACEOF
3893 rm -f conftest$ac_exeext
3894 if { (ac_try="$ac_link"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_link") 2>&5
3901 ac_status=$?
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3904 { (case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_try") 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then
3913 :
3914 else
3915 echo "$as_me: program exited with status $ac_status" >&5
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 ( exit $ac_status )
3920 ac_cv_header_stdc=no
3921 fi
3922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3923 fi
3924
3925
3926 fi
3927 fi
3928 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3929 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3930 if test $ac_cv_header_stdc = yes; then
3931
3932 cat >>confdefs.h <<\_ACEOF
3933 #define STDC_HEADERS 1
3934 _ACEOF
3935
3936 fi
3937
3938 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3939 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
3940 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3941 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <sys/types.h>
3950 #include <sys/wait.h>
3951 #ifndef WEXITSTATUS
3952 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
3953 #endif
3954 #ifndef WIFEXITED
3955 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3956 #endif
3957
3958 int
3959 main ()
3960 {
3961 int s;
3962 wait (&s);
3963 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3964 ;
3965 return 0;
3966 }
3967 _ACEOF
3968 rm -f conftest.$ac_objext
3969 if { (ac_try="$ac_compile"
3970 case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973 esac
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_compile") 2>conftest.er1
3976 ac_status=$?
3977 grep -v '^ *+' conftest.er1 >conftest.err
3978 rm -f conftest.er1
3979 cat conftest.err >&5
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } && {
3982 test -z "$ac_c_werror_flag" ||
3983 test ! -s conftest.err
3984 } && test -s conftest.$ac_objext; then
3985 ac_cv_header_sys_wait_h=yes
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 ac_cv_header_sys_wait_h=no
3991 fi
3992
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994 fi
3995 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3996 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
3997 if test $ac_cv_header_sys_wait_h = yes; then
3998
3999 cat >>confdefs.h <<\_ACEOF
4000 #define HAVE_SYS_WAIT_H 1
4001 _ACEOF
4002
4003 fi
4004
4005 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016 inttypes.h stdint.h unistd.h
4017 do
4018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4020 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023 else
4024 cat >conftest.$ac_ext <<_ACEOF
4025 /* confdefs.h. */
4026 _ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 $ac_includes_default
4031
4032 #include <$ac_header>
4033 _ACEOF
4034 rm -f conftest.$ac_objext
4035 if { (ac_try="$ac_compile"
4036 case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039 esac
4040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } && {
4048 test -z "$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4050 } && test -s conftest.$ac_objext; then
4051 eval "$as_ac_Header=yes"
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056 eval "$as_ac_Header=no"
4057 fi
4058
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 fi
4061 ac_res=`eval echo '${'$as_ac_Header'}'`
4062 { echo "$as_me:$LINENO: result: $ac_res" >&5
4063 echo "${ECHO_T}$ac_res" >&6; }
4064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4065 cat >>confdefs.h <<_ACEOF
4066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4067 _ACEOF
4068
4069 fi
4070
4071 done
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084 for ac_header in fcntl.h strings.h sys/file.h unistd.h sys/time.h sys/select.h stdarg.h varargs.h termios.h locale.h
4085 do
4086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 fi
4093 ac_res=`eval echo '${'$as_ac_Header'}'`
4094 { echo "$as_me:$LINENO: result: $ac_res" >&5
4095 echo "${ECHO_T}$ac_res" >&6; }
4096 else
4097 # Is the header compilable?
4098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 $ac_includes_default
4107 #include <$ac_header>
4108 _ACEOF
4109 rm -f conftest.$ac_objext
4110 if { (ac_try="$ac_compile"
4111 case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114 esac
4115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_compile") 2>conftest.er1
4117 ac_status=$?
4118 grep -v '^ *+' conftest.er1 >conftest.err
4119 rm -f conftest.er1
4120 cat conftest.err >&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); } && {
4123 test -z "$ac_c_werror_flag" ||
4124 test ! -s conftest.err
4125 } && test -s conftest.$ac_objext; then
4126 ac_header_compiler=yes
4127 else
4128 echo "$as_me: failed program was:" >&5
4129 sed 's/^/| /' conftest.$ac_ext >&5
4130
4131 ac_header_compiler=no
4132 fi
4133
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4136 echo "${ECHO_T}$ac_header_compiler" >&6; }
4137
4138 # Is the header present?
4139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4141 cat >conftest.$ac_ext <<_ACEOF
4142 /* confdefs.h. */
4143 _ACEOF
4144 cat confdefs.h >>conftest.$ac_ext
4145 cat >>conftest.$ac_ext <<_ACEOF
4146 /* end confdefs.h. */
4147 #include <$ac_header>
4148 _ACEOF
4149 if { (ac_try="$ac_cpp conftest.$ac_ext"
4150 case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } >/dev/null && {
4162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4164 }; then
4165 ac_header_preproc=yes
4166 else
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4169
4170 ac_header_preproc=no
4171 fi
4172
4173 rm -f conftest.err conftest.$ac_ext
4174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4175 echo "${ECHO_T}$ac_header_preproc" >&6; }
4176
4177 # So? What about this header?
4178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4179 yes:no: )
4180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4184 ac_header_preproc=yes
4185 ;;
4186 no:yes:* )
4187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4199
4200 ;;
4201 esac
4202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 eval "$as_ac_Header=\$ac_header_preproc"
4208 fi
4209 ac_res=`eval echo '${'$as_ac_Header'}'`
4210 { echo "$as_me:$LINENO: result: $ac_res" >&5
4211 echo "${ECHO_T}$ac_res" >&6; }
4212
4213 fi
4214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4215 cat >>confdefs.h <<_ACEOF
4216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217 _ACEOF
4218
4219 fi
4220
4221 done
4222
4223
4224 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4225 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4226 if test "${ac_cv_c_const+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235
4236 int
4237 main ()
4238 {
4239 /* FIXME: Include the comments suggested by Paul. */
4240 #ifndef __cplusplus
4241 /* Ultrix mips cc rejects this. */
4242 typedef int charset[2];
4243 const charset cs;
4244 /* SunOS 4.1.1 cc rejects this. */
4245 char const *const *pcpcc;
4246 char **ppc;
4247 /* NEC SVR4.0.2 mips cc rejects this. */
4248 struct point {int x, y;};
4249 static struct point const zero = {0,0};
4250 /* AIX XL C 1.02.0.0 rejects this.
4251 It does not let you subtract one const X* pointer from another in
4252 an arm of an if-expression whose if-part is not a constant
4253 expression */
4254 const char *g = "string";
4255 pcpcc = &g + (g ? g-g : 0);
4256 /* HPUX 7.0 cc rejects these. */
4257 ++pcpcc;
4258 ppc = (char**) pcpcc;
4259 pcpcc = (char const *const *) ppc;
4260 { /* SCO 3.2v4 cc rejects this. */
4261 char *t;
4262 char const *s = 0 ? (char *) 0 : (char const *) 0;
4263
4264 *t++ = 0;
4265 if (s) return 0;
4266 }
4267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4268 int x[] = {25, 17};
4269 const int *foo = &x[0];
4270 ++foo;
4271 }
4272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4273 typedef const int *iptr;
4274 iptr p = 0;
4275 ++p;
4276 }
4277 { /* AIX XL C 1.02.0.0 rejects this saying
4278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4279 struct s { int j; const int *ap[3]; };
4280 struct s *b; b->j = 5;
4281 }
4282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4283 const int foo = 10;
4284 if (!foo) return 0;
4285 }
4286 return !cs[0] && !zero.x;
4287 #endif
4288
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 rm -f conftest.$ac_objext
4294 if { (ac_try="$ac_compile"
4295 case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_compile") 2>conftest.er1
4301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } && {
4307 test -z "$ac_c_werror_flag" ||
4308 test ! -s conftest.err
4309 } && test -s conftest.$ac_objext; then
4310 ac_cv_c_const=yes
4311 else
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 ac_cv_c_const=no
4316 fi
4317
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319 fi
4320 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4321 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4322 if test $ac_cv_c_const = no; then
4323
4324 cat >>confdefs.h <<\_ACEOF
4325 #define const
4326 _ACEOF
4327
4328 fi
4329
4330 { echo "$as_me:$LINENO: checking for inline" >&5
4331 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4332 if test "${ac_cv_c_inline+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335 ac_cv_c_inline=no
4336 for ac_kw in inline __inline__ __inline; do
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4343 #ifndef __cplusplus
4344 typedef int foo_t;
4345 static $ac_kw foo_t static_foo () {return 0; }
4346 $ac_kw foo_t foo () {return 0; }
4347 #endif
4348
4349 _ACEOF
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4352 case "(($ac_try" in
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4355 esac
4356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4357 (eval "$ac_compile") 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && {
4364 test -z "$ac_c_werror_flag" ||
4365 test ! -s conftest.err
4366 } && test -s conftest.$ac_objext; then
4367 ac_cv_c_inline=$ac_kw
4368 else
4369 echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372
4373 fi
4374
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376 test "$ac_cv_c_inline" != no && break
4377 done
4378
4379 fi
4380 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4381 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4382
4383
4384 case $ac_cv_c_inline in
4385 inline | yes) ;;
4386 *)
4387 case $ac_cv_c_inline in
4388 no) ac_val=;;
4389 *) ac_val=$ac_cv_c_inline;;
4390 esac
4391 cat >>confdefs.h <<_ACEOF
4392 #ifndef __cplusplus
4393 #define inline $ac_val
4394 #endif
4395 _ACEOF
4396 ;;
4397 esac
4398
4399 { echo "$as_me:$LINENO: checking for pid_t" >&5
4400 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4401 if test "${ac_cv_type_pid_t+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 typedef pid_t ac__type_new_;
4412 int
4413 main ()
4414 {
4415 if ((ac__type_new_ *) 0)
4416 return 0;
4417 if (sizeof (ac__type_new_))
4418 return 0;
4419 ;
4420 return 0;
4421 }
4422 _ACEOF
4423 rm -f conftest.$ac_objext
4424 if { (ac_try="$ac_compile"
4425 case "(($ac_try" in
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4428 esac
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_compile") 2>conftest.er1
4431 ac_status=$?
4432 grep -v '^ *+' conftest.er1 >conftest.err
4433 rm -f conftest.er1
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } && {
4437 test -z "$ac_c_werror_flag" ||
4438 test ! -s conftest.err
4439 } && test -s conftest.$ac_objext; then
4440 ac_cv_type_pid_t=yes
4441 else
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 ac_cv_type_pid_t=no
4446 fi
4447
4448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 fi
4450 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4451 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4452 if test $ac_cv_type_pid_t = yes; then
4453 :
4454 else
4455
4456 cat >>confdefs.h <<_ACEOF
4457 #define pid_t int
4458 _ACEOF
4459
4460 fi
4461
4462 { echo "$as_me:$LINENO: checking for size_t" >&5
4463 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4464 if test "${ac_cv_type_size_t+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467 cat >conftest.$ac_ext <<_ACEOF
4468 /* confdefs.h. */
4469 _ACEOF
4470 cat confdefs.h >>conftest.$ac_ext
4471 cat >>conftest.$ac_ext <<_ACEOF
4472 /* end confdefs.h. */
4473 $ac_includes_default
4474 typedef size_t ac__type_new_;
4475 int
4476 main ()
4477 {
4478 if ((ac__type_new_ *) 0)
4479 return 0;
4480 if (sizeof (ac__type_new_))
4481 return 0;
4482 ;
4483 return 0;
4484 }
4485 _ACEOF
4486 rm -f conftest.$ac_objext
4487 if { (ac_try="$ac_compile"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493 (eval "$ac_compile") 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && {
4500 test -z "$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4502 } && test -s conftest.$ac_objext; then
4503 ac_cv_type_size_t=yes
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 ac_cv_type_size_t=no
4509 fi
4510
4511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4512 fi
4513 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4514 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4515 if test $ac_cv_type_size_t = yes; then
4516 :
4517 else
4518
4519 cat >>confdefs.h <<_ACEOF
4520 #define size_t unsigned int
4521 _ACEOF
4522
4523 fi
4524
4525 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4526 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4527 if test "${ac_cv_header_time+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h. */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <sys/types.h>
4537 #include <sys/time.h>
4538 #include <time.h>
4539
4540 int
4541 main ()
4542 {
4543 if ((struct tm *) 0)
4544 return 0;
4545 ;
4546 return 0;
4547 }
4548 _ACEOF
4549 rm -f conftest.$ac_objext
4550 if { (ac_try="$ac_compile"
4551 case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4554 esac
4555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4556 (eval "$ac_compile") 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && {
4563 test -z "$ac_c_werror_flag" ||
4564 test ! -s conftest.err
4565 } && test -s conftest.$ac_objext; then
4566 ac_cv_header_time=yes
4567 else
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 ac_cv_header_time=no
4572 fi
4573
4574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 fi
4576 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4577 echo "${ECHO_T}$ac_cv_header_time" >&6; }
4578 if test $ac_cv_header_time = yes; then
4579
4580 cat >>confdefs.h <<\_ACEOF
4581 #define TIME_WITH_SYS_TIME 1
4582 _ACEOF
4583
4584 fi
4585
4586 { echo "$as_me:$LINENO: checking for u_int" >&5
4587 echo $ECHO_N "checking for u_int... $ECHO_C" >&6; }
4588 if test "${ac_cv_type_u_int+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591 cat >conftest.$ac_ext <<_ACEOF
4592 /* confdefs.h. */
4593 _ACEOF
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4597 $ac_includes_default
4598 typedef u_int ac__type_new_;
4599 int
4600 main ()
4601 {
4602 if ((ac__type_new_ *) 0)
4603 return 0;
4604 if (sizeof (ac__type_new_))
4605 return 0;
4606 ;
4607 return 0;
4608 }
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (ac_try="$ac_compile"
4612 case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_compile") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && {
4624 test -z "$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 } && test -s conftest.$ac_objext; then
4627 ac_cv_type_u_int=yes
4628 else
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 ac_cv_type_u_int=no
4633 fi
4634
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
4638 echo "${ECHO_T}$ac_cv_type_u_int" >&6; }
4639 if test $ac_cv_type_u_int = yes; then
4640 :
4641 else
4642
4643 cat >>confdefs.h <<_ACEOF
4644 #define u_int unsigned int
4645 _ACEOF
4646
4647 fi
4648
4649 { echo "$as_me:$LINENO: checking for u_char" >&5
4650 echo $ECHO_N "checking for u_char... $ECHO_C" >&6; }
4651 if test "${ac_cv_type_u_char+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h. */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4660 $ac_includes_default
4661 typedef u_char ac__type_new_;
4662 int
4663 main ()
4664 {
4665 if ((ac__type_new_ *) 0)
4666 return 0;
4667 if (sizeof (ac__type_new_))
4668 return 0;
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 rm -f conftest.$ac_objext
4674 if { (ac_try="$ac_compile"
4675 case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4678 esac
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_compile") 2>conftest.er1
4681 ac_status=$?
4682 grep -v '^ *+' conftest.er1 >conftest.err
4683 rm -f conftest.er1
4684 cat conftest.err >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && {
4687 test -z "$ac_c_werror_flag" ||
4688 test ! -s conftest.err
4689 } && test -s conftest.$ac_objext; then
4690 ac_cv_type_u_char=yes
4691 else
4692 echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4694
4695 ac_cv_type_u_char=no
4696 fi
4697
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 fi
4700 { echo "$as_me:$LINENO: result: $ac_cv_type_u_char" >&5
4701 echo "${ECHO_T}$ac_cv_type_u_char" >&6; }
4702 if test $ac_cv_type_u_char = yes; then
4703 :
4704 else
4705
4706 cat >>confdefs.h <<_ACEOF
4707 #define u_char unsigned char
4708 _ACEOF
4709
4710 fi
4711
4712
4713 { echo "$as_me:$LINENO: checking for working memcmp" >&5
4714 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
4715 if test "${ac_cv_func_memcmp_working+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718 if test "$cross_compiling" = yes; then
4719 ac_cv_func_memcmp_working=no
4720 else
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 $ac_includes_default
4728 int
4729 main ()
4730 {
4731
4732 /* Some versions of memcmp are not 8-bit clean. */
4733 char c0 = '\100', c1 = '\200', c2 = '\201';
4734 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4735 return 1;
4736
4737 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4738 or more and with at least one buffer not starting on a 4-byte boundary.
4739 William Lewis provided this test program. */
4740 {
4741 char foo[21];
4742 char bar[21];
4743 int i;
4744 for (i = 0; i < 4; i++)
4745 {
4746 char *a = foo + i;
4747 char *b = bar + i;
4748 strcpy (a, "--------01111111");
4749 strcpy (b, "--------10000000");
4750 if (memcmp (a, b, 16) >= 0)
4751 return 1;
4752 }
4753 return 0;
4754 }
4755
4756 ;
4757 return 0;
4758 }
4759 _ACEOF
4760 rm -f conftest$ac_exeext
4761 if { (ac_try="$ac_link"
4762 case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767 (eval "$ac_link") 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4771 { (case "(($ac_try" in
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4774 esac
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776 (eval "$ac_try") 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_func_memcmp_working=yes
4781 else
4782 echo "$as_me: program exited with status $ac_status" >&5
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 ( exit $ac_status )
4787 ac_cv_func_memcmp_working=no
4788 fi
4789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4790 fi
4791
4792
4793 fi
4794 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4795 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
4796 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
4797 *" memcmp.$ac_objext "* ) ;;
4798 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
4799 ;;
4800 esac
4801
4802
4803 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4804 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
4805 if test "${ac_cv_type_signal+set}" = set; then
4806 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 else
4808 cat >conftest.$ac_ext <<_ACEOF
4809 /* confdefs.h. */
4810 _ACEOF
4811 cat confdefs.h >>conftest.$ac_ext
4812 cat >>conftest.$ac_ext <<_ACEOF
4813 /* end confdefs.h. */
4814 #include <sys/types.h>
4815 #include <signal.h>
4816
4817 int
4818 main ()
4819 {
4820 return *(signal (0, 0)) (0) == 1;
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (ac_try="$ac_compile"
4827 case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_compile") 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest.$ac_objext; then
4842 ac_cv_type_signal=int
4843 else
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ac_cv_type_signal=void
4848 fi
4849
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4853 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
4854
4855 cat >>confdefs.h <<_ACEOF
4856 #define RETSIGTYPE $ac_cv_type_signal
4857 _ACEOF
4858
4859
4860
4861
4862
4863 for ac_func in poll strstr _setbufend
4864 do
4865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 else
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4879 #define $ac_func innocuous_$ac_func
4880
4881 /* System header to define __stub macros and hopefully few prototypes,
4882 which can conflict with char $ac_func (); below.
4883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4884 <limits.h> exists even on freestanding compilers. */
4885
4886 #ifdef __STDC__
4887 # include <limits.h>
4888 #else
4889 # include <assert.h>
4890 #endif
4891
4892 #undef $ac_func
4893
4894 /* Override any GCC internal prototype to avoid an error.
4895 Use char because int might match the return type of a GCC
4896 builtin and then its argument prototype would still apply. */
4897 #ifdef __cplusplus
4898 extern "C"
4899 #endif
4900 char $ac_func ();
4901 /* The GNU C library defines this for functions which it implements
4902 to always fail with ENOSYS. Some functions are actually named
4903 something starting with __ and the normal name is an alias. */
4904 #if defined __stub_$ac_func || defined __stub___$ac_func
4905 choke me
4906 #endif
4907
4908 int
4909 main ()
4910 {
4911 return $ac_func ();
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 rm -f conftest.$ac_objext conftest$ac_exeext
4917 if { (ac_try="$ac_link"
4918 case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_link") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } && {
4930 test -z "$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4932 } && test -s conftest$ac_exeext &&
4933 $as_test_x conftest$ac_exeext; then
4934 eval "$as_ac_var=yes"
4935 else
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 eval "$as_ac_var=no"
4940 fi
4941
4942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4943 conftest$ac_exeext conftest.$ac_ext
4944 fi
4945 ac_res=`eval echo '${'$as_ac_var'}'`
4946 { echo "$as_me:$LINENO: result: $ac_res" >&5
4947 echo "${ECHO_T}$ac_res" >&6; }
4948 if test `eval echo '${'$as_ac_var'}'` = yes; then
4949 cat >>confdefs.h <<_ACEOF
4950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4951 _ACEOF
4952
4953 fi
4954 done
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964 for ac_func in usleep strsep strdup mkstemp snprintf memcmp strlcpy strlcat
4965 do
4966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 cat >conftest.$ac_ext <<_ACEOF
4973 /* confdefs.h. */
4974 _ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4980 #define $ac_func innocuous_$ac_func
4981
4982 /* System header to define __stub macros and hopefully few prototypes,
4983 which can conflict with char $ac_func (); below.
4984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4985 <limits.h> exists even on freestanding compilers. */
4986
4987 #ifdef __STDC__
4988 # include <limits.h>
4989 #else
4990 # include <assert.h>
4991 #endif
4992
4993 #undef $ac_func
4994
4995 /* Override any GCC internal prototype to avoid an error.
4996 Use char because int might match the return type of a GCC
4997 builtin and then its argument prototype would still apply. */
4998 #ifdef __cplusplus
4999 extern "C"
5000 #endif
5001 char $ac_func ();
5002 /* The GNU C library defines this for functions which it implements
5003 to always fail with ENOSYS. Some functions are actually named
5004 something starting with __ and the normal name is an alias. */
5005 #if defined __stub_$ac_func || defined __stub___$ac_func
5006 choke me
5007 #endif
5008
5009 int
5010 main ()
5011 {
5012 return $ac_func ();
5013 ;
5014 return 0;
5015 }
5016 _ACEOF
5017 rm -f conftest.$ac_objext conftest$ac_exeext
5018 if { (ac_try="$ac_link"
5019 case "(($ac_try" in
5020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5021 *) ac_try_echo=$ac_try;;
5022 esac
5023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5024 (eval "$ac_link") 2>conftest.er1
5025 ac_status=$?
5026 grep -v '^ *+' conftest.er1 >conftest.err
5027 rm -f conftest.er1
5028 cat conftest.err >&5
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } && {
5031 test -z "$ac_c_werror_flag" ||
5032 test ! -s conftest.err
5033 } && test -s conftest$ac_exeext &&
5034 $as_test_x conftest$ac_exeext; then
5035 eval "$as_ac_var=yes"
5036 else
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5039
5040 eval "$as_ac_var=no"
5041 fi
5042
5043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5044 conftest$ac_exeext conftest.$ac_ext
5045 fi
5046 ac_res=`eval echo '${'$as_ac_var'}'`
5047 { echo "$as_me:$LINENO: result: $ac_res" >&5
5048 echo "${ECHO_T}$ac_res" >&6; }
5049 if test `eval echo '${'$as_ac_var'}'` = yes; then
5050 cat >>confdefs.h <<_ACEOF
5051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5052 _ACEOF
5053
5054 else
5055 case " $LIBOBJS " in
5056 *" $ac_func.$ac_objext "* ) ;;
5057 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
5058 ;;
5059 esac
5060
5061 fi
5062 done
5063
5064
5065
5066 LIBS="-lm $LIBS"
5067
5068
5069 # Check whether --with-searchpath was given.
5070 if test "${with_searchpath+set}" = set; then
5071 withval=$with_searchpath; SEARCHPATH="$SEARCHPATH $withval"
5072 fi
5073
5074
5075
5076 { echo "$as_me:$LINENO: checking if freetype1 is used" >&5
5077 echo $ECHO_N "checking if freetype1 is used... $ECHO_C" >&6; }
5078 # Check whether --enable-freetype was given.
5079 if test "${enable_freetype+set}" = set; then
5080 enableval=$enable_freetype; mgp_use_freetype="$enableval"
5081 else
5082 mgp_use_freetype="yes"
5083 fi
5084
5085 { echo "$as_me:$LINENO: result: $mgp_use_freetype" >&5
5086 echo "${ECHO_T}$mgp_use_freetype" >&6; }
5087
5088
5089 if test "$mgp_use_freetype" = "yes"; then
5090 # XXX: freetype2 may use freetype-config
5091 { echo "$as_me:$LINENO: checking for freetype1 library/header" >&5
5092 echo $ECHO_N "checking for freetype1 library/header... $ECHO_C" >&6; }
5093 for dir in $SEARCHPATH /usr/local/freetype /usr/local /opt/freetype /usr/pkg /usr /usr/include/freetype1 /sw; do
5094 ac_cv_ft_lib=no
5095 ac_cv_ft_include=no
5096 shlib=`echo $dir/lib/libttf.$SHLIBEXT* | head -n 1 | sed -e 's/.*\///'`
5097 if test x$shlib = x; then
5098 shlib=no
5099 fi
5100 if test -d $dir/lib -a -f $dir/lib/$shlib; then
5101 ac_cv_ft_lib="$dir/lib"
5102 ac_cv_ft_libpath="$shlib"
5103 elif test -d $dir/lib -a -f $dir/lib/libttf.a; then
5104 ac_cv_ft_lib="$dir/lib"
5105 ac_cv_ft_libpath="libttf.a"
5106 fi
5107 if test -d $dir/include -a -f $dir/include/freetype.h; then
5108 ac_cv_ft_include="$dir/include"
5109 elif test -d $dir/include/freetype -a -f $dir/include/freetype/freetype.h; then
5110 ac_cv_ft_include="$dir/include/freetype"
5111 fi
5112 if test "$ac_cv_ft_lib" != "no" -a "$ac_cv_ft_include" != "no"; then
5113 LIBS="-L$ac_cv_ft_lib $LIBS"
5114 CFLAGS="-I$ac_cv_ft_include $CFLAGS"
5115 break
5116 fi
5117 done
5118 if test "$ac_cv_ft_lib" = "no" -a "$ac_cv_ft_include" = "no"; then
5119 { echo "$as_me:$LINENO: result: no - not using freetype" >&5
5120 echo "${ECHO_T}no - not using freetype" >&6; }
5121 mgp_use_freetype=no
5122 else
5123 { echo "$as_me:$LINENO: result: $ac_cv_ft_lib and $ac_cv_ft_include" >&5
5124 echo "${ECHO_T}$ac_cv_ft_lib and $ac_cv_ft_include" >&6; }
5125 fi
5126 if test "$mgp_use_freetype" = "yes"; then
5127 LIBS="-L$ac_cv_ft_lib $LIBS"
5128 OPTFLAGS="-I$ac_cv_ft_include $OPTFLAGS"
5129 DEPLIBS="$ac_cv_ft_lib/$ac_cv_ft_libpath $DEPLIBS"
5130
5131 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
5132 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
5133 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135 else
5136 ac_check_lib_save_LIBS=$LIBS
5137 LIBS="-lintl $LIBS"
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144
5145 /* Override any GCC internal prototype to avoid an error.
5146 Use char because int might match the return type of a GCC
5147 builtin and then its argument prototype would still apply. */
5148 #ifdef __cplusplus
5149 extern "C"
5150 #endif
5151 char dgettext ();
5152 int
5153 main ()
5154 {
5155 return dgettext ();
5156 ;
5157 return 0;
5158 }
5159 _ACEOF
5160 rm -f conftest.$ac_objext conftest$ac_exeext
5161 if { (ac_try="$ac_link"
5162 case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5167 (eval "$ac_link") 2>conftest.er1
5168 ac_status=$?
5169 grep -v '^ *+' conftest.er1 >conftest.err
5170 rm -f conftest.er1
5171 cat conftest.err >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); } && {
5174 test -z "$ac_c_werror_flag" ||
5175 test ! -s conftest.err
5176 } && test -s conftest$ac_exeext &&
5177 $as_test_x conftest$ac_exeext; then
5178 ac_cv_lib_intl_dgettext=yes
5179 else
5180 echo "$as_me: failed program was:" >&5
5181 sed 's/^/| /' conftest.$ac_ext >&5
5182
5183 ac_cv_lib_intl_dgettext=no
5184 fi
5185
5186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5187 conftest$ac_exeext conftest.$ac_ext
5188 LIBS=$ac_check_lib_save_LIBS
5189 fi
5190 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
5191 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
5192 if test $ac_cv_lib_intl_dgettext = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define HAVE_LIBINTL 1
5195 _ACEOF
5196
5197 LIBS="-lintl $LIBS"
5198
5199 fi
5200
5201
5202 { echo "$as_me:$LINENO: checking for TT_Init_FreeType in -lttf" >&5
5203 echo $ECHO_N "checking for TT_Init_FreeType in -lttf... $ECHO_C" >&6; }
5204 if test "${ac_cv_lib_ttf_TT_Init_FreeType+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5206 else
5207 ac_check_lib_save_LIBS=$LIBS
5208 LIBS="-lttf $LIBS"
5209 cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h. */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5215
5216 /* Override any GCC internal prototype to avoid an error.
5217 Use char because int might match the return type of a GCC
5218 builtin and then its argument prototype would still apply. */
5219 #ifdef __cplusplus
5220 extern "C"
5221 #endif
5222 char TT_Init_FreeType ();
5223 int
5224 main ()
5225 {
5226 return TT_Init_FreeType ();
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 rm -f conftest.$ac_objext conftest$ac_exeext
5232 if { (ac_try="$ac_link"
5233 case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236 esac
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_link") 2>conftest.er1
5239 ac_status=$?
5240 grep -v '^ *+' conftest.er1 >conftest.err
5241 rm -f conftest.er1
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && {
5245 test -z "$ac_c_werror_flag" ||
5246 test ! -s conftest.err
5247 } && test -s conftest$ac_exeext &&
5248 $as_test_x conftest$ac_exeext; then
5249 ac_cv_lib_ttf_TT_Init_FreeType=yes
5250 else
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5253
5254 ac_cv_lib_ttf_TT_Init_FreeType=no
5255 fi
5256
5257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5258 conftest$ac_exeext conftest.$ac_ext
5259 LIBS=$ac_check_lib_save_LIBS
5260 fi
5261 { echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_TT_Init_FreeType" >&5
5262 echo "${ECHO_T}$ac_cv_lib_ttf_TT_Init_FreeType" >&6; }
5263 if test $ac_cv_lib_ttf_TT_Init_FreeType = yes; then
5264 cat >>confdefs.h <<_ACEOF
5265 #define HAVE_LIBTTF 1
5266 _ACEOF
5267
5268 LIBS="-lttf $LIBS"
5269
5270 else
5271 echo "Fatal: libttf.a not found"
5272 exit 1
5273 fi
5274
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <freetype.h>
5282 int
5283 main ()
5284 {
5285
5286 ;
5287 return 0;
5288 }
5289 _ACEOF
5290 rm -f conftest.$ac_objext
5291 if { (ac_try="$ac_compile"
5292 case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5295 esac
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_compile") 2>conftest.er1
5298 ac_status=$?
5299 grep -v '^ *+' conftest.er1 >conftest.err
5300 rm -f conftest.er1
5301 cat conftest.err >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); } && {
5304 test -z "$ac_c_werror_flag" ||
5305 test ! -s conftest.err
5306 } && test -s conftest.$ac_objext; then
5307 :
5308 else
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312 echo "Fatal: freetype.h not found"
5313 exit 1
5314 fi
5315
5316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5317 cat >>confdefs.h <<\_ACEOF
5318 #define FREETYPE 1
5319 _ACEOF
5320
5321 { echo "$as_me:$LINENO: checking for num_CharMaps field in TT_Face_Properties" >&5
5322 echo $ECHO_N "checking for num_CharMaps field in TT_Face_Properties... $ECHO_C" >&6; }
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 #include <freetype.h>
5330 int
5331 main ()
5332 {
5333 TT_Face_Properties x; return x.num_CharMaps;
5334 ;
5335 return 0;
5336 }
5337 _ACEOF
5338 rm -f conftest.$ac_objext
5339 if { (ac_try="$ac_compile"
5340 case "(($ac_try" in
5341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5343 esac
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_compile") 2>conftest.er1
5346 ac_status=$?
5347 grep -v '^ *+' conftest.er1 >conftest.err
5348 rm -f conftest.er1
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_c_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest.$ac_objext; then
5355 result=yes; cat >>confdefs.h <<\_ACEOF
5356 #define HAVE_TT_FACE_PROPERTIES_CHARMAPS 1
5357 _ACEOF
5358
5359 else
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 result=no
5364 fi
5365
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367 { echo "$as_me:$LINENO: result: $result" >&5
5368 echo "${ECHO_T}$result" >&6; }
5369 fi
5370 fi
5371
5372 { echo "$as_me:$LINENO: checking if vflib is used" >&5
5373 echo $ECHO_N "checking if vflib is used... $ECHO_C" >&6; }
5374 # Check whether --enable-vflib was given.
5375 if test "${enable_vflib+set}" = set; then
5376 enableval=$enable_vflib; mgp_use_vflib="$enableval"
5377 else
5378 mgp_use_vflib="yes"
5379 fi
5380
5381 { echo "$as_me:$LINENO: result: $mgp_use_vflib" >&5
5382 echo "${ECHO_T}$mgp_use_vflib" >&6; }
5383
5384 if test "$mgp_use_vflib" = "yes"; then
5385 { echo "$as_me:$LINENO: checking for VFlib library/header" >&5
5386 echo $ECHO_N "checking for VFlib library/header... $ECHO_C" >&6; }
5387 for dir in $SEARCHPATH /usr/local/VFlib /usr/local/vflib /usr/local /usr/pkg /usr; do
5388 ac_cv_vf_libname=VFlib
5389 ac_cv_vf_libdir=no
5390 ac_cv_vf_hdrdir=no
5391 shlib1=`echo $dir/lib/libVFlib.so* | head -n 1 | sed -e 's/.*\///'`
5392 shlib2=`echo $dir/lib/libVFlib2.so* | head -n 1 | sed -e 's/.*\///'`
5393 if test x$shlib1 = x; then
5394 $shlib1=no
5395 fi
5396 if test x$shlib2 = x; then
5397 $shlib2=no
5398 fi
5399 if test -d $dir/lib -a -f $dir/lib/$shlib1; then
5400 ac_cv_vf_libdir="$dir/lib"
5401 ac_cv_vf_libpath=$shlib1
5402 elif test -d $dir/lib -a -f $dir/lib/libVFlib.a; then
5403 ac_cv_vf_libdir="$dir/lib"
5404 ac_cv_vf_libpath="libVFlib.a"
5405 elif test -d $dir/lib -a -f $dir/lib/$shlib2; then
5406 ac_cv_vf_libname=VFlib2
5407 ac_cv_vf_libdir="$dir/lib"
5408 ac_cv_vf_libpath=$shlib2
5409 elif test -d $dir/lib -a -f $dir/lib/libVFlib2.a; then
5410 ac_cv_vf_libname=VFlib2
5411 ac_cv_vf_libdir="$dir/lib"
5412 ac_cv_vf_libpath="libVFlib2.a"
5413 fi
5414 if test -d $dir/include -a -f $dir/include/VF.h; then
5415 ac_cv_vf_hdrdir="$dir/include"
5416 fi
5417 if test "$ac_cv_vf_libdir" != "no" -a "$ac_cv_vf_hdrdir" != "no"; then
5418 LIBS="-L$ac_cv_vf_libdir $LIBS"
5419 CFLAGS="-I$ac_cv_vf_hdrdir $CFLAGS"
5420 break
5421 fi
5422 done
5423 if test "$ac_cv_vf_libdir" = "no" -o "$ac_cv_vf_hdrdir" = "no"; then
5424 { echo "$as_me:$LINENO: result: no - not using VFlib" >&5
5425 echo "${ECHO_T}no - not using VFlib" >&6; }
5426 mgp_use_vflib=no
5427 else
5428 { echo "$as_me:$LINENO: result: $ac_cv_vf_libdir and $ac_cv_vf_hdrdir" >&5
5429 echo "${ECHO_T}$ac_cv_vf_libdir and $ac_cv_vf_hdrdir" >&6; }
5430 fi
5431 fi
5432 if test "$mgp_use_vflib" = "yes"; then
5433 LIBS="-L$ac_cv_vf_libdir -l$ac_cv_vf_libname $LIBS"
5434 OPTFLAGS="-I$ac_cv_vf_hdrdir $OPTFLAGS"
5435 DEPLIBS="$ac_cv_vf_libdir/$ac_cv_vf_libpath $DEPLIBS"
5436 as_ac_Lib=`echo "ac_cv_lib_$ac_cv_vf_libname''_VF_Init" | $as_tr_sh`
5437 { echo "$as_me:$LINENO: checking for VF_Init in -l$ac_cv_vf_libname" >&5
5438 echo $ECHO_N "checking for VF_Init in -l$ac_cv_vf_libname... $ECHO_C" >&6; }
5439 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442 ac_check_lib_save_LIBS=$LIBS
5443 LIBS="-l$ac_cv_vf_libname $LIBS"
5444 cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h. */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h. */
5450
5451 /* Override any GCC internal prototype to avoid an error.
5452 Use char because int might match the return type of a GCC
5453 builtin and then its argument prototype would still apply. */
5454 #ifdef __cplusplus
5455 extern "C"
5456 #endif
5457 char VF_Init ();
5458 int
5459 main ()
5460 {
5461 return VF_Init ();
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 rm -f conftest.$ac_objext conftest$ac_exeext
5467 if { (ac_try="$ac_link"
5468 case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_link") 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } && {
5480 test -z "$ac_c_werror_flag" ||
5481 test ! -s conftest.err
5482 } && test -s conftest$ac_exeext &&
5483 $as_test_x conftest$ac_exeext; then
5484 eval "$as_ac_Lib=yes"
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 eval "$as_ac_Lib=no"
5490 fi
5491
5492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5493 conftest$ac_exeext conftest.$ac_ext
5494 LIBS=$ac_check_lib_save_LIBS
5495 fi
5496 ac_res=`eval echo '${'$as_ac_Lib'}'`
5497 { echo "$as_me:$LINENO: result: $ac_res" >&5
5498 echo "${ECHO_T}$ac_res" >&6; }
5499 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5500 mgp_cv_vflib_a=$ac_cv_vf_libpath
5501 else
5502 echo "Fatal: $ac_cv_vf_libpath not found"
5503 exit 1
5504 fi
5505
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <VF.h>
5513 int
5514 main ()
5515 {
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 rm -f conftest.$ac_objext
5522 if { (ac_try="$ac_compile"
5523 case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_compile") 2>conftest.er1
5529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } && {
5535 test -z "$ac_c_werror_flag" ||
5536 test ! -s conftest.err
5537 } && test -s conftest.$ac_objext; then
5538 :
5539 else
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5542
5543 echo "Fatal: VF.h not found"
5544 exit 1
5545 fi
5546
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 cat >>confdefs.h <<\_ACEOF
5549 #define VFLIB 1
5550 _ACEOF
5551
5552
5553 { echo "$as_me:$LINENO: checking for VFlib configuration file" >&5
5554 echo $ECHO_N "checking for VFlib configuration file... $ECHO_C" >&6; }
5555
5556 # Check whether --with-vfontcap was given.
5557 if test "${with_vfontcap+set}" = set; then
5558 withval=$with_vfontcap;
5559 fi
5560
5561 ac_cv_vf_fontcap="no"
5562 if test -f "$with_vfontcap"; then
5563 ac_cv_vf_fontcap=$with_vfontcap;
5564 else
5565 for ac_dir in /usr/local/lib /usr/local/lib/tex \
5566 /usr/local/lib/VFlib /usr/local/lib/fonts/vf \
5567 /usr/local/lib /usr/local/etc /etc \
5568 /usr/local/libdata/vflib /usr/local/share/VFlib \
5569 /usr/local/share/VFlib/* \
5570 ../../VFlib* ../VFlib* VFlib*; do
5571 if test -d $ac_dir -a -f $ac_dir/vfontcap; then
5572 ac_cv_vf_fontcap=$ac_dir/vfontcap;
5573 break
5574 fi
5575 done
5576 fi
5577 { echo "$as_me:$LINENO: result: $ac_cv_vf_fontcap" >&5
5578 echo "${ECHO_T}$ac_cv_vf_fontcap" >&6; }
5579 if test "$ac_cv_vf_fontcap" = "no"; then
5580 echo Fatal: no vfontcap file found. cannot continue.
5581 echo Please use the option --with-vfontcap=PATH to specify the path to vfontcap.
5582 exit 1
5583 fi
5584 cat >>confdefs.h <<_ACEOF
5585 #define VFCAP "$ac_cv_vf_fontcap"
5586 _ACEOF
5587
5588
5589 fi
5590
5591 if test "$mgp_use_freetype" = "yes"; then
5592 { echo "$as_me:$LINENO: checking if freetype-charset16 is enabled" >&5
5593 echo $ECHO_N "checking if freetype-charset16 is enabled... $ECHO_C" >&6; }
5594 # Check whether --enable-freetype-charset16 was given.
5595 if test "${enable_freetype_charset16+set}" = set; then
5596 enableval=$enable_freetype_charset16; mgp_use_freetype_c16="$enableval"
5597 else
5598 mgp_use_freetype_c16="no"
5599 fi
5600
5601 { echo "$as_me:$LINENO: result: $mgp_use_freetype_c16" >&5
5602 echo "${ECHO_T}$mgp_use_freetype_c16" >&6; }
5603
5604 if test "$mgp_use_freetype_c16" = "yes"; then
5605 cat >>confdefs.h <<\_ACEOF
5606 #define FREETYPE_CHARSET16 1
5607 _ACEOF
5608
5609 fi
5610 fi
5611
5612 if type pkg-config > /dev/null 2>&1; then
5613 for pnglib in libpng libpng12 libpng10
5614 do
5615 if pkg-config $pnglib; then
5616 LIBS="$LIBS `pkg-config --libs $pnglib`"
5617 OPTFLAGS="$OPTFLAGS `pkg-config --cflags $pnglib`"
5618 cat >>confdefs.h <<\_ACEOF
5619 #define USE_PNG 1
5620 _ACEOF
5621
5622 break
5623 fi
5624 done
5625 fi
5626 if test "$use_libpng" = ""; then
5627 for i in $SEARCHPATH /usr/pkg /usr/local /usr; do
5628 if test -f $i/include/png.h; then
5629 if test -f $i/lib/libpng.a ; then
5630 DEPLIBS="$DEPLIBS $i/lib/libpng.a"
5631 elif test -f $i/lib/libpng.so ; then
5632 DEPLIBS="$DEPLIBS $i/lib/libpng.so"
5633 else
5634 break;
5635 fi
5636 LIBS="$LIBS -L$i/lib"
5637 OPTFLAGS="$OPTFLAGS -I$i/include"
5638 { echo "$as_me:$LINENO: checking for png_read_image in -lpng" >&5
5639 echo $ECHO_N "checking for png_read_image in -lpng... $ECHO_C" >&6; }
5640 if test "${ac_cv_lib_png_png_read_image+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 ac_check_lib_save_LIBS=$LIBS
5644 LIBS="-lpng $LIBS"
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651
5652 /* Override any GCC internal prototype to avoid an error.
5653 Use char because int might match the return type of a GCC
5654 builtin and then its argument prototype would still apply. */
5655 #ifdef __cplusplus
5656 extern "C"
5657 #endif
5658 char png_read_image ();
5659 int
5660 main ()
5661 {
5662 return png_read_image ();
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (ac_try="$ac_link"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_link") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest$ac_exeext &&
5684 $as_test_x conftest$ac_exeext; then
5685 ac_cv_lib_png_png_read_image=yes
5686 else
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690 ac_cv_lib_png_png_read_image=no
5691 fi
5692
5693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5694 conftest$ac_exeext conftest.$ac_ext
5695 LIBS=$ac_check_lib_save_LIBS
5696 fi
5697 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_read_image" >&5
5698 echo "${ECHO_T}$ac_cv_lib_png_png_read_image" >&6; }
5699 if test $ac_cv_lib_png_png_read_image = yes; then
5700 LIBS="$LIBS -lpng"
5701 cat >>confdefs.h <<\_ACEOF
5702 #define USE_PNG 1
5703 _ACEOF
5704
5705 else
5706 { echo "$as_me:$LINENO: checking for png_set_gray_1_2_4_to_8 in -lpng" >&5
5707 echo $ECHO_N "checking for png_set_gray_1_2_4_to_8 in -lpng... $ECHO_C" >&6; }
5708 if test "${ac_cv_lib_png_png_set_gray_1_2_4_to_8+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 ac_check_lib_save_LIBS=$LIBS
5712 LIBS="-lpng -lz $LIBS"
5713 cat >conftest.$ac_ext <<_ACEOF
5714 /* confdefs.h. */
5715 _ACEOF
5716 cat confdefs.h >>conftest.$ac_ext
5717 cat >>conftest.$ac_ext <<_ACEOF
5718 /* end confdefs.h. */
5719
5720 /* Override any GCC internal prototype to avoid an error.
5721 Use char because int might match the return type of a GCC
5722 builtin and then its argument prototype would still apply. */
5723 #ifdef __cplusplus
5724 extern "C"
5725 #endif
5726 char png_set_gray_1_2_4_to_8 ();
5727 int
5728 main ()
5729 {
5730 return png_set_gray_1_2_4_to_8 ();
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 rm -f conftest.$ac_objext conftest$ac_exeext
5736 if { (ac_try="$ac_link"
5737 case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740 esac
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_link") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && {
5749 test -z "$ac_c_werror_flag" ||
5750 test ! -s conftest.err
5751 } && test -s conftest$ac_exeext &&
5752 $as_test_x conftest$ac_exeext; then
5753 ac_cv_lib_png_png_set_gray_1_2_4_to_8=yes
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 ac_cv_lib_png_png_set_gray_1_2_4_to_8=no
5759 fi
5760
5761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5762 conftest$ac_exeext conftest.$ac_ext
5763 LIBS=$ac_check_lib_save_LIBS
5764 fi
5765 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_set_gray_1_2_4_to_8" >&5
5766 echo "${ECHO_T}$ac_cv_lib_png_png_set_gray_1_2_4_to_8" >&6; }
5767 if test $ac_cv_lib_png_png_set_gray_1_2_4_to_8 = yes; then
5768 LIBS="$LIBS -lpng -lz"
5769 cat >>confdefs.h <<\_ACEOF
5770 #define USE_PNG 1
5771 _ACEOF
5772
5773 fi
5774
5775 fi
5776
5777 break
5778 fi
5779 done
5780 fi
5781
5782 for i in /usr/pkg /usr/local /usr; do
5783 if test -f $i/include/libmng.h; then
5784 if test -f $i/lib/libmng.a ; then
5785 DEPLIBS="$DEPLIBS $i/lib/libmng.a"
5786 elif test -f $i/lib/libmng.so ; then
5787 DEPLIBS="$DEPLIBS $i/lib/libmng.so"
5788 else
5789 break;
5790 fi
5791 LIBS="$LIBS -L$i/lib"
5792 OPTFLAGS="$OPTFLAGS -I$i/include"
5793 { echo "$as_me:$LINENO: checking for mng_initialize in -lmng" >&5
5794 echo $ECHO_N "checking for mng_initialize in -lmng... $ECHO_C" >&6; }
5795 if test "${ac_cv_lib_mng_mng_initialize+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 ac_check_lib_save_LIBS=$LIBS
5799 LIBS="-lmng $LIBS"
5800 cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h. */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806
5807 /* Override any GCC internal prototype to avoid an error.
5808 Use char because int might match the return type of a GCC
5809 builtin and then its argument prototype would still apply. */
5810 #ifdef __cplusplus
5811 extern "C"
5812 #endif
5813 char mng_initialize ();
5814 int
5815 main ()
5816 {
5817 return mng_initialize ();
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext conftest$ac_exeext
5823 if { (ac_try="$ac_link"
5824 case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827 esac
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_link") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest$ac_exeext &&
5839 $as_test_x conftest$ac_exeext; then
5840 ac_cv_lib_mng_mng_initialize=yes
5841 else
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_cv_lib_mng_mng_initialize=no
5846 fi
5847
5848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5849 conftest$ac_exeext conftest.$ac_ext
5850 LIBS=$ac_check_lib_save_LIBS
5851 fi
5852 { echo "$as_me:$LINENO: result: $ac_cv_lib_mng_mng_initialize" >&5
5853 echo "${ECHO_T}$ac_cv_lib_mng_mng_initialize" >&6; }
5854 if test $ac_cv_lib_mng_mng_initialize = yes; then
5855 LIBS="$LIBS -lmng"
5856 cat >>confdefs.h <<\_ACEOF
5857 #define MNG 1
5858 _ACEOF
5859
5860 else
5861 { echo "$as_me:$LINENO: checking for mng_readdisplay in -lmng" >&5
5862 echo $ECHO_N "checking for mng_readdisplay in -lmng... $ECHO_C" >&6; }
5863 if test "${ac_cv_lib_mng_mng_readdisplay+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866 ac_check_lib_save_LIBS=$LIBS
5867 LIBS="-lmng -ljpeg $LIBS"
5868 cat >conftest.$ac_ext <<_ACEOF
5869 /* confdefs.h. */
5870 _ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5874
5875 /* Override any GCC internal prototype to avoid an error.
5876 Use char because int might match the return type of a GCC
5877 builtin and then its argument prototype would still apply. */
5878 #ifdef __cplusplus
5879 extern "C"
5880 #endif
5881 char mng_readdisplay ();
5882 int
5883 main ()
5884 {
5885 return mng_readdisplay ();
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (ac_try="$ac_link"
5892 case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_link") 2>conftest.er1
5898 ac_status=$?
5899 grep -v '^ *+' conftest.er1 >conftest.err
5900 rm -f conftest.er1
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest$ac_exeext &&
5907 $as_test_x conftest$ac_exeext; then
5908 ac_cv_lib_mng_mng_readdisplay=yes
5909 else
5910 echo "$as_me: failed program was:" >&5
5911 sed 's/^/| /' conftest.$ac_ext >&5
5912
5913 ac_cv_lib_mng_mng_readdisplay=no
5914 fi
5915
5916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5917 conftest$ac_exeext conftest.$ac_ext
5918 LIBS=$ac_check_lib_save_LIBS
5919 fi
5920 { echo "$as_me:$LINENO: result: $ac_cv_lib_mng_mng_readdisplay" >&5
5921 echo "${ECHO_T}$ac_cv_lib_mng_mng_readdisplay" >&6; }
5922 if test $ac_cv_lib_mng_mng_readdisplay = yes; then
5923 LIBS="$LIBS -lmng -ljpeg"
5924 cat >>confdefs.h <<\_ACEOF
5925 #define MNG 1
5926 _ACEOF
5927
5928 fi
5929
5930 fi
5931
5932 break
5933 fi
5934 done
5935
5936 { echo "$as_me:$LINENO: checking for X" >&5
5937 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
5938
5939
5940 # Check whether --with-x was given.
5941 if test "${with_x+set}" = set; then
5942 withval=$with_x;
5943 fi
5944
5945 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5946 if test "x$with_x" = xno; then
5947 # The user explicitly disabled X.
5948 have_x=disabled
5949 else
5950 case $x_includes,$x_libraries in #(
5951 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
5952 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5953 { (exit 1); exit 1; }; };; #(
5954 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956 else
5957 # One or both of the vars are not set, and there is no cached value.
5958 ac_x_includes=no ac_x_libraries=no
5959 rm -f -r conftest.dir
5960 if mkdir conftest.dir; then
5961 cd conftest.dir
5962 cat >Imakefile <<'_ACEOF'
5963 incroot:
5964 @echo incroot='${INCROOT}'
5965 usrlibdir:
5966 @echo usrlibdir='${USRLIBDIR}'
5967 libdir:
5968 @echo libdir='${LIBDIR}'
5969 _ACEOF
5970 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5972 for ac_var in incroot usrlibdir libdir; do
5973 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5974 done
5975 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5976 for ac_extension in a so sl; do
5977 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5978 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5979 ac_im_usrlibdir=$ac_im_libdir; break
5980 fi
5981 done
5982 # Screen out bogus values from the imake configuration. They are
5983 # bogus both because they are the default anyway, and because
5984 # using them would break gcc on systems where it needs fixed includes.
5985 case $ac_im_incroot in
5986 /usr/include) ac_x_includes= ;;
5987 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5988 esac
5989 case $ac_im_usrlibdir in
5990 /usr/lib | /lib) ;;
5991 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5992 esac
5993 fi
5994 cd ..
5995 rm -f -r conftest.dir
5996 fi
5997
5998 # Standard set of common directories for X headers.
5999 # Check X11 before X11Rn because it is often a symlink to the current release.
6000 ac_x_header_dirs='
6001 /usr/X11/include
6002 /usr/X11R6/include
6003 /usr/X11R5/include
6004 /usr/X11R4/include
6005
6006 /usr/include/X11
6007 /usr/include/X11R6
6008 /usr/include/X11R5
6009 /usr/include/X11R4
6010
6011 /usr/local/X11/include
6012 /usr/local/X11R6/include
6013 /usr/local/X11R5/include
6014 /usr/local/X11R4/include
6015
6016 /usr/local/include/X11
6017 /usr/local/include/X11R6
6018 /usr/local/include/X11R5
6019 /usr/local/include/X11R4
6020
6021 /usr/X386/include
6022 /usr/x386/include
6023 /usr/XFree86/include/X11
6024
6025 /usr/include
6026 /usr/local/include
6027 /usr/unsupported/include
6028 /usr/athena/include
6029 /usr/local/x11r5/include
6030 /usr/lpp/Xamples/include
6031
6032 /usr/openwin/include
6033 /usr/openwin/share/include'
6034
6035 if test "$ac_x_includes" = no; then
6036 # Guess where to find include files, by looking for Xlib.h.
6037 # First, try using that file with no special directory specified.
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <X11/Xlib.h>
6045 _ACEOF
6046 if { (ac_try="$ac_cpp conftest.$ac_ext"
6047 case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6053 ac_status=$?
6054 grep -v '^ *+' conftest.er1 >conftest.err
6055 rm -f conftest.er1
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } >/dev/null && {
6059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 }; then
6062 # We can compile using X headers with no special include directory.
6063 ac_x_includes=
6064 else
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6067
6068 for ac_dir in $ac_x_header_dirs; do
6069 if test -r "$ac_dir/X11/Xlib.h"; then
6070 ac_x_includes=$ac_dir
6071 break
6072 fi
6073 done
6074 fi
6075
6076 rm -f conftest.err conftest.$ac_ext
6077 fi # $ac_x_includes = no
6078
6079 if test "$ac_x_libraries" = no; then
6080 # Check for the libraries.
6081 # See if we find them without any special options.
6082 # Don't add to $LIBS permanently.
6083 ac_save_LIBS=$LIBS
6084 LIBS="-lX11 $LIBS"
6085 cat >conftest.$ac_ext <<_ACEOF
6086 /* confdefs.h. */
6087 _ACEOF
6088 cat confdefs.h >>conftest.$ac_ext
6089 cat >>conftest.$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6091 #include <X11/Xlib.h>
6092 int
6093 main ()
6094 {
6095 XrmInitialize ()
6096 ;
6097 return 0;
6098 }
6099 _ACEOF
6100 rm -f conftest.$ac_objext conftest$ac_exeext
6101 if { (ac_try="$ac_link"
6102 case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_link") 2>conftest.er1
6108 ac_status=$?
6109 grep -v '^ *+' conftest.er1 >conftest.err
6110 rm -f conftest.er1
6111 cat conftest.err >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } && {
6114 test -z "$ac_c_werror_flag" ||
6115 test ! -s conftest.err
6116 } && test -s conftest$ac_exeext &&
6117 $as_test_x conftest$ac_exeext; then
6118 LIBS=$ac_save_LIBS
6119 # We can link X programs with no special library path.
6120 ac_x_libraries=
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 LIBS=$ac_save_LIBS
6126 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6127 do
6128 # Don't even attempt the hair of trying to link an X program!
6129 for ac_extension in a so sl; do
6130 if test -r "$ac_dir/libX11.$ac_extension"; then
6131 ac_x_libraries=$ac_dir
6132 break 2
6133 fi
6134 done
6135 done
6136 fi
6137
6138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6139 conftest$ac_exeext conftest.$ac_ext
6140 fi # $ac_x_libraries = no
6141
6142 case $ac_x_includes,$ac_x_libraries in #(
6143 no,* | *,no | *\'*)
6144 # Didn't find X, or a directory has "'" in its name.
6145 ac_cv_have_x="have_x=no";; #(
6146 *)
6147 # Record where we found X for the cache.
6148 ac_cv_have_x="have_x=yes\
6149 ac_x_includes='$ac_x_includes'\
6150 ac_x_libraries='$ac_x_libraries'"
6151 esac
6152 fi
6153 ;; #(
6154 *) have_x=yes;;
6155 esac
6156 eval "$ac_cv_have_x"
6157 fi # $with_x != no
6158
6159 if test "$have_x" != yes; then
6160 { echo "$as_me:$LINENO: result: $have_x" >&5
6161 echo "${ECHO_T}$have_x" >&6; }
6162 no_x=yes
6163 else
6164 # If each of the values was on the command line, it overrides each guess.
6165 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6166 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6167 # Update the cache value to reflect the command line values.
6168 ac_cv_have_x="have_x=yes\
6169 ac_x_includes='$x_includes'\
6170 ac_x_libraries='$x_libraries'"
6171 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6172 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
6173 fi
6174
6175 if test "$no_x" != yes; then
6176 if test "$x_libraries" != ""; then
6177 LIBS="$LIBS -L$x_libraries"
6178 fi
6179 if test "$x_includes" != ""; then
6180 OPTFLAGS="$OPTFLAGS -I$x_includes"
6181 fi
6182 fi
6183
6184 { echo "$as_me:$LINENO: checking if Xft2 is used" >&5
6185 echo $ECHO_N "checking if Xft2 is used... $ECHO_C" >&6; }
6186 # Check whether --enable-xft2 was given.
6187 if test "${enable_xft2+set}" = set; then
6188 enableval=$enable_xft2; mgp_use_xft2="$enableval"
6189 else
6190 mgp_use_xft2="yes"
6191 fi
6192
6193 { echo "$as_me:$LINENO: result: $mgp_use_xft2" >&5
6194 echo "${ECHO_T}$mgp_use_xft2" >&6; }
6195 if test "$mgp_use_xft2" = "yes"; then
6196 if type pkg-config > /dev/null 2>&1; then
6197 if pkg-config xft; then
6198 OPTFLAGS="`pkg-config --cflags xft` $OPTFLAGS"
6199 LIBS="$LIBS `pkg-config --libs xft`"
6200 cat >>confdefs.h <<\_ACEOF
6201 #define USE_XFT2 1
6202 _ACEOF
6203
6204 mgp_xft2_found="yes";
6205 fi
6206 fi
6207 if test "$mgp_xft2_found" != "yes"; then
6208 { echo "$as_me:$LINENO: checking for xft2 and ft2 and fc header.." >&5
6209 echo $ECHO_N "checking for xft2 and ft2 and fc header..... $ECHO_C" >&6; }
6210 for dir in /usr/include /usr/include/Xft2 /usr/X11R6/include \
6211 /usr/X11R6/include/freetype2 \
6212 /usr/local/include /usr/include/freetype2; do
6213 if test -f $dir/X11/Xft/Xft.h; then
6214 ac_cv_xft2_hdrdir="$dir"
6215 fi
6216 if test -f $dir/fontconfig/fontconfig.h; then
6217 ac_cv_fc_hdrdir="$dir"
6218 fi
6219 if test -f $dir/freetype/freetype.h; then
6220 ac_cv_ft2_hdrdir="$dir"
6221 fi
6222 done
6223 if test -z "$ac_cv_xft2_hdrdir" -o -z "$ac_cv_fc_hdrdir"; then
6224 { echo "$as_me:$LINENO: result: no - not using xft2" >&5
6225 echo "${ECHO_T}no - not using xft2" >&6; }
6226 mgp_use_xft2=no
6227 else
6228 { echo "$as_me:$LINENO: result: $ac_cv_xft2_hdrdir and $ac_cv_ft2_hdrdir and $ac_cv_fc_hdrdir" >&5
6229 echo "${ECHO_T}$ac_cv_xft2_hdrdir and $ac_cv_ft2_hdrdir and $ac_cv_fc_hdrdir" >&6; }
6230 if test $ac_cv_xft2_hdrdir != "/usr/include" ; then
6231 OPTFLAGS="-I$ac_cv_xft2_hdrdir $OPTFLAGS"
6232 fi
6233 if test $ac_cv_ft2_hdrdir != "/usr/include" ; then
6234 OPTFLAGS="-I$ac_cv_ft2_hdrdir $OPTFLAGS"
6235 fi
6236 if test $ac_cv_fc_hdrdir != "/usr/include" ; then
6237 OPTFLAGS="-I$ac_cv_fc_hdrdir $OPTFLAGS"
6238 fi
6239 fi
6240 if test "$mgp_use_xft2" = "yes"; then
6241 { echo "$as_me:$LINENO: checking for xft2 library.." >&5
6242 echo $ECHO_N "checking for xft2 library..... $ECHO_C" >&6; }
6243 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
6244 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
6245 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 ac_check_lib_save_LIBS=$LIBS
6249 LIBS="-lXft -lfontconfig $LIBS"
6250 cat >conftest.$ac_ext <<_ACEOF
6251 /* confdefs.h. */
6252 _ACEOF
6253 cat confdefs.h >>conftest.$ac_ext
6254 cat >>conftest.$ac_ext <<_ACEOF
6255 /* end confdefs.h. */
6256
6257 /* Override any GCC internal prototype to avoid an error.
6258 Use char because int might match the return type of a GCC
6259 builtin and then its argument prototype would still apply. */
6260 #ifdef __cplusplus
6261 extern "C"
6262 #endif
6263 char XftFontOpen ();
6264 int
6265 main ()
6266 {
6267 return XftFontOpen ();
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext conftest$ac_exeext
6273 if { (ac_try="$ac_link"
6274 case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277 esac
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_link") 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest$ac_exeext &&
6289 $as_test_x conftest$ac_exeext; then
6290 ac_cv_lib_Xft_XftFontOpen=yes
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 ac_cv_lib_Xft_XftFontOpen=no
6296 fi
6297
6298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6299 conftest$ac_exeext conftest.$ac_ext
6300 LIBS=$ac_check_lib_save_LIBS
6301 fi
6302 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
6303 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
6304 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
6305 LIBS="$LIBS -lXft -lfontconfig"
6306 cat >>confdefs.h <<\_ACEOF
6307 #define USE_XFT2 1
6308 _ACEOF
6309
6310 mgp_xft2_found=yes
6311 fi
6312
6313 fi
6314 fi
6315 fi
6316 if test "$mgp_xft2_found" = "yes"; then
6317 { echo "$as_me:$LINENO: checking for iconv.." >&5
6318 echo $ECHO_N "checking for iconv..... $ECHO_C" >&6; }
6319 { echo "$as_me:$LINENO: checking for iconv_open" >&5
6320 echo $ECHO_N "checking for iconv_open... $ECHO_C" >&6; }
6321 if test "${ac_cv_func_iconv_open+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324 cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h. */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h. */
6330 /* Define iconv_open to an innocuous variant, in case <limits.h> declares iconv_open.
6331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6332 #define iconv_open innocuous_iconv_open
6333
6334 /* System header to define __stub macros and hopefully few prototypes,
6335 which can conflict with char iconv_open (); below.
6336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6337 <limits.h> exists even on freestanding compilers. */
6338
6339 #ifdef __STDC__
6340 # include <limits.h>
6341 #else
6342 # include <assert.h>
6343 #endif
6344
6345 #undef iconv_open
6346
6347 /* Override any GCC internal prototype to avoid an error.
6348 Use char because int might match the return type of a GCC
6349 builtin and then its argument prototype would still apply. */
6350 #ifdef __cplusplus
6351 extern "C"
6352 #endif
6353 char iconv_open ();
6354 /* The GNU C library defines this for functions which it implements
6355 to always fail with ENOSYS. Some functions are actually named
6356 something starting with __ and the normal name is an alias. */
6357 #if defined __stub_iconv_open || defined __stub___iconv_open
6358 choke me
6359 #endif
6360
6361 int
6362 main ()
6363 {
6364 return iconv_open ();
6365 ;
6366 return 0;
6367 }
6368 _ACEOF
6369 rm -f conftest.$ac_objext conftest$ac_exeext
6370 if { (ac_try="$ac_link"
6371 case "(($ac_try" in
6372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6374 esac
6375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376 (eval "$ac_link") 2>conftest.er1
6377 ac_status=$?
6378 grep -v '^ *+' conftest.er1 >conftest.err
6379 rm -f conftest.er1
6380 cat conftest.err >&5
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } && {
6383 test -z "$ac_c_werror_flag" ||
6384 test ! -s conftest.err
6385 } && test -s conftest$ac_exeext &&
6386 $as_test_x conftest$ac_exeext; then
6387 ac_cv_func_iconv_open=yes
6388 else
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6391
6392 ac_cv_func_iconv_open=no
6393 fi
6394
6395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6396 conftest$ac_exeext conftest.$ac_ext
6397 fi
6398 { echo "$as_me:$LINENO: result: $ac_cv_func_iconv_open" >&5
6399 echo "${ECHO_T}$ac_cv_func_iconv_open" >&6; }
6400 if test $ac_cv_func_iconv_open = yes; then
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_ICONV 1
6403 _ACEOF
6404
6405 else
6406 { echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
6407 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6; }
6408 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 ac_check_lib_save_LIBS=$LIBS
6412 LIBS="-liconv $LIBS"
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419
6420 /* Override any GCC internal prototype to avoid an error.
6421 Use char because int might match the return type of a GCC
6422 builtin and then its argument prototype would still apply. */
6423 #ifdef __cplusplus
6424 extern "C"
6425 #endif
6426 char iconv_open ();
6427 int
6428 main ()
6429 {
6430 return iconv_open ();
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 rm -f conftest.$ac_objext conftest$ac_exeext
6436 if { (ac_try="$ac_link"
6437 case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6440 esac
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_link") 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && {
6449 test -z "$ac_c_werror_flag" ||
6450 test ! -s conftest.err
6451 } && test -s conftest$ac_exeext &&
6452 $as_test_x conftest$ac_exeext; then
6453 ac_cv_lib_iconv_iconv_open=yes
6454 else
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6457
6458 ac_cv_lib_iconv_iconv_open=no
6459 fi
6460
6461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6462 conftest$ac_exeext conftest.$ac_ext
6463 LIBS=$ac_check_lib_save_LIBS
6464 fi
6465 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
6466 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6; }
6467 if test $ac_cv_lib_iconv_iconv_open = yes; then
6468 LIBS="$LIBS -liconv"; cat >>confdefs.h <<\_ACEOF
6469 #define HAVE_ICONV 1
6470 _ACEOF
6471
6472 else
6473 { echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
6474 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6; }
6475 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477 else
6478 ac_check_lib_save_LIBS=$LIBS
6479 LIBS="-liconv $LIBS"
6480 cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h. */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486
6487 /* Override any GCC internal prototype to avoid an error.
6488 Use char because int might match the return type of a GCC
6489 builtin and then its argument prototype would still apply. */
6490 #ifdef __cplusplus
6491 extern "C"
6492 #endif
6493 char libiconv_open ();
6494 int
6495 main ()
6496 {
6497 return libiconv_open ();
6498 ;
6499 return 0;
6500 }
6501 _ACEOF
6502 rm -f conftest.$ac_objext conftest$ac_exeext
6503 if { (ac_try="$ac_link"
6504 case "(($ac_try" in
6505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6507 esac
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 (eval "$ac_link") 2>conftest.er1
6510 ac_status=$?
6511 grep -v '^ *+' conftest.er1 >conftest.err
6512 rm -f conftest.er1
6513 cat conftest.err >&5
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } && {
6516 test -z "$ac_c_werror_flag" ||
6517 test ! -s conftest.err
6518 } && test -s conftest$ac_exeext &&
6519 $as_test_x conftest$ac_exeext; then
6520 ac_cv_lib_iconv_libiconv_open=yes
6521 else
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 ac_cv_lib_iconv_libiconv_open=no
6526 fi
6527
6528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6529 conftest$ac_exeext conftest.$ac_ext
6530 LIBS=$ac_check_lib_save_LIBS
6531 fi
6532 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
6533 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6; }
6534 if test $ac_cv_lib_iconv_libiconv_open = yes; then
6535 LIBS="$LIBS -liconv"; cat >>confdefs.h <<\_ACEOF
6536 #define HAVE_ICONV 1
6537 _ACEOF
6538
6539 fi
6540
6541 fi
6542
6543 fi
6544
6545 fi
6546
6547
6548 for ac_header in fontconfig/fontconfig.h
6549 do
6550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 fi
6557 ac_res=`eval echo '${'$as_ac_Header'}'`
6558 { echo "$as_me:$LINENO: result: $ac_res" >&5
6559 echo "${ECHO_T}$ac_res" >&6; }
6560 else
6561 # Is the header compilable?
6562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6571 #include <$ac_header>
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6575 case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6581 ac_status=$?
6582 grep -v '^ *+' conftest.er1 >conftest.err
6583 rm -f conftest.er1
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } && {
6587 test -z "$ac_c_werror_flag" ||
6588 test ! -s conftest.err
6589 } && test -s conftest.$ac_objext; then
6590 ac_header_compiler=yes
6591 else
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6594
6595 ac_header_compiler=no
6596 fi
6597
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6600 echo "${ECHO_T}$ac_header_compiler" >&6; }
6601
6602 # Is the header present?
6603 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6605 cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h. */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <$ac_header>
6612 _ACEOF
6613 if { (ac_try="$ac_cpp conftest.$ac_ext"
6614 case "(($ac_try" in
6615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6616 *) ac_try_echo=$ac_try;;
6617 esac
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6620 ac_status=$?
6621 grep -v '^ *+' conftest.er1 >conftest.err
6622 rm -f conftest.er1
6623 cat conftest.err >&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } >/dev/null && {
6626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6627 test ! -s conftest.err
6628 }; then
6629 ac_header_preproc=yes
6630 else
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634 ac_header_preproc=no
6635 fi
6636
6637 rm -f conftest.err conftest.$ac_ext
6638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6639 echo "${ECHO_T}$ac_header_preproc" >&6; }
6640
6641 # So? What about this header?
6642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6643 yes:no: )
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6648 ac_header_preproc=yes
6649 ;;
6650 no:yes:* )
6651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6654 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6658 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6663
6664 ;;
6665 esac
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 eval "$as_ac_Header=\$ac_header_preproc"
6672 fi
6673 ac_res=`eval echo '${'$as_ac_Header'}'`
6674 { echo "$as_me:$LINENO: result: $ac_res" >&5
6675 echo "${ECHO_T}$ac_res" >&6; }
6676
6677 fi
6678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6679 cat >>confdefs.h <<_ACEOF
6680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6681 _ACEOF
6682
6683 fi
6684
6685 done
6686
6687
6688 { echo "$as_me:$LINENO: checking if gif handling is enabled" >&5
6689 echo $ECHO_N "checking if gif handling is enabled... $ECHO_C" >&6; }
6690 # Check whether --enable-gif was given.
6691 if test "${enable_gif+set}" = set; then
6692 enableval=$enable_gif; mgp_gif="$enableval"
6693 else
6694 mgp_gif="yes"
6695 fi
6696
6697 { echo "$as_me:$LINENO: result: $mgp_gif" >&5
6698 echo "${ECHO_T}$mgp_gif" >&6; }
6699 if test $mgp_gif = "yes"; then
6700 { echo "$as_me:$LINENO: checking for DGifOpenFileHandle in -lungif" >&5
6701 echo $ECHO_N "checking for DGifOpenFileHandle in -lungif... $ECHO_C" >&6; }
6702 if test "${ac_cv_lib_ungif_DGifOpenFileHandle+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 ac_check_lib_save_LIBS=$LIBS
6706 LIBS="-lungif $LIBS"
6707 cat >conftest.$ac_ext <<_ACEOF
6708 /* confdefs.h. */
6709 _ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713
6714 /* Override any GCC internal prototype to avoid an error.
6715 Use char because int might match the return type of a GCC
6716 builtin and then its argument prototype would still apply. */
6717 #ifdef __cplusplus
6718 extern "C"
6719 #endif
6720 char DGifOpenFileHandle ();
6721 int
6722 main ()
6723 {
6724 return DGifOpenFileHandle ();
6725 ;
6726 return 0;
6727 }
6728 _ACEOF
6729 rm -f conftest.$ac_objext conftest$ac_exeext
6730 if { (ac_try="$ac_link"
6731 case "(($ac_try" in
6732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733 *) ac_try_echo=$ac_try;;
6734 esac
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_link") 2>conftest.er1
6737 ac_status=$?
6738 grep -v '^ *+' conftest.er1 >conftest.err
6739 rm -f conftest.er1
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } && {
6743 test -z "$ac_c_werror_flag" ||
6744 test ! -s conftest.err
6745 } && test -s conftest$ac_exeext &&
6746 $as_test_x conftest$ac_exeext; then
6747 ac_cv_lib_ungif_DGifOpenFileHandle=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752 ac_cv_lib_ungif_DGifOpenFileHandle=no
6753 fi
6754
6755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6756 conftest$ac_exeext conftest.$ac_ext
6757 LIBS=$ac_check_lib_save_LIBS
6758 fi
6759 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpenFileHandle" >&5
6760 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpenFileHandle" >&6; }
6761 if test $ac_cv_lib_ungif_DGifOpenFileHandle = yes; then
6762 gif_ok=yes
6763 GIFLIB="-lungif"
6764 cat >>confdefs.h <<\_ACEOF
6765 #define USE_GIF 1
6766 _ACEOF
6767
6768 else
6769 { echo "$as_me:$LINENO: checking for DGifOpenFileHandle in -lgif" >&5
6770 echo $ECHO_N "checking for DGifOpenFileHandle in -lgif... $ECHO_C" >&6; }
6771 if test "${ac_cv_lib_gif_DGifOpenFileHandle+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 else
6774 ac_check_lib_save_LIBS=$LIBS
6775 LIBS="-lgif $LIBS"
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782
6783 /* Override any GCC internal prototype to avoid an error.
6784 Use char because int might match the return type of a GCC
6785 builtin and then its argument prototype would still apply. */
6786 #ifdef __cplusplus
6787 extern "C"
6788 #endif
6789 char DGifOpenFileHandle ();
6790 int
6791 main ()
6792 {
6793 return DGifOpenFileHandle ();
6794 ;
6795 return 0;
6796 }
6797 _ACEOF
6798 rm -f conftest.$ac_objext conftest$ac_exeext
6799 if { (ac_try="$ac_link"
6800 case "(($ac_try" in
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6803 esac
6804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6805 (eval "$ac_link") 2>conftest.er1
6806 ac_status=$?
6807 grep -v '^ *+' conftest.er1 >conftest.err
6808 rm -f conftest.er1
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } && {
6812 test -z "$ac_c_werror_flag" ||
6813 test ! -s conftest.err
6814 } && test -s conftest$ac_exeext &&
6815 $as_test_x conftest$ac_exeext; then
6816 ac_cv_lib_gif_DGifOpenFileHandle=yes
6817 else
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821 ac_cv_lib_gif_DGifOpenFileHandle=no
6822 fi
6823
6824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6825 conftest$ac_exeext conftest.$ac_ext
6826 LIBS=$ac_check_lib_save_LIBS
6827 fi
6828 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpenFileHandle" >&5
6829 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpenFileHandle" >&6; }
6830 if test $ac_cv_lib_gif_DGifOpenFileHandle = yes; then
6831 gif_ok=yes
6832 GIFLIB="-lgif"
6833 cat >>confdefs.h <<\_ACEOF
6834 #define USE_GIF 1
6835 _ACEOF
6836
6837 else
6838 { echo "$as_me:$LINENO: checking for DGifOpenFileName in -lungif" >&5
6839 echo $ECHO_N "checking for DGifOpenFileName in -lungif... $ECHO_C" >&6; }
6840 if test "${ac_cv_lib_ungif_DGifOpenFileName+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843 ac_check_lib_save_LIBS=$LIBS
6844 LIBS="-lungif -L$x_libraries -lX11 $LIBS"
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851
6852 /* Override any GCC internal prototype to avoid an error.
6853 Use char because int might match the return type of a GCC
6854 builtin and then its argument prototype would still apply. */
6855 #ifdef __cplusplus
6856 extern "C"
6857 #endif
6858 char DGifOpenFileName ();
6859 int
6860 main ()
6861 {
6862 return DGifOpenFileName ();
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 rm -f conftest.$ac_objext conftest$ac_exeext
6868 if { (ac_try="$ac_link"
6869 case "(($ac_try" in
6870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6871 *) ac_try_echo=$ac_try;;
6872 esac
6873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6874 (eval "$ac_link") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest$ac_exeext &&
6884 $as_test_x conftest$ac_exeext; then
6885 ac_cv_lib_ungif_DGifOpenFileName=yes
6886 else
6887 echo "$as_me: failed program was:" >&5
6888 sed 's/^/| /' conftest.$ac_ext >&5
6889
6890 ac_cv_lib_ungif_DGifOpenFileName=no
6891 fi
6892
6893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6894 conftest$ac_exeext conftest.$ac_ext
6895 LIBS=$ac_check_lib_save_LIBS
6896 fi
6897 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpenFileName" >&5
6898 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpenFileName" >&6; }
6899 if test $ac_cv_lib_ungif_DGifOpenFileName = yes; then
6900 gif_ok=yes
6901 GIFLIB="-lungif"
6902 cat >>confdefs.h <<\_ACEOF
6903 #define USE_GIF 1
6904 _ACEOF
6905
6906 else
6907 { echo "$as_me:$LINENO: checking for DGifOpenFilename in -lgif" >&5
6908 echo $ECHO_N "checking for DGifOpenFilename in -lgif... $ECHO_C" >&6; }
6909 if test "${ac_cv_lib_gif_DGifOpenFilename+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 else
6912 ac_check_lib_save_LIBS=$LIBS
6913 LIBS="-lgif -L$x_libraries -lX11 $LIBS"
6914 cat >conftest.$ac_ext <<_ACEOF
6915 /* confdefs.h. */
6916 _ACEOF
6917 cat confdefs.h >>conftest.$ac_ext
6918 cat >>conftest.$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920
6921 /* Override any GCC internal prototype to avoid an error.
6922 Use char because int might match the return type of a GCC
6923 builtin and then its argument prototype would still apply. */
6924 #ifdef __cplusplus
6925 extern "C"
6926 #endif
6927 char DGifOpenFilename ();
6928 int
6929 main ()
6930 {
6931 return DGifOpenFilename ();
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (ac_try="$ac_link"
6938 case "(($ac_try" in
6939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6940 *) ac_try_echo=$ac_try;;
6941 esac
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_link") 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest$ac_exeext &&
6953 $as_test_x conftest$ac_exeext; then
6954 ac_cv_lib_gif_DGifOpenFilename=yes
6955 else
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959 ac_cv_lib_gif_DGifOpenFilename=no
6960 fi
6961
6962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6963 conftest$ac_exeext conftest.$ac_ext
6964 LIBS=$ac_check_lib_save_LIBS
6965 fi
6966 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpenFilename" >&5
6967 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpenFilename" >&6; }
6968 if test $ac_cv_lib_gif_DGifOpenFilename = yes; then
6969 gif_ok=yes
6970 GIFLIB="-lgif"
6971 cat >>confdefs.h <<\_ACEOF
6972 #define USE_GIF 1
6973 _ACEOF
6974
6975 fi
6976
6977 fi
6978
6979 fi
6980
6981 fi
6982
6983 if test "x$gif_ok" != "xyes"; then
6984 echo 'FATAL: You need libungif to use gif images. pass proper LIBS to configure.'
6985 exit 1
6986 fi
6987 for i in /usr/pkg /usr/local /usr; do
6988 if test -f $i/include/gif_lib.h; then
6989 gif_h_ok=yes
6990 OPTFLAGS="$OPTFLAGS -I$i/include"
6991 break
6992 fi
6993 done
6994 if test -f /usr/include/gif_lib.h; then
6995 gif_h_ok=yes
6996 fi
6997 if test "x$gif_h_ok" != "xyes"; then
6998 if test "${ac_cv_header_gif_lib_h+set}" = set; then
6999 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
7000 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
7001 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 fi
7004 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
7005 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
7006 else
7007 # Is the header compilable?
7008 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
7009 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
7010 cat >conftest.$ac_ext <<_ACEOF
7011 /* confdefs.h. */
7012 _ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 $ac_includes_default
7017 #include <gif_lib.h>
7018 _ACEOF
7019 rm -f conftest.$ac_objext
7020 if { (ac_try="$ac_compile"
7021 case "(($ac_try" in
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
7036 ac_header_compiler=yes
7037 else
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_header_compiler=no
7042 fi
7043
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7046 echo "${ECHO_T}$ac_header_compiler" >&6; }
7047
7048 # Is the header present?
7049 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
7050 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <gif_lib.h>
7058 _ACEOF
7059 if { (ac_try="$ac_cpp conftest.$ac_ext"
7060 case "(($ac_try" in
7061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7063 esac
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7066 ac_status=$?
7067 grep -v '^ *+' conftest.er1 >conftest.err
7068 rm -f conftest.er1
7069 cat conftest.err >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } >/dev/null && {
7072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7073 test ! -s conftest.err
7074 }; then
7075 ac_header_preproc=yes
7076 else
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 ac_header_preproc=no
7081 fi
7082
7083 rm -f conftest.err conftest.$ac_ext
7084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7085 echo "${ECHO_T}$ac_header_preproc" >&6; }
7086
7087 # So? What about this header?
7088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7089 yes:no: )
7090 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
7091 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
7093 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
7094 ac_header_preproc=yes
7095 ;;
7096 no:yes:* )
7097 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
7098 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
7099 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
7100 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
7101 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
7102 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
7104 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
7105 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
7106 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
7108 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
7109
7110 ;;
7111 esac
7112 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
7113 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
7114 if test "${ac_cv_header_gif_lib_h+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 ac_cv_header_gif_lib_h=$ac_header_preproc
7118 fi
7119 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
7120 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
7121
7122 fi
7123 if test $ac_cv_header_gif_lib_h = yes; then
7124 gif_h_ok=yes
7125 fi
7126
7127
7128 fi
7129 if test "x$gif_h_ok" != "xyes"; then
7130 echo 'FATAL: cannot find gif_lib.h. pass proper CPPFLAGS to configure.'
7131 exit 1
7132 fi
7133 fi
7134
7135 USE_IMLIB=0
7136
7137 { echo "$as_me:$LINENO: checking if imlib is used" >&5
7138 echo $ECHO_N "checking if imlib is used... $ECHO_C" >&6; }
7139 # Check whether --enable-imlib was given.
7140 if test "${enable_imlib+set}" = set; then
7141 enableval=$enable_imlib; mgp_imlib="$enableval"
7142 else
7143 mgp_imlib="yes"
7144 fi
7145
7146 { echo "$as_me:$LINENO: result: $mgp_imlib" >&5
7147 echo "${ECHO_T}$mgp_imlib" >&6; }
7148 if test $mgp_imlib = "yes"; then
7149 if type pkg-config > /dev/null 2>&1; then
7150 if pkg-config imlib2; then
7151 LIBS="$LIBS `pkg-config --libs imlib2`"
7152 OPTFLAGS="$OPTFLAGS `pkg-config --cflags imlib2`"
7153 cat >>confdefs.h <<\_ACEOF
7154 #define USE_IMLIB 1
7155 _ACEOF
7156
7157 USE_IMLIB=1
7158 fi
7159 else
7160 { echo "$as_me:$LINENO: checking for imlib_load_image in -lImlib2" >&5
7161 echo $ECHO_N "checking for imlib_load_image in -lImlib2... $ECHO_C" >&6; }
7162 if test "${ac_cv_lib_Imlib2_imlib_load_image+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 else
7165 ac_check_lib_save_LIBS=$LIBS
7166 LIBS="-lImlib2 -L$x_libraries -lX11 -lXext $LIBS"
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173
7174 /* Override any GCC internal prototype to avoid an error.
7175 Use char because int might match the return type of a GCC
7176 builtin and then its argument prototype would still apply. */
7177 #ifdef __cplusplus
7178 extern "C"
7179 #endif
7180 char imlib_load_image ();
7181 int
7182 main ()
7183 {
7184 return imlib_load_image ();
7185 ;
7186 return 0;
7187 }
7188 _ACEOF
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (ac_try="$ac_link"
7191 case "(($ac_try" in
7192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7194 esac
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_link") 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest$ac_exeext &&
7206 $as_test_x conftest$ac_exeext; then
7207 ac_cv_lib_Imlib2_imlib_load_image=yes
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7211
7212 ac_cv_lib_Imlib2_imlib_load_image=no
7213 fi
7214
7215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7216 conftest$ac_exeext conftest.$ac_ext
7217 LIBS=$ac_check_lib_save_LIBS
7218 fi
7219 { echo "$as_me:$LINENO: result: $ac_cv_lib_Imlib2_imlib_load_image" >&5
7220 echo "${ECHO_T}$ac_cv_lib_Imlib2_imlib_load_image" >&6; }
7221 if test $ac_cv_lib_Imlib2_imlib_load_image = yes; then
7222 imlib_ok=yes
7223 LIBS="$LIBS -lImlib2"
7224 cat >>confdefs.h <<\_ACEOF
7225 #define USE_IMLIB 1
7226 _ACEOF
7227
7228 USE_IMLIB=1
7229 fi
7230
7231 if test "x$imlib_ok" != "xyes"; then
7232 echo 'FATAL: You need libImlib2 to use Imlib loading. pass proper LIBS to configure.'
7233 exit 1
7234 fi
7235 for i in /usr/pkg /usr/local; do
7236 if test -f $i/include/Imlib2.h; then
7237 imlib_h_ok=yes
7238 OPTFLAGS="$OPTFLAGS -I$i/include"
7239 break
7240 fi
7241 done
7242 if test -f /usr/include/Imlib2.h; then
7243 imlib_h_ok=yes
7244 fi
7245 if test "x$gif_h_ok" != "xyes"; then
7246 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7247 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7248 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7249 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 fi
7252 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7253 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7254 else
7255 # Is the header compilable?
7256 { echo "$as_me:$LINENO: checking Imlib2.h usability" >&5
7257 echo $ECHO_N "checking Imlib2.h usability... $ECHO_C" >&6; }
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 $ac_includes_default
7265 #include <Imlib2.h>
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (ac_try="$ac_compile"
7269 case "(($ac_try" in
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_compile") 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } && {
7281 test -z "$ac_c_werror_flag" ||
7282 test ! -s conftest.err
7283 } && test -s conftest.$ac_objext; then
7284 ac_header_compiler=yes
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289 ac_header_compiler=no
7290 fi
7291
7292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7294 echo "${ECHO_T}$ac_header_compiler" >&6; }
7295
7296 # Is the header present?
7297 { echo "$as_me:$LINENO: checking Imlib2.h presence" >&5
7298 echo $ECHO_N "checking Imlib2.h presence... $ECHO_C" >&6; }
7299 cat >conftest.$ac_ext <<_ACEOF
7300 /* confdefs.h. */
7301 _ACEOF
7302 cat confdefs.h >>conftest.$ac_ext
7303 cat >>conftest.$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <Imlib2.h>
7306 _ACEOF
7307 if { (ac_try="$ac_cpp conftest.$ac_ext"
7308 case "(($ac_try" in
7309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310 *) ac_try_echo=$ac_try;;
7311 esac
7312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7314 ac_status=$?
7315 grep -v '^ *+' conftest.er1 >conftest.err
7316 rm -f conftest.er1
7317 cat conftest.err >&5
7318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319 (exit $ac_status); } >/dev/null && {
7320 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7321 test ! -s conftest.err
7322 }; then
7323 ac_header_preproc=yes
7324 else
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328 ac_header_preproc=no
7329 fi
7330
7331 rm -f conftest.err conftest.$ac_ext
7332 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7333 echo "${ECHO_T}$ac_header_preproc" >&6; }
7334
7335 # So? What about this header?
7336 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7337 yes:no: )
7338 { echo "$as_me:$LINENO: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&5
7339 echo "$as_me: WARNING: Imlib2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7340 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the compiler's result" >&5
7341 echo "$as_me: WARNING: Imlib2.h: proceeding with the compiler's result" >&2;}
7342 ac_header_preproc=yes
7343 ;;
7344 no:yes:* )
7345 { echo "$as_me:$LINENO: WARNING: Imlib2.h: present but cannot be compiled" >&5
7346 echo "$as_me: WARNING: Imlib2.h: present but cannot be compiled" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: Imlib2.h: check for missing prerequisite headers?" >&5
7348 echo "$as_me: WARNING: Imlib2.h: check for missing prerequisite headers?" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: Imlib2.h: see the Autoconf documentation" >&5
7350 echo "$as_me: WARNING: Imlib2.h: see the Autoconf documentation" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&5
7352 echo "$as_me: WARNING: Imlib2.h: section \"Present But Cannot Be Compiled\"" >&2;}
7353 { echo "$as_me:$LINENO: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&5
7354 echo "$as_me: WARNING: Imlib2.h: proceeding with the preprocessor's result" >&2;}
7355 { echo "$as_me:$LINENO: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&5
7356 echo "$as_me: WARNING: Imlib2.h: in the future, the compiler will take precedence" >&2;}
7357
7358 ;;
7359 esac
7360 { echo "$as_me:$LINENO: checking for Imlib2.h" >&5
7361 echo $ECHO_N "checking for Imlib2.h... $ECHO_C" >&6; }
7362 if test "${ac_cv_header_Imlib2_h+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 ac_cv_header_Imlib2_h=$ac_header_preproc
7366 fi
7367 { echo "$as_me:$LINENO: result: $ac_cv_header_Imlib2_h" >&5
7368 echo "${ECHO_T}$ac_cv_header_Imlib2_h" >&6; }
7369
7370 fi
7371 if test $ac_cv_header_Imlib2_h = yes; then
7372 imlib_h_ok=yes
7373 fi
7374
7375
7376 fi
7377 if test "x$imlib_h_ok" != "xyes"; then
7378 echo 'FATAL: cannot find Imlib2.h. pass proper CPPFLAGS to configure.'
7379 exit 1
7380 fi
7381 fi
7382 fi
7383
7384 if test -n "$GIFLIB"; then
7385 LIBS="$LIBS $GIFLIB"
7386 fi
7387
7388
7389 # Check whether --with-m17n-lib was given.
7390 if test "${with_m17n_lib+set}" = set; then
7391 withval=$with_m17n_lib;
7392 fi
7393
7394 if test "x$with_m17n_lib" = "xyes"; then
7395 # Extract the first word of "m17n-config", so it can be a program name with args.
7396 set dummy m17n-config; ac_word=$2
7397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7399 if test "${ac_cv_prog_HAVE_M17NLIB+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7401 else
7402 if test -n "$HAVE_M17NLIB"; then
7403 ac_cv_prog_HAVE_M17NLIB="$HAVE_M17NLIB" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_prog_HAVE_M17NLIB="yes"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416 done
7417 done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 HAVE_M17NLIB=$ac_cv_prog_HAVE_M17NLIB
7423 if test -n "$HAVE_M17NLIB"; then
7424 { echo "$as_me:$LINENO: result: $HAVE_M17NLIB" >&5
7425 echo "${ECHO_T}$HAVE_M17NLIB" >&6; }
7426 else
7427 { echo "$as_me:$LINENO: result: no" >&5
7428 echo "${ECHO_T}no" >&6; }
7429 fi
7430
7431
7432 if test "x$HAVE_M17NLIB" = "xyes"; then
7433 cat >>confdefs.h <<\_ACEOF
7434 #define USE_M17N 1
7435 _ACEOF
7436
7437 OPTFLAGS="$OPTFLAGS `m17n-config X --cflags`"
7438 LIBS="$LIBS `m17n-config X --libs` -lm17n-core"
7439 fi
7440 fi
7441
7442 mgp_keywords=`$mgp_cv_path_perl $srcdir/keywords.pl $srcdir/globals.c`
7443
7444
7445 ac_config_files="$ac_config_files Imakefile image/Imakefile sample/Imakefile contrib/mgp2html.pl contrib/mgp2latex.pl contrib/mgpnet mgpembed.pl"
7446
7447 cat >confcache <<\_ACEOF
7448 # This file is a shell script that caches the results of configure
7449 # tests run on this system so they can be shared between configure
7450 # scripts and configure runs, see configure's option --config-cache.
7451 # It is not useful on other systems. If it contains results you don't
7452 # want to keep, you may remove or edit it.
7453 #
7454 # config.status only pays attention to the cache file if you give it
7455 # the --recheck option to rerun configure.
7456 #
7457 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7458 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7459 # following values.
7460
7461 _ACEOF
7462
7463 # The following way of writing the cache mishandles newlines in values,
7464 # but we know of no workaround that is simple, portable, and efficient.
7465 # So, we kill variables containing newlines.
7466 # Ultrix sh set writes to stderr and can't be redirected directly,
7467 # and sets the high bit in the cache file unless we assign to the vars.
7468 (
7469 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7470 eval ac_val=\$$ac_var
7471 case $ac_val in #(
7472 *${as_nl}*)
7473 case $ac_var in #(
7474 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7475 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7476 esac
7477 case $ac_var in #(
7478 _ | IFS | as_nl) ;; #(
7479 *) $as_unset $ac_var ;;
7480 esac ;;
7481 esac
7482 done
7483
7484 (set) 2>&1 |
7485 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7486 *${as_nl}ac_space=\ *)
7487 # `set' does not quote correctly, so add quotes (double-quote
7488 # substitution turns \\\\ into \\, and sed turns \\ into \).
7489 sed -n \
7490 "s/'/'\\\\''/g;
7491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7492 ;; #(
7493 *)
7494 # `set' quotes correctly as required by POSIX, so do not add quotes.
7495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7496 ;;
7497 esac |
7498 sort
7499 ) |
7500 sed '
7501 /^ac_cv_env_/b end
7502 t clear
7503 :clear
7504 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7505 t end
7506 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7507 :end' >>confcache
7508 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7509 if test -w "$cache_file"; then
7510 test "x$cache_file" != "x/dev/null" &&
7511 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7512 echo "$as_me: updating cache $cache_file" >&6;}
7513 cat confcache >$cache_file
7514 else
7515 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7516 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7517 fi
7518 fi
7519 rm -f confcache
7520
7521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7522 # Let make expand exec_prefix.
7523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7524
7525 # Transform confdefs.h into DEFS.
7526 # Protect against shell expansion while executing Makefile rules.
7527 # Protect against Makefile macro expansion.
7528 #
7529 # If the first sed substitution is executed (which looks for macros that
7530 # take arguments), then branch to the quote section. Otherwise,
7531 # look for a macro that doesn't take arguments.
7532 ac_script='
7533 t clear
7534 :clear
7535 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7536 t quote
7537 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7538 t quote
7539 b any
7540 :quote
7541 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7542 s/\[/\\&/g
7543 s/\]/\\&/g
7544 s/\$/$$/g
7545 H
7546 :any
7547 ${
7548 g
7549 s/^\n//
7550 s/\n/ /g
7551 p
7552 }
7553 '
7554 DEFS=`sed -n "$ac_script" confdefs.h`
7555
7556
7557 ac_libobjs=
7558 ac_ltlibobjs=
7559 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7560 # 1. Remove the extension, and $U if already installed.
7561 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7562 ac_i=`echo "$ac_i" | sed "$ac_script"`
7563 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7564 # will be set to the directory where LIBOBJS objects are built.
7565 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7566 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7567 done
7568 LIBOBJS=$ac_libobjs
7569
7570 LTLIBOBJS=$ac_ltlibobjs
7571
7572
7573
7574 : ${CONFIG_STATUS=./config.status}
7575 ac_clean_files_save=$ac_clean_files
7576 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7577 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7578 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7579 cat >$CONFIG_STATUS <<_ACEOF
7580 #! $SHELL
7581 # Generated by $as_me.
7582 # Run this file to recreate the current configuration.
7583 # Compiler output produced by configure, useful for debugging
7584 # configure, is in config.log if it exists.
7585
7586 debug=false
7587 ac_cs_recheck=false
7588 ac_cs_silent=false
7589 SHELL=\${CONFIG_SHELL-$SHELL}
7590 _ACEOF
7591
7592 cat >>$CONFIG_STATUS <<\_ACEOF
7593 ## --------------------- ##
7594 ## M4sh Initialization. ##
7595 ## --------------------- ##
7596
7597 # Be more Bourne compatible
7598 DUALCASE=1; export DUALCASE # for MKS sh
7599 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7600 emulate sh
7601 NULLCMD=:
7602 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7603 # is contrary to our usage. Disable this feature.
7604 alias -g '${1+"$@"}'='"$@"'
7605 setopt NO_GLOB_SUBST
7606 else
7607 case `(set -o) 2>/dev/null` in
7608 *posix*) set -o posix ;;
7609 esac
7610
7611 fi
7612
7613
7614
7615
7616 # PATH needs CR
7617 # Avoid depending upon Character Ranges.
7618 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7619 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7620 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7621 as_cr_digits='0123456789'
7622 as_cr_alnum=$as_cr_Letters$as_cr_digits
7623
7624 # The user is always right.
7625 if test "${PATH_SEPARATOR+set}" != set; then
7626 echo "#! /bin/sh" >conf$$.sh
7627 echo "exit 0" >>conf$$.sh
7628 chmod +x conf$$.sh
7629 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7630 PATH_SEPARATOR=';'
7631 else
7632 PATH_SEPARATOR=:
7633 fi
7634 rm -f conf$$.sh
7635 fi
7636
7637 # Support unset when possible.
7638 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7639 as_unset=unset
7640 else
7641 as_unset=false
7642 fi
7643
7644
7645 # IFS
7646 # We need space, tab and new line, in precisely that order. Quoting is
7647 # there to prevent editors from complaining about space-tab.
7648 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7649 # splitting by setting IFS to empty value.)
7650 as_nl='
7651 '
7652 IFS=" "" $as_nl"
7653
7654 # Find who we are. Look in the path if we contain no directory separator.
7655 case $0 in
7656 *[\\/]* ) as_myself=$0 ;;
7657 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660 IFS=$as_save_IFS
7661 test -z "$as_dir" && as_dir=.
7662 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7663 done
7664 IFS=$as_save_IFS
7665
7666 ;;
7667 esac
7668 # We did not find ourselves, most probably we were run as `sh COMMAND'
7669 # in which case we are not to be found in the path.
7670 if test "x$as_myself" = x; then
7671 as_myself=$0
7672 fi
7673 if test ! -f "$as_myself"; then
7674 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7675 { (exit 1); exit 1; }
7676 fi
7677
7678 # Work around bugs in pre-3.0 UWIN ksh.
7679 for as_var in ENV MAIL MAILPATH
7680 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7681 done
7682 PS1='$ '
7683 PS2='> '
7684 PS4='+ '
7685
7686 # NLS nuisances.
7687 for as_var in \
7688 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7689 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7690 LC_TELEPHONE LC_TIME
7691 do
7692 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7693 eval $as_var=C; export $as_var
7694 else
7695 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7696 fi
7697 done
7698
7699 # Required to use basename.
7700 if expr a : '\(a\)' >/dev/null 2>&1 &&
7701 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7702 as_expr=expr
7703 else
7704 as_expr=false
7705 fi
7706
7707 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7708 as_basename=basename
7709 else
7710 as_basename=false
7711 fi
7712
7713
7714 # Name of the executable.
7715 as_me=`$as_basename -- "$0" ||
7716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7717 X"$0" : 'X\(//\)$' \| \
7718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7719 echo X/"$0" |
7720 sed '/^.*\/\([^/][^/]*\)\/*$/{
7721 s//\1/
7722 q
7723 }
7724 /^X\/\(\/\/\)$/{
7725 s//\1/
7726 q
7727 }
7728 /^X\/\(\/\).*/{
7729 s//\1/
7730 q
7731 }
7732 s/.*/./; q'`
7733
7734 # CDPATH.
7735 $as_unset CDPATH
7736
7737
7738
7739 as_lineno_1=$LINENO
7740 as_lineno_2=$LINENO
7741 test "x$as_lineno_1" != "x$as_lineno_2" &&
7742 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7743
7744 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7745 # uniformly replaced by the line number. The first 'sed' inserts a
7746 # line-number line after each line using $LINENO; the second 'sed'
7747 # does the real work. The second script uses 'N' to pair each
7748 # line-number line with the line containing $LINENO, and appends
7749 # trailing '-' during substitution so that $LINENO is not a special
7750 # case at line end.
7751 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7752 # scripts with optimization help from Paolo Bonzini. Blame Lee
7753 # E. McMahon (1931-1989) for sed's syntax. :-)
7754 sed -n '
7755 p
7756 /[$]LINENO/=
7757 ' <$as_myself |
7758 sed '
7759 s/[$]LINENO.*/&-/
7760 t lineno
7761 b
7762 :lineno
7763 N
7764 :loop
7765 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7766 t loop
7767 s/-\n.*//
7768 ' >$as_me.lineno &&
7769 chmod +x "$as_me.lineno" ||
7770 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7771 { (exit 1); exit 1; }; }
7772
7773 # Don't try to exec as it changes $[0], causing all sort of problems
7774 # (the dirname of $[0] is not the place where we might find the
7775 # original and so on. Autoconf is especially sensitive to this).
7776 . "./$as_me.lineno"
7777 # Exit status is that of the last command.
7778 exit
7779 }
7780
7781
7782 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7783 as_dirname=dirname
7784 else
7785 as_dirname=false
7786 fi
7787
7788 ECHO_C= ECHO_N= ECHO_T=
7789 case `echo -n x` in
7790 -n*)
7791 case `echo 'x\c'` in
7792 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7793 *) ECHO_C='\c';;
7794 esac;;
7795 *)
7796 ECHO_N='-n';;
7797 esac
7798
7799 if expr a : '\(a\)' >/dev/null 2>&1 &&
7800 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7801 as_expr=expr
7802 else
7803 as_expr=false
7804 fi
7805
7806 rm -f conf$$ conf$$.exe conf$$.file
7807 if test -d conf$$.dir; then
7808 rm -f conf$$.dir/conf$$.file
7809 else
7810 rm -f conf$$.dir
7811 mkdir conf$$.dir
7812 fi
7813 echo >conf$$.file
7814 if ln -s conf$$.file conf$$ 2>/dev/null; then
7815 as_ln_s='ln -s'
7816 # ... but there are two gotchas:
7817 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7818 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7819 # In both cases, we have to default to `cp -p'.
7820 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7821 as_ln_s='cp -p'
7822 elif ln conf$$.file conf$$ 2>/dev/null; then
7823 as_ln_s=ln
7824 else
7825 as_ln_s='cp -p'
7826 fi
7827 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7828 rmdir conf$$.dir 2>/dev/null
7829
7830 if mkdir -p . 2>/dev/null; then
7831 as_mkdir_p=:
7832 else
7833 test -d ./-p && rmdir ./-p
7834 as_mkdir_p=false
7835 fi
7836
7837 if test -x / >/dev/null 2>&1; then
7838 as_test_x='test -x'
7839 else
7840 if ls -dL / >/dev/null 2>&1; then
7841 as_ls_L_option=L
7842 else
7843 as_ls_L_option=
7844 fi
7845 as_test_x='
7846 eval sh -c '\''
7847 if test -d "$1"; then
7848 test -d "$1/.";
7849 else
7850 case $1 in
7851 -*)set "./$1";;
7852 esac;
7853 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7854 ???[sx]*):;;*)false;;esac;fi
7855 '\'' sh
7856 '
7857 fi
7858 as_executable_p=$as_test_x
7859
7860 # Sed expression to map a string onto a valid CPP name.
7861 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7862
7863 # Sed expression to map a string onto a valid variable name.
7864 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7865
7866
7867 exec 6>&1
7868
7869 # Save the log message, to keep $[0] and so on meaningful, and to
7870 # report actual input values of CONFIG_FILES etc. instead of their
7871 # values after options handling.
7872 ac_log="
7873 This file was extended by $as_me, which was
7874 generated by GNU Autoconf 2.61. Invocation command line was
7875
7876 CONFIG_FILES = $CONFIG_FILES
7877 CONFIG_HEADERS = $CONFIG_HEADERS
7878 CONFIG_LINKS = $CONFIG_LINKS
7879 CONFIG_COMMANDS = $CONFIG_COMMANDS
7880 $ $0 $@
7881
7882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7883 "
7884
7885 _ACEOF
7886
7887 cat >>$CONFIG_STATUS <<_ACEOF
7888 # Files that config.status was made for.
7889 config_files="$ac_config_files"
7890
7891 _ACEOF
7892
7893 cat >>$CONFIG_STATUS <<\_ACEOF
7894 ac_cs_usage="\
7895 \`$as_me' instantiates files from templates according to the
7896 current configuration.
7897
7898 Usage: $0 [OPTIONS] [FILE]...
7899
7900 -h, --help print this help, then exit
7901 -V, --version print version number and configuration settings, then exit
7902 -q, --quiet do not print progress messages
7903 -d, --debug don't remove temporary files
7904 --recheck update $as_me by reconfiguring in the same conditions
7905 --file=FILE[:TEMPLATE]
7906 instantiate the configuration file FILE
7907
7908 Configuration files:
7909 $config_files
7910
7911 Report bugs to <[email protected]>."
7912
7913 _ACEOF
7914 cat >>$CONFIG_STATUS <<_ACEOF
7915 ac_cs_version="\\
7916 config.status
7917 configured by $0, generated by GNU Autoconf 2.61,
7918 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7919
7920 Copyright (C) 2006 Free Software Foundation, Inc.
7921 This config.status script is free software; the Free Software Foundation
7922 gives unlimited permission to copy, distribute and modify it."
7923
7924 ac_pwd='$ac_pwd'
7925 srcdir='$srcdir'
7926 _ACEOF
7927
7928 cat >>$CONFIG_STATUS <<\_ACEOF
7929 # If no file are specified by the user, then we need to provide default
7930 # value. By we need to know if files were specified by the user.
7931 ac_need_defaults=:
7932 while test $# != 0
7933 do
7934 case $1 in
7935 --*=*)
7936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7938 ac_shift=:
7939 ;;
7940 *)
7941 ac_option=$1
7942 ac_optarg=$2
7943 ac_shift=shift
7944 ;;
7945 esac
7946
7947 case $ac_option in
7948 # Handling of the options.
7949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7950 ac_cs_recheck=: ;;
7951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7952 echo "$ac_cs_version"; exit ;;
7953 --debug | --debu | --deb | --de | --d | -d )
7954 debug=: ;;
7955 --file | --fil | --fi | --f )
7956 $ac_shift
7957 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7958 ac_need_defaults=false;;
7959 --he | --h | --help | --hel | -h )
7960 echo "$ac_cs_usage"; exit ;;
7961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7962 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7963 ac_cs_silent=: ;;
7964
7965 # This is an error.
7966 -*) { echo "$as_me: error: unrecognized option: $1
7967 Try \`$0 --help' for more information." >&2
7968 { (exit 1); exit 1; }; } ;;
7969
7970 *) ac_config_targets="$ac_config_targets $1"
7971 ac_need_defaults=false ;;
7972
7973 esac
7974 shift
7975 done
7976
7977 ac_configure_extra_args=
7978
7979 if $ac_cs_silent; then
7980 exec 6>/dev/null
7981 ac_configure_extra_args="$ac_configure_extra_args --silent"
7982 fi
7983
7984 _ACEOF
7985 cat >>$CONFIG_STATUS <<_ACEOF
7986 if \$ac_cs_recheck; then
7987 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7988 CONFIG_SHELL=$SHELL
7989 export CONFIG_SHELL
7990 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7991 fi
7992
7993 _ACEOF
7994 cat >>$CONFIG_STATUS <<\_ACEOF
7995 exec 5>>config.log
7996 {
7997 echo
7998 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7999 ## Running $as_me. ##
8000 _ASBOX
8001 echo "$ac_log"
8002 } >&5
8003
8004 _ACEOF
8005 cat >>$CONFIG_STATUS <<_ACEOF
8006 _ACEOF
8007
8008 cat >>$CONFIG_STATUS <<\_ACEOF
8009
8010 # Handling of arguments.
8011 for ac_config_target in $ac_config_targets
8012 do
8013 case $ac_config_target in
8014 "Imakefile") CONFIG_FILES="$CONFIG_FILES Imakefile" ;;
8015 "image/Imakefile") CONFIG_FILES="$CONFIG_FILES image/Imakefile" ;;
8016 "sample/Imakefile") CONFIG_FILES="$CONFIG_FILES sample/Imakefile" ;;
8017 "contrib/mgp2html.pl") CONFIG_FILES="$CONFIG_FILES contrib/mgp2html.pl" ;;
8018 "contrib/mgp2latex.pl") CONFIG_FILES="$CONFIG_FILES contrib/mgp2latex.pl" ;;
8019 "contrib/mgpnet") CONFIG_FILES="$CONFIG_FILES contrib/mgpnet" ;;
8020 "mgpembed.pl") CONFIG_FILES="$CONFIG_FILES mgpembed.pl" ;;
8021
8022 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8024 { (exit 1); exit 1; }; };;
8025 esac
8026 done
8027
8028
8029 # If the user did not use the arguments to specify the items to instantiate,
8030 # then the envvar interface is used. Set only those that are not.
8031 # We use the long form for the default assignment because of an extremely
8032 # bizarre bug on SunOS 4.1.3.
8033 if $ac_need_defaults; then
8034 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8035 fi
8036
8037 # Have a temporary directory for convenience. Make it in the build tree
8038 # simply because there is no reason against having it here, and in addition,
8039 # creating and moving files from /tmp can sometimes cause problems.
8040 # Hook for its removal unless debugging.
8041 # Note that there is a small window in which the directory will not be cleaned:
8042 # after its creation but before its name has been assigned to `$tmp'.
8043 $debug ||
8044 {
8045 tmp=
8046 trap 'exit_status=$?
8047 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8048 ' 0
8049 trap '{ (exit 1); exit 1; }' 1 2 13 15
8050 }
8051 # Create a (secure) tmp directory for tmp files.
8052
8053 {
8054 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8055 test -n "$tmp" && test -d "$tmp"
8056 } ||
8057 {
8058 tmp=./conf$$-$RANDOM
8059 (umask 077 && mkdir "$tmp")
8060 } ||
8061 {
8062 echo "$me: cannot create a temporary directory in ." >&2
8063 { (exit 1); exit 1; }
8064 }
8065
8066 #
8067 # Set up the sed scripts for CONFIG_FILES section.
8068 #
8069
8070 # No need to generate the scripts if there are no CONFIG_FILES.
8071 # This happens for instance when ./config.status config.h
8072 if test -n "$CONFIG_FILES"; then
8073
8074 _ACEOF
8075
8076
8077
8078 ac_delim='%!_!# '
8079 for ac_last_try in false false false false false :; do
8080 cat >conf$$subs.sed <<_ACEOF
8081 SHELL!$SHELL$ac_delim
8082 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8083 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8084 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8085 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8086 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8087 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8088 exec_prefix!$exec_prefix$ac_delim
8089 prefix!$prefix$ac_delim
8090 program_transform_name!$program_transform_name$ac_delim
8091 bindir!$bindir$ac_delim
8092 sbindir!$sbindir$ac_delim
8093 libexecdir!$libexecdir$ac_delim
8094 datarootdir!$datarootdir$ac_delim
8095 datadir!$datadir$ac_delim
8096 sysconfdir!$sysconfdir$ac_delim
8097 sharedstatedir!$sharedstatedir$ac_delim
8098 localstatedir!$localstatedir$ac_delim
8099 includedir!$includedir$ac_delim
8100 oldincludedir!$oldincludedir$ac_delim
8101 docdir!$docdir$ac_delim
8102 infodir!$infodir$ac_delim
8103 htmldir!$htmldir$ac_delim
8104 dvidir!$dvidir$ac_delim
8105 pdfdir!$pdfdir$ac_delim
8106 psdir!$psdir$ac_delim
8107 libdir!$libdir$ac_delim
8108 localedir!$localedir$ac_delim
8109 mandir!$mandir$ac_delim
8110 DEFS!$DEFS$ac_delim
8111 ECHO_C!$ECHO_C$ac_delim
8112 ECHO_N!$ECHO_N$ac_delim
8113 ECHO_T!$ECHO_T$ac_delim
8114 LIBS!$LIBS$ac_delim
8115 build_alias!$build_alias$ac_delim
8116 host_alias!$host_alias$ac_delim
8117 target_alias!$target_alias$ac_delim
8118 SET_MAKE!$SET_MAKE$ac_delim
8119 build!$build$ac_delim
8120 build_cpu!$build_cpu$ac_delim
8121 build_vendor!$build_vendor$ac_delim
8122 build_os!$build_os$ac_delim
8123 host!$host$ac_delim
8124 host_cpu!$host_cpu$ac_delim
8125 host_vendor!$host_vendor$ac_delim
8126 host_os!$host_os$ac_delim
8127 CC!$CC$ac_delim
8128 CFLAGS!$CFLAGS$ac_delim
8129 LDFLAGS!$LDFLAGS$ac_delim
8130 CPPFLAGS!$CPPFLAGS$ac_delim
8131 ac_ct_CC!$ac_ct_CC$ac_delim
8132 EXEEXT!$EXEEXT$ac_delim
8133 OBJEXT!$OBJEXT$ac_delim
8134 CPP!$CPP$ac_delim
8135 AWK!$AWK$ac_delim
8136 YACC!$YACC$ac_delim
8137 YFLAGS!$YFLAGS$ac_delim
8138 LEX!$LEX$ac_delim
8139 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
8140 LEXLIB!$LEXLIB$ac_delim
8141 mgp_cv_path_perl!$mgp_cv_path_perl$ac_delim
8142 mgp_cv_path_uuencode!$mgp_cv_path_uuencode$ac_delim
8143 mgp_cv_path_gzip!$mgp_cv_path_gzip$ac_delim
8144 mgp_cv_path_uudecode!$mgp_cv_path_uudecode$ac_delim
8145 mgp_cv_path_gunzip!$mgp_cv_path_gunzip$ac_delim
8146 OPTFLAGS!$OPTFLAGS$ac_delim
8147 DEPLIBS!$DEPLIBS$ac_delim
8148 GREP!$GREP$ac_delim
8149 EGREP!$EGREP$ac_delim
8150 LIBOBJS!$LIBOBJS$ac_delim
8151 mgp_cv_vflib_a!$mgp_cv_vflib_a$ac_delim
8152 XMKMF!$XMKMF$ac_delim
8153 USE_IMLIB!$USE_IMLIB$ac_delim
8154 HAVE_M17NLIB!$HAVE_M17NLIB$ac_delim
8155 mgp_keywords!$mgp_keywords$ac_delim
8156 LTLIBOBJS!$LTLIBOBJS$ac_delim
8157 _ACEOF
8158
8159 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
8160 break
8161 elif $ac_last_try; then
8162 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8163 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8164 { (exit 1); exit 1; }; }
8165 else
8166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8167 fi
8168 done
8169
8170 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8171 if test -n "$ac_eof"; then
8172 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8173 ac_eof=`expr $ac_eof + 1`
8174 fi
8175
8176 cat >>$CONFIG_STATUS <<_ACEOF
8177 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8179 _ACEOF
8180 sed '
8181 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8182 s/^/s,@/; s/!/@,|#_!!_#|/
8183 :n
8184 t n
8185 s/'"$ac_delim"'$/,g/; t
8186 s/$/\\/; p
8187 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8188 ' >>$CONFIG_STATUS <conf$$subs.sed
8189 rm -f conf$$subs.sed
8190 cat >>$CONFIG_STATUS <<_ACEOF
8191 :end
8192 s/|#_!!_#|//g
8193 CEOF$ac_eof
8194 _ACEOF
8195
8196
8197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8199 # trailing colons and then remove the whole line if VPATH becomes empty
8200 # (actually we leave an empty line to preserve line numbers).
8201 if test "x$srcdir" = x.; then
8202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8203 s/:*\$(srcdir):*/:/
8204 s/:*\${srcdir}:*/:/
8205 s/:*@srcdir@:*/:/
8206 s/^\([^=]*=[ ]*\):*/\1/
8207 s/:*$//
8208 s/^[^=]*=[ ]*$//
8209 }'
8210 fi
8211
8212 cat >>$CONFIG_STATUS <<\_ACEOF
8213 fi # test -n "$CONFIG_FILES"
8214
8215
8216 for ac_tag in :F $CONFIG_FILES
8217 do
8218 case $ac_tag in
8219 :[FHLC]) ac_mode=$ac_tag; continue;;
8220 esac
8221 case $ac_mode$ac_tag in
8222 :[FHL]*:*);;
8223 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8224 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8225 { (exit 1); exit 1; }; };;
8226 :[FH]-) ac_tag=-:-;;
8227 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8228 esac
8229 ac_save_IFS=$IFS
8230 IFS=:
8231 set x $ac_tag
8232 IFS=$ac_save_IFS
8233 shift
8234 ac_file=$1
8235 shift
8236
8237 case $ac_mode in
8238 :L) ac_source=$1;;
8239 :[FH])
8240 ac_file_inputs=
8241 for ac_f
8242 do
8243 case $ac_f in
8244 -) ac_f="$tmp/stdin";;
8245 *) # Look for the file first in the build tree, then in the source tree
8246 # (if the path is not absolute). The absolute path cannot be DOS-style,
8247 # because $ac_f cannot contain `:'.
8248 test -f "$ac_f" ||
8249 case $ac_f in
8250 [\\/$]*) false;;
8251 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8252 esac ||
8253 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8254 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8255 { (exit 1); exit 1; }; };;
8256 esac
8257 ac_file_inputs="$ac_file_inputs $ac_f"
8258 done
8259
8260 # Let's still pretend it is `configure' which instantiates (i.e., don't
8261 # use $as_me), people would be surprised to read:
8262 # /* config.h. Generated by config.status. */
8263 configure_input="Generated from "`IFS=:
8264 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8265 if test x"$ac_file" != x-; then
8266 configure_input="$ac_file. $configure_input"
8267 { echo "$as_me:$LINENO: creating $ac_file" >&5
8268 echo "$as_me: creating $ac_file" >&6;}
8269 fi
8270
8271 case $ac_tag in
8272 *:-:* | *:-) cat >"$tmp/stdin";;
8273 esac
8274 ;;
8275 esac
8276
8277 ac_dir=`$as_dirname -- "$ac_file" ||
8278 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8279 X"$ac_file" : 'X\(//\)[^/]' \| \
8280 X"$ac_file" : 'X\(//\)$' \| \
8281 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8282 echo X"$ac_file" |
8283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8284 s//\1/
8285 q
8286 }
8287 /^X\(\/\/\)[^/].*/{
8288 s//\1/
8289 q
8290 }
8291 /^X\(\/\/\)$/{
8292 s//\1/
8293 q
8294 }
8295 /^X\(\/\).*/{
8296 s//\1/
8297 q
8298 }
8299 s/.*/./; q'`
8300 { as_dir="$ac_dir"
8301 case $as_dir in #(
8302 -*) as_dir=./$as_dir;;
8303 esac
8304 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8305 as_dirs=
8306 while :; do
8307 case $as_dir in #(
8308 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8309 *) as_qdir=$as_dir;;
8310 esac
8311 as_dirs="'$as_qdir' $as_dirs"
8312 as_dir=`$as_dirname -- "$as_dir" ||
8313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8314 X"$as_dir" : 'X\(//\)[^/]' \| \
8315 X"$as_dir" : 'X\(//\)$' \| \
8316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8317 echo X"$as_dir" |
8318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8319 s//\1/
8320 q
8321 }
8322 /^X\(\/\/\)[^/].*/{
8323 s//\1/
8324 q
8325 }
8326 /^X\(\/\/\)$/{
8327 s//\1/
8328 q
8329 }
8330 /^X\(\/\).*/{
8331 s//\1/
8332 q
8333 }
8334 s/.*/./; q'`
8335 test -d "$as_dir" && break
8336 done
8337 test -z "$as_dirs" || eval "mkdir $as_dirs"
8338 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8339 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8340 { (exit 1); exit 1; }; }; }
8341 ac_builddir=.
8342
8343 case "$ac_dir" in
8344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8345 *)
8346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8347 # A ".." for each directory in $ac_dir_suffix.
8348 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8349 case $ac_top_builddir_sub in
8350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8352 esac ;;
8353 esac
8354 ac_abs_top_builddir=$ac_pwd
8355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8356 # for backward compatibility:
8357 ac_top_builddir=$ac_top_build_prefix
8358
8359 case $srcdir in
8360 .) # We are building in place.
8361 ac_srcdir=.
8362 ac_top_srcdir=$ac_top_builddir_sub
8363 ac_abs_top_srcdir=$ac_pwd ;;
8364 [\\/]* | ?:[\\/]* ) # Absolute name.
8365 ac_srcdir=$srcdir$ac_dir_suffix;
8366 ac_top_srcdir=$srcdir
8367 ac_abs_top_srcdir=$srcdir ;;
8368 *) # Relative name.
8369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8370 ac_top_srcdir=$ac_top_build_prefix$srcdir
8371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8372 esac
8373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8374
8375
8376 case $ac_mode in
8377 :F)
8378 #
8379 # CONFIG_FILE
8380 #
8381
8382 _ACEOF
8383
8384 cat >>$CONFIG_STATUS <<\_ACEOF
8385 # If the template does not know about datarootdir, expand it.
8386 # FIXME: This hack should be removed a few years after 2.60.
8387 ac_datarootdir_hack=; ac_datarootdir_seen=
8388
8389 case `sed -n '/datarootdir/ {
8390 p
8391 q
8392 }
8393 /@datadir@/p
8394 /@docdir@/p
8395 /@infodir@/p
8396 /@localedir@/p
8397 /@mandir@/p
8398 ' $ac_file_inputs` in
8399 *datarootdir*) ac_datarootdir_seen=yes;;
8400 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8401 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8402 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8403 _ACEOF
8404 cat >>$CONFIG_STATUS <<_ACEOF
8405 ac_datarootdir_hack='
8406 s&@datadir@&$datadir&g
8407 s&@docdir@&$docdir&g
8408 s&@infodir@&$infodir&g
8409 s&@localedir@&$localedir&g
8410 s&@mandir@&$mandir&g
8411 s&\\\${datarootdir}&$datarootdir&g' ;;
8412 esac
8413 _ACEOF
8414
8415 # Neutralize VPATH when `$srcdir' = `.'.
8416 # Shell code in configure.ac might set extrasub.
8417 # FIXME: do we really want to maintain this feature?
8418 cat >>$CONFIG_STATUS <<_ACEOF
8419 sed "$ac_vpsub
8420 $extrasub
8421 _ACEOF
8422 cat >>$CONFIG_STATUS <<\_ACEOF
8423 :t
8424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8425 s&@configure_input@&$configure_input&;t t
8426 s&@top_builddir@&$ac_top_builddir_sub&;t t
8427 s&@srcdir@&$ac_srcdir&;t t
8428 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8429 s&@top_srcdir@&$ac_top_srcdir&;t t
8430 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8431 s&@builddir@&$ac_builddir&;t t
8432 s&@abs_builddir@&$ac_abs_builddir&;t t
8433 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8434 $ac_datarootdir_hack
8435 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8436
8437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8438 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8440 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8441 which seems to be undefined. Please make sure it is defined." >&5
8442 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8443 which seems to be undefined. Please make sure it is defined." >&2;}
8444
8445 rm -f "$tmp/stdin"
8446 case $ac_file in
8447 -) cat "$tmp/out"; rm -f "$tmp/out";;
8448 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8449 esac
8450 ;;
8451
8452
8453
8454 esac
8455
8456 done # for ac_tag
8457
8458
8459 { (exit 0); exit 0; }
8460 _ACEOF
8461 chmod +x $CONFIG_STATUS
8462 ac_clean_files=$ac_clean_files_save
8463
8464
8465 # configure is writing to config.log, and then calls config.status.
8466 # config.status does its own redirection, appending to config.log.
8467 # Unfortunately, on DOS this fails, as config.log is still kept open
8468 # by configure, so config.status won't be able to write to it; its
8469 # output is simply discarded. So we exec the FD to /dev/null,
8470 # effectively closing config.log, so it can be properly (re)opened and
8471 # appended to by config.status. When coming back to configure, we
8472 # need to make the FD available again.
8473 if test "$no_create" != yes; then
8474 ac_cs_success=:
8475 ac_config_status_args=
8476 test "$silent" = yes &&
8477 ac_config_status_args="$ac_config_status_args --quiet"
8478 exec 5>/dev/null
8479 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8480 exec 5>>config.log
8481 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8482 # would make configure fail if this is the last instruction.
8483 $ac_cs_success || { (exit 1); exit 1; }
8484 fi
8485
8486
8487 /bin/rm -f Makefile image/Makefile
8488
8489 echo "be sure to generate Makefile from Imakefile, by xmkmf and make Makefiles"
8490