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