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