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