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