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