57af95150d11c485979f59d8c06995b4bf3e8746
[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.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="server.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_subst_vars='LTLIBOBJS
592 LIBOBJS
593 GNULIB_STDINT_H
594 extra_libraries
595 IPA_DEPFILES
596 srv_xmlfiles
597 srv_xmlbuiltin
598 GDBSERVER_LIBS
599 GDBSERVER_DEPFILES
600 RDYNAMIC
601 REPORT_BUGS_TEXI
602 REPORT_BUGS_TO
603 PKGVERSION
604 WERROR_CFLAGS
605 WARN_CFLAGS
606 ustinc
607 ustlibs
608 ALLOCA
609 SET_MAKE
610 GMAKE_FALSE
611 GMAKE_TRUE
612 MAKE
613 CCDEPMODE
614 DEPDIR
615 am__leading_dot
616 host_noncanonical
617 target_noncanonical
618 COMPILER
619 RANLIB
620 AR
621 INSTALL_DATA
622 INSTALL_SCRIPT
623 INSTALL_PROGRAM
624 target_os
625 target_vendor
626 target_cpu
627 target
628 host_os
629 host_vendor
630 host_cpu
631 host
632 build_os
633 build_vendor
634 build_cpu
635 build
636 EGREP
637 GREP
638 CPP
639 ac_ct_CXX
640 CXXFLAGS
641 CXX
642 OBJEXT
643 EXEEXT
644 ac_ct_CC
645 CPPFLAGS
646 LDFLAGS
647 CFLAGS
648 CC
649 MAINT
650 MAINTAINER_MODE_FALSE
651 MAINTAINER_MODE_TRUE
652 target_alias
653 host_alias
654 build_alias
655 LIBS
656 ECHO_T
657 ECHO_N
658 ECHO_C
659 DEFS
660 mandir
661 localedir
662 libdir
663 psdir
664 pdfdir
665 dvidir
666 htmldir
667 infodir
668 docdir
669 oldincludedir
670 includedir
671 localstatedir
672 sharedstatedir
673 sysconfdir
674 datadir
675 datarootdir
676 libexecdir
677 sbindir
678 bindir
679 program_transform_name
680 prefix
681 exec_prefix
682 PACKAGE_URL
683 PACKAGE_BUGREPORT
684 PACKAGE_STRING
685 PACKAGE_VERSION
686 PACKAGE_TARNAME
687 PACKAGE_NAME
688 PATH_SEPARATOR
689 SHELL'
690 ac_subst_files=''
691 ac_user_opts='
692 enable_option_checking
693 enable_maintainer_mode
694 enable_largefile
695 enable_build_with_cxx
696 enable_libmcheck
697 with_ust
698 with_ust_include
699 with_ust_lib
700 enable_werror
701 enable_build_warnings
702 enable_gdb_build_warnings
703 with_pkgversion
704 with_bugurl
705 with_libthread_db
706 enable_inprocess_agent
707 '
708 ac_precious_vars='build_alias
709 host_alias
710 target_alias
711 CC
712 CFLAGS
713 LDFLAGS
714 LIBS
715 CPPFLAGS
716 CXX
717 CXXFLAGS
718 CCC
719 CPP'
720
721
722 # Initialize some variables set by options.
723 ac_init_help=
724 ac_init_version=false
725 ac_unrecognized_opts=
726 ac_unrecognized_sep=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
729 cache_file=/dev/null
730 exec_prefix=NONE
731 no_create=
732 no_recursion=
733 prefix=NONE
734 program_prefix=NONE
735 program_suffix=NONE
736 program_transform_name=s,x,x,
737 silent=
738 site=
739 srcdir=
740 verbose=
741 x_includes=NONE
742 x_libraries=NONE
743
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE}'
761 infodir='${datarootdir}/info'
762 htmldir='${docdir}'
763 dvidir='${docdir}'
764 pdfdir='${docdir}'
765 psdir='${docdir}'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
769
770 ac_prev=
771 ac_dashdash=
772 for ac_option
773 do
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\$ac_option
777 ac_prev=
778 continue
779 fi
780
781 case $ac_option in
782 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 *) ac_optarg=yes ;;
784 esac
785
786 # Accept the important Cygnus configure options, so we can diagnose typos.
787
788 case $ac_dashdash$ac_option in
789 --)
790 ac_dashdash=yes ;;
791
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
793 ac_prev=bindir ;;
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795 bindir=$ac_optarg ;;
796
797 -build | --build | --buil | --bui | --bu)
798 ac_prev=build_alias ;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias=$ac_optarg ;;
801
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev=cache_file ;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file=$ac_optarg ;;
808
809 --config-cache | -C)
810 cache_file=config.cache ;;
811
812 -datadir | --datadir | --datadi | --datad)
813 ac_prev=datadir ;;
814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
815 datadir=$ac_optarg ;;
816
817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev=datarootdir ;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir=$ac_optarg ;;
823
824 -disable-* | --disable-*)
825 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
828 as_fn_error "invalid feature name: $ac_useropt"
829 ac_useropt_orig=$ac_useropt
830 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
831 case $ac_user_opts in
832 *"
833 "enable_$ac_useropt"
834 "*) ;;
835 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
836 ac_unrecognized_sep=', ';;
837 esac
838 eval enable_$ac_useropt=no ;;
839
840 -docdir | --docdir | --docdi | --doc | --do)
841 ac_prev=docdir ;;
842 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 docdir=$ac_optarg ;;
844
845 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846 ac_prev=dvidir ;;
847 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 dvidir=$ac_optarg ;;
849
850 -enable-* | --enable-*)
851 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852 # Reject names that are not valid shell variable names.
853 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
854 as_fn_error "invalid feature name: $ac_useropt"
855 ac_useropt_orig=$ac_useropt
856 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
857 case $ac_user_opts in
858 *"
859 "enable_$ac_useropt"
860 "*) ;;
861 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
862 ac_unrecognized_sep=', ';;
863 esac
864 eval enable_$ac_useropt=\$ac_optarg ;;
865
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
874
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
878
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
885
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
890
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
896
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
903
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
908
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
913
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
920
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
925
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
932
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
937
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
941
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
945
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
949
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
958
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
963
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
970
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
977
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
994
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
999
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1004
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1008
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1014
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1025
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1030
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1035
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1042
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1047
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1050
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1053
1054 -with-* | --with-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error "invalid package name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1062 *"
1063 "with_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval with_$ac_useropt=\$ac_optarg ;;
1069
1070 -without-* | --without-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error "invalid package name: $ac_useropt"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "with_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval with_$ac_useropt=no ;;
1085
1086 --x)
1087 # Obsolete; use --with-x.
1088 with_x=yes ;;
1089
1090 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091 | --x-incl | --x-inc | --x-in | --x-i)
1092 ac_prev=x_includes ;;
1093 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095 x_includes=$ac_optarg ;;
1096
1097 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099 ac_prev=x_libraries ;;
1100 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102 x_libraries=$ac_optarg ;;
1103
1104 -*) as_fn_error "unrecognized option: \`$ac_option'
1105 Try \`$0 --help' for more information."
1106 ;;
1107
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 case $ac_envvar in #(
1112 '' | [0-9]* | *[!_$as_cr_alnum]* )
1113 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1114 esac
1115 eval $ac_envvar=\$ac_optarg
1116 export $ac_envvar ;;
1117
1118 *)
1119 # FIXME: should be removed in autoconf 3.0.
1120 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 ;;
1125
1126 esac
1127 done
1128
1129 if test -n "$ac_prev"; then
1130 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131 as_fn_error "missing argument to $ac_option"
1132 fi
1133
1134 if test -n "$ac_unrecognized_opts"; then
1135 case $enable_option_checking in
1136 no) ;;
1137 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1138 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1139 esac
1140 fi
1141
1142 # Check all directory arguments for consistency.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1147 do
1148 eval ac_val=\$$ac_var
1149 # Remove trailing slashes.
1150 case $ac_val in
1151 */ )
1152 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1153 eval $ac_var=\$ac_val;;
1154 esac
1155 # Be sure to have absolute directory names.
1156 case $ac_val in
1157 [\\/$]* | ?:[\\/]* ) continue;;
1158 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1159 esac
1160 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1161 done
1162
1163 # There might be people who depend on the old broken behavior: `$host'
1164 # used to hold the argument of --host etc.
1165 # FIXME: To remove some day.
1166 build=$build_alias
1167 host=$host_alias
1168 target=$target_alias
1169
1170 # FIXME: To remove some day.
1171 if test "x$host_alias" != x; then
1172 if test "x$build_alias" = x; then
1173 cross_compiling=maybe
1174 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1175 If a cross compiler is detected then cross compile mode will be used." >&2
1176 elif test "x$build_alias" != "x$host_alias"; then
1177 cross_compiling=yes
1178 fi
1179 fi
1180
1181 ac_tool_prefix=
1182 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183
1184 test "$silent" = yes && exec 6>/dev/null
1185
1186
1187 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1188 ac_ls_di=`ls -di .` &&
1189 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1190 as_fn_error "working directory cannot be determined"
1191 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1192 as_fn_error "pwd does not report name of working directory"
1193
1194
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir=`$as_dirname -- "$as_myself" ||
1200 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$as_myself" : 'X\(//\)[^/]' \| \
1202 X"$as_myself" : 'X\(//\)$' \| \
1203 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1204 $as_echo X"$as_myself" |
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)[^/].*/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\/\)$/{
1214 s//\1/
1215 q
1216 }
1217 /^X\(\/\).*/{
1218 s//\1/
1219 q
1220 }
1221 s/.*/./; q'`
1222 srcdir=$ac_confdir
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 srcdir=..
1225 fi
1226 else
1227 ac_srcdir_defaulted=no
1228 fi
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1232 fi
1233 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1234 ac_abs_confdir=`(
1235 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1236 pwd)`
1237 # When building in place, set srcdir=.
1238 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 srcdir=.
1240 fi
1241 # Remove unnecessary trailing slashes from srcdir.
1242 # Double slashes in file names in object file debugging info
1243 # mess up M-x gdb in Emacs.
1244 case $srcdir in
1245 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1246 esac
1247 for ac_var in $ac_precious_vars; do
1248 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_env_${ac_var}_value=\$${ac_var}
1250 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1252 done
1253
1254 #
1255 # Report the --help message.
1256 #
1257 if test "$ac_init_help" = "long"; then
1258 # Omit some internal or obsolete options to make the list less imposing.
1259 # This message is too long to be a string in the A/UX 3.1 sh.
1260 cat <<_ACEOF
1261 \`configure' configures this package to adapt to many kinds of systems.
1262
1263 Usage: $0 [OPTION]... [VAR=VALUE]...
1264
1265 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1266 VAR=VALUE. See below for descriptions of some of the useful variables.
1267
1268 Defaults for the options are specified in brackets.
1269
1270 Configuration:
1271 -h, --help display this help and exit
1272 --help=short display options specific to this package
1273 --help=recursive display the short help of all the included packages
1274 -V, --version display version information and exit
1275 -q, --quiet, --silent do not print \`checking...' messages
1276 --cache-file=FILE cache test results in FILE [disabled]
1277 -C, --config-cache alias for \`--cache-file=config.cache'
1278 -n, --no-create do not create output files
1279 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280
1281 Installation directories:
1282 --prefix=PREFIX install architecture-independent files in PREFIX
1283 [$ac_default_prefix]
1284 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 [PREFIX]
1286
1287 By default, \`make install' will install all the files in
1288 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1289 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1290 for instance \`--prefix=\$HOME'.
1291
1292 For better control, use the options below.
1293
1294 Fine tuning of the installation directories:
1295 --bindir=DIR user executables [EPREFIX/bin]
1296 --sbindir=DIR system admin executables [EPREFIX/sbin]
1297 --libexecdir=DIR program executables [EPREFIX/libexec]
1298 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1299 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1300 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1301 --libdir=DIR object code libraries [EPREFIX/lib]
1302 --includedir=DIR C header files [PREFIX/include]
1303 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1304 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1305 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1306 --infodir=DIR info documentation [DATAROOTDIR/info]
1307 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1308 --mandir=DIR man documentation [DATAROOTDIR/man]
1309 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1310 --htmldir=DIR html documentation [DOCDIR]
1311 --dvidir=DIR dvi documentation [DOCDIR]
1312 --pdfdir=DIR pdf documentation [DOCDIR]
1313 --psdir=DIR ps documentation [DOCDIR]
1314 _ACEOF
1315
1316 cat <<\_ACEOF
1317
1318 Program names:
1319 --program-prefix=PREFIX prepend PREFIX to installed program names
1320 --program-suffix=SUFFIX append SUFFIX to installed program names
1321 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1322
1323 System types:
1324 --build=BUILD configure for building on BUILD [guessed]
1325 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1326 --target=TARGET configure for building compilers for TARGET [HOST]
1327 _ACEOF
1328 fi
1329
1330 if test -n "$ac_init_help"; then
1331
1332 cat <<\_ACEOF
1333
1334 Optional Features:
1335 --disable-option-checking ignore unrecognized --enable/--with options
1336 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1337 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1338 --enable-maintainer-mode enable make rules and dependencies not useful
1339 (and sometimes confusing) to the casual installer
1340 --disable-largefile omit support for large files
1341 --enable-build-with-cxx build with C++ compiler instead of C compiler
1342 --enable-libmcheck Try linking with -lmcheck if available
1343 --enable-werror treat compile warnings as errors
1344 --enable-build-warnings enable build-time compiler warnings if gcc is used
1345 --enable-gdb-build-warnings
1346 enable GDB specific build-time compiler warnings if
1347 gcc is used
1348 --enable-inprocess-agent
1349 inprocess agent
1350
1351 Optional Packages:
1352 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1353 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1354 --with-ust=PATH Specify prefix directory for the installed UST package
1355 Equivalent to --with-ust-include=PATH/include
1356 plus --with-ust-lib=PATH/lib
1357 --with-ust-include=PATH Specify directory for installed UST include files
1358 --with-ust-lib=PATH Specify the directory for the installed UST library
1359 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1360 --with-bugurl=URL Direct users to URL to report a bug
1361 --with-libthread-db=PATH
1362 use given libthread_db directly
1363
1364 Some influential environment variables:
1365 CC C compiler command
1366 CFLAGS C compiler flags
1367 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1368 nonstandard directory <lib dir>
1369 LIBS libraries to pass to the linker, e.g. -l<library>
1370 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1371 you have headers in a nonstandard directory <include dir>
1372 CXX C++ compiler command
1373 CXXFLAGS C++ compiler flags
1374 CPP C preprocessor
1375
1376 Use these variables to override the choices made by `configure' or to help
1377 it to find libraries and programs with nonstandard names/locations.
1378
1379 Report bugs to the package provider.
1380 _ACEOF
1381 ac_status=$?
1382 fi
1383
1384 if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" ||
1388 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1389 continue
1390 ac_builddir=.
1391
1392 case "$ac_dir" in
1393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *)
1395 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 esac ;;
1402 esac
1403 ac_abs_top_builddir=$ac_pwd
1404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405 # for backward compatibility:
1406 ac_top_builddir=$ac_top_build_prefix
1407
1408 case $srcdir in
1409 .) # We are building in place.
1410 ac_srcdir=.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1417 *) # Relative name.
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1421 esac
1422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1423
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1427 echo &&
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1430 echo &&
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1432 else
1433 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1434 fi || ac_status=$?
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1436 done
1437 fi
1438
1439 test -n "$ac_init_help" && exit $ac_status
1440 if $ac_init_version; then
1441 cat <<\_ACEOF
1442 configure
1443 generated by GNU Autoconf 2.64
1444
1445 Copyright (C) 2009 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1448 _ACEOF
1449 exit
1450 fi
1451
1452 ## ------------------------ ##
1453 ## Autoconf initialization. ##
1454 ## ------------------------ ##
1455
1456 # ac_fn_c_try_compile LINENO
1457 # --------------------------
1458 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1459 ac_fn_c_try_compile ()
1460 {
1461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1462 rm -f conftest.$ac_objext
1463 if { { ac_try="$ac_compile"
1464 case "(($ac_try" in
1465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1466 *) ac_try_echo=$ac_try;;
1467 esac
1468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1469 $as_echo "$ac_try_echo"; } >&5
1470 (eval "$ac_compile") 2>conftest.err
1471 ac_status=$?
1472 if test -s conftest.err; then
1473 grep -v '^ *+' conftest.err >conftest.er1
1474 cat conftest.er1 >&5
1475 mv -f conftest.er1 conftest.err
1476 fi
1477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478 test $ac_status = 0; } && {
1479 test -z "$ac_c_werror_flag" ||
1480 test ! -s conftest.err
1481 } && test -s conftest.$ac_objext; then :
1482 ac_retval=0
1483 else
1484 $as_echo "$as_me: failed program was:" >&5
1485 sed 's/^/| /' conftest.$ac_ext >&5
1486
1487 ac_retval=1
1488 fi
1489 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1490 return $ac_retval
1491
1492 } # ac_fn_c_try_compile
1493
1494 # ac_fn_cxx_try_compile LINENO
1495 # ----------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_cxx_try_compile ()
1498 {
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 rm -f conftest.$ac_objext
1501 if { { ac_try="$ac_compile"
1502 case "(($ac_try" in
1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1505 esac
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_compile") 2>conftest.err
1509 ac_status=$?
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1514 fi
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && {
1517 test -z "$ac_cxx_werror_flag" ||
1518 test ! -s conftest.err
1519 } && test -s conftest.$ac_objext; then :
1520 ac_retval=0
1521 else
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1524
1525 ac_retval=1
1526 fi
1527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1528 return $ac_retval
1529
1530 } # ac_fn_cxx_try_compile
1531
1532 # ac_fn_c_try_cpp LINENO
1533 # ----------------------
1534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_cpp ()
1536 {
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 if { { ac_try="$ac_cpp conftest.$ac_ext"
1539 case "(($ac_try" in
1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1541 *) ac_try_echo=$ac_try;;
1542 esac
1543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1544 $as_echo "$ac_try_echo"; } >&5
1545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1546 ac_status=$?
1547 if test -s conftest.err; then
1548 grep -v '^ *+' conftest.err >conftest.er1
1549 cat conftest.er1 >&5
1550 mv -f conftest.er1 conftest.err
1551 fi
1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1553 test $ac_status = 0; } >/dev/null && {
1554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1555 test ! -s conftest.err
1556 }; then :
1557 ac_retval=0
1558 else
1559 $as_echo "$as_me: failed program was:" >&5
1560 sed 's/^/| /' conftest.$ac_ext >&5
1561
1562 ac_retval=1
1563 fi
1564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1565 return $ac_retval
1566
1567 } # ac_fn_c_try_cpp
1568
1569 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1570 # -------------------------------------------------------
1571 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1572 # the include files in INCLUDES and setting the cache variable VAR
1573 # accordingly.
1574 ac_fn_c_check_header_mongrel ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1579 $as_echo_n "checking for $2... " >&6; }
1580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1581 $as_echo_n "(cached) " >&6
1582 fi
1583 eval ac_res=\$$3
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585 $as_echo "$ac_res" >&6; }
1586 else
1587 # Is the header compilable?
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1589 $as_echo_n "checking $2 usability... " >&6; }
1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1592 $4
1593 #include <$2>
1594 _ACEOF
1595 if ac_fn_c_try_compile "$LINENO"; then :
1596 ac_header_compiler=yes
1597 else
1598 ac_header_compiler=no
1599 fi
1600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1602 $as_echo "$ac_header_compiler" >&6; }
1603
1604 # Is the header present?
1605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1606 $as_echo_n "checking $2 presence... " >&6; }
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1609 #include <$2>
1610 _ACEOF
1611 if ac_fn_c_try_cpp "$LINENO"; then :
1612 ac_header_preproc=yes
1613 else
1614 ac_header_preproc=no
1615 fi
1616 rm -f conftest.err conftest.$ac_ext
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1618 $as_echo "$ac_header_preproc" >&6; }
1619
1620 # So? What about this header?
1621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1622 yes:no: )
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1624 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1626 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1627 ;;
1628 no:yes:* )
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1630 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1632 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1634 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1636 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1638 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1639 ;;
1640 esac
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1644 $as_echo_n "(cached) " >&6
1645 else
1646 eval "$3=\$ac_header_compiler"
1647 fi
1648 eval ac_res=\$$3
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1651 fi
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653
1654 } # ac_fn_c_check_header_mongrel
1655
1656 # ac_fn_c_try_run LINENO
1657 # ----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1659 # that executables *can* be run.
1660 ac_fn_c_try_run ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_link"
1664 case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>&5
1671 ac_status=$?
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1674 { { case "(($ac_try" in
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1677 esac
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_try") 2>&5
1681 ac_status=$?
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; }; }; then :
1684 ac_retval=0
1685 else
1686 $as_echo "$as_me: program exited with status $ac_status" >&5
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690 ac_retval=$ac_status
1691 fi
1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694 return $ac_retval
1695
1696 } # ac_fn_c_try_run
1697
1698 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1699 # -------------------------------------------------------
1700 # Tests whether HEADER exists and can be compiled using the include files in
1701 # INCLUDES, setting the cache variable VAR accordingly.
1702 ac_fn_c_check_header_compile ()
1703 {
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1708 $as_echo_n "(cached) " >&6
1709 else
1710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1711 /* end confdefs.h. */
1712 $4
1713 #include <$2>
1714 _ACEOF
1715 if ac_fn_c_try_compile "$LINENO"; then :
1716 eval "$3=yes"
1717 else
1718 eval "$3=no"
1719 fi
1720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1721 fi
1722 eval ac_res=\$$3
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1724 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726
1727 } # ac_fn_c_check_header_compile
1728
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_link ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 $as_test_x conftest$ac_exeext
1757 }; then :
1758 ac_retval=0
1759 else
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763 ac_retval=1
1764 fi
1765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1767 # interfere with the next link command; also delete a directory that is
1768 # left behind by Apple's compiler. We do this before executing the actions.
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 return $ac_retval
1772
1773 } # ac_fn_c_try_link
1774
1775 # ac_fn_c_check_func LINENO FUNC VAR
1776 # ----------------------------------
1777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1778 ac_fn_c_check_func ()
1779 {
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1790 #define $2 innocuous_$2
1791
1792 /* System header to define __stub macros and hopefully few prototypes,
1793 which can conflict with char $2 (); below.
1794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1795 <limits.h> exists even on freestanding compilers. */
1796
1797 #ifdef __STDC__
1798 # include <limits.h>
1799 #else
1800 # include <assert.h>
1801 #endif
1802
1803 #undef $2
1804
1805 /* Override any GCC internal prototype to avoid an error.
1806 Use char because int might match the return type of a GCC
1807 builtin and then its argument prototype would still apply. */
1808 #ifdef __cplusplus
1809 extern "C"
1810 #endif
1811 char $2 ();
1812 /* The GNU C library defines this for functions which it implements
1813 to always fail with ENOSYS. Some functions are actually named
1814 something starting with __ and the normal name is an alias. */
1815 #if defined __stub_$2 || defined __stub___$2
1816 choke me
1817 #endif
1818
1819 int
1820 main ()
1821 {
1822 return $2 ();
1823 ;
1824 return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_link "$LINENO"; then :
1828 eval "$3=yes"
1829 else
1830 eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext \
1833 conftest$ac_exeext conftest.$ac_ext
1834 fi
1835 eval ac_res=\$$3
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839
1840 } # ac_fn_c_check_func
1841
1842 # ac_fn_c_check_decl LINENO SYMBOL VAR
1843 # ------------------------------------
1844 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1845 ac_fn_c_check_decl ()
1846 {
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 as_decl_name=`echo $2|sed 's/ *(.*//'`
1849 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1851 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1852 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1853 $as_echo_n "(cached) " >&6
1854 else
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1857 $4
1858 int
1859 main ()
1860 {
1861 #ifndef $as_decl_name
1862 #ifdef __cplusplus
1863 (void) $as_decl_use;
1864 #else
1865 (void) $as_decl_name;
1866 #endif
1867 #endif
1868
1869 ;
1870 return 0;
1871 }
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879 fi
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884
1885 } # ac_fn_c_check_decl
1886
1887 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
1888 # --------------------------------------
1889 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1890 ac_fn_cxx_check_decl ()
1891 {
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 as_decl_name=`echo $2|sed 's/ *(.*//'`
1894 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1896 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $4
1903 int
1904 main ()
1905 {
1906 #ifndef $as_decl_name
1907 #ifdef __cplusplus
1908 (void) $as_decl_use;
1909 #else
1910 (void) $as_decl_name;
1911 #endif
1912 #endif
1913
1914 ;
1915 return 0;
1916 }
1917 _ACEOF
1918 if ac_fn_cxx_try_compile "$LINENO"; then :
1919 eval "$3=yes"
1920 else
1921 eval "$3=no"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929
1930 } # ac_fn_cxx_check_decl
1931
1932 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1933 # -------------------------------------------
1934 # Tests whether TYPE exists after having included INCLUDES, setting cache
1935 # variable VAR accordingly.
1936 ac_fn_c_check_type ()
1937 {
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 eval "$3=no"
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 int
1949 main ()
1950 {
1951 if (sizeof ($2))
1952 return 0;
1953 ;
1954 return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $4
1961 int
1962 main ()
1963 {
1964 if (sizeof (($2)))
1965 return 0;
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971
1972 else
1973 eval "$3=yes"
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 fi
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983
1984 } # ac_fn_c_check_type
1985
1986 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1987 # --------------------------------------------
1988 # Tries to find the compile-time value of EXPR in a program that includes
1989 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1990 # computed
1991 ac_fn_c_compute_int ()
1992 {
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if test "$cross_compiling" = yes; then
1995 # Depending upon the size, compute the lo and hi bounds.
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 $4
1999 int
2000 main ()
2001 {
2002 static int test_array [1 - 2 * !(($2) >= 0)];
2003 test_array [0] = 0
2004
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_lo=0 ac_mid=0
2011 while :; do
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 $4
2015 int
2016 main ()
2017 {
2018 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2019 test_array [0] = 0
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_hi=$ac_mid; break
2027 else
2028 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2029 if test $ac_lo -le $ac_mid; then
2030 ac_lo= ac_hi=
2031 break
2032 fi
2033 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 done
2037 else
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 $4
2041 int
2042 main ()
2043 {
2044 static int test_array [1 - 2 * !(($2) < 0)];
2045 test_array [0] = 0
2046
2047 ;
2048 return 0;
2049 }
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_hi=-1 ac_mid=-1
2053 while :; do
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 int
2058 main ()
2059 {
2060 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2061 test_array [0] = 0
2062
2063 ;
2064 return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_lo=$ac_mid; break
2069 else
2070 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2071 if test $ac_mid -le $ac_hi; then
2072 ac_lo= ac_hi=
2073 break
2074 fi
2075 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 done
2079 else
2080 ac_lo= ac_hi=
2081 fi
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 # Binary search between lo and hi bounds.
2086 while test "x$ac_lo" != "x$ac_hi"; do
2087 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2090 $4
2091 int
2092 main ()
2093 {
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095 test_array [0] = 0
2096
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 ac_hi=$ac_mid
2103 else
2104 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 done
2108 case $ac_lo in #((
2109 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2110 '') ac_retval=1 ;;
2111 esac
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $4
2116 static long int longval () { return $2; }
2117 static unsigned long int ulongval () { return $2; }
2118 #include <stdio.h>
2119 #include <stdlib.h>
2120 int
2121 main ()
2122 {
2123
2124 FILE *f = fopen ("conftest.val", "w");
2125 if (! f)
2126 return 1;
2127 if (($2) < 0)
2128 {
2129 long int i = longval ();
2130 if (i != ($2))
2131 return 1;
2132 fprintf (f, "%ld", i);
2133 }
2134 else
2135 {
2136 unsigned long int i = ulongval ();
2137 if (i != ($2))
2138 return 1;
2139 fprintf (f, "%lu", i);
2140 }
2141 /* Do not output a trailing newline, as this causes \r\n confusion
2142 on some platforms. */
2143 return ferror (f) || fclose (f) != 0;
2144
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_run "$LINENO"; then :
2150 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2151 else
2152 ac_retval=1
2153 fi
2154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2155 conftest.$ac_objext conftest.beam conftest.$ac_ext
2156 rm -f conftest.val
2157
2158 fi
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2160 return $ac_retval
2161
2162 } # ac_fn_c_compute_int
2163
2164 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2165 # ----------------------------------------------------
2166 # Tries to find if the field MEMBER exists in type AGGR, after including
2167 # INCLUDES, setting cache variable VAR accordingly.
2168 ac_fn_c_check_member ()
2169 {
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2172 $as_echo_n "checking for $2.$3... " >&6; }
2173 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2174 $as_echo_n "(cached) " >&6
2175 else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 $5
2179 int
2180 main ()
2181 {
2182 static $2 ac_aggr;
2183 if (ac_aggr.$3)
2184 return 0;
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190 eval "$4=yes"
2191 else
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2194 $5
2195 int
2196 main ()
2197 {
2198 static $2 ac_aggr;
2199 if (sizeof ac_aggr.$3)
2200 return 0;
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 eval "$4=yes"
2207 else
2208 eval "$4=no"
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 fi
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 fi
2214 eval ac_res=\$$4
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216 $as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218
2219 } # ac_fn_c_check_member
2220 cat >config.log <<_ACEOF
2221 This file contains any messages produced by compilers while
2222 running configure, to aid debugging if configure makes a mistake.
2223
2224 It was created by $as_me, which was
2225 generated by GNU Autoconf 2.64. Invocation command line was
2226
2227 $ $0 $@
2228
2229 _ACEOF
2230 exec 5>>config.log
2231 {
2232 cat <<_ASUNAME
2233 ## --------- ##
2234 ## Platform. ##
2235 ## --------- ##
2236
2237 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2238 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2239 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2240 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2241 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2242
2243 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2244 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2245
2246 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2247 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2248 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2249 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2250 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2251 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2252 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2253
2254 _ASUNAME
2255
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2257 for as_dir in $PATH
2258 do
2259 IFS=$as_save_IFS
2260 test -z "$as_dir" && as_dir=.
2261 $as_echo "PATH: $as_dir"
2262 done
2263 IFS=$as_save_IFS
2264
2265 } >&5
2266
2267 cat >&5 <<_ACEOF
2268
2269
2270 ## ----------- ##
2271 ## Core tests. ##
2272 ## ----------- ##
2273
2274 _ACEOF
2275
2276
2277 # Keep a trace of the command line.
2278 # Strip out --no-create and --no-recursion so they do not pile up.
2279 # Strip out --silent because we don't want to record it for future runs.
2280 # Also quote any args containing shell meta-characters.
2281 # Make two passes to allow for proper duplicate-argument suppression.
2282 ac_configure_args=
2283 ac_configure_args0=
2284 ac_configure_args1=
2285 ac_must_keep_next=false
2286 for ac_pass in 1 2
2287 do
2288 for ac_arg
2289 do
2290 case $ac_arg in
2291 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2293 | -silent | --silent | --silen | --sile | --sil)
2294 continue ;;
2295 *\'*)
2296 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 esac
2298 case $ac_pass in
2299 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2300 2)
2301 as_fn_append ac_configure_args1 " '$ac_arg'"
2302 if test $ac_must_keep_next = true; then
2303 ac_must_keep_next=false # Got value, back to normal.
2304 else
2305 case $ac_arg in
2306 *=* | --config-cache | -C | -disable-* | --disable-* \
2307 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2308 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2309 | -with-* | --with-* | -without-* | --without-* | --x)
2310 case "$ac_configure_args0 " in
2311 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2312 esac
2313 ;;
2314 -* ) ac_must_keep_next=true ;;
2315 esac
2316 fi
2317 as_fn_append ac_configure_args " '$ac_arg'"
2318 ;;
2319 esac
2320 done
2321 done
2322 { ac_configure_args0=; unset ac_configure_args0;}
2323 { ac_configure_args1=; unset ac_configure_args1;}
2324
2325 # When interrupted or exit'd, cleanup temporary files, and complete
2326 # config.log. We remove comments because anyway the quotes in there
2327 # would cause problems or look ugly.
2328 # WARNING: Use '\'' to represent an apostrophe within the trap.
2329 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2330 trap 'exit_status=$?
2331 # Save into config.log some information that might help in debugging.
2332 {
2333 echo
2334
2335 cat <<\_ASBOX
2336 ## ---------------- ##
2337 ## Cache variables. ##
2338 ## ---------------- ##
2339 _ASBOX
2340 echo
2341 # The following way of writing the cache mishandles newlines in values,
2342 (
2343 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2344 eval ac_val=\$$ac_var
2345 case $ac_val in #(
2346 *${as_nl}*)
2347 case $ac_var in #(
2348 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2349 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2350 esac
2351 case $ac_var in #(
2352 _ | IFS | as_nl) ;; #(
2353 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2354 *) { eval $ac_var=; unset $ac_var;} ;;
2355 esac ;;
2356 esac
2357 done
2358 (set) 2>&1 |
2359 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2360 *${as_nl}ac_space=\ *)
2361 sed -n \
2362 "s/'\''/'\''\\\\'\'''\''/g;
2363 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2364 ;; #(
2365 *)
2366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2367 ;;
2368 esac |
2369 sort
2370 )
2371 echo
2372
2373 cat <<\_ASBOX
2374 ## ----------------- ##
2375 ## Output variables. ##
2376 ## ----------------- ##
2377 _ASBOX
2378 echo
2379 for ac_var in $ac_subst_vars
2380 do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in
2383 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2384 esac
2385 $as_echo "$ac_var='\''$ac_val'\''"
2386 done | sort
2387 echo
2388
2389 if test -n "$ac_subst_files"; then
2390 cat <<\_ASBOX
2391 ## ------------------- ##
2392 ## File substitutions. ##
2393 ## ------------------- ##
2394 _ASBOX
2395 echo
2396 for ac_var in $ac_subst_files
2397 do
2398 eval ac_val=\$$ac_var
2399 case $ac_val in
2400 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2401 esac
2402 $as_echo "$ac_var='\''$ac_val'\''"
2403 done | sort
2404 echo
2405 fi
2406
2407 if test -s confdefs.h; then
2408 cat <<\_ASBOX
2409 ## ----------- ##
2410 ## confdefs.h. ##
2411 ## ----------- ##
2412 _ASBOX
2413 echo
2414 cat confdefs.h
2415 echo
2416 fi
2417 test "$ac_signal" != 0 &&
2418 $as_echo "$as_me: caught signal $ac_signal"
2419 $as_echo "$as_me: exit $exit_status"
2420 } >&5
2421 rm -f core *.core core.conftest.* &&
2422 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2423 exit $exit_status
2424 ' 0
2425 for ac_signal in 1 2 13 15; do
2426 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2427 done
2428 ac_signal=0
2429
2430 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2431 rm -f -r conftest* confdefs.h
2432
2433 $as_echo "/* confdefs.h */" > confdefs.h
2434
2435 # Predefined preprocessor variables.
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_NAME "$PACKAGE_NAME"
2439 _ACEOF
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2443 _ACEOF
2444
2445 cat >>confdefs.h <<_ACEOF
2446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2447 _ACEOF
2448
2449 cat >>confdefs.h <<_ACEOF
2450 #define PACKAGE_STRING "$PACKAGE_STRING"
2451 _ACEOF
2452
2453 cat >>confdefs.h <<_ACEOF
2454 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2455 _ACEOF
2456
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_URL "$PACKAGE_URL"
2459 _ACEOF
2460
2461
2462 # Let the site file select an alternate cache file if it wants to.
2463 # Prefer an explicitly selected file to automatically selected ones.
2464 ac_site_file1=NONE
2465 ac_site_file2=NONE
2466 if test -n "$CONFIG_SITE"; then
2467 ac_site_file1=$CONFIG_SITE
2468 elif test "x$prefix" != xNONE; then
2469 ac_site_file1=$prefix/share/config.site
2470 ac_site_file2=$prefix/etc/config.site
2471 else
2472 ac_site_file1=$ac_default_prefix/share/config.site
2473 ac_site_file2=$ac_default_prefix/etc/config.site
2474 fi
2475 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2476 do
2477 test "x$ac_site_file" = xNONE && continue
2478 if test -r "$ac_site_file"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2480 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2481 sed 's/^/| /' "$ac_site_file" >&5
2482 . "$ac_site_file"
2483 fi
2484 done
2485
2486 if test -r "$cache_file"; then
2487 # Some versions of bash will fail to source /dev/null (special
2488 # files actually), so we avoid doing that.
2489 if test -f "$cache_file"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2491 $as_echo "$as_me: loading cache $cache_file" >&6;}
2492 case $cache_file in
2493 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2494 *) . "./$cache_file";;
2495 esac
2496 fi
2497 else
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2499 $as_echo "$as_me: creating cache $cache_file" >&6;}
2500 >$cache_file
2501 fi
2502
2503 # Check that the precious variables saved in the cache have kept the same
2504 # value.
2505 ac_cache_corrupted=false
2506 for ac_var in $ac_precious_vars; do
2507 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2508 eval ac_new_set=\$ac_env_${ac_var}_set
2509 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2510 eval ac_new_val=\$ac_env_${ac_var}_value
2511 case $ac_old_set,$ac_new_set in
2512 set,)
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2514 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2516 ,set)
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2518 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2520 ,);;
2521 *)
2522 if test "x$ac_old_val" != "x$ac_new_val"; then
2523 # differences in whitespace do not lead to failure.
2524 ac_old_val_w=`echo x $ac_old_val`
2525 ac_new_val_w=`echo x $ac_new_val`
2526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2528 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2529 ac_cache_corrupted=:
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2532 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2533 eval $ac_var=\$ac_old_val
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2536 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2538 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2539 fi;;
2540 esac
2541 # Pass precious variables to config.status.
2542 if test "$ac_new_set" = set; then
2543 case $ac_new_val in
2544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2545 *) ac_arg=$ac_var=$ac_new_val ;;
2546 esac
2547 case " $ac_configure_args " in
2548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2549 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2550 esac
2551 fi
2552 done
2553 if $ac_cache_corrupted; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2557 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2558 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2559 fi
2560 ## -------------------- ##
2561 ## Main body of script. ##
2562 ## -------------------- ##
2563
2564 ac_ext=c
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
2570
2571
2572
2573
2574 ac_config_headers="$ac_config_headers config.h:config.in"
2575
2576
2577
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2579 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2580 # Check whether --enable-maintainer-mode was given.
2581 if test "${enable_maintainer_mode+set}" = set; then :
2582 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2583 else
2584 USE_MAINTAINER_MODE=no
2585 fi
2586
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2588 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2589 if test $USE_MAINTAINER_MODE = yes; then
2590 MAINTAINER_MODE_TRUE=
2591 MAINTAINER_MODE_FALSE='#'
2592 else
2593 MAINTAINER_MODE_TRUE='#'
2594 MAINTAINER_MODE_FALSE=
2595 fi
2596
2597 MAINT=$MAINTAINER_MODE_TRUE
2598
2599
2600
2601 ac_ext=c
2602 ac_cpp='$CPP $CPPFLAGS'
2603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606 if test -n "$ac_tool_prefix"; then
2607 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2608 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_CC+set}" = set; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 CC=$ac_cv_prog_CC
2635 if test -n "$CC"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2637 $as_echo "$CC" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643
2644 fi
2645 if test -z "$ac_cv_prog_CC"; then
2646 ac_ct_CC=$CC
2647 # Extract the first word of "gcc", so it can be a program name with args.
2648 set dummy gcc; ac_word=$2
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2650 $as_echo_n "checking for $ac_word... " >&6; }
2651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 if test -n "$ac_ct_CC"; then
2655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH
2659 do
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_exec_ext in '' $ac_executable_extensions; do
2663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664 ac_cv_prog_ac_ct_CC="gcc"
2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2666 break 2
2667 fi
2668 done
2669 done
2670 IFS=$as_save_IFS
2671
2672 fi
2673 fi
2674 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675 if test -n "$ac_ct_CC"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2677 $as_echo "$ac_ct_CC" >&6; }
2678 else
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2681 fi
2682
2683 if test "x$ac_ct_CC" = x; then
2684 CC=""
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687 yes:)
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2690 ac_tool_warned=yes ;;
2691 esac
2692 CC=$ac_ct_CC
2693 fi
2694 else
2695 CC="$ac_cv_prog_CC"
2696 fi
2697
2698 if test -z "$CC"; then
2699 if test -n "$ac_tool_prefix"; then
2700 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2701 set dummy ${ac_tool_prefix}cc; ac_word=$2
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2703 $as_echo_n "checking for $ac_word... " >&6; }
2704 if test "${ac_cv_prog_CC+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 ac_cv_prog_CC="${ac_tool_prefix}cc"
2718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi
2726 fi
2727 CC=$ac_cv_prog_CC
2728 if test -n "$CC"; then
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2730 $as_echo "$CC" >&6; }
2731 else
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733 $as_echo "no" >&6; }
2734 fi
2735
2736
2737 fi
2738 fi
2739 if test -z "$CC"; then
2740 # Extract the first word of "cc", so it can be a program name with args.
2741 set dummy cc; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 ac_prog_rejected=no
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2759 ac_prog_rejected=yes
2760 continue
2761 fi
2762 ac_cv_prog_CC="cc"
2763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 break 2
2765 fi
2766 done
2767 done
2768 IFS=$as_save_IFS
2769
2770 if test $ac_prog_rejected = yes; then
2771 # We found a bogon in the path, so make sure we never use it.
2772 set dummy $ac_cv_prog_CC
2773 shift
2774 if test $# != 0; then
2775 # We chose a different compiler from the bogus one.
2776 # However, it has the same basename, so the bogon will be chosen
2777 # first if we set CC to just the basename; use the full file name.
2778 shift
2779 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2780 fi
2781 fi
2782 fi
2783 fi
2784 CC=$ac_cv_prog_CC
2785 if test -n "$CC"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2788 else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2791 fi
2792
2793
2794 fi
2795 if test -z "$CC"; then
2796 if test -n "$ac_tool_prefix"; then
2797 for ac_prog in cl.exe
2798 do
2799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_CC+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$CC"; then
2807 ac_cv_prog_CC="$CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 CC=$ac_cv_prog_CC
2827 if test -n "$CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2829 $as_echo "$CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835
2836 test -n "$CC" && break
2837 done
2838 fi
2839 if test -z "$CC"; then
2840 ac_ct_CC=$CC
2841 for ac_prog in cl.exe
2842 do
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846 $as_echo_n "checking for $ac_word... " >&6; }
2847 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 if test -n "$ac_ct_CC"; then
2851 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2852 else
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 for as_dir in $PATH
2855 do
2856 IFS=$as_save_IFS
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_CC="$ac_prog"
2861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 break 2
2863 fi
2864 done
2865 done
2866 IFS=$as_save_IFS
2867
2868 fi
2869 fi
2870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2871 if test -n "$ac_ct_CC"; then
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2873 $as_echo "$ac_ct_CC" >&6; }
2874 else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 fi
2878
2879
2880 test -n "$ac_ct_CC" && break
2881 done
2882
2883 if test "x$ac_ct_CC" = x; then
2884 CC=""
2885 else
2886 case $cross_compiling:$ac_tool_warned in
2887 yes:)
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2890 ac_tool_warned=yes ;;
2891 esac
2892 CC=$ac_ct_CC
2893 fi
2894 fi
2895
2896 fi
2897
2898
2899 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 as_fn_error "no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details." "$LINENO" 5; }
2903
2904 # Provide some information about the compiler.
2905 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2906 set X $ac_compile
2907 ac_compiler=$2
2908 for ac_option in --version -v -V -qversion; do
2909 { { ac_try="$ac_compiler $ac_option >&5"
2910 case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913 esac
2914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2915 $as_echo "$ac_try_echo"; } >&5
2916 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2917 ac_status=$?
2918 if test -s conftest.err; then
2919 sed '10a\
2920 ... rest of stderr output deleted ...
2921 10q' conftest.err >conftest.er1
2922 cat conftest.er1 >&5
2923 rm -f conftest.er1 conftest.err
2924 fi
2925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2926 test $ac_status = 0; }
2927 done
2928
2929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2930 /* end confdefs.h. */
2931
2932 int
2933 main ()
2934 {
2935
2936 ;
2937 return 0;
2938 }
2939 _ACEOF
2940 ac_clean_files_save=$ac_clean_files
2941 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2942 # Try to create an executable without -o first, disregard a.out.
2943 # It will help us diagnose broken compilers, and finding out an intuition
2944 # of exeext.
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2946 $as_echo_n "checking for C compiler default output file name... " >&6; }
2947 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2948
2949 # The possible output files:
2950 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2951
2952 ac_rmfiles=
2953 for ac_file in $ac_files
2954 do
2955 case $ac_file in
2956 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2957 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2958 esac
2959 done
2960 rm -f $ac_rmfiles
2961
2962 if { { ac_try="$ac_link_default"
2963 case "(($ac_try" in
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2966 esac
2967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2968 $as_echo "$ac_try_echo"; } >&5
2969 (eval "$ac_link_default") 2>&5
2970 ac_status=$?
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }; then :
2973 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2974 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2975 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2976 # so that the user can short-circuit this test for compilers unknown to
2977 # Autoconf.
2978 for ac_file in $ac_files ''
2979 do
2980 test -f "$ac_file" || continue
2981 case $ac_file in
2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2983 ;;
2984 [ab].out )
2985 # We found the default executable, but exeext='' is most
2986 # certainly right.
2987 break;;
2988 *.* )
2989 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2990 then :; else
2991 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2992 fi
2993 # We set ac_cv_exeext here because the later test for it is not
2994 # safe: cross compilers may not add the suffix if given an `-o'
2995 # argument, so we may need to know it at that point already.
2996 # Even if this section looks crufty: it has the advantage of
2997 # actually working.
2998 break;;
2999 * )
3000 break;;
3001 esac
3002 done
3003 test "$ac_cv_exeext" = no && ac_cv_exeext=
3004
3005 else
3006 ac_file=''
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3009 $as_echo "$ac_file" >&6; }
3010 if test -z "$ac_file"; then :
3011 $as_echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 { as_fn_set_status 77
3017 as_fn_error "C compiler cannot create executables
3018 See \`config.log' for more details." "$LINENO" 5; }; }
3019 fi
3020 ac_exeext=$ac_cv_exeext
3021
3022 # Check that the compiler produces executables we can run. If not, either
3023 # the compiler is broken, or we cross compile.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3025 $as_echo_n "checking whether the C compiler works... " >&6; }
3026 # If not cross compiling, check that we can run a simple program.
3027 if test "$cross_compiling" != yes; then
3028 if { ac_try='./$ac_file'
3029 { { case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3034 $as_echo "$ac_try_echo"; } >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3038 test $ac_status = 0; }; }; then
3039 cross_compiling=no
3040 else
3041 if test "$cross_compiling" = maybe; then
3042 cross_compiling=yes
3043 else
3044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046 as_fn_error "cannot run C compiled programs.
3047 If you meant to cross compile, use \`--host'.
3048 See \`config.log' for more details." "$LINENO" 5; }
3049 fi
3050 fi
3051 fi
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3053 $as_echo "yes" >&6; }
3054
3055 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3056 ac_clean_files=$ac_clean_files_save
3057 # Check that the compiler produces executables we can run. If not, either
3058 # the compiler is broken, or we cross compile.
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3060 $as_echo_n "checking whether we are cross compiling... " >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3062 $as_echo "$cross_compiling" >&6; }
3063
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3065 $as_echo_n "checking for suffix of executables... " >&6; }
3066 if { { ac_try="$ac_link"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_link") 2>&5
3074 ac_status=$?
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }; then :
3077 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3078 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3079 # work properly (i.e., refer to `conftest.exe'), while it won't with
3080 # `rm'.
3081 for ac_file in conftest.exe conftest conftest.*; do
3082 test -f "$ac_file" || continue
3083 case $ac_file in
3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3085 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3086 break;;
3087 * ) break;;
3088 esac
3089 done
3090 else
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093 as_fn_error "cannot compute suffix of executables: cannot compile and link
3094 See \`config.log' for more details." "$LINENO" 5; }
3095 fi
3096 rm -f conftest$ac_cv_exeext
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3098 $as_echo "$ac_cv_exeext" >&6; }
3099
3100 rm -f conftest.$ac_ext
3101 EXEEXT=$ac_cv_exeext
3102 ac_exeext=$EXEEXT
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3104 $as_echo_n "checking for suffix of object files... " >&6; }
3105 if test "${ac_cv_objext+set}" = set; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3110
3111 int
3112 main ()
3113 {
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.o conftest.obj
3120 if { { ac_try="$ac_compile"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_compile") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }; then :
3131 for ac_file in conftest.o conftest.obj conftest.*; do
3132 test -f "$ac_file" || continue;
3133 case $ac_file in
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3135 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3136 break;;
3137 esac
3138 done
3139 else
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error "cannot compute suffix of object files: cannot compile
3146 See \`config.log' for more details." "$LINENO" 5; }
3147 fi
3148 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149 fi
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3151 $as_echo "$ac_cv_objext" >&6; }
3152 OBJEXT=$ac_cv_objext
3153 ac_objext=$OBJEXT
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3155 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3156 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161
3162 int
3163 main ()
3164 {
3165 #ifndef __GNUC__
3166 choke me
3167 #endif
3168
3169 ;
3170 return 0;
3171 }
3172 _ACEOF
3173 if ac_fn_c_try_compile "$LINENO"; then :
3174 ac_compiler_gnu=yes
3175 else
3176 ac_compiler_gnu=no
3177 fi
3178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3179 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3180
3181 fi
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3183 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3184 if test $ac_compiler_gnu = yes; then
3185 GCC=yes
3186 else
3187 GCC=
3188 fi
3189 ac_test_CFLAGS=${CFLAGS+set}
3190 ac_save_CFLAGS=$CFLAGS
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3192 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3193 if test "${ac_cv_prog_cc_g+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 ac_save_c_werror_flag=$ac_c_werror_flag
3197 ac_c_werror_flag=yes
3198 ac_cv_prog_cc_g=no
3199 CFLAGS="-g"
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3202
3203 int
3204 main ()
3205 {
3206
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 if ac_fn_c_try_compile "$LINENO"; then :
3212 ac_cv_prog_cc_g=yes
3213 else
3214 CFLAGS=""
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3217
3218 int
3219 main ()
3220 {
3221
3222 ;
3223 return 0;
3224 }
3225 _ACEOF
3226 if ac_fn_c_try_compile "$LINENO"; then :
3227
3228 else
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3230 CFLAGS="-g"
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3233
3234 int
3235 main ()
3236 {
3237
3238 ;
3239 return 0;
3240 }
3241 _ACEOF
3242 if ac_fn_c_try_compile "$LINENO"; then :
3243 ac_cv_prog_cc_g=yes
3244 fi
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 fi
3247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3248 fi
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3251 fi
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3253 $as_echo "$ac_cv_prog_cc_g" >&6; }
3254 if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256 elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
3259 else
3260 CFLAGS="-g"
3261 fi
3262 else
3263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
3265 else
3266 CFLAGS=
3267 fi
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3270 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3271 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3273 else
3274 ac_cv_prog_cc_c89=no
3275 ac_save_CC=$CC
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278 #include <stdarg.h>
3279 #include <stdio.h>
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3286 char **p;
3287 int i;
3288 {
3289 return p[i];
3290 }
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3292 {
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3299 }
3300
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3312 #define FOO(x) 'x'
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319 int argc;
3320 char **argv;
3321 int
3322 main ()
3323 {
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332 CC="$ac_save_CC $ac_arg"
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_cv_prog_cc_c89=$ac_arg
3335 fi
3336 rm -f core conftest.err conftest.$ac_objext
3337 test "x$ac_cv_prog_cc_c89" != "xno" && break
3338 done
3339 rm -f conftest.$ac_ext
3340 CC=$ac_save_CC
3341
3342 fi
3343 # AC_CACHE_VAL
3344 case "x$ac_cv_prog_cc_c89" in
3345 x)
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3347 $as_echo "none needed" >&6; } ;;
3348 xno)
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3350 $as_echo "unsupported" >&6; } ;;
3351 *)
3352 CC="$CC $ac_cv_prog_cc_c89"
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3354 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3355 esac
3356 if test "x$ac_cv_prog_cc_c89" != xno; then :
3357
3358 fi
3359
3360 ac_ext=c
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365
3366 ac_ext=cpp
3367 ac_cpp='$CXXCPP $CPPFLAGS'
3368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3371 if test -z "$CXX"; then
3372 if test -n "$CCC"; then
3373 CXX=$CCC
3374 else
3375 if test -n "$ac_tool_prefix"; then
3376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3377 do
3378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_CXX+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 if test -n "$CXX"; then
3386 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3398 fi
3399 done
3400 done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 CXX=$ac_cv_prog_CXX
3406 if test -n "$CXX"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3408 $as_echo "$CXX" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414
3415 test -n "$CXX" && break
3416 done
3417 fi
3418 if test -z "$CXX"; then
3419 ac_ct_CXX=$CXX
3420 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3421 do
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3428 else
3429 if test -n "$ac_ct_CXX"; then
3430 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_ac_ct_CXX="$ac_prog"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443 done
3444 done
3445 IFS=$as_save_IFS
3446
3447 fi
3448 fi
3449 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3450 if test -n "$ac_ct_CXX"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3452 $as_echo "$ac_ct_CXX" >&6; }
3453 else
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3456 fi
3457
3458
3459 test -n "$ac_ct_CXX" && break
3460 done
3461
3462 if test "x$ac_ct_CXX" = x; then
3463 CXX="g++"
3464 else
3465 case $cross_compiling:$ac_tool_warned in
3466 yes:)
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3469 ac_tool_warned=yes ;;
3470 esac
3471 CXX=$ac_ct_CXX
3472 fi
3473 fi
3474
3475 fi
3476 fi
3477 # Provide some information about the compiler.
3478 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3479 set X $ac_compile
3480 ac_compiler=$2
3481 for ac_option in --version -v -V -qversion; do
3482 { { ac_try="$ac_compiler $ac_option >&5"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490 ac_status=$?
3491 if test -s conftest.err; then
3492 sed '10a\
3493 ... rest of stderr output deleted ...
3494 10q' conftest.err >conftest.er1
3495 cat conftest.er1 >&5
3496 rm -f conftest.er1 conftest.err
3497 fi
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }
3500 done
3501
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3503 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3504 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509
3510 int
3511 main ()
3512 {
3513 #ifndef __GNUC__
3514 choke me
3515 #endif
3516
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_cxx_try_compile "$LINENO"; then :
3522 ac_compiler_gnu=yes
3523 else
3524 ac_compiler_gnu=no
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3528
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3531 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3532 if test $ac_compiler_gnu = yes; then
3533 GXX=yes
3534 else
3535 GXX=
3536 fi
3537 ac_test_CXXFLAGS=${CXXFLAGS+set}
3538 ac_save_CXXFLAGS=$CXXFLAGS
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3540 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3541 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3542 $as_echo_n "(cached) " >&6
3543 else
3544 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3545 ac_cxx_werror_flag=yes
3546 ac_cv_prog_cxx_g=no
3547 CXXFLAGS="-g"
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550
3551 int
3552 main ()
3553 {
3554
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_cxx_try_compile "$LINENO"; then :
3560 ac_cv_prog_cxx_g=yes
3561 else
3562 CXXFLAGS=""
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565
3566 int
3567 main ()
3568 {
3569
3570 ;
3571 return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_cxx_try_compile "$LINENO"; then :
3575
3576 else
3577 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3578 CXXFLAGS="-g"
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581
3582 int
3583 main ()
3584 {
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_cxx_try_compile "$LINENO"; then :
3591 ac_cv_prog_cxx_g=yes
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3601 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3602 if test "$ac_test_CXXFLAGS" = set; then
3603 CXXFLAGS=$ac_save_CXXFLAGS
3604 elif test $ac_cv_prog_cxx_g = yes; then
3605 if test "$GXX" = yes; then
3606 CXXFLAGS="-g -O2"
3607 else
3608 CXXFLAGS="-g"
3609 fi
3610 else
3611 if test "$GXX" = yes; then
3612 CXXFLAGS="-O2"
3613 else
3614 CXXFLAGS=
3615 fi
3616 fi
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3631 # On Suns, sometimes $CPP names a directory.
3632 if test -n "$CPP" && test -d "$CPP"; then
3633 CPP=
3634 fi
3635 if test -z "$CPP"; then
3636 if test "${ac_cv_prog_CPP+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 # Double quotes because CPP needs to be expanded
3640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3641 do
3642 ac_preproc_ok=false
3643 for ac_c_preproc_warn_flag in '' yes
3644 do
3645 # Use a header file that comes with gcc, so configuring glibc
3646 # with a fresh cross-compiler works.
3647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648 # <limits.h> exists even on freestanding compilers.
3649 # On the NeXT, cc -E runs the code through the compiler's parser,
3650 # not just through cpp. "Syntax error" is here to catch this case.
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3653 #ifdef __STDC__
3654 # include <limits.h>
3655 #else
3656 # include <assert.h>
3657 #endif
3658 Syntax error
3659 _ACEOF
3660 if ac_fn_c_try_cpp "$LINENO"; then :
3661
3662 else
3663 # Broken: fails on valid input.
3664 continue
3665 fi
3666 rm -f conftest.err conftest.$ac_ext
3667
3668 # OK, works on sane cases. Now check whether nonexistent headers
3669 # can be detected and how.
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3672 #include <ac_nonexistent.h>
3673 _ACEOF
3674 if ac_fn_c_try_cpp "$LINENO"; then :
3675 # Broken: success on invalid input.
3676 continue
3677 else
3678 # Passes both tests.
3679 ac_preproc_ok=:
3680 break
3681 fi
3682 rm -f conftest.err conftest.$ac_ext
3683
3684 done
3685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3686 rm -f conftest.err conftest.$ac_ext
3687 if $ac_preproc_ok; then :
3688 break
3689 fi
3690
3691 done
3692 ac_cv_prog_CPP=$CPP
3693
3694 fi
3695 CPP=$ac_cv_prog_CPP
3696 else
3697 ac_cv_prog_CPP=$CPP
3698 fi
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3700 $as_echo "$CPP" >&6; }
3701 ac_preproc_ok=false
3702 for ac_c_preproc_warn_flag in '' yes
3703 do
3704 # Use a header file that comes with gcc, so configuring glibc
3705 # with a fresh cross-compiler works.
3706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3707 # <limits.h> exists even on freestanding compilers.
3708 # On the NeXT, cc -E runs the code through the compiler's parser,
3709 # not just through cpp. "Syntax error" is here to catch this case.
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #ifdef __STDC__
3713 # include <limits.h>
3714 #else
3715 # include <assert.h>
3716 #endif
3717 Syntax error
3718 _ACEOF
3719 if ac_fn_c_try_cpp "$LINENO"; then :
3720
3721 else
3722 # Broken: fails on valid input.
3723 continue
3724 fi
3725 rm -f conftest.err conftest.$ac_ext
3726
3727 # OK, works on sane cases. Now check whether nonexistent headers
3728 # can be detected and how.
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731 #include <ac_nonexistent.h>
3732 _ACEOF
3733 if ac_fn_c_try_cpp "$LINENO"; then :
3734 # Broken: success on invalid input.
3735 continue
3736 else
3737 # Passes both tests.
3738 ac_preproc_ok=:
3739 break
3740 fi
3741 rm -f conftest.err conftest.$ac_ext
3742
3743 done
3744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3745 rm -f conftest.err conftest.$ac_ext
3746 if $ac_preproc_ok; then :
3747
3748 else
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3752 See \`config.log' for more details." "$LINENO" 5; }
3753 fi
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760
3761
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3763 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3764 if test "${ac_cv_path_GREP+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 if test -z "$GREP"; then
3768 ac_path_GREP_found=false
3769 # Loop through the user's path and test for each of PROGNAME-LIST
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3772 do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_prog in grep ggrep; do
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3778 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3779 # Check for GNU ac_path_GREP and select it if it is found.
3780 # Check for GNU $ac_path_GREP
3781 case `"$ac_path_GREP" --version 2>&1` in
3782 *GNU*)
3783 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3784 *)
3785 ac_count=0
3786 $as_echo_n 0123456789 >"conftest.in"
3787 while :
3788 do
3789 cat "conftest.in" "conftest.in" >"conftest.tmp"
3790 mv "conftest.tmp" "conftest.in"
3791 cp "conftest.in" "conftest.nl"
3792 $as_echo 'GREP' >> "conftest.nl"
3793 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3795 as_fn_arith $ac_count + 1 && ac_count=$as_val
3796 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3797 # Best one so far, save it but keep looking for a better one
3798 ac_cv_path_GREP="$ac_path_GREP"
3799 ac_path_GREP_max=$ac_count
3800 fi
3801 # 10*(2^10) chars as input seems more than enough
3802 test $ac_count -gt 10 && break
3803 done
3804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3805 esac
3806
3807 $ac_path_GREP_found && break 3
3808 done
3809 done
3810 done
3811 IFS=$as_save_IFS
3812 if test -z "$ac_cv_path_GREP"; then
3813 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3814 fi
3815 else
3816 ac_cv_path_GREP=$GREP
3817 fi
3818
3819 fi
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3821 $as_echo "$ac_cv_path_GREP" >&6; }
3822 GREP="$ac_cv_path_GREP"
3823
3824
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3826 $as_echo_n "checking for egrep... " >&6; }
3827 if test "${ac_cv_path_EGREP+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3831 then ac_cv_path_EGREP="$GREP -E"
3832 else
3833 if test -z "$EGREP"; then
3834 ac_path_EGREP_found=false
3835 # Loop through the user's path and test for each of PROGNAME-LIST
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3838 do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_prog in egrep; do
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3844 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3845 # Check for GNU ac_path_EGREP and select it if it is found.
3846 # Check for GNU $ac_path_EGREP
3847 case `"$ac_path_EGREP" --version 2>&1` in
3848 *GNU*)
3849 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3850 *)
3851 ac_count=0
3852 $as_echo_n 0123456789 >"conftest.in"
3853 while :
3854 do
3855 cat "conftest.in" "conftest.in" >"conftest.tmp"
3856 mv "conftest.tmp" "conftest.in"
3857 cp "conftest.in" "conftest.nl"
3858 $as_echo 'EGREP' >> "conftest.nl"
3859 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3860 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3861 as_fn_arith $ac_count + 1 && ac_count=$as_val
3862 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3863 # Best one so far, save it but keep looking for a better one
3864 ac_cv_path_EGREP="$ac_path_EGREP"
3865 ac_path_EGREP_max=$ac_count
3866 fi
3867 # 10*(2^10) chars as input seems more than enough
3868 test $ac_count -gt 10 && break
3869 done
3870 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3871 esac
3872
3873 $ac_path_EGREP_found && break 3
3874 done
3875 done
3876 done
3877 IFS=$as_save_IFS
3878 if test -z "$ac_cv_path_EGREP"; then
3879 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3880 fi
3881 else
3882 ac_cv_path_EGREP=$EGREP
3883 fi
3884
3885 fi
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3888 $as_echo "$ac_cv_path_EGREP" >&6; }
3889 EGREP="$ac_cv_path_EGREP"
3890
3891
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3893 $as_echo_n "checking for ANSI C header files... " >&6; }
3894 if test "${ac_cv_header_stdc+set}" = set; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899 #include <stdlib.h>
3900 #include <stdarg.h>
3901 #include <string.h>
3902 #include <float.h>
3903
3904 int
3905 main ()
3906 {
3907
3908 ;
3909 return 0;
3910 }
3911 _ACEOF
3912 if ac_fn_c_try_compile "$LINENO"; then :
3913 ac_cv_header_stdc=yes
3914 else
3915 ac_cv_header_stdc=no
3916 fi
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3918
3919 if test $ac_cv_header_stdc = yes; then
3920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923 #include <string.h>
3924
3925 _ACEOF
3926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3927 $EGREP "memchr" >/dev/null 2>&1; then :
3928
3929 else
3930 ac_cv_header_stdc=no
3931 fi
3932 rm -f conftest*
3933
3934 fi
3935
3936 if test $ac_cv_header_stdc = yes; then
3937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h. */
3940 #include <stdlib.h>
3941
3942 _ACEOF
3943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3944 $EGREP "free" >/dev/null 2>&1; then :
3945
3946 else
3947 ac_cv_header_stdc=no
3948 fi
3949 rm -f conftest*
3950
3951 fi
3952
3953 if test $ac_cv_header_stdc = yes; then
3954 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3955 if test "$cross_compiling" = yes; then :
3956 :
3957 else
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <ctype.h>
3961 #include <stdlib.h>
3962 #if ((' ' & 0x0FF) == 0x020)
3963 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3964 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3965 #else
3966 # define ISLOWER(c) \
3967 (('a' <= (c) && (c) <= 'i') \
3968 || ('j' <= (c) && (c) <= 'r') \
3969 || ('s' <= (c) && (c) <= 'z'))
3970 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3971 #endif
3972
3973 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3974 int
3975 main ()
3976 {
3977 int i;
3978 for (i = 0; i < 256; i++)
3979 if (XOR (islower (i), ISLOWER (i))
3980 || toupper (i) != TOUPPER (i))
3981 return 2;
3982 return 0;
3983 }
3984 _ACEOF
3985 if ac_fn_c_try_run "$LINENO"; then :
3986
3987 else
3988 ac_cv_header_stdc=no
3989 fi
3990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3991 conftest.$ac_objext conftest.beam conftest.$ac_ext
3992 fi
3993
3994 fi
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3997 $as_echo "$ac_cv_header_stdc" >&6; }
3998 if test $ac_cv_header_stdc = yes; then
3999
4000 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4001
4002 fi
4003
4004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4005 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4006 inttypes.h stdint.h unistd.h
4007 do :
4008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4009 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4010 "
4011 eval as_val=\$$as_ac_Header
4012 if test "x$as_val" = x""yes; then :
4013 cat >>confdefs.h <<_ACEOF
4014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4015 _ACEOF
4016
4017 fi
4018
4019 done
4020
4021
4022
4023 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4024 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4025 MINIX=yes
4026 else
4027 MINIX=
4028 fi
4029
4030
4031 if test "$MINIX" = yes; then
4032
4033 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4034
4035
4036 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4037
4038
4039 $as_echo "#define _MINIX 1" >>confdefs.h
4040
4041 fi
4042
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4045 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4046 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051
4052 # define __EXTENSIONS__ 1
4053 $ac_includes_default
4054 int
4055 main ()
4056 {
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"; then :
4063 ac_cv_safe_to_define___extensions__=yes
4064 else
4065 ac_cv_safe_to_define___extensions__=no
4066 fi
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4070 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4071 test $ac_cv_safe_to_define___extensions__ = yes &&
4072 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4073
4074 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4075
4076 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4077
4078 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4079
4080 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4081
4082
4083
4084 # Check whether --enable-largefile was given.
4085 if test "${enable_largefile+set}" = set; then :
4086 enableval=$enable_largefile;
4087 fi
4088
4089 if test "$enable_largefile" != no; then
4090
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4092 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4093 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 ac_cv_sys_largefile_CC=no
4097 if test "$GCC" != yes; then
4098 ac_save_CC=$CC
4099 while :; do
4100 # IRIX 6.2 and later do not support large files by default,
4101 # so use the C compiler's -n32 option if that helps.
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #include <sys/types.h>
4105 /* Check that off_t can represent 2**63 - 1 correctly.
4106 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4107 since some C++ compilers masquerading as C compilers
4108 incorrectly reject 9223372036854775807. */
4109 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4110 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4111 && LARGE_OFF_T % 2147483647 == 1)
4112 ? 1 : -1];
4113 int
4114 main ()
4115 {
4116
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 if ac_fn_c_try_compile "$LINENO"; then :
4122 break
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext
4125 CC="$CC -n32"
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_sys_largefile_CC=' -n32'; break
4128 fi
4129 rm -f core conftest.err conftest.$ac_objext
4130 break
4131 done
4132 CC=$ac_save_CC
4133 rm -f conftest.$ac_ext
4134 fi
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4137 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4138 if test "$ac_cv_sys_largefile_CC" != no; then
4139 CC=$CC$ac_cv_sys_largefile_CC
4140 fi
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4143 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4144 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 while :; do
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4150 #include <sys/types.h>
4151 /* Check that off_t can represent 2**63 - 1 correctly.
4152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4153 since some C++ compilers masquerading as C compilers
4154 incorrectly reject 9223372036854775807. */
4155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4157 && LARGE_OFF_T % 2147483647 == 1)
4158 ? 1 : -1];
4159 int
4160 main ()
4161 {
4162
4163 ;
4164 return 0;
4165 }
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_sys_file_offset_bits=no; break
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4173 #define _FILE_OFFSET_BITS 64
4174 #include <sys/types.h>
4175 /* Check that off_t can represent 2**63 - 1 correctly.
4176 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4177 since some C++ compilers masquerading as C compilers
4178 incorrectly reject 9223372036854775807. */
4179 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4180 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4181 && LARGE_OFF_T % 2147483647 == 1)
4182 ? 1 : -1];
4183 int
4184 main ()
4185 {
4186
4187 ;
4188 return 0;
4189 }
4190 _ACEOF
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192 ac_cv_sys_file_offset_bits=64; break
4193 fi
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4195 ac_cv_sys_file_offset_bits=unknown
4196 break
4197 done
4198 fi
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4200 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4201 case $ac_cv_sys_file_offset_bits in #(
4202 no | unknown) ;;
4203 *)
4204 cat >>confdefs.h <<_ACEOF
4205 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4206 _ACEOF
4207 ;;
4208 esac
4209 rm -rf conftest*
4210 if test $ac_cv_sys_file_offset_bits = unknown; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4212 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4213 if test "${ac_cv_sys_large_files+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 while :; do
4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4218 /* end confdefs.h. */
4219 #include <sys/types.h>
4220 /* Check that off_t can represent 2**63 - 1 correctly.
4221 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4222 since some C++ compilers masquerading as C compilers
4223 incorrectly reject 9223372036854775807. */
4224 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4225 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4226 && LARGE_OFF_T % 2147483647 == 1)
4227 ? 1 : -1];
4228 int
4229 main ()
4230 {
4231
4232 ;
4233 return 0;
4234 }
4235 _ACEOF
4236 if ac_fn_c_try_compile "$LINENO"; then :
4237 ac_cv_sys_large_files=no; break
4238 fi
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #define _LARGE_FILES 1
4243 #include <sys/types.h>
4244 /* Check that off_t can represent 2**63 - 1 correctly.
4245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4246 since some C++ compilers masquerading as C compilers
4247 incorrectly reject 9223372036854775807. */
4248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4250 && LARGE_OFF_T % 2147483647 == 1)
4251 ? 1 : -1];
4252 int
4253 main ()
4254 {
4255
4256 ;
4257 return 0;
4258 }
4259 _ACEOF
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_sys_large_files=1; break
4262 fi
4263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4264 ac_cv_sys_large_files=unknown
4265 break
4266 done
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4269 $as_echo "$ac_cv_sys_large_files" >&6; }
4270 case $ac_cv_sys_large_files in #(
4271 no | unknown) ;;
4272 *)
4273 cat >>confdefs.h <<_ACEOF
4274 #define _LARGE_FILES $ac_cv_sys_large_files
4275 _ACEOF
4276 ;;
4277 esac
4278 rm -rf conftest*
4279 fi
4280 fi
4281
4282
4283 ac_aux_dir=
4284 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4285 for ac_t in install-sh install.sh shtool; do
4286 if test -f "$ac_dir/$ac_t"; then
4287 ac_aux_dir=$ac_dir
4288 ac_install_sh="$ac_aux_dir/$ac_t -c"
4289 break 2
4290 fi
4291 done
4292 done
4293 if test -z "$ac_aux_dir"; then
4294 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4295 fi
4296
4297 # These three variables are undocumented and unsupported,
4298 # and are intended to be withdrawn in a future Autoconf release.
4299 # They can cause serious problems if a builder's source tree is in a directory
4300 # whose full name contains unusual characters.
4301 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4302 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4303 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4304
4305
4306 # Make sure we can run config.sub.
4307 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4308 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4309
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4311 $as_echo_n "checking build system type... " >&6; }
4312 if test "${ac_cv_build+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4314 else
4315 ac_build_alias=$build_alias
4316 test "x$ac_build_alias" = x &&
4317 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4318 test "x$ac_build_alias" = x &&
4319 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4320 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4321 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4322
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4325 $as_echo "$ac_cv_build" >&6; }
4326 case $ac_cv_build in
4327 *-*-*) ;;
4328 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4329 esac
4330 build=$ac_cv_build
4331 ac_save_IFS=$IFS; IFS='-'
4332 set x $ac_cv_build
4333 shift
4334 build_cpu=$1
4335 build_vendor=$2
4336 shift; shift
4337 # Remember, the first character of IFS is used to create $*,
4338 # except with old shells:
4339 build_os=$*
4340 IFS=$ac_save_IFS
4341 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4342
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4345 $as_echo_n "checking host system type... " >&6; }
4346 if test "${ac_cv_host+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test "x$host_alias" = x; then
4350 ac_cv_host=$ac_cv_build
4351 else
4352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4353 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4354 fi
4355
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4358 $as_echo "$ac_cv_host" >&6; }
4359 case $ac_cv_host in
4360 *-*-*) ;;
4361 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4362 esac
4363 host=$ac_cv_host
4364 ac_save_IFS=$IFS; IFS='-'
4365 set x $ac_cv_host
4366 shift
4367 host_cpu=$1
4368 host_vendor=$2
4369 shift; shift
4370 # Remember, the first character of IFS is used to create $*,
4371 # except with old shells:
4372 host_os=$*
4373 IFS=$ac_save_IFS
4374 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4375
4376
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4378 $as_echo_n "checking target system type... " >&6; }
4379 if test "${ac_cv_target+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 if test "x$target_alias" = x; then
4383 ac_cv_target=$ac_cv_host
4384 else
4385 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4386 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4387 fi
4388
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4391 $as_echo "$ac_cv_target" >&6; }
4392 case $ac_cv_target in
4393 *-*-*) ;;
4394 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4395 esac
4396 target=$ac_cv_target
4397 ac_save_IFS=$IFS; IFS='-'
4398 set x $ac_cv_target
4399 shift
4400 target_cpu=$1
4401 target_vendor=$2
4402 shift; shift
4403 # Remember, the first character of IFS is used to create $*,
4404 # except with old shells:
4405 target_os=$*
4406 IFS=$ac_save_IFS
4407 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4408
4409
4410 # The aliases save the names the user supplied, while $host etc.
4411 # will get canonicalized.
4412 test -n "$target_alias" &&
4413 test "$program_prefix$program_suffix$program_transform_name" = \
4414 NONENONEs,x,x, &&
4415 program_prefix=${target_alias}-
4416
4417
4418 # Find a good install program. We prefer a C program (faster),
4419 # so one script is as good as another. But avoid the broken or
4420 # incompatible versions:
4421 # SysV /etc/install, /usr/sbin/install
4422 # SunOS /usr/etc/install
4423 # IRIX /sbin/install
4424 # AIX /bin/install
4425 # AmigaOS /C/install, which installs bootblocks on floppy discs
4426 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4427 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4428 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4429 # OS/2's system install, which has a completely different semantic
4430 # ./install, which can be erroneously created by make from ./install.sh.
4431 # Reject install programs that cannot install multiple files.
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4433 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4434 if test -z "$INSTALL"; then
4435 if test "${ac_cv_path_install+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 # Account for people who put trailing slashes in PATH elements.
4444 case $as_dir/ in #((
4445 ./ | .// | /[cC]/* | \
4446 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4447 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4448 /usr/ucb/* ) ;;
4449 *)
4450 # OSF1 and SCO ODT 3.0 have their own names for install.
4451 # Don't use installbsd from OSF since it installs stuff as root
4452 # by default.
4453 for ac_prog in ginstall scoinst install; do
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4456 if test $ac_prog = install &&
4457 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4458 # AIX install. It has an incompatible calling convention.
4459 :
4460 elif test $ac_prog = install &&
4461 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4462 # program-specific install script used by HP pwplus--don't use.
4463 :
4464 else
4465 rm -rf conftest.one conftest.two conftest.dir
4466 echo one > conftest.one
4467 echo two > conftest.two
4468 mkdir conftest.dir
4469 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4470 test -s conftest.one && test -s conftest.two &&
4471 test -s conftest.dir/conftest.one &&
4472 test -s conftest.dir/conftest.two
4473 then
4474 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4475 break 3
4476 fi
4477 fi
4478 fi
4479 done
4480 done
4481 ;;
4482 esac
4483
4484 done
4485 IFS=$as_save_IFS
4486
4487 rm -rf conftest.one conftest.two conftest.dir
4488
4489 fi
4490 if test "${ac_cv_path_install+set}" = set; then
4491 INSTALL=$ac_cv_path_install
4492 else
4493 # As a last resort, use the slow shell script. Don't cache a
4494 # value for INSTALL within a source directory, because that will
4495 # break other packages using the cache if that directory is
4496 # removed, or if the value is a relative name.
4497 INSTALL=$ac_install_sh
4498 fi
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4501 $as_echo "$INSTALL" >&6; }
4502
4503 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4504 # It thinks the first close brace ends the variable substitution.
4505 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4506
4507 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4508
4509 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4510
4511 if test -n "$ac_tool_prefix"; then
4512 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4513 set dummy ${ac_tool_prefix}ar; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if test "${ac_cv_prog_AR+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if test -n "$AR"; then
4520 ac_cv_prog_AR="$AR" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_AR="${ac_tool_prefix}ar"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4532 fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537 fi
4538 fi
4539 AR=$ac_cv_prog_AR
4540 if test -n "$AR"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4542 $as_echo "$AR" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4546 fi
4547
4548
4549 fi
4550 if test -z "$ac_cv_prog_AR"; then
4551 ac_ct_AR=$AR
4552 # Extract the first word of "ar", so it can be a program name with args.
4553 set dummy ar; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 if test -n "$ac_ct_AR"; then
4560 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_ac_ct_AR="ar"
4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4580 if test -n "$ac_ct_AR"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4582 $as_echo "$ac_ct_AR" >&6; }
4583 else
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4586 fi
4587
4588 if test "x$ac_ct_AR" = x; then
4589 AR=""
4590 else
4591 case $cross_compiling:$ac_tool_warned in
4592 yes:)
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 ac_tool_warned=yes ;;
4596 esac
4597 AR=$ac_ct_AR
4598 fi
4599 else
4600 AR="$ac_cv_prog_AR"
4601 fi
4602
4603 if test -n "$ac_tool_prefix"; then
4604 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4605 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$RANLIB"; then
4612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4621 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 RANLIB=$ac_cv_prog_RANLIB
4632 if test -n "$RANLIB"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4634 $as_echo "$RANLIB" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639
4640
4641 fi
4642 if test -z "$ac_cv_prog_RANLIB"; then
4643 ac_ct_RANLIB=$RANLIB
4644 # Extract the first word of "ranlib", so it can be a program name with args.
4645 set dummy ranlib; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$ac_ct_RANLIB"; then
4652 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_ac_ct_RANLIB="ranlib"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4672 if test -n "$ac_ct_RANLIB"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4674 $as_echo "$ac_ct_RANLIB" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680 if test "x$ac_ct_RANLIB" = x; then
4681 RANLIB=":"
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684 yes:)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4688 esac
4689 RANLIB=$ac_ct_RANLIB
4690 fi
4691 else
4692 RANLIB="$ac_cv_prog_RANLIB"
4693 fi
4694
4695
4696 test "$program_prefix" != NONE &&
4697 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4698 # Use a double $ so make ignores it.
4699 test "$program_suffix" != NONE &&
4700 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4701 # Double any \ or $.
4702 # By default was `s,x,x', remove it if useless.
4703 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4704 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4705
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4708 $as_echo_n "checking for ANSI C header files... " >&6; }
4709 if test "${ac_cv_header_stdc+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 #include <stdlib.h>
4715 #include <stdarg.h>
4716 #include <string.h>
4717 #include <float.h>
4718
4719 int
4720 main ()
4721 {
4722
4723 ;
4724 return 0;
4725 }
4726 _ACEOF
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728 ac_cv_header_stdc=yes
4729 else
4730 ac_cv_header_stdc=no
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4733
4734 if test $ac_cv_header_stdc = yes; then
4735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 #include <string.h>
4739
4740 _ACEOF
4741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4742 $EGREP "memchr" >/dev/null 2>&1; then :
4743
4744 else
4745 ac_cv_header_stdc=no
4746 fi
4747 rm -f conftest*
4748
4749 fi
4750
4751 if test $ac_cv_header_stdc = yes; then
4752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4755 #include <stdlib.h>
4756
4757 _ACEOF
4758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4759 $EGREP "free" >/dev/null 2>&1; then :
4760
4761 else
4762 ac_cv_header_stdc=no
4763 fi
4764 rm -f conftest*
4765
4766 fi
4767
4768 if test $ac_cv_header_stdc = yes; then
4769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4770 if test "$cross_compiling" = yes; then :
4771 :
4772 else
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <ctype.h>
4776 #include <stdlib.h>
4777 #if ((' ' & 0x0FF) == 0x020)
4778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4780 #else
4781 # define ISLOWER(c) \
4782 (('a' <= (c) && (c) <= 'i') \
4783 || ('j' <= (c) && (c) <= 'r') \
4784 || ('s' <= (c) && (c) <= 'z'))
4785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4786 #endif
4787
4788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4789 int
4790 main ()
4791 {
4792 int i;
4793 for (i = 0; i < 256; i++)
4794 if (XOR (islower (i), ISLOWER (i))
4795 || toupper (i) != TOUPPER (i))
4796 return 2;
4797 return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_c_try_run "$LINENO"; then :
4801
4802 else
4803 ac_cv_header_stdc=no
4804 fi
4805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4806 conftest.$ac_objext conftest.beam conftest.$ac_ext
4807 fi
4808
4809 fi
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4812 $as_echo "$ac_cv_header_stdc" >&6; }
4813 if test $ac_cv_header_stdc = yes; then
4814
4815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4816
4817 fi
4818
4819
4820 # See if we are building with C++, and substitute COMPILER.
4821
4822 # Check whether --enable-build-with-cxx was given.
4823 if test "${enable_build_with_cxx+set}" = set; then :
4824 enableval=$enable_build_with_cxx; case $enableval in
4825 yes | no)
4826 ;;
4827 *)
4828 as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4829 esac
4830 else
4831 enable_build_with_cxx=no
4832 fi
4833
4834
4835 if test "$enable_build_with_cxx" = "yes"; then
4836 COMPILER='$(CXX)'
4837 else
4838 COMPILER='$(CC)'
4839 fi
4840
4841
4842
4843 # Set the 'development' global.
4844 . $srcdir/../../bfd/development.sh
4845
4846 # Enable -lmcheck by default (it provides cheap-enough memory
4847 # mangling), but turn it off for releases.
4848 if $development; then
4849 libmcheck_default=yes
4850 else
4851 libmcheck_default=no
4852 fi
4853
4854 # Check whether --enable-libmcheck was given.
4855 if test "${enable_libmcheck+set}" = set; then :
4856 enableval=$enable_libmcheck; case "${enableval}" in
4857 yes | y) ENABLE_LIBMCHECK="yes" ;;
4858 no | n) ENABLE_LIBMCHECK="no" ;;
4859 *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4860 esac
4861 fi
4862
4863
4864 if test -z "${ENABLE_LIBMCHECK}"; then
4865 ENABLE_LIBMCHECK=${libmcheck_default}
4866 fi
4867
4868 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4870 $as_echo_n "checking for main in -lmcheck... " >&6; }
4871 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 ac_check_lib_save_LIBS=$LIBS
4875 LIBS="-lmcheck $LIBS"
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4878
4879
4880 int
4881 main ()
4882 {
4883 return main ();
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_link "$LINENO"; then :
4889 ac_cv_lib_mcheck_main=yes
4890 else
4891 ac_cv_lib_mcheck_main=no
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext \
4894 conftest$ac_exeext conftest.$ac_ext
4895 LIBS=$ac_check_lib_save_LIBS
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4898 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4899 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
4900 cat >>confdefs.h <<_ACEOF
4901 #define HAVE_LIBMCHECK 1
4902 _ACEOF
4903
4904 LIBS="-lmcheck $LIBS"
4905
4906 fi
4907
4908 fi
4909
4910
4911 case ${build_alias} in
4912 "") build_noncanonical=${build} ;;
4913 *) build_noncanonical=${build_alias} ;;
4914 esac
4915
4916 case ${host_alias} in
4917 "") host_noncanonical=${build_noncanonical} ;;
4918 *) host_noncanonical=${host_alias} ;;
4919 esac
4920
4921 case ${target_alias} in
4922 "") target_noncanonical=${host_noncanonical} ;;
4923 *) target_noncanonical=${target_alias} ;;
4924 esac
4925
4926
4927
4928
4929
4930
4931 # Dependency checking.
4932 rm -rf .tst 2>/dev/null
4933 mkdir .tst 2>/dev/null
4934 if test -d .tst; then
4935 am__leading_dot=.
4936 else
4937 am__leading_dot=_
4938 fi
4939 rmdir .tst 2>/dev/null
4940
4941 DEPDIR="${am__leading_dot}deps"
4942
4943 ac_config_commands="$ac_config_commands depdir"
4944
4945
4946 depcc="$CC" am_compiler_list=
4947
4948 am_depcomp=$ac_aux_dir/depcomp
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4950 $as_echo_n "checking dependency style of $depcc... " >&6; }
4951 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -f "$am_depcomp"; then
4955 # We make a subdir and do the tests there. Otherwise we can end up
4956 # making bogus files that we don't know about and never remove. For
4957 # instance it was reported that on HP-UX the gcc test will end up
4958 # making a dummy file named `D' -- because `-MD' means `put the output
4959 # in D'.
4960 mkdir conftest.dir
4961 # Copy depcomp to subdir because otherwise we won't find it if we're
4962 # using a relative directory.
4963 cp "$am_depcomp" conftest.dir
4964 cd conftest.dir
4965 # We will build objects and dependencies in a subdirectory because
4966 # it helps to detect inapplicable dependency modes. For instance
4967 # both Tru64's cc and ICC support -MD to output dependencies as a
4968 # side effect of compilation, but ICC will put the dependencies in
4969 # the current directory while Tru64 will put them in the object
4970 # directory.
4971 mkdir sub
4972
4973 am_cv_CC_dependencies_compiler_type=none
4974 if test "$am_compiler_list" = ""; then
4975 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4976 fi
4977 for depmode in $am_compiler_list; do
4978 if test $depmode = none; then break; fi
4979
4980 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4981 # Setup a source with many dependencies, because some compilers
4982 # like to wrap large dependency lists on column 80 (with \), and
4983 # we should not choose a depcomp mode which is confused by this.
4984 #
4985 # We need to recreate these files for each test, as the compiler may
4986 # overwrite some of them when testing with obscure command lines.
4987 # This happens at least with the AIX C compiler.
4988 : > sub/conftest.c
4989 for i in 1 2 3 4 5 6; do
4990 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4991 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4992 # Solaris 8's {/usr,}/bin/sh.
4993 touch sub/conftst$i.h
4994 done
4995 echo "include sub/conftest.Po" > confmf
4996
4997 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4998 # mode. It turns out that the SunPro C++ compiler does not properly
4999 # handle `-M -o', and we need to detect this.
5000 depcmd="depmode=$depmode \
5001 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5002 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5003 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5004 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5005 if env $depcmd > conftest.err 2>&1 &&
5006 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5007 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5008 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5009 # icc doesn't choke on unknown options, it will just issue warnings
5010 # or remarks (even with -Werror). So we grep stderr for any message
5011 # that says an option was ignored or not supported.
5012 # When given -MP, icc 7.0 and 7.1 complain thusly:
5013 # icc: Command line warning: ignoring option '-M'; no argument required
5014 # The diagnosis changed in icc 8.0:
5015 # icc: Command line remark: option '-MP' not supported
5016 if (grep 'ignoring option' conftest.err ||
5017 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5018 am_cv_CC_dependencies_compiler_type=$depmode
5019 $as_echo "$as_me:$LINENO: success" >&5
5020 break
5021 fi
5022 fi
5023 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5024 sed -e 's/^/| /' < conftest.err >&5
5025 done
5026
5027 cd ..
5028 rm -rf conftest.dir
5029 else
5030 am_cv_CC_dependencies_compiler_type=none
5031 fi
5032
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5035 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5036 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5037 then as_fn_error "no usable dependency style found" "$LINENO" 5
5038 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5039
5040 fi
5041
5042
5043 # Check for the 'make' the user wants to use.
5044 for ac_prog in make
5045 do
5046 # Extract the first word of "$ac_prog", so it can be a program name with args.
5047 set dummy $ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if test "${ac_cv_prog_MAKE+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$MAKE"; then
5054 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_MAKE="$ac_prog"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 MAKE=$ac_cv_prog_MAKE
5074 if test -n "$MAKE"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5076 $as_echo "$MAKE" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5080 fi
5081
5082
5083 test -n "$MAKE" && break
5084 done
5085
5086 MAKE_IS_GNU=
5087 case "`$MAKE --version 2>&1 | sed 1q`" in
5088 *GNU*)
5089 MAKE_IS_GNU=yes
5090 ;;
5091 esac
5092 if test "$MAKE_IS_GNU" = yes; then
5093 GMAKE_TRUE=
5094 GMAKE_FALSE='#'
5095 else
5096 GMAKE_TRUE='#'
5097 GMAKE_FALSE=
5098 fi
5099
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5101 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5102 set x ${MAKE-make}
5103 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5104 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 cat >conftest.make <<\_ACEOF
5108 SHELL = /bin/sh
5109 all:
5110 @echo '@@@%%%=$(MAKE)=@@@%%%'
5111 _ACEOF
5112 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5113 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5114 *@@@%%%=?*=@@@%%%*)
5115 eval ac_cv_prog_make_${ac_make}_set=yes;;
5116 *)
5117 eval ac_cv_prog_make_${ac_make}_set=no;;
5118 esac
5119 rm -f conftest.make
5120 fi
5121 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5123 $as_echo "yes" >&6; }
5124 SET_MAKE=
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5128 SET_MAKE="MAKE=${MAKE-make}"
5129 fi
5130
5131
5132 gnulib_extra_configure_args=
5133 # If large-file support is disabled, make sure gnulib does the same.
5134 if test "$enable_largefile" = no; then
5135 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5136 fi
5137
5138 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
5139 # to find the the source subdir to be configured directly under
5140 # gdbserver/. We need to build gnulib under some other directory not
5141 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
5142 # build it in the same directory, when building in the source dir.
5143
5144 in_src="../gnulib"
5145 in_build="build-gnulib-gdbserver"
5146 in_extra_args="$gnulib_extra_configure_args"
5147
5148 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5149 # so they do not pile up.
5150 ac_sub_configure_args=
5151 ac_prev=
5152 eval "set x $ac_configure_args"
5153 shift
5154 for ac_arg
5155 do
5156 if test -n "$ac_prev"; then
5157 ac_prev=
5158 continue
5159 fi
5160 case $ac_arg in
5161 -cache-file | --cache-file | --cache-fil | --cache-fi \
5162 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5163 ac_prev=cache_file ;;
5164 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5165 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5166 | --c=*)
5167 ;;
5168 --config-cache | -C)
5169 ;;
5170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5171 ac_prev=srcdir ;;
5172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5173 ;;
5174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5175 ac_prev=prefix ;;
5176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5177 ;;
5178 --disable-option-checking)
5179 ;;
5180 *)
5181 case $ac_arg in
5182 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5183 esac
5184 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5185 esac
5186 done
5187
5188 # Always prepend --prefix to ensure using the same prefix
5189 # in subdir configurations.
5190 ac_arg="--prefix=$prefix"
5191 case $ac_arg in
5192 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5193 esac
5194 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5195
5196 # Pass --silent
5197 if test "$silent" = yes; then
5198 ac_sub_configure_args="--silent $ac_sub_configure_args"
5199 fi
5200
5201 # Always prepend --disable-option-checking to silence warnings, since
5202 # different subdirs can have different --enable and --with options.
5203 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5204
5205 ac_popdir=`pwd`
5206 ac_dir=$in_build
5207
5208 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5210 $as_echo "$ac_msg" >&6
5211 as_dir="$ac_dir"; as_fn_mkdir_p
5212
5213 case $srcdir in
5214 [\\/]* | ?:[\\/]* )
5215 ac_srcdir=$srcdir/$in_src ;;
5216 *) # Relative name.
5217 ac_srcdir=../$srcdir/$in_src ;;
5218 esac
5219
5220 cd "$ac_dir"
5221
5222 ac_sub_configure=$ac_srcdir/configure
5223
5224 # Make the cache file name correct relative to the subdirectory.
5225 case $cache_file in
5226 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5227 *) # Relative name.
5228 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5229 esac
5230
5231 if test -n "$in_extra_args"; then
5232 # Add the extra args at the end.
5233 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5234 fi
5235
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
5237 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5238 # The eval makes quoting arguments work.
5239 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5240 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5241 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5242
5243 cd "$ac_popdir"
5244
5245
5246
5247 in_src="../../libiberty"
5248 in_build="build-libiberty-gdbserver"
5249 in_extra_args=
5250
5251 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5252 # so they do not pile up.
5253 ac_sub_configure_args=
5254 ac_prev=
5255 eval "set x $ac_configure_args"
5256 shift
5257 for ac_arg
5258 do
5259 if test -n "$ac_prev"; then
5260 ac_prev=
5261 continue
5262 fi
5263 case $ac_arg in
5264 -cache-file | --cache-file | --cache-fil | --cache-fi \
5265 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5266 ac_prev=cache_file ;;
5267 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5268 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5269 | --c=*)
5270 ;;
5271 --config-cache | -C)
5272 ;;
5273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5274 ac_prev=srcdir ;;
5275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5276 ;;
5277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5278 ac_prev=prefix ;;
5279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5280 ;;
5281 --disable-option-checking)
5282 ;;
5283 *)
5284 case $ac_arg in
5285 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5286 esac
5287 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5288 esac
5289 done
5290
5291 # Always prepend --prefix to ensure using the same prefix
5292 # in subdir configurations.
5293 ac_arg="--prefix=$prefix"
5294 case $ac_arg in
5295 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5296 esac
5297 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5298
5299 # Pass --silent
5300 if test "$silent" = yes; then
5301 ac_sub_configure_args="--silent $ac_sub_configure_args"
5302 fi
5303
5304 # Always prepend --disable-option-checking to silence warnings, since
5305 # different subdirs can have different --enable and --with options.
5306 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5307
5308 ac_popdir=`pwd`
5309 ac_dir=$in_build
5310
5311 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5313 $as_echo "$ac_msg" >&6
5314 as_dir="$ac_dir"; as_fn_mkdir_p
5315
5316 case $srcdir in
5317 [\\/]* | ?:[\\/]* )
5318 ac_srcdir=$srcdir/$in_src ;;
5319 *) # Relative name.
5320 ac_srcdir=../$srcdir/$in_src ;;
5321 esac
5322
5323 cd "$ac_dir"
5324
5325 ac_sub_configure=$ac_srcdir/configure
5326
5327 # Make the cache file name correct relative to the subdirectory.
5328 case $cache_file in
5329 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5330 *) # Relative name.
5331 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5332 esac
5333
5334 if test -n "$in_extra_args"; then
5335 # Add the extra args at the end.
5336 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5337 fi
5338
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
5340 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5341 # The eval makes quoting arguments work.
5342 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5343 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5344 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5345
5346 cd "$ac_popdir"
5347
5348
5349 for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h fcntl.h signal.h sys/file.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h
5350 do :
5351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5352 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5353 eval as_val=\$$as_ac_Header
5354 if test "x$as_val" = x""yes; then :
5355 cat >>confdefs.h <<_ACEOF
5356 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5357 _ACEOF
5358
5359 fi
5360
5361 done
5362
5363 for ac_func in getauxval pread pwrite pread64 setns
5364 do :
5365 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5367 eval as_val=\$$as_ac_var
5368 if test "x$as_val" = x""yes; then :
5369 cat >>confdefs.h <<_ACEOF
5370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5371 _ACEOF
5372
5373 fi
5374 done
5375
5376
5377
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5379 $as_echo_n "checking for ANSI C header files... " >&6; }
5380 if test "${ac_cv_header_stdc+set}" = set; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5385 #include <stdlib.h>
5386 #include <stdarg.h>
5387 #include <string.h>
5388 #include <float.h>
5389
5390 int
5391 main ()
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399 ac_cv_header_stdc=yes
5400 else
5401 ac_cv_header_stdc=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404
5405 if test $ac_cv_header_stdc = yes; then
5406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409 #include <string.h>
5410
5411 _ACEOF
5412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5413 $EGREP "memchr" >/dev/null 2>&1; then :
5414
5415 else
5416 ac_cv_header_stdc=no
5417 fi
5418 rm -f conftest*
5419
5420 fi
5421
5422 if test $ac_cv_header_stdc = yes; then
5423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5425 /* end confdefs.h. */
5426 #include <stdlib.h>
5427
5428 _ACEOF
5429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5430 $EGREP "free" >/dev/null 2>&1; then :
5431
5432 else
5433 ac_cv_header_stdc=no
5434 fi
5435 rm -f conftest*
5436
5437 fi
5438
5439 if test $ac_cv_header_stdc = yes; then
5440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5441 if test "$cross_compiling" = yes; then :
5442 :
5443 else
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #include <ctype.h>
5447 #include <stdlib.h>
5448 #if ((' ' & 0x0FF) == 0x020)
5449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5451 #else
5452 # define ISLOWER(c) \
5453 (('a' <= (c) && (c) <= 'i') \
5454 || ('j' <= (c) && (c) <= 'r') \
5455 || ('s' <= (c) && (c) <= 'z'))
5456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5457 #endif
5458
5459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5460 int
5461 main ()
5462 {
5463 int i;
5464 for (i = 0; i < 256; i++)
5465 if (XOR (islower (i), ISLOWER (i))
5466 || toupper (i) != TOUPPER (i))
5467 return 2;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_run "$LINENO"; then :
5472
5473 else
5474 ac_cv_header_stdc=no
5475 fi
5476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5477 conftest.$ac_objext conftest.beam conftest.$ac_ext
5478 fi
5479
5480 fi
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5483 $as_echo "$ac_cv_header_stdc" >&6; }
5484 if test $ac_cv_header_stdc = yes; then
5485
5486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5487
5488 fi
5489
5490 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5491 # for constant arguments. Useless!
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5493 $as_echo_n "checking for working alloca.h... " >&6; }
5494 if test "${ac_cv_working_alloca_h+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 #include <alloca.h>
5500 int
5501 main ()
5502 {
5503 char *p = (char *) alloca (2 * sizeof (int));
5504 if (p) return 0;
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 if ac_fn_c_try_link "$LINENO"; then :
5510 ac_cv_working_alloca_h=yes
5511 else
5512 ac_cv_working_alloca_h=no
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext \
5515 conftest$ac_exeext conftest.$ac_ext
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5518 $as_echo "$ac_cv_working_alloca_h" >&6; }
5519 if test $ac_cv_working_alloca_h = yes; then
5520
5521 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5522
5523 fi
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5526 $as_echo_n "checking for alloca... " >&6; }
5527 if test "${ac_cv_func_alloca_works+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 #ifdef __GNUC__
5533 # define alloca __builtin_alloca
5534 #else
5535 # ifdef _MSC_VER
5536 # include <malloc.h>
5537 # define alloca _alloca
5538 # else
5539 # ifdef HAVE_ALLOCA_H
5540 # include <alloca.h>
5541 # else
5542 # ifdef _AIX
5543 #pragma alloca
5544 # else
5545 # ifndef alloca /* predefined by HP cc +Olibcalls */
5546 char *alloca ();
5547 # endif
5548 # endif
5549 # endif
5550 # endif
5551 #endif
5552
5553 int
5554 main ()
5555 {
5556 char *p = (char *) alloca (1);
5557 if (p) return 0;
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 if ac_fn_c_try_link "$LINENO"; then :
5563 ac_cv_func_alloca_works=yes
5564 else
5565 ac_cv_func_alloca_works=no
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5571 $as_echo "$ac_cv_func_alloca_works" >&6; }
5572
5573 if test $ac_cv_func_alloca_works = yes; then
5574
5575 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5576
5577 else
5578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5579 # that cause trouble. Some versions do not even contain alloca or
5580 # contain a buggy version. If you still want to use their alloca,
5581 # use ar to extract alloca.o from them instead of compiling alloca.c.
5582
5583 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5584
5585 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5586
5587
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5589 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5590 if test "${ac_cv_os_cray+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #if defined CRAY && ! defined CRAY2
5596 webecray
5597 #else
5598 wenotbecray
5599 #endif
5600
5601 _ACEOF
5602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5603 $EGREP "webecray" >/dev/null 2>&1; then :
5604 ac_cv_os_cray=yes
5605 else
5606 ac_cv_os_cray=no
5607 fi
5608 rm -f conftest*
5609
5610 fi
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5612 $as_echo "$ac_cv_os_cray" >&6; }
5613 if test $ac_cv_os_cray = yes; then
5614 for ac_func in _getb67 GETB67 getb67; do
5615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5617 eval as_val=\$$as_ac_var
5618 if test "x$as_val" = x""yes; then :
5619
5620 cat >>confdefs.h <<_ACEOF
5621 #define CRAY_STACKSEG_END $ac_func
5622 _ACEOF
5623
5624 break
5625 fi
5626
5627 done
5628 fi
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5631 $as_echo_n "checking stack direction for C alloca... " >&6; }
5632 if test "${ac_cv_c_stack_direction+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test "$cross_compiling" = yes; then :
5636 ac_cv_c_stack_direction=0
5637 else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 $ac_includes_default
5641 int
5642 find_stack_direction ()
5643 {
5644 static char *addr = 0;
5645 auto char dummy;
5646 if (addr == 0)
5647 {
5648 addr = &dummy;
5649 return find_stack_direction ();
5650 }
5651 else
5652 return (&dummy > addr) ? 1 : -1;
5653 }
5654
5655 int
5656 main ()
5657 {
5658 return find_stack_direction () < 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_run "$LINENO"; then :
5662 ac_cv_c_stack_direction=1
5663 else
5664 ac_cv_c_stack_direction=-1
5665 fi
5666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5667 conftest.$ac_objext conftest.beam conftest.$ac_ext
5668 fi
5669
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5672 $as_echo "$ac_cv_c_stack_direction" >&6; }
5673 cat >>confdefs.h <<_ACEOF
5674 #define STACK_DIRECTION $ac_cv_c_stack_direction
5675 _ACEOF
5676
5677
5678 fi
5679
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5683 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5684 if test "${am_cv_langinfo_codeset+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <langinfo.h>
5690 int
5691 main ()
5692 {
5693 char* cs = nl_langinfo(CODESET);
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 if ac_fn_c_try_link "$LINENO"; then :
5699 am_cv_langinfo_codeset=yes
5700 else
5701 am_cv_langinfo_codeset=no
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
5705
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5708 $as_echo "$am_cv_langinfo_codeset" >&6; }
5709 if test $am_cv_langinfo_codeset = yes; then
5710
5711 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5712
5713 fi
5714
5715
5716 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/syscall.h sys/un.h sys/wait.h thread_db.h wait.h
5717 do :
5718 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5719 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5720 eval as_val=\$$as_ac_Header
5721 if test "x$as_val" = x""yes; then :
5722 cat >>confdefs.h <<_ACEOF
5723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5724 _ACEOF
5725
5726 fi
5727
5728 done
5729
5730
5731 for ac_func in fdwalk getrlimit pipe pipe2 socketpair
5732 do :
5733 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5734 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5735 eval as_val=\$$as_ac_var
5736 if test "x$as_val" = x""yes; then :
5737 cat >>confdefs.h <<_ACEOF
5738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5739 _ACEOF
5740
5741 fi
5742 done
5743
5744
5745 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5746 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
5747 ac_have_decl=1
5748 else
5749 ac_have_decl=0
5750 fi
5751
5752 cat >>confdefs.h <<_ACEOF
5753 #define HAVE_DECL_STRERROR $ac_have_decl
5754 _ACEOF
5755 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5756 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
5757 ac_have_decl=1
5758 else
5759 ac_have_decl=0
5760 fi
5761
5762 cat >>confdefs.h <<_ACEOF
5763 #define HAVE_DECL_STRSTR $ac_have_decl
5764 _ACEOF
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
5768 $as_echo_n "checking for sigsetjmp... " >&6; }
5769 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5774
5775 #include <setjmp.h>
5776
5777 int
5778 main ()
5779 {
5780 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
5781 ;
5782 return 0;
5783 }
5784 _ACEOF
5785 if ac_fn_c_try_compile "$LINENO"; then :
5786 gdb_cv_func_sigsetjmp=yes
5787 else
5788 gdb_cv_func_sigsetjmp=no
5789 fi
5790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
5793 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
5794 if test $gdb_cv_func_sigsetjmp = yes; then
5795
5796 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
5797
5798 fi
5799
5800
5801 # Check the return and argument types of ptrace.
5802
5803
5804
5805 for ac_header in sys/ptrace.h ptrace.h
5806 do :
5807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5808 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5809 eval as_val=\$$as_ac_Header
5810 if test "x$as_val" = x""yes; then :
5811 cat >>confdefs.h <<_ACEOF
5812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5813 _ACEOF
5814
5815 fi
5816
5817 done
5818
5819
5820 # Needs to be tested in C++ mode, to detect whether we need to cast
5821 # the first argument to enum __ptrace_request.
5822 if test "$enable_build_with_cxx" = "yes"; then
5823 ac_ext=cpp
5824 ac_cpp='$CXXCPP $CPPFLAGS'
5825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5828
5829 fi
5830
5831 gdb_ptrace_headers='
5832 #include <sys/types.h>
5833 #if HAVE_SYS_PTRACE_H
5834 # include <sys/ptrace.h>
5835 #endif
5836 #if HAVE_UNISTD_H
5837 # include <unistd.h>
5838 #endif
5839 '
5840 # There is no point in checking if we don't have a prototype.
5841 ac_fn_cxx_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
5842 "
5843 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
5844 ac_have_decl=1
5845 else
5846 ac_have_decl=0
5847 fi
5848
5849 cat >>confdefs.h <<_ACEOF
5850 #define HAVE_DECL_PTRACE $ac_have_decl
5851 _ACEOF
5852 if test $ac_have_decl = 1; then :
5853
5854 else
5855
5856 : ${gdb_cv_func_ptrace_ret='int'}
5857 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
5858
5859 fi
5860
5861 # Check return type. Varargs (used on GNU/Linux) conflict with the
5862 # empty argument list, so check for that explicitly.
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
5864 $as_echo_n "checking return type of ptrace... " >&6; }
5865 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 $gdb_ptrace_headers
5871 int
5872 main ()
5873 {
5874 extern long ptrace (enum __ptrace_request, ...);
5875 ;
5876 return 0;
5877 }
5878 _ACEOF
5879 if ac_fn_cxx_try_compile "$LINENO"; then :
5880 gdb_cv_func_ptrace_ret='long'
5881 else
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 $gdb_ptrace_headers
5885 int
5886 main ()
5887 {
5888 extern int ptrace ();
5889 ;
5890 return 0;
5891 }
5892 _ACEOF
5893 if ac_fn_cxx_try_compile "$LINENO"; then :
5894 gdb_cv_func_ptrace_ret='int'
5895 else
5896 gdb_cv_func_ptrace_ret='long'
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5899 fi
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 fi
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
5903 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
5904
5905 cat >>confdefs.h <<_ACEOF
5906 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
5907 _ACEOF
5908
5909 # Check argument types.
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
5911 $as_echo_n "checking types of arguments for ptrace... " >&6; }
5912 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918 $gdb_ptrace_headers
5919 int
5920 main ()
5921 {
5922 extern long ptrace (enum __ptrace_request, ...);
5923 ;
5924 return 0;
5925 }
5926 _ACEOF
5927 if ac_fn_cxx_try_compile "$LINENO"; then :
5928 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
5929 else
5930
5931 for gdb_arg1 in 'int' 'long'; do
5932 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5933 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
5934 for gdb_arg4 in 'int' 'long' 'void *'; do
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 $gdb_ptrace_headers
5938 int
5939 main ()
5940 {
5941
5942 extern $gdb_cv_func_ptrace_ret
5943 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
5944
5945 ;
5946 return 0;
5947 }
5948 _ACEOF
5949 if ac_fn_cxx_try_compile "$LINENO"; then :
5950 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
5951 break 4;
5952 fi
5953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 for gdb_arg5 in 'int *' 'int' 'long'; do
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957 $gdb_ptrace_headers
5958 int
5959 main ()
5960 {
5961
5962 extern $gdb_cv_func_ptrace_ret
5963 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
5964
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 if ac_fn_cxx_try_compile "$LINENO"; then :
5970
5971 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
5972 break 5;
5973 fi
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 done
5976 done
5977 done
5978 done
5979 done
5980 # Provide a safe default value.
5981 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
5982
5983 fi
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 fi
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
5987 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
5988 ac_save_IFS=$IFS; IFS=','
5989 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
5990 IFS=$ac_save_IFS
5991 shift
5992
5993 cat >>confdefs.h <<_ACEOF
5994 #define PTRACE_TYPE_ARG1 $1
5995 _ACEOF
5996
5997
5998 cat >>confdefs.h <<_ACEOF
5999 #define PTRACE_TYPE_ARG3 $3
6000 _ACEOF
6001
6002
6003 cat >>confdefs.h <<_ACEOF
6004 #define PTRACE_TYPE_ARG4 $4
6005 _ACEOF
6006
6007 if test -n "$5"; then
6008
6009 cat >>confdefs.h <<_ACEOF
6010 #define PTRACE_TYPE_ARG5 $5
6011 _ACEOF
6012
6013 fi
6014
6015 if test "$enable_build_with_cxx" = "yes"; then
6016 ac_ext=c
6017 ac_cpp='$CPP $CPPFLAGS'
6018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022 fi
6023
6024
6025 # Check for UST
6026 ustlibs=""
6027 ustinc=""
6028
6029
6030 # Check whether --with-ust was given.
6031 if test "${with_ust+set}" = set; then :
6032 withval=$with_ust;
6033 fi
6034
6035
6036 # Check whether --with-ust_include was given.
6037 if test "${with_ust_include+set}" = set; then :
6038 withval=$with_ust_include;
6039 fi
6040
6041
6042 # Check whether --with-ust_lib was given.
6043 if test "${with_ust_lib+set}" = set; then :
6044 withval=$with_ust_lib;
6045 fi
6046
6047
6048 case $with_ust in
6049 no)
6050 ustlibs=
6051 ustinc=
6052 ;;
6053 "" | yes)
6054 ustlibs=" -lust "
6055 ustinc=""
6056 ;;
6057 *)
6058 ustlibs="-L$with_ust/lib -lust"
6059 ustinc="-I$with_ust/include "
6060 ;;
6061 esac
6062 if test "x$with_ust_include" != x; then
6063 ustinc="-I$with_ust_include "
6064 fi
6065 if test "x$with_ust_lib" != x; then
6066 ustlibs="-L$with_ust_lib -lust"
6067 fi
6068
6069 if test "x$with_ust" != "xno"; then
6070 saved_CFLAGS="$CFLAGS"
6071 CFLAGS="$CFLAGS $ustinc"
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
6073 $as_echo_n "checking for ust... " >&6; }
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076
6077 #define CONFIG_UST_GDB_INTEGRATION
6078 #include <ust/ust.h>
6079
6080 int
6081 main ()
6082 {
6083
6084 ;
6085 return 0;
6086 }
6087 _ACEOF
6088 if ac_fn_c_try_compile "$LINENO"; then :
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6090 $as_echo "yes" >&6; };
6091 $as_echo "#define HAVE_UST 1" >>confdefs.h
6092
6093 else
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }; ustlibs= ; ustinc=
6096 fi
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 CFLAGS="$saved_CFLAGS"
6099 fi
6100
6101 # Flags needed for UST
6102
6103
6104
6105
6106 # Check whether --enable-werror was given.
6107 if test "${enable_werror+set}" = set; then :
6108 enableval=$enable_werror; case "${enableval}" in
6109 yes | y) ERROR_ON_WARNING="yes" ;;
6110 no | n) ERROR_ON_WARNING="no" ;;
6111 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6112 esac
6113 fi
6114
6115
6116 # Enable -Werror by default when using gcc. Turn it off for releases.
6117 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
6118 ERROR_ON_WARNING=yes
6119 fi
6120
6121 WERROR_CFLAGS=""
6122 if test "${ERROR_ON_WARNING}" = yes ; then
6123 WERROR_CFLAGS="-Werror"
6124 fi
6125
6126 # These options work in either C or C++ modes.
6127 build_warnings="-Wall -Wpointer-arith \
6128 -Wno-unused -Wunused-value -Wunused-function \
6129 -Wno-switch -Wno-char-subscripts \
6130 -Wempty-body"
6131
6132 # Now add in C and C++ specific options, depending on mode.
6133 if test "$enable_build_with_cxx" = "yes"; then
6134 build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
6135 -Wno-narrowing"
6136 else
6137 build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
6138 -Wdeclaration-after-statement -Wmissing-parameter-type \
6139 -Wold-style-declaration -Wold-style-definition"
6140 fi
6141
6142 # Enable -Wno-format by default when using gcc on mingw since many
6143 # GCC versions complain about %I64.
6144 case "${host}" in
6145 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
6146 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
6147 esac
6148
6149 # Check whether --enable-build-warnings was given.
6150 if test "${enable_build_warnings+set}" = set; then :
6151 enableval=$enable_build_warnings; case "${enableval}" in
6152 yes) ;;
6153 no) build_warnings="-w";;
6154 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6155 build_warnings="${build_warnings} ${t}";;
6156 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6157 build_warnings="${t} ${build_warnings}";;
6158 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6159 esac
6160 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6161 echo "Setting compiler warning flags = $build_warnings" 6>&1
6162 fi
6163 fi
6164 # Check whether --enable-gdb-build-warnings was given.
6165 if test "${enable_gdb_build_warnings+set}" = set; then :
6166 enableval=$enable_gdb_build_warnings; case "${enableval}" in
6167 yes) ;;
6168 no) build_warnings="-w";;
6169 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6170 build_warnings="${build_warnings} ${t}";;
6171 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6172 build_warnings="${t} ${build_warnings}";;
6173 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6174 esac
6175 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
6176 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
6177 fi
6178 fi
6179
6180 # The set of warnings supported by a C++ compiler is not the same as
6181 # of the C compiler.
6182 if test "$enable_build_with_cxx" = "yes"; then
6183 ac_ext=cpp
6184 ac_cpp='$CXXCPP $CPPFLAGS'
6185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6188
6189 fi
6190
6191 WARN_CFLAGS=""
6192 if test "x${build_warnings}" != x -a "x$GCC" = xyes
6193 then
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
6195 $as_echo_n "checking compiler warning flags... " >&6; }
6196 # Separate out the -Werror flag as some files just cannot be
6197 # compiled with it enabled.
6198 for w in ${build_warnings}; do
6199 # GCC does not complain about -Wno-unknown-warning. Invert
6200 # and test -Wunknown-warning instead.
6201 case $w in
6202 -Wno-*)
6203 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
6204 *)
6205 wtest=$w ;;
6206 esac
6207
6208 case $w in
6209 -Werr*) WERROR_CFLAGS=-Werror ;;
6210 *)
6211 # Check whether GCC accepts it.
6212 saved_CFLAGS="$CFLAGS"
6213 CFLAGS="$CFLAGS $wtest"
6214 saved_CXXFLAGS="$CXXFLAGS"
6215 CXXFLAGS="$CXXFLAGS $wtest"
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218
6219 int
6220 main ()
6221 {
6222
6223 ;
6224 return 0;
6225 }
6226 _ACEOF
6227 if ac_fn_cxx_try_compile "$LINENO"; then :
6228 WARN_CFLAGS="${WARN_CFLAGS} $w"
6229 fi
6230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231 CFLAGS="$saved_CFLAGS"
6232 CXXFLAGS="$saved_CXXFLAGS"
6233 esac
6234 done
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
6236 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
6237 fi
6238
6239
6240
6241 if test "$enable_build_with_cxx" = "yes"; then
6242 ac_ext=c
6243 ac_cpp='$CPP $CPPFLAGS'
6244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6247
6248 fi
6249
6250 case " $WARN_CFLAGS " in
6251 *" -Wmissing-prototypes "*)
6252 WARN_CFLAGS="$WARN_CFLAGS -Wno-missing-prototypes"
6253 ;;
6254 esac
6255
6256 old_LIBS="$LIBS"
6257 LIBS="$LIBS -ldl"
6258 for ac_func in dladdr
6259 do :
6260 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
6261 if test "x$ac_cv_func_dladdr" = x""yes; then :
6262 cat >>confdefs.h <<_ACEOF
6263 #define HAVE_DLADDR 1
6264 _ACEOF
6265
6266 fi
6267 done
6268
6269 LIBS="$old_LIBS"
6270
6271
6272 # Check for presence and size of long long.
6273 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6274 if test "x$ac_cv_type_long_long" = x""yes; then :
6275
6276 cat >>confdefs.h <<_ACEOF
6277 #define HAVE_LONG_LONG 1
6278 _ACEOF
6279
6280 # The cast to long int works around a bug in the HP C Compiler
6281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6283 # This bug is HP SR number 8606223364.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6285 $as_echo_n "checking size of long long... " >&6; }
6286 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6290
6291 else
6292 if test "$ac_cv_type_long_long" = yes; then
6293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6295 { as_fn_set_status 77
6296 as_fn_error "cannot compute sizeof (long long)
6297 See \`config.log' for more details." "$LINENO" 5; }; }
6298 else
6299 ac_cv_sizeof_long_long=0
6300 fi
6301 fi
6302
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6305 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6306
6307
6308
6309 cat >>confdefs.h <<_ACEOF
6310 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6311 _ACEOF
6312
6313
6314 fi
6315
6316
6317 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
6318 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
6319 ac_have_decl=1
6320 else
6321 ac_have_decl=0
6322 fi
6323
6324 cat >>confdefs.h <<_ACEOF
6325 #define HAVE_DECL_BASENAME $ac_have_decl
6326 _ACEOF
6327 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6328 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
6329 ac_have_decl=1
6330 else
6331 ac_have_decl=0
6332 fi
6333
6334 cat >>confdefs.h <<_ACEOF
6335 #define HAVE_DECL_FFS $ac_have_decl
6336 _ACEOF
6337 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6338 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
6339 ac_have_decl=1
6340 else
6341 ac_have_decl=0
6342 fi
6343
6344 cat >>confdefs.h <<_ACEOF
6345 #define HAVE_DECL_ASPRINTF $ac_have_decl
6346 _ACEOF
6347 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6348 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
6349 ac_have_decl=1
6350 else
6351 ac_have_decl=0
6352 fi
6353
6354 cat >>confdefs.h <<_ACEOF
6355 #define HAVE_DECL_VASPRINTF $ac_have_decl
6356 _ACEOF
6357 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
6358 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
6359 ac_have_decl=1
6360 else
6361 ac_have_decl=0
6362 fi
6363
6364 cat >>confdefs.h <<_ACEOF
6365 #define HAVE_DECL_SNPRINTF $ac_have_decl
6366 _ACEOF
6367 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6368 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
6369 ac_have_decl=1
6370 else
6371 ac_have_decl=0
6372 fi
6373
6374 cat >>confdefs.h <<_ACEOF
6375 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6376 _ACEOF
6377
6378 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
6379 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
6380 ac_have_decl=1
6381 else
6382 ac_have_decl=0
6383 fi
6384
6385 cat >>confdefs.h <<_ACEOF
6386 #define HAVE_DECL_STRTOL $ac_have_decl
6387 _ACEOF
6388 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
6389 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
6390 ac_have_decl=1
6391 else
6392 ac_have_decl=0
6393 fi
6394
6395 cat >>confdefs.h <<_ACEOF
6396 #define HAVE_DECL_STRTOUL $ac_have_decl
6397 _ACEOF
6398 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
6399 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
6400 ac_have_decl=1
6401 else
6402 ac_have_decl=0
6403 fi
6404
6405 cat >>confdefs.h <<_ACEOF
6406 #define HAVE_DECL_STRTOLL $ac_have_decl
6407 _ACEOF
6408 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
6409 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
6410 ac_have_decl=1
6411 else
6412 ac_have_decl=0
6413 fi
6414
6415 cat >>confdefs.h <<_ACEOF
6416 #define HAVE_DECL_STRTOULL $ac_have_decl
6417 _ACEOF
6418
6419 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
6420 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
6421 ac_have_decl=1
6422 else
6423 ac_have_decl=0
6424 fi
6425
6426 cat >>confdefs.h <<_ACEOF
6427 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6428 _ACEOF
6429
6430
6431
6432 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
6433 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
6434 ac_have_decl=1
6435 else
6436 ac_have_decl=0
6437 fi
6438
6439 cat >>confdefs.h <<_ACEOF
6440 #define HAVE_DECL_STRERROR $ac_have_decl
6441 _ACEOF
6442 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
6443 if test "x$ac_cv_have_decl_perror" = x""yes; then :
6444 ac_have_decl=1
6445 else
6446 ac_have_decl=0
6447 fi
6448
6449 cat >>confdefs.h <<_ACEOF
6450 #define HAVE_DECL_PERROR $ac_have_decl
6451 _ACEOF
6452 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6453 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
6454 ac_have_decl=1
6455 else
6456 ac_have_decl=0
6457 fi
6458
6459 cat >>confdefs.h <<_ACEOF
6460 #define HAVE_DECL_VASPRINTF $ac_have_decl
6461 _ACEOF
6462 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6463 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
6464 ac_have_decl=1
6465 else
6466 ac_have_decl=0
6467 fi
6468
6469 cat >>confdefs.h <<_ACEOF
6470 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6471 _ACEOF
6472
6473
6474 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6475 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6476
6477 cat >>confdefs.h <<_ACEOF
6478 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6479 _ACEOF
6480
6481
6482 fi
6483 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6484 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6485
6486 cat >>confdefs.h <<_ACEOF
6487 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6488 _ACEOF
6489
6490
6491 fi
6492
6493
6494 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6495 #include <sys/socket.h>
6496
6497 "
6498 if test "x$ac_cv_type_socklen_t" = x""yes; then :
6499
6500 cat >>confdefs.h <<_ACEOF
6501 #define HAVE_SOCKLEN_T 1
6502 _ACEOF
6503
6504
6505 fi
6506
6507
6508 case "${target}" in
6509 *-android*)
6510 # Starting with NDK version 9, <elf.h> actually includes definitions
6511 # of Elf32_auxv_t and Elf64_auxv_t. But sadly, <elf.h> includes
6512 # <sys/exec_elf.h> which defines some of the ELF types incorrectly,
6513 # leading to conflicts with the defintions from <linux/elf.h>.
6514 # This makes it impossible for us to include both <elf.h> and
6515 # <linux/elf.h>, which means that, in practice, we do not have
6516 # access to Elf32_auxv_t and Elf64_auxv_t on this platform.
6517 # Therefore, do not try to auto-detect availability, as it would
6518 # get it wrong on this platform.
6519 ;;
6520 *)
6521 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
6522
6523 "
6524 if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
6525
6526 cat >>confdefs.h <<_ACEOF
6527 #define HAVE_ELF32_AUXV_T 1
6528 _ACEOF
6529
6530
6531 fi
6532 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
6533
6534 "
6535 if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
6536
6537 cat >>confdefs.h <<_ACEOF
6538 #define HAVE_ELF64_AUXV_T 1
6539 _ACEOF
6540
6541
6542 fi
6543
6544 esac
6545
6546
6547
6548 # Check whether --with-pkgversion was given.
6549 if test "${with_pkgversion+set}" = set; then :
6550 withval=$with_pkgversion; case "$withval" in
6551 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6552 no) PKGVERSION= ;;
6553 *) PKGVERSION="($withval) " ;;
6554 esac
6555 else
6556 PKGVERSION="(GDB) "
6557
6558 fi
6559
6560
6561
6562
6563
6564 # Check whether --with-bugurl was given.
6565 if test "${with_bugurl+set}" = set; then :
6566 withval=$with_bugurl; case "$withval" in
6567 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6568 no) BUGURL=
6569 ;;
6570 *) BUGURL="$withval"
6571 ;;
6572 esac
6573 else
6574 BUGURL="http://www.gnu.org/software/gdb/bugs/"
6575
6576 fi
6577
6578 case ${BUGURL} in
6579 "")
6580 REPORT_BUGS_TO=
6581 REPORT_BUGS_TEXI=
6582 ;;
6583 *)
6584 REPORT_BUGS_TO="<$BUGURL>"
6585 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6586 ;;
6587 esac;
6588
6589
6590
6591
6592 cat >>confdefs.h <<_ACEOF
6593 #define PKGVERSION "$PKGVERSION"
6594 _ACEOF
6595
6596
6597 cat >>confdefs.h <<_ACEOF
6598 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6599 _ACEOF
6600
6601
6602 # Check for various supplementary target information (beyond the
6603 # triplet) which might affect the choices in configure.srv.
6604 case "${target}" in
6605 i[34567]86-*-linux*)
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
6607 $as_echo_n "checking if building for x86-64... " >&6; }
6608 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
6609 $as_echo_n "(cached) " >&6
6610 else
6611 save_CPPFLAGS="$CPPFLAGS"
6612 CPPFLAGS="$CPPFLAGS $CFLAGS"
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6615
6616 #if __x86_64__
6617 got it
6618 #endif
6619
6620 _ACEOF
6621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6622 $EGREP "got it" >/dev/null 2>&1; then :
6623 gdb_cv_i386_is_x86_64=yes
6624 else
6625 gdb_cv_i386_is_x86_64=no
6626 fi
6627 rm -f conftest*
6628
6629 CPPFLAGS="$save_CPPFLAGS"
6630 fi
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
6632 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
6633 ;;
6634 m68k-*-*)
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
6636 $as_echo_n "checking if building for Coldfire... " >&6; }
6637 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 save_CPPFLAGS="$CPPFLAGS"
6641 CPPFLAGS="$CPPFLAGS $CFLAGS"
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644
6645 #ifdef __mcoldfire__
6646 got it
6647 #endif
6648
6649 _ACEOF
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 $EGREP "got it" >/dev/null 2>&1; then :
6652 gdb_cv_m68k_is_coldfire=yes
6653 else
6654 gdb_cv_m68k_is_coldfire=no
6655 fi
6656 rm -f conftest*
6657
6658 CPPFLAGS="$save_CPPFLAGS"
6659 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
6661 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
6662 ;;
6663 esac
6664
6665 . ${srcdir}/configure.srv
6666
6667 # Add in the common host objects.
6668 . ${srcdir}/../common/common.host
6669 srv_host_obs="$common_host_obs"
6670
6671 if test "${srv_mingwce}" = "yes"; then
6672 LIBS="$LIBS -lws2"
6673 elif test "${srv_mingw}" = "yes"; then
6674 LIBS="$LIBS -lws2_32"
6675 elif test "${srv_qnx}" = "yes"; then
6676 LIBS="$LIBS -lsocket"
6677 elif test "${srv_lynxos}" = "yes"; then
6678 LIBS="$LIBS -lnetinet"
6679 fi
6680
6681 if test "${srv_mingw}" = "yes"; then
6682
6683 $as_echo "#define USE_WIN32API 1" >>confdefs.h
6684
6685 fi
6686
6687 if test "${srv_linux_usrregs}" = "yes"; then
6688
6689 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
6690
6691 fi
6692
6693 if test "${srv_linux_regsets}" = "yes"; then
6694
6695 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
6696
6697
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
6699 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
6700 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6702 else
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6705 #include <sys/ptrace.h>
6706 int
6707 main ()
6708 {
6709 PTRACE_GETREGS;
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 gdbsrv_cv_have_ptrace_getregs=yes
6716 else
6717 gdbsrv_cv_have_ptrace_getregs=no
6718 fi
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 fi
6721
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
6723 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
6724 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
6725
6726 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
6727
6728 fi
6729
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
6731 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
6732 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6737 #include <sys/ptrace.h>
6738 int
6739 main ()
6740 {
6741 PTRACE_GETFPXREGS;
6742 ;
6743 return 0;
6744 }
6745 _ACEOF
6746 if ac_fn_c_try_compile "$LINENO"; then :
6747 gdbsrv_cv_have_ptrace_getfpxregs=yes
6748 else
6749 gdbsrv_cv_have_ptrace_getfpxregs=no
6750 fi
6751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 fi
6753
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
6755 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
6756 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
6757
6758 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
6759
6760 fi
6761 fi
6762
6763 if test "${srv_linux_btrace}" = "yes"; then
6764
6765 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
6766
6767 fi
6768
6769 if test "$ac_cv_header_sys_procfs_h" = yes; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
6771 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
6772 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777
6778 #define _SYSCALL32
6779 /* Needed for new procfs interface on sparc-solaris. */
6780 #define _STRUCTURED_PROC 1
6781 #include <sys/procfs.h>
6782 int
6783 main ()
6784 {
6785 lwpid_t avar
6786 ;
6787 return 0;
6788 }
6789 _ACEOF
6790 if ac_fn_c_try_compile "$LINENO"; then :
6791 bfd_cv_have_sys_procfs_type_lwpid_t=yes
6792 else
6793 bfd_cv_have_sys_procfs_type_lwpid_t=no
6794
6795 fi
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798
6799 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
6800
6801 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6802
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
6805 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
6808 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
6809 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
6810 $as_echo_n "(cached) " >&6
6811 else
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6814
6815 #define _SYSCALL32
6816 /* Needed for new procfs interface on sparc-solaris. */
6817 #define _STRUCTURED_PROC 1
6818 #include <sys/procfs.h>
6819 int
6820 main ()
6821 {
6822 psaddr_t avar
6823 ;
6824 return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_compile "$LINENO"; then :
6828 bfd_cv_have_sys_procfs_type_psaddr_t=yes
6829 else
6830 bfd_cv_have_sys_procfs_type_psaddr_t=no
6831
6832 fi
6833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 fi
6835
6836 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
6837
6838 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
6839
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
6842 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
6845 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
6846 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851
6852 #define _SYSCALL32
6853 /* Needed for new procfs interface on sparc-solaris. */
6854 #define _STRUCTURED_PROC 1
6855 #include <sys/procfs.h>
6856 int
6857 main ()
6858 {
6859 prgregset_t avar
6860 ;
6861 return 0;
6862 }
6863 _ACEOF
6864 if ac_fn_c_try_compile "$LINENO"; then :
6865 bfd_cv_have_sys_procfs_type_prgregset_t=yes
6866 else
6867 bfd_cv_have_sys_procfs_type_prgregset_t=no
6868
6869 fi
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 fi
6872
6873 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
6874
6875 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
6876
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
6879 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
6880
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
6882 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
6883 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888
6889 #define _SYSCALL32
6890 /* Needed for new procfs interface on sparc-solaris. */
6891 #define _STRUCTURED_PROC 1
6892 #include <sys/procfs.h>
6893 int
6894 main ()
6895 {
6896 prfpregset_t avar
6897 ;
6898 return 0;
6899 }
6900 _ACEOF
6901 if ac_fn_c_try_compile "$LINENO"; then :
6902 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
6903 else
6904 bfd_cv_have_sys_procfs_type_prfpregset_t=no
6905
6906 fi
6907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 fi
6909
6910 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
6911
6912 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
6913
6914 fi
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
6916 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
6917
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
6919 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
6920 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6925
6926 #define _SYSCALL32
6927 /* Needed for new procfs interface on sparc-solaris. */
6928 #define _STRUCTURED_PROC 1
6929 #include <sys/procfs.h>
6930 int
6931 main ()
6932 {
6933 elf_fpregset_t avar
6934 ;
6935 return 0;
6936 }
6937 _ACEOF
6938 if ac_fn_c_try_compile "$LINENO"; then :
6939 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
6940 else
6941 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
6942
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945 fi
6946
6947 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
6948
6949 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
6950
6951 fi
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
6953 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
6954
6955 fi
6956
6957 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
6959 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
6960 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965
6966 #include <thread_db.h>
6967 int
6968 main ()
6969 {
6970 lwpid_t avar
6971 ;
6972 return 0;
6973 }
6974 _ACEOF
6975 if ac_fn_c_try_compile "$LINENO"; then :
6976 gdbserver_cv_have_thread_db_type_lwpid_t=yes
6977 else
6978 gdbserver_cv_have_thread_db_type_lwpid_t=no
6979
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 fi
6983
6984 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
6985
6986 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
6987
6988 fi
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
6990 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
6991
6992 fi
6993
6994 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
6996 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
6997 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002
7003 #include <thread_db.h>
7004 int
7005 main ()
7006 {
7007 psaddr_t avar
7008 ;
7009 return 0;
7010 }
7011 _ACEOF
7012 if ac_fn_c_try_compile "$LINENO"; then :
7013 gdbserver_cv_have_thread_db_type_psaddr_t=yes
7014 else
7015 gdbserver_cv_have_thread_db_type_psaddr_t=no
7016
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7019 fi
7020
7021 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
7022
7023 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
7024
7025 fi
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
7027 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
7028
7029 fi
7030
7031 old_LIBS="$LIBS"
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7033 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7034 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 ac_check_lib_save_LIBS=$LIBS
7038 LIBS="-ldl $LIBS"
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041
7042 /* Override any GCC internal prototype to avoid an error.
7043 Use char because int might match the return type of a GCC
7044 builtin and then its argument prototype would still apply. */
7045 #ifdef __cplusplus
7046 extern "C"
7047 #endif
7048 char dlopen ();
7049 int
7050 main ()
7051 {
7052 return dlopen ();
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 if ac_fn_c_try_link "$LINENO"; then :
7058 ac_cv_lib_dl_dlopen=yes
7059 else
7060 ac_cv_lib_dl_dlopen=no
7061 fi
7062 rm -f core conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
7064 LIBS=$ac_check_lib_save_LIBS
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7067 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7068 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7069 cat >>confdefs.h <<_ACEOF
7070 #define HAVE_LIBDL 1
7071 _ACEOF
7072
7073 LIBS="-ldl $LIBS"
7074
7075 fi
7076
7077 LIBS="$old_LIBS"
7078
7079 srv_thread_depfiles=
7080 srv_libs=
7081
7082 if test "$srv_linux_thread_db" = "yes"; then
7083 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
7084 srv_libs="-ldl"
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
7086 $as_echo_n "checking for the dynamic export flag... " >&6; }
7087 old_LDFLAGS="$LDFLAGS"
7088 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
7089 # supported there.
7090 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
7091 LDFLAGS="$LDFLAGS $RDYNAMIC"
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094
7095 int
7096 main ()
7097 {
7098
7099 ;
7100 return 0;
7101 }
7102 _ACEOF
7103 if ac_fn_c_try_link "$LINENO"; then :
7104 found="-Wl,--dynamic-list"
7105 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
7106 else
7107 RDYNAMIC="-rdynamic"
7108 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
7109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111
7112 int
7113 main ()
7114 {
7115
7116 ;
7117 return 0;
7118 }
7119 _ACEOF
7120 if ac_fn_c_try_link "$LINENO"; then :
7121 found="-rdynamic"
7122 else
7123 found="no"
7124 RDYNAMIC=""
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext \
7127 conftest$ac_exeext conftest.$ac_ext
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext \
7130 conftest$ac_exeext conftest.$ac_ext
7131
7132 LDFLAGS="$old_LDFLAGS"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
7134 $as_echo "$found" >&6; }
7135 else
7136 srv_libs="-lthread_db"
7137 fi
7138
7139 srv_thread_depfiles="thread-db.o proc-service.o"
7140
7141 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
7142
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
7144 $as_echo_n "checking for TD_VERSION... " >&6; }
7145 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 #include <thread_db.h>
7151 int
7152 main ()
7153 {
7154 TD_VERSION;
7155 ;
7156 return 0;
7157 }
7158 _ACEOF
7159 if ac_fn_c_try_compile "$LINENO"; then :
7160 gdbsrv_cv_have_td_version=yes
7161 else
7162 gdbsrv_cv_have_td_version=no
7163 fi
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 fi
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
7167 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
7168 if test $gdbsrv_cv_have_td_version = yes; then
7169
7170 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
7171
7172 fi
7173 fi
7174
7175
7176 # Check whether --with-libthread-db was given.
7177 if test "${with_libthread_db+set}" = set; then :
7178 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
7179 srv_libs="$srv_libthread_db_path"
7180
7181 fi
7182
7183
7184 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
7185
7186 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
7187
7188 fi
7189
7190 if test "$srv_xmlfiles" != ""; then
7191 srv_xmlbuiltin="xml-builtin.o"
7192
7193 $as_echo "#define USE_XML 1" >>confdefs.h
7194
7195
7196 tmp_xmlfiles=$srv_xmlfiles
7197 srv_xmlfiles=""
7198 for f in $tmp_xmlfiles; do
7199 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
7200 done
7201 fi
7202
7203 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles $srv_host_obs"
7204 GDBSERVER_LIBS="$srv_libs"
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
7207 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
7208 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
7209 $as_echo_n "(cached) " >&6
7210 else
7211
7212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213 /* end confdefs.h. */
7214
7215 int
7216 main ()
7217 {
7218 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
7219 ;
7220 return 0;
7221 }
7222 _ACEOF
7223 if ac_fn_c_try_link "$LINENO"; then :
7224 gdbsrv_cv_have_sync_builtins=yes
7225 else
7226 gdbsrv_cv_have_sync_builtins=no
7227 fi
7228 rm -f core conftest.err conftest.$ac_objext \
7229 conftest$ac_exeext conftest.$ac_ext
7230 fi
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
7232 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
7233 if test $gdbsrv_cv_have_sync_builtins = yes; then
7234
7235 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
7236
7237 fi
7238
7239 saved_cflags="$CFLAGS"
7240 CFLAGS="$CFLAGS -fvisibility=hidden"
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243
7244 int
7245 main ()
7246 {
7247
7248 ;
7249 return 0;
7250 }
7251 _ACEOF
7252 if ac_fn_c_try_compile "$LINENO"; then :
7253 gdbsrv_cv_have_visibility_hidden=yes
7254 else
7255 gdbsrv_cv_have_visibility_hidden=no
7256 fi
7257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 CFLAGS="$saved_cflags"
7259
7260 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
7261 "
7262 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
7263 ac_have_decl=1
7264 else
7265 ac_have_decl=0
7266 fi
7267
7268 cat >>confdefs.h <<_ACEOF
7269 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
7270 _ACEOF
7271
7272
7273 if test "$cross_compiling" = yes; then :
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7276 #include <sys/personality.h>
7277 int
7278 main ()
7279 {
7280
7281 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7282 # define ADDR_NO_RANDOMIZE 0x0040000
7283 # endif
7284 /* Test the flag could be set and stays set. */
7285 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7286 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7287 return 1
7288 ;
7289 return 0;
7290 }
7291 _ACEOF
7292 if ac_fn_c_try_link "$LINENO"; then :
7293 gdbsrv_cv_have_personality=true
7294 else
7295 gdbsrv_cv_have_personality=false
7296 fi
7297 rm -f core conftest.err conftest.$ac_objext \
7298 conftest$ac_exeext conftest.$ac_ext
7299 else
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302 #include <sys/personality.h>
7303 int
7304 main ()
7305 {
7306
7307 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
7308 # define ADDR_NO_RANDOMIZE 0x0040000
7309 # endif
7310 /* Test the flag could be set and stays set. */
7311 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
7312 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
7313 return 1
7314 ;
7315 return 0;
7316 }
7317 _ACEOF
7318 if ac_fn_c_try_run "$LINENO"; then :
7319 gdbsrv_cv_have_personality=true
7320 else
7321 gdbsrv_cv_have_personality=false
7322 fi
7323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7324 conftest.$ac_objext conftest.beam conftest.$ac_ext
7325 fi
7326
7327 if $gdbsrv_cv_have_personality
7328 then
7329
7330 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
7331
7332 fi
7333
7334
7335 IPA_DEPFILES=""
7336 extra_libraries=""
7337
7338 # check whether to enable the inprocess agent
7339 if test "$ipa_obj" != "" \
7340 -a "$gdbsrv_cv_have_sync_builtins" = yes \
7341 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
7342 have_ipa=true
7343 else
7344 have_ipa=false
7345 fi
7346
7347 # Check whether --enable-inprocess-agent was given.
7348 if test "${enable_inprocess_agent+set}" = set; then :
7349 enableval=$enable_inprocess_agent; case "$enableval" in
7350 yes) want_ipa=true ;;
7351 no) want_ipa=false ;;
7352 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
7353 esac
7354 else
7355 want_ipa=$have_ipa
7356 fi
7357
7358
7359 if $want_ipa ; then
7360 if $have_ipa ; then
7361 IPA_DEPFILES="$ipa_obj"
7362 extra_libraries="$extra_libraries libinproctrace.so"
7363 else
7364 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
7365 fi
7366 fi
7367
7368
7369
7370
7371
7372
7373
7374
7375 GNULIB=build-gnulib-gdbserver/import
7376
7377 GNULIB_STDINT_H=
7378 if test x"$STDINT_H" != x; then
7379 GNULIB_STDINT_H=$GNULIB/$STDINT_H
7380 fi
7381
7382
7383 ac_config_files="$ac_config_files Makefile"
7384
7385 ac_config_commands="$ac_config_commands default"
7386
7387 cat >confcache <<\_ACEOF
7388 # This file is a shell script that caches the results of configure
7389 # tests run on this system so they can be shared between configure
7390 # scripts and configure runs, see configure's option --config-cache.
7391 # It is not useful on other systems. If it contains results you don't
7392 # want to keep, you may remove or edit it.
7393 #
7394 # config.status only pays attention to the cache file if you give it
7395 # the --recheck option to rerun configure.
7396 #
7397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7399 # following values.
7400
7401 _ACEOF
7402
7403 # The following way of writing the cache mishandles newlines in values,
7404 # but we know of no workaround that is simple, portable, and efficient.
7405 # So, we kill variables containing newlines.
7406 # Ultrix sh set writes to stderr and can't be redirected directly,
7407 # and sets the high bit in the cache file unless we assign to the vars.
7408 (
7409 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7410 eval ac_val=\$$ac_var
7411 case $ac_val in #(
7412 *${as_nl}*)
7413 case $ac_var in #(
7414 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7416 esac
7417 case $ac_var in #(
7418 _ | IFS | as_nl) ;; #(
7419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7420 *) { eval $ac_var=; unset $ac_var;} ;;
7421 esac ;;
7422 esac
7423 done
7424
7425 (set) 2>&1 |
7426 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7427 *${as_nl}ac_space=\ *)
7428 # `set' does not quote correctly, so add quotes: double-quote
7429 # substitution turns \\\\ into \\, and sed turns \\ into \.
7430 sed -n \
7431 "s/'/'\\\\''/g;
7432 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7433 ;; #(
7434 *)
7435 # `set' quotes correctly as required by POSIX, so do not add quotes.
7436 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7437 ;;
7438 esac |
7439 sort
7440 ) |
7441 sed '
7442 /^ac_cv_env_/b end
7443 t clear
7444 :clear
7445 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7446 t end
7447 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7448 :end' >>confcache
7449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7450 if test -w "$cache_file"; then
7451 test "x$cache_file" != "x/dev/null" &&
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7453 $as_echo "$as_me: updating cache $cache_file" >&6;}
7454 cat confcache >$cache_file
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7457 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7458 fi
7459 fi
7460 rm -f confcache
7461
7462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7463 # Let make expand exec_prefix.
7464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7465
7466 DEFS=-DHAVE_CONFIG_H
7467
7468 ac_libobjs=
7469 ac_ltlibobjs=
7470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7471 # 1. Remove the extension, and $U if already installed.
7472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7473 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7475 # will be set to the directory where LIBOBJS objects are built.
7476 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7477 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7478 done
7479 LIBOBJS=$ac_libobjs
7480
7481 LTLIBOBJS=$ac_ltlibobjs
7482
7483
7484 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7485 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7487 fi
7488 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
7489 as_fn_error "conditional \"GMAKE\" was never defined.
7490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7491 fi
7492
7493 : ${CONFIG_STATUS=./config.status}
7494 ac_write_fail=0
7495 ac_clean_files_save=$ac_clean_files
7496 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7498 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7499 as_write_fail=0
7500 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7501 #! $SHELL
7502 # Generated by $as_me.
7503 # Run this file to recreate the current configuration.
7504 # Compiler output produced by configure, useful for debugging
7505 # configure, is in config.log if it exists.
7506
7507 debug=false
7508 ac_cs_recheck=false
7509 ac_cs_silent=false
7510
7511 SHELL=\${CONFIG_SHELL-$SHELL}
7512 export SHELL
7513 _ASEOF
7514 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7515 ## -------------------- ##
7516 ## M4sh Initialization. ##
7517 ## -------------------- ##
7518
7519 # Be more Bourne compatible
7520 DUALCASE=1; export DUALCASE # for MKS sh
7521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7522 emulate sh
7523 NULLCMD=:
7524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7525 # is contrary to our usage. Disable this feature.
7526 alias -g '${1+"$@"}'='"$@"'
7527 setopt NO_GLOB_SUBST
7528 else
7529 case `(set -o) 2>/dev/null` in #(
7530 *posix*) :
7531 set -o posix ;; #(
7532 *) :
7533 ;;
7534 esac
7535 fi
7536
7537
7538 as_nl='
7539 '
7540 export as_nl
7541 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7542 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7543 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7545 # Prefer a ksh shell builtin over an external printf program on Solaris,
7546 # but without wasting forks for bash or zsh.
7547 if test -z "$BASH_VERSION$ZSH_VERSION" \
7548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7549 as_echo='print -r --'
7550 as_echo_n='print -rn --'
7551 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7552 as_echo='printf %s\n'
7553 as_echo_n='printf %s'
7554 else
7555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7556 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7557 as_echo_n='/usr/ucb/echo -n'
7558 else
7559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7560 as_echo_n_body='eval
7561 arg=$1;
7562 case $arg in #(
7563 *"$as_nl"*)
7564 expr "X$arg" : "X\\(.*\\)$as_nl";
7565 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7566 esac;
7567 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7568 '
7569 export as_echo_n_body
7570 as_echo_n='sh -c $as_echo_n_body as_echo'
7571 fi
7572 export as_echo_body
7573 as_echo='sh -c $as_echo_body as_echo'
7574 fi
7575
7576 # The user is always right.
7577 if test "${PATH_SEPARATOR+set}" != set; then
7578 PATH_SEPARATOR=:
7579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7580 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7581 PATH_SEPARATOR=';'
7582 }
7583 fi
7584
7585
7586 # IFS
7587 # We need space, tab and new line, in precisely that order. Quoting is
7588 # there to prevent editors from complaining about space-tab.
7589 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7590 # splitting by setting IFS to empty value.)
7591 IFS=" "" $as_nl"
7592
7593 # Find who we are. Look in the path if we contain no directory separator.
7594 case $0 in #((
7595 *[\\/]* ) as_myself=$0 ;;
7596 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599 IFS=$as_save_IFS
7600 test -z "$as_dir" && as_dir=.
7601 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7602 done
7603 IFS=$as_save_IFS
7604
7605 ;;
7606 esac
7607 # We did not find ourselves, most probably we were run as `sh COMMAND'
7608 # in which case we are not to be found in the path.
7609 if test "x$as_myself" = x; then
7610 as_myself=$0
7611 fi
7612 if test ! -f "$as_myself"; then
7613 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7614 exit 1
7615 fi
7616
7617 # Unset variables that we do not need and which cause bugs (e.g. in
7618 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7619 # suppresses any "Segmentation fault" message there. '((' could
7620 # trigger a bug in pdksh 5.2.14.
7621 for as_var in BASH_ENV ENV MAIL MAILPATH
7622 do eval test x\${$as_var+set} = xset \
7623 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7624 done
7625 PS1='$ '
7626 PS2='> '
7627 PS4='+ '
7628
7629 # NLS nuisances.
7630 LC_ALL=C
7631 export LC_ALL
7632 LANGUAGE=C
7633 export LANGUAGE
7634
7635 # CDPATH.
7636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7637
7638
7639 # as_fn_error ERROR [LINENO LOG_FD]
7640 # ---------------------------------
7641 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7642 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7643 # script with status $?, using 1 if that was 0.
7644 as_fn_error ()
7645 {
7646 as_status=$?; test $as_status -eq 0 && as_status=1
7647 if test "$3"; then
7648 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7649 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7650 fi
7651 $as_echo "$as_me: error: $1" >&2
7652 as_fn_exit $as_status
7653 } # as_fn_error
7654
7655
7656 # as_fn_set_status STATUS
7657 # -----------------------
7658 # Set $? to STATUS, without forking.
7659 as_fn_set_status ()
7660 {
7661 return $1
7662 } # as_fn_set_status
7663
7664 # as_fn_exit STATUS
7665 # -----------------
7666 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7667 as_fn_exit ()
7668 {
7669 set +e
7670 as_fn_set_status $1
7671 exit $1
7672 } # as_fn_exit
7673
7674 # as_fn_unset VAR
7675 # ---------------
7676 # Portably unset VAR.
7677 as_fn_unset ()
7678 {
7679 { eval $1=; unset $1;}
7680 }
7681 as_unset=as_fn_unset
7682 # as_fn_append VAR VALUE
7683 # ----------------------
7684 # Append the text in VALUE to the end of the definition contained in VAR. Take
7685 # advantage of any shell optimizations that allow amortized linear growth over
7686 # repeated appends, instead of the typical quadratic growth present in naive
7687 # implementations.
7688 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7689 eval 'as_fn_append ()
7690 {
7691 eval $1+=\$2
7692 }'
7693 else
7694 as_fn_append ()
7695 {
7696 eval $1=\$$1\$2
7697 }
7698 fi # as_fn_append
7699
7700 # as_fn_arith ARG...
7701 # ------------------
7702 # Perform arithmetic evaluation on the ARGs, and store the result in the
7703 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7704 # must be portable across $(()) and expr.
7705 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7706 eval 'as_fn_arith ()
7707 {
7708 as_val=$(( $* ))
7709 }'
7710 else
7711 as_fn_arith ()
7712 {
7713 as_val=`expr "$@" || test $? -eq 1`
7714 }
7715 fi # as_fn_arith
7716
7717
7718 if expr a : '\(a\)' >/dev/null 2>&1 &&
7719 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7720 as_expr=expr
7721 else
7722 as_expr=false
7723 fi
7724
7725 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7726 as_basename=basename
7727 else
7728 as_basename=false
7729 fi
7730
7731 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7732 as_dirname=dirname
7733 else
7734 as_dirname=false
7735 fi
7736
7737 as_me=`$as_basename -- "$0" ||
7738 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7739 X"$0" : 'X\(//\)$' \| \
7740 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7741 $as_echo X/"$0" |
7742 sed '/^.*\/\([^/][^/]*\)\/*$/{
7743 s//\1/
7744 q
7745 }
7746 /^X\/\(\/\/\)$/{
7747 s//\1/
7748 q
7749 }
7750 /^X\/\(\/\).*/{
7751 s//\1/
7752 q
7753 }
7754 s/.*/./; q'`
7755
7756 # Avoid depending upon Character Ranges.
7757 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7758 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7759 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7760 as_cr_digits='0123456789'
7761 as_cr_alnum=$as_cr_Letters$as_cr_digits
7762
7763 ECHO_C= ECHO_N= ECHO_T=
7764 case `echo -n x` in #(((((
7765 -n*)
7766 case `echo 'xy\c'` in
7767 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7768 xy) ECHO_C='\c';;
7769 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7770 ECHO_T=' ';;
7771 esac;;
7772 *)
7773 ECHO_N='-n';;
7774 esac
7775
7776 rm -f conf$$ conf$$.exe conf$$.file
7777 if test -d conf$$.dir; then
7778 rm -f conf$$.dir/conf$$.file
7779 else
7780 rm -f conf$$.dir
7781 mkdir conf$$.dir 2>/dev/null
7782 fi
7783 if (echo >conf$$.file) 2>/dev/null; then
7784 if ln -s conf$$.file conf$$ 2>/dev/null; then
7785 as_ln_s='ln -s'
7786 # ... but there are two gotchas:
7787 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7788 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7789 # In both cases, we have to default to `cp -p'.
7790 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7791 as_ln_s='cp -p'
7792 elif ln conf$$.file conf$$ 2>/dev/null; then
7793 as_ln_s=ln
7794 else
7795 as_ln_s='cp -p'
7796 fi
7797 else
7798 as_ln_s='cp -p'
7799 fi
7800 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7801 rmdir conf$$.dir 2>/dev/null
7802
7803
7804 # as_fn_mkdir_p
7805 # -------------
7806 # Create "$as_dir" as a directory, including parents if necessary.
7807 as_fn_mkdir_p ()
7808 {
7809
7810 case $as_dir in #(
7811 -*) as_dir=./$as_dir;;
7812 esac
7813 test -d "$as_dir" || eval $as_mkdir_p || {
7814 as_dirs=
7815 while :; do
7816 case $as_dir in #(
7817 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7818 *) as_qdir=$as_dir;;
7819 esac
7820 as_dirs="'$as_qdir' $as_dirs"
7821 as_dir=`$as_dirname -- "$as_dir" ||
7822 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7823 X"$as_dir" : 'X\(//\)[^/]' \| \
7824 X"$as_dir" : 'X\(//\)$' \| \
7825 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7826 $as_echo X"$as_dir" |
7827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7828 s//\1/
7829 q
7830 }
7831 /^X\(\/\/\)[^/].*/{
7832 s//\1/
7833 q
7834 }
7835 /^X\(\/\/\)$/{
7836 s//\1/
7837 q
7838 }
7839 /^X\(\/\).*/{
7840 s//\1/
7841 q
7842 }
7843 s/.*/./; q'`
7844 test -d "$as_dir" && break
7845 done
7846 test -z "$as_dirs" || eval "mkdir $as_dirs"
7847 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7848
7849
7850 } # as_fn_mkdir_p
7851 if mkdir -p . 2>/dev/null; then
7852 as_mkdir_p='mkdir -p "$as_dir"'
7853 else
7854 test -d ./-p && rmdir ./-p
7855 as_mkdir_p=false
7856 fi
7857
7858 if test -x / >/dev/null 2>&1; then
7859 as_test_x='test -x'
7860 else
7861 if ls -dL / >/dev/null 2>&1; then
7862 as_ls_L_option=L
7863 else
7864 as_ls_L_option=
7865 fi
7866 as_test_x='
7867 eval sh -c '\''
7868 if test -d "$1"; then
7869 test -d "$1/.";
7870 else
7871 case $1 in #(
7872 -*)set "./$1";;
7873 esac;
7874 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7875 ???[sx]*):;;*)false;;esac;fi
7876 '\'' sh
7877 '
7878 fi
7879 as_executable_p=$as_test_x
7880
7881 # Sed expression to map a string onto a valid CPP name.
7882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7883
7884 # Sed expression to map a string onto a valid variable name.
7885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7886
7887
7888 exec 6>&1
7889 ## ----------------------------------- ##
7890 ## Main body of $CONFIG_STATUS script. ##
7891 ## ----------------------------------- ##
7892 _ASEOF
7893 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7894
7895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7896 # Save the log message, to keep $0 and so on meaningful, and to
7897 # report actual input values of CONFIG_FILES etc. instead of their
7898 # values after options handling.
7899 ac_log="
7900 This file was extended by $as_me, which was
7901 generated by GNU Autoconf 2.64. Invocation command line was
7902
7903 CONFIG_FILES = $CONFIG_FILES
7904 CONFIG_HEADERS = $CONFIG_HEADERS
7905 CONFIG_LINKS = $CONFIG_LINKS
7906 CONFIG_COMMANDS = $CONFIG_COMMANDS
7907 $ $0 $@
7908
7909 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7910 "
7911
7912 _ACEOF
7913
7914 case $ac_config_files in *"
7915 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7916 esac
7917
7918 case $ac_config_headers in *"
7919 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7920 esac
7921
7922
7923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7924 # Files that config.status was made for.
7925 config_files="$ac_config_files"
7926 config_headers="$ac_config_headers"
7927 config_commands="$ac_config_commands"
7928
7929 _ACEOF
7930
7931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7932 ac_cs_usage="\
7933 \`$as_me' instantiates files and other configuration actions
7934 from templates according to the current configuration. Unless the files
7935 and actions are specified as TAGs, all are instantiated by default.
7936
7937 Usage: $0 [OPTION]... [TAG]...
7938
7939 -h, --help print this help, then exit
7940 -V, --version print version number and configuration settings, then exit
7941 -q, --quiet, --silent
7942 do not print progress messages
7943 -d, --debug don't remove temporary files
7944 --recheck update $as_me by reconfiguring in the same conditions
7945 --file=FILE[:TEMPLATE]
7946 instantiate the configuration file FILE
7947 --header=FILE[:TEMPLATE]
7948 instantiate the configuration header FILE
7949
7950 Configuration files:
7951 $config_files
7952
7953 Configuration headers:
7954 $config_headers
7955
7956 Configuration commands:
7957 $config_commands
7958
7959 Report bugs to the package provider."
7960
7961 _ACEOF
7962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7963 ac_cs_version="\\
7964 config.status
7965 configured by $0, generated by GNU Autoconf 2.64,
7966 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7967
7968 Copyright (C) 2009 Free Software Foundation, Inc.
7969 This config.status script is free software; the Free Software Foundation
7970 gives unlimited permission to copy, distribute and modify it."
7971
7972 ac_pwd='$ac_pwd'
7973 srcdir='$srcdir'
7974 INSTALL='$INSTALL'
7975 test -n "\$AWK" || AWK=awk
7976 _ACEOF
7977
7978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7979 # The default lists apply if the user does not specify any file.
7980 ac_need_defaults=:
7981 while test $# != 0
7982 do
7983 case $1 in
7984 --*=*)
7985 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7986 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7987 ac_shift=:
7988 ;;
7989 *)
7990 ac_option=$1
7991 ac_optarg=$2
7992 ac_shift=shift
7993 ;;
7994 esac
7995
7996 case $ac_option in
7997 # Handling of the options.
7998 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7999 ac_cs_recheck=: ;;
8000 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8001 $as_echo "$ac_cs_version"; exit ;;
8002 --debug | --debu | --deb | --de | --d | -d )
8003 debug=: ;;
8004 --file | --fil | --fi | --f )
8005 $ac_shift
8006 case $ac_optarg in
8007 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8008 esac
8009 as_fn_append CONFIG_FILES " '$ac_optarg'"
8010 ac_need_defaults=false;;
8011 --header | --heade | --head | --hea )
8012 $ac_shift
8013 case $ac_optarg in
8014 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8015 esac
8016 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8017 ac_need_defaults=false;;
8018 --he | --h)
8019 # Conflict between --help and --header
8020 as_fn_error "ambiguous option: \`$1'
8021 Try \`$0 --help' for more information.";;
8022 --help | --hel | -h )
8023 $as_echo "$ac_cs_usage"; exit ;;
8024 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8025 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8026 ac_cs_silent=: ;;
8027
8028 # This is an error.
8029 -*) as_fn_error "unrecognized option: \`$1'
8030 Try \`$0 --help' for more information." ;;
8031
8032 *) as_fn_append ac_config_targets " $1"
8033 ac_need_defaults=false ;;
8034
8035 esac
8036 shift
8037 done
8038
8039 ac_configure_extra_args=
8040
8041 if $ac_cs_silent; then
8042 exec 6>/dev/null
8043 ac_configure_extra_args="$ac_configure_extra_args --silent"
8044 fi
8045
8046 _ACEOF
8047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8048 if \$ac_cs_recheck; then
8049 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8050 shift
8051 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8052 CONFIG_SHELL='$SHELL'
8053 export CONFIG_SHELL
8054 exec "\$@"
8055 fi
8056
8057 _ACEOF
8058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8059 exec 5>>config.log
8060 {
8061 echo
8062 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8063 ## Running $as_me. ##
8064 _ASBOX
8065 $as_echo "$ac_log"
8066 } >&5
8067
8068 _ACEOF
8069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8070 #
8071 # INIT-COMMANDS
8072 #
8073 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8074
8075 _ACEOF
8076
8077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8078
8079 # Handling of arguments.
8080 for ac_config_target in $ac_config_targets
8081 do
8082 case $ac_config_target in
8083 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8084 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8085 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8086 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8087
8088 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8089 esac
8090 done
8091
8092
8093 # If the user did not use the arguments to specify the items to instantiate,
8094 # then the envvar interface is used. Set only those that are not.
8095 # We use the long form for the default assignment because of an extremely
8096 # bizarre bug on SunOS 4.1.3.
8097 if $ac_need_defaults; then
8098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8100 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8101 fi
8102
8103 # Have a temporary directory for convenience. Make it in the build tree
8104 # simply because there is no reason against having it here, and in addition,
8105 # creating and moving files from /tmp can sometimes cause problems.
8106 # Hook for its removal unless debugging.
8107 # Note that there is a small window in which the directory will not be cleaned:
8108 # after its creation but before its name has been assigned to `$tmp'.
8109 $debug ||
8110 {
8111 tmp=
8112 trap 'exit_status=$?
8113 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8114 ' 0
8115 trap 'as_fn_exit 1' 1 2 13 15
8116 }
8117 # Create a (secure) tmp directory for tmp files.
8118
8119 {
8120 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8121 test -n "$tmp" && test -d "$tmp"
8122 } ||
8123 {
8124 tmp=./conf$$-$RANDOM
8125 (umask 077 && mkdir "$tmp")
8126 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8127
8128 # Set up the scripts for CONFIG_FILES section.
8129 # No need to generate them if there are no CONFIG_FILES.
8130 # This happens for instance with `./config.status config.h'.
8131 if test -n "$CONFIG_FILES"; then
8132
8133
8134 ac_cr=`echo X | tr X '\015'`
8135 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8136 # But we know of no other shell where ac_cr would be empty at this
8137 # point, so we can use a bashism as a fallback.
8138 if test "x$ac_cr" = x; then
8139 eval ac_cr=\$\'\\r\'
8140 fi
8141 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8143 ac_cs_awk_cr='\r'
8144 else
8145 ac_cs_awk_cr=$ac_cr
8146 fi
8147
8148 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8149 _ACEOF
8150
8151
8152 {
8153 echo "cat >conf$$subs.awk <<_ACEOF" &&
8154 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8155 echo "_ACEOF"
8156 } >conf$$subs.sh ||
8157 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8158 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8159 ac_delim='%!_!# '
8160 for ac_last_try in false false false false false :; do
8161 . ./conf$$subs.sh ||
8162 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8163
8164 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8165 if test $ac_delim_n = $ac_delim_num; then
8166 break
8167 elif $ac_last_try; then
8168 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8169 else
8170 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8171 fi
8172 done
8173 rm -f conf$$subs.sh
8174
8175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8176 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8177 _ACEOF
8178 sed -n '
8179 h
8180 s/^/S["/; s/!.*/"]=/
8181 p
8182 g
8183 s/^[^!]*!//
8184 :repl
8185 t repl
8186 s/'"$ac_delim"'$//
8187 t delim
8188 :nl
8189 h
8190 s/\(.\{148\}\).*/\1/
8191 t more1
8192 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8193 p
8194 n
8195 b repl
8196 :more1
8197 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8198 p
8199 g
8200 s/.\{148\}//
8201 t nl
8202 :delim
8203 h
8204 s/\(.\{148\}\).*/\1/
8205 t more2
8206 s/["\\]/\\&/g; s/^/"/; s/$/"/
8207 p
8208 b
8209 :more2
8210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8211 p
8212 g
8213 s/.\{148\}//
8214 t delim
8215 ' <conf$$subs.awk | sed '
8216 /^[^""]/{
8217 N
8218 s/\n//
8219 }
8220 ' >>$CONFIG_STATUS || ac_write_fail=1
8221 rm -f conf$$subs.awk
8222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8223 _ACAWK
8224 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8225 for (key in S) S_is_set[key] = 1
8226 FS = "\a"
8227
8228 }
8229 {
8230 line = $ 0
8231 nfields = split(line, field, "@")
8232 substed = 0
8233 len = length(field[1])
8234 for (i = 2; i < nfields; i++) {
8235 key = field[i]
8236 keylen = length(key)
8237 if (S_is_set[key]) {
8238 value = S[key]
8239 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8240 len += length(value) + length(field[++i])
8241 substed = 1
8242 } else
8243 len += 1 + keylen
8244 }
8245
8246 print line
8247 }
8248
8249 _ACAWK
8250 _ACEOF
8251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8252 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8253 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8254 else
8255 cat
8256 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8257 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8258 _ACEOF
8259
8260 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8261 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8262 # trailing colons and then remove the whole line if VPATH becomes empty
8263 # (actually we leave an empty line to preserve line numbers).
8264 if test "x$srcdir" = x.; then
8265 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8266 s/:*\$(srcdir):*/:/
8267 s/:*\${srcdir}:*/:/
8268 s/:*@srcdir@:*/:/
8269 s/^\([^=]*=[ ]*\):*/\1/
8270 s/:*$//
8271 s/^[^=]*=[ ]*$//
8272 }'
8273 fi
8274
8275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8276 fi # test -n "$CONFIG_FILES"
8277
8278 # Set up the scripts for CONFIG_HEADERS section.
8279 # No need to generate them if there are no CONFIG_HEADERS.
8280 # This happens for instance with `./config.status Makefile'.
8281 if test -n "$CONFIG_HEADERS"; then
8282 cat >"$tmp/defines.awk" <<\_ACAWK ||
8283 BEGIN {
8284 _ACEOF
8285
8286 # Transform confdefs.h into an awk script `defines.awk', embedded as
8287 # here-document in config.status, that substitutes the proper values into
8288 # config.h.in to produce config.h.
8289
8290 # Create a delimiter string that does not exist in confdefs.h, to ease
8291 # handling of long lines.
8292 ac_delim='%!_!# '
8293 for ac_last_try in false false :; do
8294 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8295 if test -z "$ac_t"; then
8296 break
8297 elif $ac_last_try; then
8298 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8299 else
8300 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8301 fi
8302 done
8303
8304 # For the awk script, D is an array of macro values keyed by name,
8305 # likewise P contains macro parameters if any. Preserve backslash
8306 # newline sequences.
8307
8308 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8309 sed -n '
8310 s/.\{148\}/&'"$ac_delim"'/g
8311 t rset
8312 :rset
8313 s/^[ ]*#[ ]*define[ ][ ]*/ /
8314 t def
8315 d
8316 :def
8317 s/\\$//
8318 t bsnl
8319 s/["\\]/\\&/g
8320 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8321 D["\1"]=" \3"/p
8322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8323 d
8324 :bsnl
8325 s/["\\]/\\&/g
8326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8327 D["\1"]=" \3\\\\\\n"\\/p
8328 t cont
8329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8330 t cont
8331 d
8332 :cont
8333 n
8334 s/.\{148\}/&'"$ac_delim"'/g
8335 t clear
8336 :clear
8337 s/\\$//
8338 t bsnlc
8339 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8340 d
8341 :bsnlc
8342 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8343 b cont
8344 ' <confdefs.h | sed '
8345 s/'"$ac_delim"'/"\\\
8346 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8347
8348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8349 for (key in D) D_is_set[key] = 1
8350 FS = "\a"
8351 }
8352 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8353 line = \$ 0
8354 split(line, arg, " ")
8355 if (arg[1] == "#") {
8356 defundef = arg[2]
8357 mac1 = arg[3]
8358 } else {
8359 defundef = substr(arg[1], 2)
8360 mac1 = arg[2]
8361 }
8362 split(mac1, mac2, "(") #)
8363 macro = mac2[1]
8364 prefix = substr(line, 1, index(line, defundef) - 1)
8365 if (D_is_set[macro]) {
8366 # Preserve the white space surrounding the "#".
8367 print prefix "define", macro P[macro] D[macro]
8368 next
8369 } else {
8370 # Replace #undef with comments. This is necessary, for example,
8371 # in the case of _POSIX_SOURCE, which is predefined and required
8372 # on some systems where configure will not decide to define it.
8373 if (defundef == "undef") {
8374 print "/*", prefix defundef, macro, "*/"
8375 next
8376 }
8377 }
8378 }
8379 { print }
8380 _ACAWK
8381 _ACEOF
8382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8383 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8384 fi # test -n "$CONFIG_HEADERS"
8385
8386
8387 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8388 shift
8389 for ac_tag
8390 do
8391 case $ac_tag in
8392 :[FHLC]) ac_mode=$ac_tag; continue;;
8393 esac
8394 case $ac_mode$ac_tag in
8395 :[FHL]*:*);;
8396 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8397 :[FH]-) ac_tag=-:-;;
8398 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8399 esac
8400 ac_save_IFS=$IFS
8401 IFS=:
8402 set x $ac_tag
8403 IFS=$ac_save_IFS
8404 shift
8405 ac_file=$1
8406 shift
8407
8408 case $ac_mode in
8409 :L) ac_source=$1;;
8410 :[FH])
8411 ac_file_inputs=
8412 for ac_f
8413 do
8414 case $ac_f in
8415 -) ac_f="$tmp/stdin";;
8416 *) # Look for the file first in the build tree, then in the source tree
8417 # (if the path is not absolute). The absolute path cannot be DOS-style,
8418 # because $ac_f cannot contain `:'.
8419 test -f "$ac_f" ||
8420 case $ac_f in
8421 [\\/$]*) false;;
8422 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8423 esac ||
8424 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8425 esac
8426 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8427 as_fn_append ac_file_inputs " '$ac_f'"
8428 done
8429
8430 # Let's still pretend it is `configure' which instantiates (i.e., don't
8431 # use $as_me), people would be surprised to read:
8432 # /* config.h. Generated by config.status. */
8433 configure_input='Generated from '`
8434 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8435 `' by configure.'
8436 if test x"$ac_file" != x-; then
8437 configure_input="$ac_file. $configure_input"
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8439 $as_echo "$as_me: creating $ac_file" >&6;}
8440 fi
8441 # Neutralize special characters interpreted by sed in replacement strings.
8442 case $configure_input in #(
8443 *\&* | *\|* | *\\* )
8444 ac_sed_conf_input=`$as_echo "$configure_input" |
8445 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8446 *) ac_sed_conf_input=$configure_input;;
8447 esac
8448
8449 case $ac_tag in
8450 *:-:* | *:-) cat >"$tmp/stdin" \
8451 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8452 esac
8453 ;;
8454 esac
8455
8456 ac_dir=`$as_dirname -- "$ac_file" ||
8457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8458 X"$ac_file" : 'X\(//\)[^/]' \| \
8459 X"$ac_file" : 'X\(//\)$' \| \
8460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8461 $as_echo X"$ac_file" |
8462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8463 s//\1/
8464 q
8465 }
8466 /^X\(\/\/\)[^/].*/{
8467 s//\1/
8468 q
8469 }
8470 /^X\(\/\/\)$/{
8471 s//\1/
8472 q
8473 }
8474 /^X\(\/\).*/{
8475 s//\1/
8476 q
8477 }
8478 s/.*/./; q'`
8479 as_dir="$ac_dir"; as_fn_mkdir_p
8480 ac_builddir=.
8481
8482 case "$ac_dir" in
8483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8484 *)
8485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8486 # A ".." for each directory in $ac_dir_suffix.
8487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8488 case $ac_top_builddir_sub in
8489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8491 esac ;;
8492 esac
8493 ac_abs_top_builddir=$ac_pwd
8494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8495 # for backward compatibility:
8496 ac_top_builddir=$ac_top_build_prefix
8497
8498 case $srcdir in
8499 .) # We are building in place.
8500 ac_srcdir=.
8501 ac_top_srcdir=$ac_top_builddir_sub
8502 ac_abs_top_srcdir=$ac_pwd ;;
8503 [\\/]* | ?:[\\/]* ) # Absolute name.
8504 ac_srcdir=$srcdir$ac_dir_suffix;
8505 ac_top_srcdir=$srcdir
8506 ac_abs_top_srcdir=$srcdir ;;
8507 *) # Relative name.
8508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8509 ac_top_srcdir=$ac_top_build_prefix$srcdir
8510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8511 esac
8512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8513
8514
8515 case $ac_mode in
8516 :F)
8517 #
8518 # CONFIG_FILE
8519 #
8520
8521 case $INSTALL in
8522 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8523 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8524 esac
8525 _ACEOF
8526
8527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8528 # If the template does not know about datarootdir, expand it.
8529 # FIXME: This hack should be removed a few years after 2.60.
8530 ac_datarootdir_hack=; ac_datarootdir_seen=
8531 ac_sed_dataroot='
8532 /datarootdir/ {
8533 p
8534 q
8535 }
8536 /@datadir@/p
8537 /@docdir@/p
8538 /@infodir@/p
8539 /@localedir@/p
8540 /@mandir@/p'
8541 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8542 *datarootdir*) ac_datarootdir_seen=yes;;
8543 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8545 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8546 _ACEOF
8547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8548 ac_datarootdir_hack='
8549 s&@datadir@&$datadir&g
8550 s&@docdir@&$docdir&g
8551 s&@infodir@&$infodir&g
8552 s&@localedir@&$localedir&g
8553 s&@mandir@&$mandir&g
8554 s&\\\${datarootdir}&$datarootdir&g' ;;
8555 esac
8556 _ACEOF
8557
8558 # Neutralize VPATH when `$srcdir' = `.'.
8559 # Shell code in configure.ac might set extrasub.
8560 # FIXME: do we really want to maintain this feature?
8561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8562 ac_sed_extra="$ac_vpsub
8563 $extrasub
8564 _ACEOF
8565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8566 :t
8567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8568 s|@configure_input@|$ac_sed_conf_input|;t t
8569 s&@top_builddir@&$ac_top_builddir_sub&;t t
8570 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8571 s&@srcdir@&$ac_srcdir&;t t
8572 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8573 s&@top_srcdir@&$ac_top_srcdir&;t t
8574 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8575 s&@builddir@&$ac_builddir&;t t
8576 s&@abs_builddir@&$ac_abs_builddir&;t t
8577 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8578 s&@INSTALL@&$ac_INSTALL&;t t
8579 $ac_datarootdir_hack
8580 "
8581 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8582 || as_fn_error "could not create $ac_file" "$LINENO" 5
8583
8584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8585 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8588 which seems to be undefined. Please make sure it is defined." >&5
8589 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8590 which seems to be undefined. Please make sure it is defined." >&2;}
8591
8592 rm -f "$tmp/stdin"
8593 case $ac_file in
8594 -) cat "$tmp/out" && rm -f "$tmp/out";;
8595 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8596 esac \
8597 || as_fn_error "could not create $ac_file" "$LINENO" 5
8598 ;;
8599 :H)
8600 #
8601 # CONFIG_HEADER
8602 #
8603 if test x"$ac_file" != x-; then
8604 {
8605 $as_echo "/* $configure_input */" \
8606 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8607 } >"$tmp/config.h" \
8608 || as_fn_error "could not create $ac_file" "$LINENO" 5
8609 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8611 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8612 else
8613 rm -f "$ac_file"
8614 mv "$tmp/config.h" "$ac_file" \
8615 || as_fn_error "could not create $ac_file" "$LINENO" 5
8616 fi
8617 else
8618 $as_echo "/* $configure_input */" \
8619 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8620 || as_fn_error "could not create -" "$LINENO" 5
8621 fi
8622 ;;
8623
8624 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8625 $as_echo "$as_me: executing $ac_file commands" >&6;}
8626 ;;
8627 esac
8628
8629
8630 case $ac_file$ac_mode in
8631 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8632 "default":C) case x$CONFIG_HEADERS in
8633 xconfig.h:config.in)
8634 echo > stamp-h ;;
8635 esac
8636 ;;
8637
8638 esac
8639 done # for ac_tag
8640
8641
8642 as_fn_exit 0
8643 _ACEOF
8644 ac_clean_files=$ac_clean_files_save
8645
8646 test $ac_write_fail = 0 ||
8647 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8648
8649
8650 # configure is writing to config.log, and then calls config.status.
8651 # config.status does its own redirection, appending to config.log.
8652 # Unfortunately, on DOS this fails, as config.log is still kept open
8653 # by configure, so config.status won't be able to write to it; its
8654 # output is simply discarded. So we exec the FD to /dev/null,
8655 # effectively closing config.log, so it can be properly (re)opened and
8656 # appended to by config.status. When coming back to configure, we
8657 # need to make the FD available again.
8658 if test "$no_create" != yes; then
8659 ac_cs_success=:
8660 ac_config_status_args=
8661 test "$silent" = yes &&
8662 ac_config_status_args="$ac_config_status_args --quiet"
8663 exec 5>/dev/null
8664 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8665 exec 5>>config.log
8666 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8667 # would make configure fail if this is the last instruction.
8668 $ac_cs_success || as_fn_exit $?
8669 fi
8670 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8672 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8673 fi
8674
This page took 0.226683 seconds and 4 git commands to generate.