Debian Codegraph @

xo/configure.lineno

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