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