ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/lsys/configure
Revision: 1.2
Committed: Thu Apr 29 12:42:13 2010 UTC (14 years ago) by root
Branch: MAIN
Changes since 1.1: +140 -66 lines
Log Message:
*** empty log message ***

File Contents

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