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