Debian Codegraph @

xml/configure

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