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