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