Home | History | Annotate | Line # | Download | only in gdb
configure revision 1.5
      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 (at] 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="main.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 enable_option_checking=no
    592 ac_subst_vars='LTLIBOBJS
    593 LIBOBJS
    594 GCORE_TRANSFORM_NAME
    595 GDB_TRANSFORM_NAME
    596 GDB_NM_FILE
    597 LTLIBBABELTRACE
    598 LIBBABELTRACE
    599 HAVE_LIBBABELTRACE
    600 frags
    601 target_subdir
    602 CONFIG_UNINSTALL
    603 CONFIG_INSTALL
    604 CONFIG_CLEAN
    605 CONFIG_ALL
    606 CONFIG_SRCS
    607 CONFIG_DEPS
    608 CONFIG_OBS
    609 PROFILE_CFLAGS
    610 ENABLE_CFLAGS
    611 SIM_OBS
    612 SIM
    613 XMKMF
    614 GDBTK_SRC_DIR
    615 GDBTK_CFLAGS
    616 GDBTKLIBS
    617 X_LIBS
    618 X_LDFLAGS
    619 X_CFLAGS
    620 TK_XINCLUDES
    621 TK_DEPS
    622 TK_LIBRARY
    623 TK_INCLUDE
    624 TK_STUB_LIB_SPEC
    625 TK_STUB_LIB_FLAG
    626 TK_STUB_LIB_FILE
    627 TK_LIB_SPEC
    628 TK_LIB_FLAG
    629 TK_LIB_FILE
    630 TK_SRC_DIR
    631 TK_BIN_DIR
    632 TK_VERSION
    633 TCL_DEPS
    634 TCL_LIBRARY
    635 TCL_INCLUDE
    636 TCL_STUB_LIB_SPEC
    637 TCL_STUB_LIB_FLAG
    638 TCL_STUB_LIB_FILE
    639 TCL_LIB_SPEC
    640 TCL_LIB_FLAG
    641 TCL_LIB_FILE
    642 TCL_SRC_DIR
    643 TCL_BIN_DIR
    644 TCL_PATCH_LEVEL
    645 TCL_VERSION
    646 WIN32LDAPP
    647 GUI_CFLAGS_X
    648 LIBGUI
    649 LTLIBLZMA
    650 LIBLZMA
    651 HAVE_LIBLZMA
    652 WIN32LIBS
    653 SER_HARDWIRE
    654 WERROR_CFLAGS
    655 WARN_CFLAGS
    656 SYSTEM_GDBINIT
    657 TARGET_SYSTEM_ROOT
    658 CONFIG_LDFLAGS
    659 RDYNAMIC
    660 ALLOCA
    661 LTLIBIPT
    662 LIBIPT
    663 HAVE_LIBIPT
    664 HAVE_GUILE_FALSE
    665 HAVE_GUILE_TRUE
    666 GUILE_LIBS
    667 GUILE_CPPFLAGS
    668 GUILD_TARGET_FLAG
    669 GUILD
    670 pkg_config_prog_path
    671 HAVE_PYTHON_FALSE
    672 HAVE_PYTHON_TRUE
    673 PYTHON_LIBS
    674 PYTHON_CPPFLAGS
    675 PYTHON_CFLAGS
    676 python_prog_path
    677 LTLIBEXPAT
    678 LIBEXPAT
    679 HAVE_LIBEXPAT
    680 JIT_READER_DIR
    681 TARGET_PTR
    682 READLINE_TEXI_INCFLAG
    683 READLINE_CFLAGS
    684 READLINE_DEPS
    685 READLINE
    686 zlibinc
    687 zlibdir
    688 MIG
    689 WINDRES
    690 DLLTOOL
    691 AR
    692 YFLAGS
    693 YACC
    694 RANLIB
    695 LN_S
    696 INSTALL_DATA
    697 INSTALL_SCRIPT
    698 INSTALL_PROGRAM
    699 AWK
    700 REPORT_BUGS_TEXI
    701 REPORT_BUGS_TO
    702 PKGVERSION
    703 HAVE_NATIVE_GCORE_TARGET
    704 TARGET_OBS
    705 subdirs
    706 GDB_DATADIR
    707 DEBUGDIR
    708 MAKEINFO_EXTRA_FLAGS
    709 MAKEINFOFLAGS
    710 MAKEINFO
    711 PACKAGE
    712 GNULIB_STDINT_H
    713 CATOBJEXT
    714 GENCAT
    715 INSTOBJEXT
    716 DATADIRNAME
    717 CATALOGS
    718 POSUB
    719 GMSGFMT
    720 XGETTEXT
    721 INCINTL
    722 LIBINTL_DEP
    723 LIBINTL
    724 USE_NLS
    725 SET_MAKE
    726 GMAKE_FALSE
    727 GMAKE_TRUE
    728 MAKE
    729 CCDEPMODE
    730 DEPDIR
    731 am__leading_dot
    732 COMPILER
    733 INSTALL_STRIP_PROGRAM
    734 STRIP
    735 install_sh
    736 target_os
    737 target_vendor
    738 target_cpu
    739 target
    740 host_os
    741 host_vendor
    742 host_cpu
    743 host
    744 build_os
    745 build_vendor
    746 build_cpu
    747 build
    748 EGREP
    749 GREP
    750 CPP
    751 ac_ct_CXX
    752 CXXFLAGS
    753 CXX
    754 OBJEXT
    755 EXEEXT
    756 ac_ct_CC
    757 CPPFLAGS
    758 LDFLAGS
    759 CFLAGS
    760 CC
    761 MAINT
    762 MAINTAINER_MODE_FALSE
    763 MAINTAINER_MODE_TRUE
    764 target_alias
    765 host_alias
    766 build_alias
    767 LIBS
    768 ECHO_T
    769 ECHO_N
    770 ECHO_C
    771 DEFS
    772 mandir
    773 localedir
    774 libdir
    775 psdir
    776 pdfdir
    777 dvidir
    778 htmldir
    779 infodir
    780 docdir
    781 oldincludedir
    782 includedir
    783 localstatedir
    784 sharedstatedir
    785 sysconfdir
    786 datadir
    787 datarootdir
    788 libexecdir
    789 sbindir
    790 bindir
    791 program_transform_name
    792 prefix
    793 exec_prefix
    794 PACKAGE_URL
    795 PACKAGE_BUGREPORT
    796 PACKAGE_STRING
    797 PACKAGE_VERSION
    798 PACKAGE_TARNAME
    799 PACKAGE_NAME
    800 PATH_SEPARATOR
    801 SHELL'
    802 ac_subst_files='host_makefile_frag'
    803 ac_user_opts='
    804 enable_option_checking
    805 enable_maintainer_mode
    806 enable_plugins
    807 enable_largefile
    808 enable_build_with_cxx
    809 with_separate_debug_dir
    810 with_gdb_datadir
    811 with_relocated_sources
    812 with_auto_load_dir
    813 with_auto_load_safe_path
    814 enable_targets
    815 enable_64_bit_bfd
    816 enable_gdbcli
    817 enable_gdbmi
    818 enable_tui
    819 enable_gdbtk
    820 with_libunwind_ia64
    821 with_curses
    822 enable_profiling
    823 with_pkgversion
    824 with_bugurl
    825 with_system_zlib
    826 with_libiconv_prefix
    827 with_iconv_bin
    828 with_system_readline
    829 with_jit_reader_dir
    830 with_expat
    831 with_gnu_ld
    832 enable_rpath
    833 with_libexpat_prefix
    834 with_python
    835 with_guile
    836 enable_libmcheck
    837 with_intel_pt
    838 with_libipt_prefix
    839 with_included_regex
    840 with_sysroot
    841 with_system_gdbinit
    842 enable_werror
    843 enable_build_warnings
    844 enable_gdb_build_warnings
    845 with_lzma
    846 with_liblzma_prefix
    847 with_tcl
    848 with_tk
    849 with_x
    850 enable_sim
    851 enable_multi_ice
    852 enable_gdbserver
    853 with_babeltrace
    854 with_libbabeltrace_prefix
    855 '
    856       ac_precious_vars='build_alias
    857 host_alias
    858 target_alias
    859 CC
    860 CFLAGS
    861 LDFLAGS
    862 LIBS
    863 CPPFLAGS
    864 CXX
    865 CXXFLAGS
    866 CCC
    867 CPP
    868 MAKEINFO
    869 MAKEINFOFLAGS
    870 YACC
    871 YFLAGS
    872 XMKMF'
    873 ac_subdirs_all='testsuite
    874 gdbtk
    875 multi-ice
    876 gdbserver'
    877 
    878 # Initialize some variables set by options.
    879 ac_init_help=
    880 ac_init_version=false
    881 ac_unrecognized_opts=
    882 ac_unrecognized_sep=
    883 # The variables have the same names as the options, with
    884 # dashes changed to underlines.
    885 cache_file=/dev/null
    886 exec_prefix=NONE
    887 no_create=
    888 no_recursion=
    889 prefix=NONE
    890 program_prefix=NONE
    891 program_suffix=NONE
    892 program_transform_name=s,x,x,
    893 silent=
    894 site=
    895 srcdir=
    896 verbose=
    897 x_includes=NONE
    898 x_libraries=NONE
    899 
    900 # Installation directory options.
    901 # These are left unexpanded so users can "make install exec_prefix=/foo"
    902 # and all the variables that are supposed to be based on exec_prefix
    903 # by default will actually change.
    904 # Use braces instead of parens because sh, perl, etc. also accept them.
    905 # (The list follows the same order as the GNU Coding Standards.)
    906 bindir='${exec_prefix}/bin'
    907 sbindir='${exec_prefix}/sbin'
    908 libexecdir='${exec_prefix}/libexec'
    909 datarootdir='${prefix}/share'
    910 datadir='${datarootdir}'
    911 sysconfdir='${prefix}/etc'
    912 sharedstatedir='${prefix}/com'
    913 localstatedir='${prefix}/var'
    914 includedir='${prefix}/include'
    915 oldincludedir='/usr/include'
    916 docdir='${datarootdir}/doc/${PACKAGE}'
    917 infodir='${datarootdir}/info'
    918 htmldir='${docdir}'
    919 dvidir='${docdir}'
    920 pdfdir='${docdir}'
    921 psdir='${docdir}'
    922 libdir='${exec_prefix}/lib'
    923 localedir='${datarootdir}/locale'
    924 mandir='${datarootdir}/man'
    925 
    926 ac_prev=
    927 ac_dashdash=
    928 for ac_option
    929 do
    930   # If the previous option needs an argument, assign it.
    931   if test -n "$ac_prev"; then
    932     eval $ac_prev=\$ac_option
    933     ac_prev=
    934     continue
    935   fi
    936 
    937   case $ac_option in
    938   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    939   *)	ac_optarg=yes ;;
    940   esac
    941 
    942   # Accept the important Cygnus configure options, so we can diagnose typos.
    943 
    944   case $ac_dashdash$ac_option in
    945   --)
    946     ac_dashdash=yes ;;
    947 
    948   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    949     ac_prev=bindir ;;
    950   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    951     bindir=$ac_optarg ;;
    952 
    953   -build | --build | --buil | --bui | --bu)
    954     ac_prev=build_alias ;;
    955   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    956     build_alias=$ac_optarg ;;
    957 
    958   -cache-file | --cache-file | --cache-fil | --cache-fi \
    959   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    960     ac_prev=cache_file ;;
    961   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    962   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    963     cache_file=$ac_optarg ;;
    964 
    965   --config-cache | -C)
    966     cache_file=config.cache ;;
    967 
    968   -datadir | --datadir | --datadi | --datad)
    969     ac_prev=datadir ;;
    970   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    971     datadir=$ac_optarg ;;
    972 
    973   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    974   | --dataroo | --dataro | --datar)
    975     ac_prev=datarootdir ;;
    976   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    977   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    978     datarootdir=$ac_optarg ;;
    979 
    980   -disable-* | --disable-*)
    981     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    982     # Reject names that are not valid shell variable names.
    983     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    984       as_fn_error "invalid feature name: $ac_useropt"
    985     ac_useropt_orig=$ac_useropt
    986     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    987     case $ac_user_opts in
    988       *"
    989 "enable_$ac_useropt"
    990 "*) ;;
    991       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    992 	 ac_unrecognized_sep=', ';;
    993     esac
    994     eval enable_$ac_useropt=no ;;
    995 
    996   -docdir | --docdir | --docdi | --doc | --do)
    997     ac_prev=docdir ;;
    998   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    999     docdir=$ac_optarg ;;
   1000 
   1001   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1002     ac_prev=dvidir ;;
   1003   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1004     dvidir=$ac_optarg ;;
   1005 
   1006   -enable-* | --enable-*)
   1007     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1008     # Reject names that are not valid shell variable names.
   1009     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1010       as_fn_error "invalid feature name: $ac_useropt"
   1011     ac_useropt_orig=$ac_useropt
   1012     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1013     case $ac_user_opts in
   1014       *"
   1015 "enable_$ac_useropt"
   1016 "*) ;;
   1017       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1018 	 ac_unrecognized_sep=', ';;
   1019     esac
   1020     eval enable_$ac_useropt=\$ac_optarg ;;
   1021 
   1022   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1023   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1024   | --exec | --exe | --ex)
   1025     ac_prev=exec_prefix ;;
   1026   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1027   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1028   | --exec=* | --exe=* | --ex=*)
   1029     exec_prefix=$ac_optarg ;;
   1030 
   1031   -gas | --gas | --ga | --g)
   1032     # Obsolete; use --with-gas.
   1033     with_gas=yes ;;
   1034 
   1035   -help | --help | --hel | --he | -h)
   1036     ac_init_help=long ;;
   1037   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1038     ac_init_help=recursive ;;
   1039   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1040     ac_init_help=short ;;
   1041 
   1042   -host | --host | --hos | --ho)
   1043     ac_prev=host_alias ;;
   1044   -host=* | --host=* | --hos=* | --ho=*)
   1045     host_alias=$ac_optarg ;;
   1046 
   1047   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1048     ac_prev=htmldir ;;
   1049   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1050   | --ht=*)
   1051     htmldir=$ac_optarg ;;
   1052 
   1053   -includedir | --includedir | --includedi | --included | --include \
   1054   | --includ | --inclu | --incl | --inc)
   1055     ac_prev=includedir ;;
   1056   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1057   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1058     includedir=$ac_optarg ;;
   1059 
   1060   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1061     ac_prev=infodir ;;
   1062   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1063     infodir=$ac_optarg ;;
   1064 
   1065   -libdir | --libdir | --libdi | --libd)
   1066     ac_prev=libdir ;;
   1067   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1068     libdir=$ac_optarg ;;
   1069 
   1070   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1071   | --libexe | --libex | --libe)
   1072     ac_prev=libexecdir ;;
   1073   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1074   | --libexe=* | --libex=* | --libe=*)
   1075     libexecdir=$ac_optarg ;;
   1076 
   1077   -localedir | --localedir | --localedi | --localed | --locale)
   1078     ac_prev=localedir ;;
   1079   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1080     localedir=$ac_optarg ;;
   1081 
   1082   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1083   | --localstate | --localstat | --localsta | --localst | --locals)
   1084     ac_prev=localstatedir ;;
   1085   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1086   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1087     localstatedir=$ac_optarg ;;
   1088 
   1089   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1090     ac_prev=mandir ;;
   1091   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1092     mandir=$ac_optarg ;;
   1093 
   1094   -nfp | --nfp | --nf)
   1095     # Obsolete; use --without-fp.
   1096     with_fp=no ;;
   1097 
   1098   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1099   | --no-cr | --no-c | -n)
   1100     no_create=yes ;;
   1101 
   1102   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1103   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1104     no_recursion=yes ;;
   1105 
   1106   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1107   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1108   | --oldin | --oldi | --old | --ol | --o)
   1109     ac_prev=oldincludedir ;;
   1110   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1111   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1112   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1113     oldincludedir=$ac_optarg ;;
   1114 
   1115   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1116     ac_prev=prefix ;;
   1117   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1118     prefix=$ac_optarg ;;
   1119 
   1120   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1121   | --program-pre | --program-pr | --program-p)
   1122     ac_prev=program_prefix ;;
   1123   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1124   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1125     program_prefix=$ac_optarg ;;
   1126 
   1127   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1128   | --program-suf | --program-su | --program-s)
   1129     ac_prev=program_suffix ;;
   1130   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1131   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1132     program_suffix=$ac_optarg ;;
   1133 
   1134   -program-transform-name | --program-transform-name \
   1135   | --program-transform-nam | --program-transform-na \
   1136   | --program-transform-n | --program-transform- \
   1137   | --program-transform | --program-transfor \
   1138   | --program-transfo | --program-transf \
   1139   | --program-trans | --program-tran \
   1140   | --progr-tra | --program-tr | --program-t)
   1141     ac_prev=program_transform_name ;;
   1142   -program-transform-name=* | --program-transform-name=* \
   1143   | --program-transform-nam=* | --program-transform-na=* \
   1144   | --program-transform-n=* | --program-transform-=* \
   1145   | --program-transform=* | --program-transfor=* \
   1146   | --program-transfo=* | --program-transf=* \
   1147   | --program-trans=* | --program-tran=* \
   1148   | --progr-tra=* | --program-tr=* | --program-t=*)
   1149     program_transform_name=$ac_optarg ;;
   1150 
   1151   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1152     ac_prev=pdfdir ;;
   1153   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1154     pdfdir=$ac_optarg ;;
   1155 
   1156   -psdir | --psdir | --psdi | --psd | --ps)
   1157     ac_prev=psdir ;;
   1158   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1159     psdir=$ac_optarg ;;
   1160 
   1161   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1162   | -silent | --silent | --silen | --sile | --sil)
   1163     silent=yes ;;
   1164 
   1165   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1166     ac_prev=sbindir ;;
   1167   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1168   | --sbi=* | --sb=*)
   1169     sbindir=$ac_optarg ;;
   1170 
   1171   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1172   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1173   | --sharedst | --shareds | --shared | --share | --shar \
   1174   | --sha | --sh)
   1175     ac_prev=sharedstatedir ;;
   1176   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1177   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1178   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1179   | --sha=* | --sh=*)
   1180     sharedstatedir=$ac_optarg ;;
   1181 
   1182   -site | --site | --sit)
   1183     ac_prev=site ;;
   1184   -site=* | --site=* | --sit=*)
   1185     site=$ac_optarg ;;
   1186 
   1187   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1188     ac_prev=srcdir ;;
   1189   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1190     srcdir=$ac_optarg ;;
   1191 
   1192   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1193   | --syscon | --sysco | --sysc | --sys | --sy)
   1194     ac_prev=sysconfdir ;;
   1195   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1196   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1197     sysconfdir=$ac_optarg ;;
   1198 
   1199   -target | --target | --targe | --targ | --tar | --ta | --t)
   1200     ac_prev=target_alias ;;
   1201   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1202     target_alias=$ac_optarg ;;
   1203 
   1204   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1205     verbose=yes ;;
   1206 
   1207   -version | --version | --versio | --versi | --vers | -V)
   1208     ac_init_version=: ;;
   1209 
   1210   -with-* | --with-*)
   1211     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1212     # Reject names that are not valid shell variable names.
   1213     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1214       as_fn_error "invalid package name: $ac_useropt"
   1215     ac_useropt_orig=$ac_useropt
   1216     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1217     case $ac_user_opts in
   1218       *"
   1219 "with_$ac_useropt"
   1220 "*) ;;
   1221       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1222 	 ac_unrecognized_sep=', ';;
   1223     esac
   1224     eval with_$ac_useropt=\$ac_optarg ;;
   1225 
   1226   -without-* | --without-*)
   1227     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1228     # Reject names that are not valid shell variable names.
   1229     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1230       as_fn_error "invalid package name: $ac_useropt"
   1231     ac_useropt_orig=$ac_useropt
   1232     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1233     case $ac_user_opts in
   1234       *"
   1235 "with_$ac_useropt"
   1236 "*) ;;
   1237       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1238 	 ac_unrecognized_sep=', ';;
   1239     esac
   1240     eval with_$ac_useropt=no ;;
   1241 
   1242   --x)
   1243     # Obsolete; use --with-x.
   1244     with_x=yes ;;
   1245 
   1246   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1247   | --x-incl | --x-inc | --x-in | --x-i)
   1248     ac_prev=x_includes ;;
   1249   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1250   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1251     x_includes=$ac_optarg ;;
   1252 
   1253   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1254   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1255     ac_prev=x_libraries ;;
   1256   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1257   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1258     x_libraries=$ac_optarg ;;
   1259 
   1260   -*) as_fn_error "unrecognized option: \`$ac_option'
   1261 Try \`$0 --help' for more information."
   1262     ;;
   1263 
   1264   *=*)
   1265     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1266     # Reject names that are not valid shell variable names.
   1267     case $ac_envvar in #(
   1268       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1269       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
   1270     esac
   1271     eval $ac_envvar=\$ac_optarg
   1272     export $ac_envvar ;;
   1273 
   1274   *)
   1275     # FIXME: should be removed in autoconf 3.0.
   1276     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1277     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1278       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1279     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1280     ;;
   1281 
   1282   esac
   1283 done
   1284 
   1285 if test -n "$ac_prev"; then
   1286   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1287   as_fn_error "missing argument to $ac_option"
   1288 fi
   1289 
   1290 if test -n "$ac_unrecognized_opts"; then
   1291   case $enable_option_checking in
   1292     no) ;;
   1293     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
   1294     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1295   esac
   1296 fi
   1297 
   1298 # Check all directory arguments for consistency.
   1299 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1300 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1301 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1302 		libdir localedir mandir
   1303 do
   1304   eval ac_val=\$$ac_var
   1305   # Remove trailing slashes.
   1306   case $ac_val in
   1307     */ )
   1308       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1309       eval $ac_var=\$ac_val;;
   1310   esac
   1311   # Be sure to have absolute directory names.
   1312   case $ac_val in
   1313     [\\/$]* | ?:[\\/]* )  continue;;
   1314     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1315   esac
   1316   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
   1317 done
   1318 
   1319 # There might be people who depend on the old broken behavior: `$host'
   1320 # used to hold the argument of --host etc.
   1321 # FIXME: To remove some day.
   1322 build=$build_alias
   1323 host=$host_alias
   1324 target=$target_alias
   1325 
   1326 # FIXME: To remove some day.
   1327 if test "x$host_alias" != x; then
   1328   if test "x$build_alias" = x; then
   1329     cross_compiling=maybe
   1330     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1331     If a cross compiler is detected then cross compile mode will be used." >&2
   1332   elif test "x$build_alias" != "x$host_alias"; then
   1333     cross_compiling=yes
   1334   fi
   1335 fi
   1336 
   1337 ac_tool_prefix=
   1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1339 
   1340 test "$silent" = yes && exec 6>/dev/null
   1341 
   1342 
   1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1344 ac_ls_di=`ls -di .` &&
   1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1346   as_fn_error "working directory cannot be determined"
   1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1348   as_fn_error "pwd does not report name of working directory"
   1349 
   1350 
   1351 # Find the source files, if location was not specified.
   1352 if test -z "$srcdir"; then
   1353   ac_srcdir_defaulted=yes
   1354   # Try the directory containing this script, then the parent directory.
   1355   ac_confdir=`$as_dirname -- "$as_myself" ||
   1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1357 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1358 	 X"$as_myself" : 'X\(//\)$' \| \
   1359 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1360 $as_echo X"$as_myself" |
   1361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1362 	    s//\1/
   1363 	    q
   1364 	  }
   1365 	  /^X\(\/\/\)[^/].*/{
   1366 	    s//\1/
   1367 	    q
   1368 	  }
   1369 	  /^X\(\/\/\)$/{
   1370 	    s//\1/
   1371 	    q
   1372 	  }
   1373 	  /^X\(\/\).*/{
   1374 	    s//\1/
   1375 	    q
   1376 	  }
   1377 	  s/.*/./; q'`
   1378   srcdir=$ac_confdir
   1379   if test ! -r "$srcdir/$ac_unique_file"; then
   1380     srcdir=..
   1381   fi
   1382 else
   1383   ac_srcdir_defaulted=no
   1384 fi
   1385 if test ! -r "$srcdir/$ac_unique_file"; then
   1386   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1387   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
   1388 fi
   1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1390 ac_abs_confdir=`(
   1391 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
   1392 	pwd)`
   1393 # When building in place, set srcdir=.
   1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1395   srcdir=.
   1396 fi
   1397 # Remove unnecessary trailing slashes from srcdir.
   1398 # Double slashes in file names in object file debugging info
   1399 # mess up M-x gdb in Emacs.
   1400 case $srcdir in
   1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1402 esac
   1403 for ac_var in $ac_precious_vars; do
   1404   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1405   eval ac_env_${ac_var}_value=\$${ac_var}
   1406   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1407   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1408 done
   1409 
   1410 #
   1411 # Report the --help message.
   1412 #
   1413 if test "$ac_init_help" = "long"; then
   1414   # Omit some internal or obsolete options to make the list less imposing.
   1415   # This message is too long to be a string in the A/UX 3.1 sh.
   1416   cat <<_ACEOF
   1417 \`configure' configures this package to adapt to many kinds of systems.
   1418 
   1419 Usage: $0 [OPTION]... [VAR=VALUE]...
   1420 
   1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1422 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1423 
   1424 Defaults for the options are specified in brackets.
   1425 
   1426 Configuration:
   1427   -h, --help              display this help and exit
   1428       --help=short        display options specific to this package
   1429       --help=recursive    display the short help of all the included packages
   1430   -V, --version           display version information and exit
   1431   -q, --quiet, --silent   do not print \`checking...' messages
   1432       --cache-file=FILE   cache test results in FILE [disabled]
   1433   -C, --config-cache      alias for \`--cache-file=config.cache'
   1434   -n, --no-create         do not create output files
   1435       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1436 
   1437 Installation directories:
   1438   --prefix=PREFIX         install architecture-independent files in PREFIX
   1439                           [$ac_default_prefix]
   1440   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1441                           [PREFIX]
   1442 
   1443 By default, \`make install' will install all the files in
   1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1446 for instance \`--prefix=\$HOME'.
   1447 
   1448 For better control, use the options below.
   1449 
   1450 Fine tuning of the installation directories:
   1451   --bindir=DIR            user executables [EPREFIX/bin]
   1452   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1453   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1454   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1455   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1456   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1457   --libdir=DIR            object code libraries [EPREFIX/lib]
   1458   --includedir=DIR        C header files [PREFIX/include]
   1459   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1460   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1461   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1462   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1463   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1464   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1465   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1466   --htmldir=DIR           html documentation [DOCDIR]
   1467   --dvidir=DIR            dvi documentation [DOCDIR]
   1468   --pdfdir=DIR            pdf documentation [DOCDIR]
   1469   --psdir=DIR             ps documentation [DOCDIR]
   1470 _ACEOF
   1471 
   1472   cat <<\_ACEOF
   1473 
   1474 Program names:
   1475   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1476   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1477   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1478 
   1479 X features:
   1480   --x-includes=DIR    X include files are in DIR
   1481   --x-libraries=DIR   X library files are in DIR
   1482 
   1483 System types:
   1484   --build=BUILD     configure for building on BUILD [guessed]
   1485   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1486   --target=TARGET   configure for building compilers for TARGET [HOST]
   1487 _ACEOF
   1488 fi
   1489 
   1490 if test -n "$ac_init_help"; then
   1491 
   1492   cat <<\_ACEOF
   1493 
   1494 Optional Features:
   1495   --disable-option-checking  ignore unrecognized --enable/--with options
   1496   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1497   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1498   --enable-maintainer-mode  enable make rules and dependencies not useful
   1499 			  (and sometimes confusing) to the casual installer
   1500   --enable-plugins        Enable support for plugins
   1501   --disable-largefile     omit support for large files
   1502   --enable-build-with-cxx build with C++ compiler instead of C compiler
   1503   --enable-targets=TARGETS
   1504                           alternative target configurations
   1505   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
   1506   --disable-gdbcli        disable command-line interface (CLI)
   1507   --disable-gdbmi         disable machine-interface (MI)
   1508   --enable-tui            enable full-screen terminal user interface (TUI)
   1509   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
   1510   --enable-profiling      enable profiling of GDB
   1511   --disable-rpath         do not hardcode runtime library paths
   1512   --enable-libmcheck      Try linking with -lmcheck if available
   1513   --enable-werror         treat compile warnings as errors
   1514   --enable-build-warnings enable build-time compiler warnings if gcc is used
   1515   --enable-gdb-build-warnings
   1516                           enable GDB specific build-time compiler warnings if
   1517                           gcc is used
   1518   --enable-sim            link gdb with simulator
   1519   --enable-multi-ice      build the multi-ice-gdb-server
   1520   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
   1521                           is auto)
   1522 
   1523 Optional Packages:
   1524   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1525   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1526   --with-separate-debug-dir=PATH
   1527                           look for global separate debug info in this path
   1528                           [LIBDIR/debug]
   1529   --with-gdb-datadir=PATH look for global separate data files in this path
   1530                           [DATADIR/gdb]
   1531   --with-relocated-sources=PATH
   1532                           automatically relocate this path for source files
   1533   --with-auto-load-dir=PATH
   1534                           directories from which to load auto-loaded scripts
   1535                           [$debugdir:$datadir/auto-load]
   1536   --with-auto-load-safe-path=PATH
   1537                           directories safe to hold auto-loaded files
   1538                           [--with-auto-load-dir]
   1539   --without-auto-load-safe-path
   1540                           do not restrict auto-loaded files locations
   1541   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
   1542   --with-curses           use the curses library instead of the termcap
   1543                           library
   1544   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
   1545   --with-bugurl=URL       Direct users to URL to report a bug
   1546   --with-system-zlib      use installed libz
   1547   --with-libiconv-prefix=DIR
   1548                           search for libiconv in DIR/include and DIR/lib
   1549   --with-iconv-bin=PATH   specify where to find the iconv program
   1550   --with-system-readline  use installed readline library
   1551   --with-jit-reader-dir=PATH
   1552                           directory to load the JIT readers from
   1553   --with-expat            include expat support (auto/yes/no)
   1554   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   1555   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
   1556   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
   1557   --with-python[=PYTHON]  include python support
   1558                           (auto/yes/no/<python-program>)
   1559   --with-guile[=GUILE]    include guile support
   1560                           (auto/yes/no/<guile-version>/<pkg-config-program>)
   1561   --with-intel-pt         include Intel(R) Processor Trace support (auto/yes/no)
   1562   --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
   1563   --without-libipt-prefix     don't search for libipt in includedir and libdir
   1564   --without-included-regex
   1565                           don't use included regex; this is the default on
   1566                           systems with version 2 of the GNU C library (use
   1567                           with caution on other system)
   1568   --with-sysroot[=DIR]    search for usr/lib et al within DIR
   1569   --with-system-gdbinit=PATH
   1570                           automatically load a system-wide gdbinit file
   1571   --with-lzma             support lzma compression (auto/yes/no)
   1572   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
   1573   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
   1574   --with-tcl              directory containing tcl configuration (tclConfig.sh)
   1575   --with-tk               directory containing tk configuration (tkConfig.sh)
   1576   --with-x                use the X Window System
   1577   --with-babeltrace       include babeltrace support (auto/yes/no)
   1578   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
   1579   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
   1580 
   1581 Some influential environment variables:
   1582   CC          C compiler command
   1583   CFLAGS      C compiler flags
   1584   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1585               nonstandard directory <lib dir>
   1586   LIBS        libraries to pass to the linker, e.g. -l<library>
   1587   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1588               you have headers in a nonstandard directory <include dir>
   1589   CXX         C++ compiler command
   1590   CXXFLAGS    C++ compiler flags
   1591   CPP         C preprocessor
   1592   MAKEINFO    Parent configure detects if it is of sufficient version.
   1593   MAKEINFOFLAGS
   1594               Parameters for MAKEINFO.
   1595   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
   1596               the first program found out of: `bison -y', `byacc', `yacc'.
   1597   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1598               This script will default YFLAGS to the empty string to avoid a
   1599               default value of `-d' given by some make applications.
   1600   XMKMF       Path to xmkmf, Makefile generator for X Window System
   1601 
   1602 Use these variables to override the choices made by `configure' or to help
   1603 it to find libraries and programs with nonstandard names/locations.
   1604 
   1605 Report bugs to the package provider.
   1606 _ACEOF
   1607 ac_status=$?
   1608 fi
   1609 
   1610 if test "$ac_init_help" = "recursive"; then
   1611   # If there are subdirs, report their specific --help.
   1612   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1613     test -d "$ac_dir" ||
   1614       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1615       continue
   1616     ac_builddir=.
   1617 
   1618 case "$ac_dir" in
   1619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1620 *)
   1621   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1622   # A ".." for each directory in $ac_dir_suffix.
   1623   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1624   case $ac_top_builddir_sub in
   1625   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1626   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1627   esac ;;
   1628 esac
   1629 ac_abs_top_builddir=$ac_pwd
   1630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1631 # for backward compatibility:
   1632 ac_top_builddir=$ac_top_build_prefix
   1633 
   1634 case $srcdir in
   1635   .)  # We are building in place.
   1636     ac_srcdir=.
   1637     ac_top_srcdir=$ac_top_builddir_sub
   1638     ac_abs_top_srcdir=$ac_pwd ;;
   1639   [\\/]* | ?:[\\/]* )  # Absolute name.
   1640     ac_srcdir=$srcdir$ac_dir_suffix;
   1641     ac_top_srcdir=$srcdir
   1642     ac_abs_top_srcdir=$srcdir ;;
   1643   *) # Relative name.
   1644     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1645     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1646     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1647 esac
   1648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1649 
   1650     cd "$ac_dir" || { ac_status=$?; continue; }
   1651     # Check for guested configure.
   1652     if test -f "$ac_srcdir/configure.gnu"; then
   1653       echo &&
   1654       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1655     elif test -f "$ac_srcdir/configure"; then
   1656       echo &&
   1657       $SHELL "$ac_srcdir/configure" --help=recursive
   1658     else
   1659       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1660     fi || ac_status=$?
   1661     cd "$ac_pwd" || { ac_status=$?; break; }
   1662   done
   1663 fi
   1664 
   1665 test -n "$ac_init_help" && exit $ac_status
   1666 if $ac_init_version; then
   1667   cat <<\_ACEOF
   1668 configure
   1669 generated by GNU Autoconf 2.64
   1670 
   1671 Copyright (C) 2009 Free Software Foundation, Inc.
   1672 This configure script is free software; the Free Software Foundation
   1673 gives unlimited permission to copy, distribute and modify it.
   1674 _ACEOF
   1675   exit
   1676 fi
   1677 
   1678 ## ------------------------ ##
   1679 ## Autoconf initialization. ##
   1680 ## ------------------------ ##
   1681 
   1682 # ac_fn_c_try_compile LINENO
   1683 # --------------------------
   1684 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1685 ac_fn_c_try_compile ()
   1686 {
   1687   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1688   rm -f conftest.$ac_objext
   1689   if { { ac_try="$ac_compile"
   1690 case "(($ac_try" in
   1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1692   *) ac_try_echo=$ac_try;;
   1693 esac
   1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1695 $as_echo "$ac_try_echo"; } >&5
   1696   (eval "$ac_compile") 2>conftest.err
   1697   ac_status=$?
   1698   if test -s conftest.err; then
   1699     grep -v '^ *+' conftest.err >conftest.er1
   1700     cat conftest.er1 >&5
   1701     mv -f conftest.er1 conftest.err
   1702   fi
   1703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1704   test $ac_status = 0; } && {
   1705 	 test -z "$ac_c_werror_flag" ||
   1706 	 test ! -s conftest.err
   1707        } && test -s conftest.$ac_objext; then :
   1708   ac_retval=0
   1709 else
   1710   $as_echo "$as_me: failed program was:" >&5
   1711 sed 's/^/| /' conftest.$ac_ext >&5
   1712 
   1713 	ac_retval=1
   1714 fi
   1715   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1716   return $ac_retval
   1717 
   1718 } # ac_fn_c_try_compile
   1719 
   1720 # ac_fn_cxx_try_compile LINENO
   1721 # ----------------------------
   1722 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1723 ac_fn_cxx_try_compile ()
   1724 {
   1725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1726   rm -f conftest.$ac_objext
   1727   if { { ac_try="$ac_compile"
   1728 case "(($ac_try" in
   1729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1730   *) ac_try_echo=$ac_try;;
   1731 esac
   1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1733 $as_echo "$ac_try_echo"; } >&5
   1734   (eval "$ac_compile") 2>conftest.err
   1735   ac_status=$?
   1736   if test -s conftest.err; then
   1737     grep -v '^ *+' conftest.err >conftest.er1
   1738     cat conftest.er1 >&5
   1739     mv -f conftest.er1 conftest.err
   1740   fi
   1741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1742   test $ac_status = 0; } && {
   1743 	 test -z "$ac_cxx_werror_flag" ||
   1744 	 test ! -s conftest.err
   1745        } && test -s conftest.$ac_objext; then :
   1746   ac_retval=0
   1747 else
   1748   $as_echo "$as_me: failed program was:" >&5
   1749 sed 's/^/| /' conftest.$ac_ext >&5
   1750 
   1751 	ac_retval=1
   1752 fi
   1753   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1754   return $ac_retval
   1755 
   1756 } # ac_fn_cxx_try_compile
   1757 
   1758 # ac_fn_c_try_cpp LINENO
   1759 # ----------------------
   1760 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1761 ac_fn_c_try_cpp ()
   1762 {
   1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1764   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1765 case "(($ac_try" in
   1766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1767   *) ac_try_echo=$ac_try;;
   1768 esac
   1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1770 $as_echo "$ac_try_echo"; } >&5
   1771   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1772   ac_status=$?
   1773   if test -s conftest.err; then
   1774     grep -v '^ *+' conftest.err >conftest.er1
   1775     cat conftest.er1 >&5
   1776     mv -f conftest.er1 conftest.err
   1777   fi
   1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1779   test $ac_status = 0; } >/dev/null && {
   1780 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1781 	 test ! -s conftest.err
   1782        }; then :
   1783   ac_retval=0
   1784 else
   1785   $as_echo "$as_me: failed program was:" >&5
   1786 sed 's/^/| /' conftest.$ac_ext >&5
   1787 
   1788     ac_retval=1
   1789 fi
   1790   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1791   return $ac_retval
   1792 
   1793 } # ac_fn_c_try_cpp
   1794 
   1795 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1796 # -------------------------------------------------------
   1797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1798 # the include files in INCLUDES and setting the cache variable VAR
   1799 # accordingly.
   1800 ac_fn_c_check_header_mongrel ()
   1801 {
   1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1803   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1805 $as_echo_n "checking for $2... " >&6; }
   1806 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1807   $as_echo_n "(cached) " >&6
   1808 fi
   1809 eval ac_res=\$$3
   1810 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1811 $as_echo "$ac_res" >&6; }
   1812 else
   1813   # Is the header compilable?
   1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1815 $as_echo_n "checking $2 usability... " >&6; }
   1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1817 /* end confdefs.h.  */
   1818 $4
   1819 #include <$2>
   1820 _ACEOF
   1821 if ac_fn_c_try_compile "$LINENO"; then :
   1822   ac_header_compiler=yes
   1823 else
   1824   ac_header_compiler=no
   1825 fi
   1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1828 $as_echo "$ac_header_compiler" >&6; }
   1829 
   1830 # Is the header present?
   1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1832 $as_echo_n "checking $2 presence... " >&6; }
   1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1834 /* end confdefs.h.  */
   1835 #include <$2>
   1836 _ACEOF
   1837 if ac_fn_c_try_cpp "$LINENO"; then :
   1838   ac_header_preproc=yes
   1839 else
   1840   ac_header_preproc=no
   1841 fi
   1842 rm -f conftest.err conftest.$ac_ext
   1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1844 $as_echo "$ac_header_preproc" >&6; }
   1845 
   1846 # So?  What about this header?
   1847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1848   yes:no: )
   1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1853     ;;
   1854   no:yes:* )
   1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1858 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1862 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1865     ;;
   1866 esac
   1867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1868 $as_echo_n "checking for $2... " >&6; }
   1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1870   $as_echo_n "(cached) " >&6
   1871 else
   1872   eval "$3=\$ac_header_compiler"
   1873 fi
   1874 eval ac_res=\$$3
   1875 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1876 $as_echo "$ac_res" >&6; }
   1877 fi
   1878   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1879 
   1880 } # ac_fn_c_check_header_mongrel
   1881 
   1882 # ac_fn_c_try_run LINENO
   1883 # ----------------------
   1884 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1885 # that executables *can* be run.
   1886 ac_fn_c_try_run ()
   1887 {
   1888   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1889   if { { ac_try="$ac_link"
   1890 case "(($ac_try" in
   1891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1892   *) ac_try_echo=$ac_try;;
   1893 esac
   1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1895 $as_echo "$ac_try_echo"; } >&5
   1896   (eval "$ac_link") 2>&5
   1897   ac_status=$?
   1898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1899   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1900   { { case "(($ac_try" in
   1901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1902   *) ac_try_echo=$ac_try;;
   1903 esac
   1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1905 $as_echo "$ac_try_echo"; } >&5
   1906   (eval "$ac_try") 2>&5
   1907   ac_status=$?
   1908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1909   test $ac_status = 0; }; }; then :
   1910   ac_retval=0
   1911 else
   1912   $as_echo "$as_me: program exited with status $ac_status" >&5
   1913        $as_echo "$as_me: failed program was:" >&5
   1914 sed 's/^/| /' conftest.$ac_ext >&5
   1915 
   1916        ac_retval=$ac_status
   1917 fi
   1918   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1919   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1920   return $ac_retval
   1921 
   1922 } # ac_fn_c_try_run
   1923 
   1924 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1925 # -------------------------------------------------------
   1926 # Tests whether HEADER exists and can be compiled using the include files in
   1927 # INCLUDES, setting the cache variable VAR accordingly.
   1928 ac_fn_c_check_header_compile ()
   1929 {
   1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1932 $as_echo_n "checking for $2... " >&6; }
   1933 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1934   $as_echo_n "(cached) " >&6
   1935 else
   1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1937 /* end confdefs.h.  */
   1938 $4
   1939 #include <$2>
   1940 _ACEOF
   1941 if ac_fn_c_try_compile "$LINENO"; then :
   1942   eval "$3=yes"
   1943 else
   1944   eval "$3=no"
   1945 fi
   1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1947 fi
   1948 eval ac_res=\$$3
   1949 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1950 $as_echo "$ac_res" >&6; }
   1951   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1952 
   1953 } # ac_fn_c_check_header_compile
   1954 
   1955 # ac_fn_c_try_link LINENO
   1956 # -----------------------
   1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1958 ac_fn_c_try_link ()
   1959 {
   1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1961   rm -f conftest.$ac_objext conftest$ac_exeext
   1962   if { { ac_try="$ac_link"
   1963 case "(($ac_try" in
   1964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1965   *) ac_try_echo=$ac_try;;
   1966 esac
   1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1968 $as_echo "$ac_try_echo"; } >&5
   1969   (eval "$ac_link") 2>conftest.err
   1970   ac_status=$?
   1971   if test -s conftest.err; then
   1972     grep -v '^ *+' conftest.err >conftest.er1
   1973     cat conftest.er1 >&5
   1974     mv -f conftest.er1 conftest.err
   1975   fi
   1976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1977   test $ac_status = 0; } && {
   1978 	 test -z "$ac_c_werror_flag" ||
   1979 	 test ! -s conftest.err
   1980        } && test -s conftest$ac_exeext && {
   1981 	 test "$cross_compiling" = yes ||
   1982 	 $as_test_x conftest$ac_exeext
   1983        }; then :
   1984   ac_retval=0
   1985 else
   1986   $as_echo "$as_me: failed program was:" >&5
   1987 sed 's/^/| /' conftest.$ac_ext >&5
   1988 
   1989 	ac_retval=1
   1990 fi
   1991   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1992   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1993   # interfere with the next link command; also delete a directory that is
   1994   # left behind by Apple's compiler.  We do this before executing the actions.
   1995   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1996   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1997   return $ac_retval
   1998 
   1999 } # ac_fn_c_try_link
   2000 
   2001 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2002 # --------------------------------------------
   2003 # Tries to find the compile-time value of EXPR in a program that includes
   2004 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2005 # computed
   2006 ac_fn_c_compute_int ()
   2007 {
   2008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2009   if test "$cross_compiling" = yes; then
   2010     # Depending upon the size, compute the lo and hi bounds.
   2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2012 /* end confdefs.h.  */
   2013 $4
   2014 int
   2015 main ()
   2016 {
   2017 static int test_array [1 - 2 * !(($2) >= 0)];
   2018 test_array [0] = 0
   2019 
   2020   ;
   2021   return 0;
   2022 }
   2023 _ACEOF
   2024 if ac_fn_c_try_compile "$LINENO"; then :
   2025   ac_lo=0 ac_mid=0
   2026   while :; do
   2027     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2028 /* end confdefs.h.  */
   2029 $4
   2030 int
   2031 main ()
   2032 {
   2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2034 test_array [0] = 0
   2035 
   2036   ;
   2037   return 0;
   2038 }
   2039 _ACEOF
   2040 if ac_fn_c_try_compile "$LINENO"; then :
   2041   ac_hi=$ac_mid; break
   2042 else
   2043   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2044 			if test $ac_lo -le $ac_mid; then
   2045 			  ac_lo= ac_hi=
   2046 			  break
   2047 			fi
   2048 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2049 fi
   2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2051   done
   2052 else
   2053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2054 /* end confdefs.h.  */
   2055 $4
   2056 int
   2057 main ()
   2058 {
   2059 static int test_array [1 - 2 * !(($2) < 0)];
   2060 test_array [0] = 0
   2061 
   2062   ;
   2063   return 0;
   2064 }
   2065 _ACEOF
   2066 if ac_fn_c_try_compile "$LINENO"; then :
   2067   ac_hi=-1 ac_mid=-1
   2068   while :; do
   2069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2070 /* end confdefs.h.  */
   2071 $4
   2072 int
   2073 main ()
   2074 {
   2075 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2076 test_array [0] = 0
   2077 
   2078   ;
   2079   return 0;
   2080 }
   2081 _ACEOF
   2082 if ac_fn_c_try_compile "$LINENO"; then :
   2083   ac_lo=$ac_mid; break
   2084 else
   2085   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2086 			if test $ac_mid -le $ac_hi; then
   2087 			  ac_lo= ac_hi=
   2088 			  break
   2089 			fi
   2090 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2091 fi
   2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2093   done
   2094 else
   2095   ac_lo= ac_hi=
   2096 fi
   2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2098 fi
   2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2100 # Binary search between lo and hi bounds.
   2101 while test "x$ac_lo" != "x$ac_hi"; do
   2102   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2104 /* end confdefs.h.  */
   2105 $4
   2106 int
   2107 main ()
   2108 {
   2109 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2110 test_array [0] = 0
   2111 
   2112   ;
   2113   return 0;
   2114 }
   2115 _ACEOF
   2116 if ac_fn_c_try_compile "$LINENO"; then :
   2117   ac_hi=$ac_mid
   2118 else
   2119   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2120 fi
   2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2122 done
   2123 case $ac_lo in #((
   2124 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2125 '') ac_retval=1 ;;
   2126 esac
   2127   else
   2128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2129 /* end confdefs.h.  */
   2130 $4
   2131 static long int longval () { return $2; }
   2132 static unsigned long int ulongval () { return $2; }
   2133 #include <stdio.h>
   2134 #include <stdlib.h>
   2135 int
   2136 main ()
   2137 {
   2138 
   2139   FILE *f = fopen ("conftest.val", "w");
   2140   if (! f)
   2141     return 1;
   2142   if (($2) < 0)
   2143     {
   2144       long int i = longval ();
   2145       if (i != ($2))
   2146 	return 1;
   2147       fprintf (f, "%ld", i);
   2148     }
   2149   else
   2150     {
   2151       unsigned long int i = ulongval ();
   2152       if (i != ($2))
   2153 	return 1;
   2154       fprintf (f, "%lu", i);
   2155     }
   2156   /* Do not output a trailing newline, as this causes \r\n confusion
   2157      on some platforms.  */
   2158   return ferror (f) || fclose (f) != 0;
   2159 
   2160   ;
   2161   return 0;
   2162 }
   2163 _ACEOF
   2164 if ac_fn_c_try_run "$LINENO"; then :
   2165   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2166 else
   2167   ac_retval=1
   2168 fi
   2169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2170   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2171 rm -f conftest.val
   2172 
   2173   fi
   2174   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2175   return $ac_retval
   2176 
   2177 } # ac_fn_c_compute_int
   2178 
   2179 # ac_fn_c_check_func LINENO FUNC VAR
   2180 # ----------------------------------
   2181 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2182 ac_fn_c_check_func ()
   2183 {
   2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2186 $as_echo_n "checking for $2... " >&6; }
   2187 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2188   $as_echo_n "(cached) " >&6
   2189 else
   2190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2191 /* end confdefs.h.  */
   2192 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2194 #define $2 innocuous_$2
   2195 
   2196 /* System header to define __stub macros and hopefully few prototypes,
   2197     which can conflict with char $2 (); below.
   2198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2199     <limits.h> exists even on freestanding compilers.  */
   2200 
   2201 #ifdef __STDC__
   2202 # include <limits.h>
   2203 #else
   2204 # include <assert.h>
   2205 #endif
   2206 
   2207 #undef $2
   2208 
   2209 /* Override any GCC internal prototype to avoid an error.
   2210    Use char because int might match the return type of a GCC
   2211    builtin and then its argument prototype would still apply.  */
   2212 #ifdef __cplusplus
   2213 extern "C"
   2214 #endif
   2215 char $2 ();
   2216 /* The GNU C library defines this for functions which it implements
   2217     to always fail with ENOSYS.  Some functions are actually named
   2218     something starting with __ and the normal name is an alias.  */
   2219 #if defined __stub_$2 || defined __stub___$2
   2220 choke me
   2221 #endif
   2222 
   2223 int
   2224 main ()
   2225 {
   2226 return $2 ();
   2227   ;
   2228   return 0;
   2229 }
   2230 _ACEOF
   2231 if ac_fn_c_try_link "$LINENO"; then :
   2232   eval "$3=yes"
   2233 else
   2234   eval "$3=no"
   2235 fi
   2236 rm -f core conftest.err conftest.$ac_objext \
   2237     conftest$ac_exeext conftest.$ac_ext
   2238 fi
   2239 eval ac_res=\$$3
   2240 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2241 $as_echo "$ac_res" >&6; }
   2242   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2243 
   2244 } # ac_fn_c_check_func
   2245 
   2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2247 # -------------------------------------------
   2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2249 # variable VAR accordingly.
   2250 ac_fn_c_check_type ()
   2251 {
   2252   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2254 $as_echo_n "checking for $2... " >&6; }
   2255 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2256   $as_echo_n "(cached) " >&6
   2257 else
   2258   eval "$3=no"
   2259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2260 /* end confdefs.h.  */
   2261 $4
   2262 int
   2263 main ()
   2264 {
   2265 if (sizeof ($2))
   2266 	 return 0;
   2267   ;
   2268   return 0;
   2269 }
   2270 _ACEOF
   2271 if ac_fn_c_try_compile "$LINENO"; then :
   2272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2273 /* end confdefs.h.  */
   2274 $4
   2275 int
   2276 main ()
   2277 {
   2278 if (sizeof (($2)))
   2279 	    return 0;
   2280   ;
   2281   return 0;
   2282 }
   2283 _ACEOF
   2284 if ac_fn_c_try_compile "$LINENO"; then :
   2285 
   2286 else
   2287   eval "$3=yes"
   2288 fi
   2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2290 fi
   2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2292 fi
   2293 eval ac_res=\$$3
   2294 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2295 $as_echo "$ac_res" >&6; }
   2296   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2297 
   2298 } # ac_fn_c_check_type
   2299 
   2300 # ac_fn_c_check_decl LINENO SYMBOL VAR
   2301 # ------------------------------------
   2302 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
   2303 ac_fn_c_check_decl ()
   2304 {
   2305   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2306   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2307   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2309 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2310 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2311   $as_echo_n "(cached) " >&6
   2312 else
   2313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2314 /* end confdefs.h.  */
   2315 $4
   2316 int
   2317 main ()
   2318 {
   2319 #ifndef $as_decl_name
   2320 #ifdef __cplusplus
   2321   (void) $as_decl_use;
   2322 #else
   2323   (void) $as_decl_name;
   2324 #endif
   2325 #endif
   2326 
   2327   ;
   2328   return 0;
   2329 }
   2330 _ACEOF
   2331 if ac_fn_c_try_compile "$LINENO"; then :
   2332   eval "$3=yes"
   2333 else
   2334   eval "$3=no"
   2335 fi
   2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2337 fi
   2338 eval ac_res=\$$3
   2339 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2340 $as_echo "$ac_res" >&6; }
   2341   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2342 
   2343 } # ac_fn_c_check_decl
   2344 
   2345 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2346 # ----------------------------------------------------
   2347 # Tries to find if the field MEMBER exists in type AGGR, after including
   2348 # INCLUDES, setting cache variable VAR accordingly.
   2349 ac_fn_c_check_member ()
   2350 {
   2351   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2352   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2353 $as_echo_n "checking for $2.$3... " >&6; }
   2354 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
   2355   $as_echo_n "(cached) " >&6
   2356 else
   2357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2358 /* end confdefs.h.  */
   2359 $5
   2360 int
   2361 main ()
   2362 {
   2363 static $2 ac_aggr;
   2364 if (ac_aggr.$3)
   2365 return 0;
   2366   ;
   2367   return 0;
   2368 }
   2369 _ACEOF
   2370 if ac_fn_c_try_compile "$LINENO"; then :
   2371   eval "$4=yes"
   2372 else
   2373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2374 /* end confdefs.h.  */
   2375 $5
   2376 int
   2377 main ()
   2378 {
   2379 static $2 ac_aggr;
   2380 if (sizeof ac_aggr.$3)
   2381 return 0;
   2382   ;
   2383   return 0;
   2384 }
   2385 _ACEOF
   2386 if ac_fn_c_try_compile "$LINENO"; then :
   2387   eval "$4=yes"
   2388 else
   2389   eval "$4=no"
   2390 fi
   2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2392 fi
   2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2394 fi
   2395 eval ac_res=\$$4
   2396 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2397 $as_echo "$ac_res" >&6; }
   2398   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2399 
   2400 } # ac_fn_c_check_member
   2401 cat >config.log <<_ACEOF
   2402 This file contains any messages produced by compilers while
   2403 running configure, to aid debugging if configure makes a mistake.
   2404 
   2405 It was created by $as_me, which was
   2406 generated by GNU Autoconf 2.64.  Invocation command line was
   2407 
   2408   $ $0 $@
   2409 
   2410 _ACEOF
   2411 exec 5>>config.log
   2412 {
   2413 cat <<_ASUNAME
   2414 ## --------- ##
   2415 ## Platform. ##
   2416 ## --------- ##
   2417 
   2418 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2419 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2420 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2421 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2422 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2423 
   2424 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2425 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2426 
   2427 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2428 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2429 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2430 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2431 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2432 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2433 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2434 
   2435 _ASUNAME
   2436 
   2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2438 for as_dir in $PATH
   2439 do
   2440   IFS=$as_save_IFS
   2441   test -z "$as_dir" && as_dir=.
   2442     $as_echo "PATH: $as_dir"
   2443   done
   2444 IFS=$as_save_IFS
   2445 
   2446 } >&5
   2447 
   2448 cat >&5 <<_ACEOF
   2449 
   2450 
   2451 ## ----------- ##
   2452 ## Core tests. ##
   2453 ## ----------- ##
   2454 
   2455 _ACEOF
   2456 
   2457 
   2458 # Keep a trace of the command line.
   2459 # Strip out --no-create and --no-recursion so they do not pile up.
   2460 # Strip out --silent because we don't want to record it for future runs.
   2461 # Also quote any args containing shell meta-characters.
   2462 # Make two passes to allow for proper duplicate-argument suppression.
   2463 ac_configure_args=
   2464 ac_configure_args0=
   2465 ac_configure_args1=
   2466 ac_must_keep_next=false
   2467 for ac_pass in 1 2
   2468 do
   2469   for ac_arg
   2470   do
   2471     case $ac_arg in
   2472     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2473     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2474     | -silent | --silent | --silen | --sile | --sil)
   2475       continue ;;
   2476     *\'*)
   2477       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2478     esac
   2479     case $ac_pass in
   2480     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2481     2)
   2482       as_fn_append ac_configure_args1 " '$ac_arg'"
   2483       if test $ac_must_keep_next = true; then
   2484 	ac_must_keep_next=false # Got value, back to normal.
   2485       else
   2486 	case $ac_arg in
   2487 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2488 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2489 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2490 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2491 	    case "$ac_configure_args0 " in
   2492 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2493 	    esac
   2494 	    ;;
   2495 	  -* ) ac_must_keep_next=true ;;
   2496 	esac
   2497       fi
   2498       as_fn_append ac_configure_args " '$ac_arg'"
   2499       ;;
   2500     esac
   2501   done
   2502 done
   2503 { ac_configure_args0=; unset ac_configure_args0;}
   2504 { ac_configure_args1=; unset ac_configure_args1;}
   2505 
   2506 # When interrupted or exit'd, cleanup temporary files, and complete
   2507 # config.log.  We remove comments because anyway the quotes in there
   2508 # would cause problems or look ugly.
   2509 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2510 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2511 trap 'exit_status=$?
   2512   # Save into config.log some information that might help in debugging.
   2513   {
   2514     echo
   2515 
   2516     cat <<\_ASBOX
   2517 ## ---------------- ##
   2518 ## Cache variables. ##
   2519 ## ---------------- ##
   2520 _ASBOX
   2521     echo
   2522     # The following way of writing the cache mishandles newlines in values,
   2523 (
   2524   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2525     eval ac_val=\$$ac_var
   2526     case $ac_val in #(
   2527     *${as_nl}*)
   2528       case $ac_var in #(
   2529       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2531       esac
   2532       case $ac_var in #(
   2533       _ | IFS | as_nl) ;; #(
   2534       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2535       *) { eval $ac_var=; unset $ac_var;} ;;
   2536       esac ;;
   2537     esac
   2538   done
   2539   (set) 2>&1 |
   2540     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2541     *${as_nl}ac_space=\ *)
   2542       sed -n \
   2543 	"s/'\''/'\''\\\\'\'''\''/g;
   2544 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2545       ;; #(
   2546     *)
   2547       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2548       ;;
   2549     esac |
   2550     sort
   2551 )
   2552     echo
   2553 
   2554     cat <<\_ASBOX
   2555 ## ----------------- ##
   2556 ## Output variables. ##
   2557 ## ----------------- ##
   2558 _ASBOX
   2559     echo
   2560     for ac_var in $ac_subst_vars
   2561     do
   2562       eval ac_val=\$$ac_var
   2563       case $ac_val in
   2564       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2565       esac
   2566       $as_echo "$ac_var='\''$ac_val'\''"
   2567     done | sort
   2568     echo
   2569 
   2570     if test -n "$ac_subst_files"; then
   2571       cat <<\_ASBOX
   2572 ## ------------------- ##
   2573 ## File substitutions. ##
   2574 ## ------------------- ##
   2575 _ASBOX
   2576       echo
   2577       for ac_var in $ac_subst_files
   2578       do
   2579 	eval ac_val=\$$ac_var
   2580 	case $ac_val in
   2581 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2582 	esac
   2583 	$as_echo "$ac_var='\''$ac_val'\''"
   2584       done | sort
   2585       echo
   2586     fi
   2587 
   2588     if test -s confdefs.h; then
   2589       cat <<\_ASBOX
   2590 ## ----------- ##
   2591 ## confdefs.h. ##
   2592 ## ----------- ##
   2593 _ASBOX
   2594       echo
   2595       cat confdefs.h
   2596       echo
   2597     fi
   2598     test "$ac_signal" != 0 &&
   2599       $as_echo "$as_me: caught signal $ac_signal"
   2600     $as_echo "$as_me: exit $exit_status"
   2601   } >&5
   2602   rm -f core *.core core.conftest.* &&
   2603     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2604     exit $exit_status
   2605 ' 0
   2606 for ac_signal in 1 2 13 15; do
   2607   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2608 done
   2609 ac_signal=0
   2610 
   2611 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2612 rm -f -r conftest* confdefs.h
   2613 
   2614 $as_echo "/* confdefs.h */" > confdefs.h
   2615 
   2616 # Predefined preprocessor variables.
   2617 
   2618 cat >>confdefs.h <<_ACEOF
   2619 #define PACKAGE_NAME "$PACKAGE_NAME"
   2620 _ACEOF
   2621 
   2622 cat >>confdefs.h <<_ACEOF
   2623 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2624 _ACEOF
   2625 
   2626 cat >>confdefs.h <<_ACEOF
   2627 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2628 _ACEOF
   2629 
   2630 cat >>confdefs.h <<_ACEOF
   2631 #define PACKAGE_STRING "$PACKAGE_STRING"
   2632 _ACEOF
   2633 
   2634 cat >>confdefs.h <<_ACEOF
   2635 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2636 _ACEOF
   2637 
   2638 cat >>confdefs.h <<_ACEOF
   2639 #define PACKAGE_URL "$PACKAGE_URL"
   2640 _ACEOF
   2641 
   2642 
   2643 # Let the site file select an alternate cache file if it wants to.
   2644 # Prefer an explicitly selected file to automatically selected ones.
   2645 ac_site_file1=NONE
   2646 ac_site_file2=NONE
   2647 if test -n "$CONFIG_SITE"; then
   2648   ac_site_file1=$CONFIG_SITE
   2649 elif test "x$prefix" != xNONE; then
   2650   ac_site_file1=$prefix/share/config.site
   2651   ac_site_file2=$prefix/etc/config.site
   2652 else
   2653   ac_site_file1=$ac_default_prefix/share/config.site
   2654   ac_site_file2=$ac_default_prefix/etc/config.site
   2655 fi
   2656 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2657 do
   2658   test "x$ac_site_file" = xNONE && continue
   2659   if test -r "$ac_site_file"; then
   2660     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2661 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2662     sed 's/^/| /' "$ac_site_file" >&5
   2663     . "$ac_site_file"
   2664   fi
   2665 done
   2666 
   2667 if test -r "$cache_file"; then
   2668   # Some versions of bash will fail to source /dev/null (special
   2669   # files actually), so we avoid doing that.
   2670   if test -f "$cache_file"; then
   2671     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2672 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2673     case $cache_file in
   2674       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2675       *)                      . "./$cache_file";;
   2676     esac
   2677   fi
   2678 else
   2679   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2680 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2681   >$cache_file
   2682 fi
   2683 
   2684 # Check that the precious variables saved in the cache have kept the same
   2685 # value.
   2686 ac_cache_corrupted=false
   2687 for ac_var in $ac_precious_vars; do
   2688   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2689   eval ac_new_set=\$ac_env_${ac_var}_set
   2690   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2691   eval ac_new_val=\$ac_env_${ac_var}_value
   2692   case $ac_old_set,$ac_new_set in
   2693     set,)
   2694       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2695 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2696       ac_cache_corrupted=: ;;
   2697     ,set)
   2698       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2699 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2700       ac_cache_corrupted=: ;;
   2701     ,);;
   2702     *)
   2703       if test "x$ac_old_val" != "x$ac_new_val"; then
   2704 	# differences in whitespace do not lead to failure.
   2705 	ac_old_val_w=`echo x $ac_old_val`
   2706 	ac_new_val_w=`echo x $ac_new_val`
   2707 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2708 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2709 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2710 	  ac_cache_corrupted=:
   2711 	else
   2712 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2713 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2714 	  eval $ac_var=\$ac_old_val
   2715 	fi
   2716 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2717 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2718 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2719 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2720       fi;;
   2721   esac
   2722   # Pass precious variables to config.status.
   2723   if test "$ac_new_set" = set; then
   2724     case $ac_new_val in
   2725     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2726     *) ac_arg=$ac_var=$ac_new_val ;;
   2727     esac
   2728     case " $ac_configure_args " in
   2729       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2730       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2731     esac
   2732   fi
   2733 done
   2734 if $ac_cache_corrupted; then
   2735   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2737   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2738 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2739   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2740 fi
   2741 ## -------------------- ##
   2742 ## Main body of script. ##
   2743 ## -------------------- ##
   2744 
   2745 ac_ext=c
   2746 ac_cpp='$CPP $CPPFLAGS'
   2747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2750 
   2751 
   2752 
   2753 
   2754 
   2755 ac_config_headers="$ac_config_headers config.h:config.in"
   2756 
   2757 
   2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2759 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2760     # Check whether --enable-maintainer-mode was given.
   2761 if test "${enable_maintainer_mode+set}" = set; then :
   2762   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2763 else
   2764   USE_MAINTAINER_MODE=no
   2765 fi
   2766 
   2767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2768 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2769    if test $USE_MAINTAINER_MODE = yes; then
   2770   MAINTAINER_MODE_TRUE=
   2771   MAINTAINER_MODE_FALSE='#'
   2772 else
   2773   MAINTAINER_MODE_TRUE='#'
   2774   MAINTAINER_MODE_FALSE=
   2775 fi
   2776 
   2777   MAINT=$MAINTAINER_MODE_TRUE
   2778 
   2779 
   2780 
   2781 # Set the 'development' global.
   2782 . $srcdir/../bfd/development.sh
   2783 
   2784 ac_ext=c
   2785 ac_cpp='$CPP $CPPFLAGS'
   2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2789 if test -n "$ac_tool_prefix"; then
   2790   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2793 $as_echo_n "checking for $ac_word... " >&6; }
   2794 if test "${ac_cv_prog_CC+set}" = set; then :
   2795   $as_echo_n "(cached) " >&6
   2796 else
   2797   if test -n "$CC"; then
   2798   ac_cv_prog_CC="$CC" # Let the user override the test.
   2799 else
   2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2801 for as_dir in $PATH
   2802 do
   2803   IFS=$as_save_IFS
   2804   test -z "$as_dir" && as_dir=.
   2805     for ac_exec_ext in '' $ac_executable_extensions; do
   2806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2807     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2809     break 2
   2810   fi
   2811 done
   2812   done
   2813 IFS=$as_save_IFS
   2814 
   2815 fi
   2816 fi
   2817 CC=$ac_cv_prog_CC
   2818 if test -n "$CC"; then
   2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2820 $as_echo "$CC" >&6; }
   2821 else
   2822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2823 $as_echo "no" >&6; }
   2824 fi
   2825 
   2826 
   2827 fi
   2828 if test -z "$ac_cv_prog_CC"; then
   2829   ac_ct_CC=$CC
   2830   # Extract the first word of "gcc", so it can be a program name with args.
   2831 set dummy gcc; ac_word=$2
   2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2833 $as_echo_n "checking for $ac_word... " >&6; }
   2834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   2835   $as_echo_n "(cached) " >&6
   2836 else
   2837   if test -n "$ac_ct_CC"; then
   2838   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2839 else
   2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2841 for as_dir in $PATH
   2842 do
   2843   IFS=$as_save_IFS
   2844   test -z "$as_dir" && as_dir=.
   2845     for ac_exec_ext in '' $ac_executable_extensions; do
   2846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2847     ac_cv_prog_ac_ct_CC="gcc"
   2848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2849     break 2
   2850   fi
   2851 done
   2852   done
   2853 IFS=$as_save_IFS
   2854 
   2855 fi
   2856 fi
   2857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2858 if test -n "$ac_ct_CC"; then
   2859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2860 $as_echo "$ac_ct_CC" >&6; }
   2861 else
   2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2863 $as_echo "no" >&6; }
   2864 fi
   2865 
   2866   if test "x$ac_ct_CC" = x; then
   2867     CC=""
   2868   else
   2869     case $cross_compiling:$ac_tool_warned in
   2870 yes:)
   2871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2873 ac_tool_warned=yes ;;
   2874 esac
   2875     CC=$ac_ct_CC
   2876   fi
   2877 else
   2878   CC="$ac_cv_prog_CC"
   2879 fi
   2880 
   2881 if test -z "$CC"; then
   2882           if test -n "$ac_tool_prefix"; then
   2883     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2884 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2886 $as_echo_n "checking for $ac_word... " >&6; }
   2887 if test "${ac_cv_prog_CC+set}" = set; then :
   2888   $as_echo_n "(cached) " >&6
   2889 else
   2890   if test -n "$CC"; then
   2891   ac_cv_prog_CC="$CC" # Let the user override the test.
   2892 else
   2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2894 for as_dir in $PATH
   2895 do
   2896   IFS=$as_save_IFS
   2897   test -z "$as_dir" && as_dir=.
   2898     for ac_exec_ext in '' $ac_executable_extensions; do
   2899   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2900     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2902     break 2
   2903   fi
   2904 done
   2905   done
   2906 IFS=$as_save_IFS
   2907 
   2908 fi
   2909 fi
   2910 CC=$ac_cv_prog_CC
   2911 if test -n "$CC"; then
   2912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2913 $as_echo "$CC" >&6; }
   2914 else
   2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2916 $as_echo "no" >&6; }
   2917 fi
   2918 
   2919 
   2920   fi
   2921 fi
   2922 if test -z "$CC"; then
   2923   # Extract the first word of "cc", so it can be a program name with args.
   2924 set dummy cc; ac_word=$2
   2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2926 $as_echo_n "checking for $ac_word... " >&6; }
   2927 if test "${ac_cv_prog_CC+set}" = set; then :
   2928   $as_echo_n "(cached) " >&6
   2929 else
   2930   if test -n "$CC"; then
   2931   ac_cv_prog_CC="$CC" # Let the user override the test.
   2932 else
   2933   ac_prog_rejected=no
   2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2935 for as_dir in $PATH
   2936 do
   2937   IFS=$as_save_IFS
   2938   test -z "$as_dir" && as_dir=.
   2939     for ac_exec_ext in '' $ac_executable_extensions; do
   2940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2941     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2942        ac_prog_rejected=yes
   2943        continue
   2944      fi
   2945     ac_cv_prog_CC="cc"
   2946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2947     break 2
   2948   fi
   2949 done
   2950   done
   2951 IFS=$as_save_IFS
   2952 
   2953 if test $ac_prog_rejected = yes; then
   2954   # We found a bogon in the path, so make sure we never use it.
   2955   set dummy $ac_cv_prog_CC
   2956   shift
   2957   if test $# != 0; then
   2958     # We chose a different compiler from the bogus one.
   2959     # However, it has the same basename, so the bogon will be chosen
   2960     # first if we set CC to just the basename; use the full file name.
   2961     shift
   2962     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2963   fi
   2964 fi
   2965 fi
   2966 fi
   2967 CC=$ac_cv_prog_CC
   2968 if test -n "$CC"; then
   2969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2970 $as_echo "$CC" >&6; }
   2971 else
   2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2973 $as_echo "no" >&6; }
   2974 fi
   2975 
   2976 
   2977 fi
   2978 if test -z "$CC"; then
   2979   if test -n "$ac_tool_prefix"; then
   2980   for ac_prog in cl.exe
   2981   do
   2982     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2985 $as_echo_n "checking for $ac_word... " >&6; }
   2986 if test "${ac_cv_prog_CC+set}" = set; then :
   2987   $as_echo_n "(cached) " >&6
   2988 else
   2989   if test -n "$CC"; then
   2990   ac_cv_prog_CC="$CC" # Let the user override the test.
   2991 else
   2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2993 for as_dir in $PATH
   2994 do
   2995   IFS=$as_save_IFS
   2996   test -z "$as_dir" && as_dir=.
   2997     for ac_exec_ext in '' $ac_executable_extensions; do
   2998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2999     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3001     break 2
   3002   fi
   3003 done
   3004   done
   3005 IFS=$as_save_IFS
   3006 
   3007 fi
   3008 fi
   3009 CC=$ac_cv_prog_CC
   3010 if test -n "$CC"; then
   3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3012 $as_echo "$CC" >&6; }
   3013 else
   3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3015 $as_echo "no" >&6; }
   3016 fi
   3017 
   3018 
   3019     test -n "$CC" && break
   3020   done
   3021 fi
   3022 if test -z "$CC"; then
   3023   ac_ct_CC=$CC
   3024   for ac_prog in cl.exe
   3025 do
   3026   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3027 set dummy $ac_prog; ac_word=$2
   3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3029 $as_echo_n "checking for $ac_word... " >&6; }
   3030 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3031   $as_echo_n "(cached) " >&6
   3032 else
   3033   if test -n "$ac_ct_CC"; then
   3034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3035 else
   3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3037 for as_dir in $PATH
   3038 do
   3039   IFS=$as_save_IFS
   3040   test -z "$as_dir" && as_dir=.
   3041     for ac_exec_ext in '' $ac_executable_extensions; do
   3042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3043     ac_cv_prog_ac_ct_CC="$ac_prog"
   3044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3045     break 2
   3046   fi
   3047 done
   3048   done
   3049 IFS=$as_save_IFS
   3050 
   3051 fi
   3052 fi
   3053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3054 if test -n "$ac_ct_CC"; then
   3055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3056 $as_echo "$ac_ct_CC" >&6; }
   3057 else
   3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3059 $as_echo "no" >&6; }
   3060 fi
   3061 
   3062 
   3063   test -n "$ac_ct_CC" && break
   3064 done
   3065 
   3066   if test "x$ac_ct_CC" = x; then
   3067     CC=""
   3068   else
   3069     case $cross_compiling:$ac_tool_warned in
   3070 yes:)
   3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3073 ac_tool_warned=yes ;;
   3074 esac
   3075     CC=$ac_ct_CC
   3076   fi
   3077 fi
   3078 
   3079 fi
   3080 
   3081 
   3082 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3084 as_fn_error "no acceptable C compiler found in \$PATH
   3085 See \`config.log' for more details." "$LINENO" 5; }
   3086 
   3087 # Provide some information about the compiler.
   3088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3089 set X $ac_compile
   3090 ac_compiler=$2
   3091 for ac_option in --version -v -V -qversion; do
   3092   { { ac_try="$ac_compiler $ac_option >&5"
   3093 case "(($ac_try" in
   3094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3095   *) ac_try_echo=$ac_try;;
   3096 esac
   3097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3098 $as_echo "$ac_try_echo"; } >&5
   3099   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3100   ac_status=$?
   3101   if test -s conftest.err; then
   3102     sed '10a\
   3103 ... rest of stderr output deleted ...
   3104          10q' conftest.err >conftest.er1
   3105     cat conftest.er1 >&5
   3106     rm -f conftest.er1 conftest.err
   3107   fi
   3108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3109   test $ac_status = 0; }
   3110 done
   3111 
   3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3113 /* end confdefs.h.  */
   3114 
   3115 int
   3116 main ()
   3117 {
   3118 
   3119   ;
   3120   return 0;
   3121 }
   3122 _ACEOF
   3123 ac_clean_files_save=$ac_clean_files
   3124 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
   3125 # Try to create an executable without -o first, disregard a.out.
   3126 # It will help us diagnose broken compilers, and finding out an intuition
   3127 # of exeext.
   3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3129 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3130 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3131 
   3132 # The possible output files:
   3133 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3134 
   3135 ac_rmfiles=
   3136 for ac_file in $ac_files
   3137 do
   3138   case $ac_file in
   3139     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3140     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3141   esac
   3142 done
   3143 rm -f $ac_rmfiles
   3144 
   3145 if { { ac_try="$ac_link_default"
   3146 case "(($ac_try" in
   3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3148   *) ac_try_echo=$ac_try;;
   3149 esac
   3150 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3151 $as_echo "$ac_try_echo"; } >&5
   3152   (eval "$ac_link_default") 2>&5
   3153   ac_status=$?
   3154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3155   test $ac_status = 0; }; then :
   3156   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3157 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3158 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3159 # so that the user can short-circuit this test for compilers unknown to
   3160 # Autoconf.
   3161 for ac_file in $ac_files ''
   3162 do
   3163   test -f "$ac_file" || continue
   3164   case $ac_file in
   3165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3166 	;;
   3167     [ab].out )
   3168 	# We found the default executable, but exeext='' is most
   3169 	# certainly right.
   3170 	break;;
   3171     *.* )
   3172 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3173 	then :; else
   3174 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3175 	fi
   3176 	# We set ac_cv_exeext here because the later test for it is not
   3177 	# safe: cross compilers may not add the suffix if given an `-o'
   3178 	# argument, so we may need to know it at that point already.
   3179 	# Even if this section looks crufty: it has the advantage of
   3180 	# actually working.
   3181 	break;;
   3182     * )
   3183 	break;;
   3184   esac
   3185 done
   3186 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3187 
   3188 else
   3189   ac_file=''
   3190 fi
   3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3192 $as_echo "$ac_file" >&6; }
   3193 if test -z "$ac_file"; then :
   3194   $as_echo "$as_me: failed program was:" >&5
   3195 sed 's/^/| /' conftest.$ac_ext >&5
   3196 
   3197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3199 { as_fn_set_status 77
   3200 as_fn_error "C compiler cannot create executables
   3201 See \`config.log' for more details." "$LINENO" 5; }; }
   3202 fi
   3203 ac_exeext=$ac_cv_exeext
   3204 
   3205 # Check that the compiler produces executables we can run.  If not, either
   3206 # the compiler is broken, or we cross compile.
   3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3208 $as_echo_n "checking whether the C compiler works... " >&6; }
   3209 # If not cross compiling, check that we can run a simple program.
   3210 if test "$cross_compiling" != yes; then
   3211   if { ac_try='./$ac_file'
   3212   { { case "(($ac_try" in
   3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3214   *) ac_try_echo=$ac_try;;
   3215 esac
   3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3217 $as_echo "$ac_try_echo"; } >&5
   3218   (eval "$ac_try") 2>&5
   3219   ac_status=$?
   3220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3221   test $ac_status = 0; }; }; then
   3222     cross_compiling=no
   3223   else
   3224     if test "$cross_compiling" = maybe; then
   3225 	cross_compiling=yes
   3226     else
   3227 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3229 as_fn_error "cannot run C compiled programs.
   3230 If you meant to cross compile, use \`--host'.
   3231 See \`config.log' for more details." "$LINENO" 5; }
   3232     fi
   3233   fi
   3234 fi
   3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3236 $as_echo "yes" >&6; }
   3237 
   3238 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
   3239 ac_clean_files=$ac_clean_files_save
   3240 # Check that the compiler produces executables we can run.  If not, either
   3241 # the compiler is broken, or we cross compile.
   3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3243 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3245 $as_echo "$cross_compiling" >&6; }
   3246 
   3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3248 $as_echo_n "checking for suffix of executables... " >&6; }
   3249 if { { ac_try="$ac_link"
   3250 case "(($ac_try" in
   3251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3252   *) ac_try_echo=$ac_try;;
   3253 esac
   3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3255 $as_echo "$ac_try_echo"; } >&5
   3256   (eval "$ac_link") 2>&5
   3257   ac_status=$?
   3258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3259   test $ac_status = 0; }; then :
   3260   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3261 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3262 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3263 # `rm'.
   3264 for ac_file in conftest.exe conftest conftest.*; do
   3265   test -f "$ac_file" || continue
   3266   case $ac_file in
   3267     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3268     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3269 	  break;;
   3270     * ) break;;
   3271   esac
   3272 done
   3273 else
   3274   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3276 as_fn_error "cannot compute suffix of executables: cannot compile and link
   3277 See \`config.log' for more details." "$LINENO" 5; }
   3278 fi
   3279 rm -f conftest$ac_cv_exeext
   3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3281 $as_echo "$ac_cv_exeext" >&6; }
   3282 
   3283 rm -f conftest.$ac_ext
   3284 EXEEXT=$ac_cv_exeext
   3285 ac_exeext=$EXEEXT
   3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3287 $as_echo_n "checking for suffix of object files... " >&6; }
   3288 if test "${ac_cv_objext+set}" = set; then :
   3289   $as_echo_n "(cached) " >&6
   3290 else
   3291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3292 /* end confdefs.h.  */
   3293 
   3294 int
   3295 main ()
   3296 {
   3297 
   3298   ;
   3299   return 0;
   3300 }
   3301 _ACEOF
   3302 rm -f conftest.o conftest.obj
   3303 if { { ac_try="$ac_compile"
   3304 case "(($ac_try" in
   3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3306   *) ac_try_echo=$ac_try;;
   3307 esac
   3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3309 $as_echo "$ac_try_echo"; } >&5
   3310   (eval "$ac_compile") 2>&5
   3311   ac_status=$?
   3312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3313   test $ac_status = 0; }; then :
   3314   for ac_file in conftest.o conftest.obj conftest.*; do
   3315   test -f "$ac_file" || continue;
   3316   case $ac_file in
   3317     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3318     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3319        break;;
   3320   esac
   3321 done
   3322 else
   3323   $as_echo "$as_me: failed program was:" >&5
   3324 sed 's/^/| /' conftest.$ac_ext >&5
   3325 
   3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3328 as_fn_error "cannot compute suffix of object files: cannot compile
   3329 See \`config.log' for more details." "$LINENO" 5; }
   3330 fi
   3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3332 fi
   3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3334 $as_echo "$ac_cv_objext" >&6; }
   3335 OBJEXT=$ac_cv_objext
   3336 ac_objext=$OBJEXT
   3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3338 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3339 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
   3340   $as_echo_n "(cached) " >&6
   3341 else
   3342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3343 /* end confdefs.h.  */
   3344 
   3345 int
   3346 main ()
   3347 {
   3348 #ifndef __GNUC__
   3349        choke me
   3350 #endif
   3351 
   3352   ;
   3353   return 0;
   3354 }
   3355 _ACEOF
   3356 if ac_fn_c_try_compile "$LINENO"; then :
   3357   ac_compiler_gnu=yes
   3358 else
   3359   ac_compiler_gnu=no
   3360 fi
   3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3363 
   3364 fi
   3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3366 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3367 if test $ac_compiler_gnu = yes; then
   3368   GCC=yes
   3369 else
   3370   GCC=
   3371 fi
   3372 ac_test_CFLAGS=${CFLAGS+set}
   3373 ac_save_CFLAGS=$CFLAGS
   3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3375 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3376 if test "${ac_cv_prog_cc_g+set}" = set; then :
   3377   $as_echo_n "(cached) " >&6
   3378 else
   3379   ac_save_c_werror_flag=$ac_c_werror_flag
   3380    ac_c_werror_flag=yes
   3381    ac_cv_prog_cc_g=no
   3382    CFLAGS="-g"
   3383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3384 /* end confdefs.h.  */
   3385 
   3386 int
   3387 main ()
   3388 {
   3389 
   3390   ;
   3391   return 0;
   3392 }
   3393 _ACEOF
   3394 if ac_fn_c_try_compile "$LINENO"; then :
   3395   ac_cv_prog_cc_g=yes
   3396 else
   3397   CFLAGS=""
   3398       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3399 /* end confdefs.h.  */
   3400 
   3401 int
   3402 main ()
   3403 {
   3404 
   3405   ;
   3406   return 0;
   3407 }
   3408 _ACEOF
   3409 if ac_fn_c_try_compile "$LINENO"; then :
   3410 
   3411 else
   3412   ac_c_werror_flag=$ac_save_c_werror_flag
   3413 	 CFLAGS="-g"
   3414 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3415 /* end confdefs.h.  */
   3416 
   3417 int
   3418 main ()
   3419 {
   3420 
   3421   ;
   3422   return 0;
   3423 }
   3424 _ACEOF
   3425 if ac_fn_c_try_compile "$LINENO"; then :
   3426   ac_cv_prog_cc_g=yes
   3427 fi
   3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3429 fi
   3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3431 fi
   3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3433    ac_c_werror_flag=$ac_save_c_werror_flag
   3434 fi
   3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3436 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3437 if test "$ac_test_CFLAGS" = set; then
   3438   CFLAGS=$ac_save_CFLAGS
   3439 elif test $ac_cv_prog_cc_g = yes; then
   3440   if test "$GCC" = yes; then
   3441     CFLAGS="-g -O2"
   3442   else
   3443     CFLAGS="-g"
   3444   fi
   3445 else
   3446   if test "$GCC" = yes; then
   3447     CFLAGS="-O2"
   3448   else
   3449     CFLAGS=
   3450   fi
   3451 fi
   3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3453 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3454 if test "${ac_cv_prog_cc_c89+set}" = set; then :
   3455   $as_echo_n "(cached) " >&6
   3456 else
   3457   ac_cv_prog_cc_c89=no
   3458 ac_save_CC=$CC
   3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3460 /* end confdefs.h.  */
   3461 #include <stdarg.h>
   3462 #include <stdio.h>
   3463 #include <sys/types.h>
   3464 #include <sys/stat.h>
   3465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3466 struct buf { int x; };
   3467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3468 static char *e (p, i)
   3469      char **p;
   3470      int i;
   3471 {
   3472   return p[i];
   3473 }
   3474 static char *f (char * (*g) (char **, int), char **p, ...)
   3475 {
   3476   char *s;
   3477   va_list v;
   3478   va_start (v,p);
   3479   s = g (p, va_arg (v,int));
   3480   va_end (v);
   3481   return s;
   3482 }
   3483 
   3484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3485    function prototypes and stuff, but not '\xHH' hex character constants.
   3486    These don't provoke an error unfortunately, instead are silently treated
   3487    as 'x'.  The following induces an error, until -std is added to get
   3488    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3489    array size at least.  It's necessary to write '\x00'==0 to get something
   3490    that's true only with -std.  */
   3491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3492 
   3493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3494    inside strings and character constants.  */
   3495 #define FOO(x) 'x'
   3496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3497 
   3498 int test (int i, double x);
   3499 struct s1 {int (*f) (int a);};
   3500 struct s2 {int (*f) (double a);};
   3501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3502 int argc;
   3503 char **argv;
   3504 int
   3505 main ()
   3506 {
   3507 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3508   ;
   3509   return 0;
   3510 }
   3511 _ACEOF
   3512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3513 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3514 do
   3515   CC="$ac_save_CC $ac_arg"
   3516   if ac_fn_c_try_compile "$LINENO"; then :
   3517   ac_cv_prog_cc_c89=$ac_arg
   3518 fi
   3519 rm -f core conftest.err conftest.$ac_objext
   3520   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3521 done
   3522 rm -f conftest.$ac_ext
   3523 CC=$ac_save_CC
   3524 
   3525 fi
   3526 # AC_CACHE_VAL
   3527 case "x$ac_cv_prog_cc_c89" in
   3528   x)
   3529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3530 $as_echo "none needed" >&6; } ;;
   3531   xno)
   3532     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3533 $as_echo "unsupported" >&6; } ;;
   3534   *)
   3535     CC="$CC $ac_cv_prog_cc_c89"
   3536     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3537 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3538 esac
   3539 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3540 
   3541 fi
   3542 
   3543 ac_ext=c
   3544 ac_cpp='$CPP $CPPFLAGS'
   3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3548 
   3549 ac_ext=cpp
   3550 ac_cpp='$CXXCPP $CPPFLAGS'
   3551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3554 if test -z "$CXX"; then
   3555   if test -n "$CCC"; then
   3556     CXX=$CCC
   3557   else
   3558     if test -n "$ac_tool_prefix"; then
   3559   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3560   do
   3561     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3564 $as_echo_n "checking for $ac_word... " >&6; }
   3565 if test "${ac_cv_prog_CXX+set}" = set; then :
   3566   $as_echo_n "(cached) " >&6
   3567 else
   3568   if test -n "$CXX"; then
   3569   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   3570 else
   3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3572 for as_dir in $PATH
   3573 do
   3574   IFS=$as_save_IFS
   3575   test -z "$as_dir" && as_dir=.
   3576     for ac_exec_ext in '' $ac_executable_extensions; do
   3577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3578     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   3579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3580     break 2
   3581   fi
   3582 done
   3583   done
   3584 IFS=$as_save_IFS
   3585 
   3586 fi
   3587 fi
   3588 CXX=$ac_cv_prog_CXX
   3589 if test -n "$CXX"; then
   3590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   3591 $as_echo "$CXX" >&6; }
   3592 else
   3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3594 $as_echo "no" >&6; }
   3595 fi
   3596 
   3597 
   3598     test -n "$CXX" && break
   3599   done
   3600 fi
   3601 if test -z "$CXX"; then
   3602   ac_ct_CXX=$CXX
   3603   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3604 do
   3605   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3606 set dummy $ac_prog; ac_word=$2
   3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3608 $as_echo_n "checking for $ac_word... " >&6; }
   3609 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
   3610   $as_echo_n "(cached) " >&6
   3611 else
   3612   if test -n "$ac_ct_CXX"; then
   3613   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   3614 else
   3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3616 for as_dir in $PATH
   3617 do
   3618   IFS=$as_save_IFS
   3619   test -z "$as_dir" && as_dir=.
   3620     for ac_exec_ext in '' $ac_executable_extensions; do
   3621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3622     ac_cv_prog_ac_ct_CXX="$ac_prog"
   3623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3624     break 2
   3625   fi
   3626 done
   3627   done
   3628 IFS=$as_save_IFS
   3629 
   3630 fi
   3631 fi
   3632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   3633 if test -n "$ac_ct_CXX"; then
   3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   3635 $as_echo "$ac_ct_CXX" >&6; }
   3636 else
   3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3638 $as_echo "no" >&6; }
   3639 fi
   3640 
   3641 
   3642   test -n "$ac_ct_CXX" && break
   3643 done
   3644 
   3645   if test "x$ac_ct_CXX" = x; then
   3646     CXX="g++"
   3647   else
   3648     case $cross_compiling:$ac_tool_warned in
   3649 yes:)
   3650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3652 ac_tool_warned=yes ;;
   3653 esac
   3654     CXX=$ac_ct_CXX
   3655   fi
   3656 fi
   3657 
   3658   fi
   3659 fi
   3660 # Provide some information about the compiler.
   3661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   3662 set X $ac_compile
   3663 ac_compiler=$2
   3664 for ac_option in --version -v -V -qversion; do
   3665   { { ac_try="$ac_compiler $ac_option >&5"
   3666 case "(($ac_try" in
   3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3668   *) ac_try_echo=$ac_try;;
   3669 esac
   3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3671 $as_echo "$ac_try_echo"; } >&5
   3672   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3673   ac_status=$?
   3674   if test -s conftest.err; then
   3675     sed '10a\
   3676 ... rest of stderr output deleted ...
   3677          10q' conftest.err >conftest.er1
   3678     cat conftest.er1 >&5
   3679     rm -f conftest.er1 conftest.err
   3680   fi
   3681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3682   test $ac_status = 0; }
   3683 done
   3684 
   3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   3686 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   3687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
   3688   $as_echo_n "(cached) " >&6
   3689 else
   3690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3691 /* end confdefs.h.  */
   3692 
   3693 int
   3694 main ()
   3695 {
   3696 #ifndef __GNUC__
   3697        choke me
   3698 #endif
   3699 
   3700   ;
   3701   return 0;
   3702 }
   3703 _ACEOF
   3704 if ac_fn_cxx_try_compile "$LINENO"; then :
   3705   ac_compiler_gnu=yes
   3706 else
   3707   ac_compiler_gnu=no
   3708 fi
   3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   3711 
   3712 fi
   3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   3714 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   3715 if test $ac_compiler_gnu = yes; then
   3716   GXX=yes
   3717 else
   3718   GXX=
   3719 fi
   3720 ac_test_CXXFLAGS=${CXXFLAGS+set}
   3721 ac_save_CXXFLAGS=$CXXFLAGS
   3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   3723 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   3724 if test "${ac_cv_prog_cxx_g+set}" = set; then :
   3725   $as_echo_n "(cached) " >&6
   3726 else
   3727   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   3728    ac_cxx_werror_flag=yes
   3729    ac_cv_prog_cxx_g=no
   3730    CXXFLAGS="-g"
   3731    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3732 /* end confdefs.h.  */
   3733 
   3734 int
   3735 main ()
   3736 {
   3737 
   3738   ;
   3739   return 0;
   3740 }
   3741 _ACEOF
   3742 if ac_fn_cxx_try_compile "$LINENO"; then :
   3743   ac_cv_prog_cxx_g=yes
   3744 else
   3745   CXXFLAGS=""
   3746       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3747 /* end confdefs.h.  */
   3748 
   3749 int
   3750 main ()
   3751 {
   3752 
   3753   ;
   3754   return 0;
   3755 }
   3756 _ACEOF
   3757 if ac_fn_cxx_try_compile "$LINENO"; then :
   3758 
   3759 else
   3760   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3761 	 CXXFLAGS="-g"
   3762 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3763 /* end confdefs.h.  */
   3764 
   3765 int
   3766 main ()
   3767 {
   3768 
   3769   ;
   3770   return 0;
   3771 }
   3772 _ACEOF
   3773 if ac_fn_cxx_try_compile "$LINENO"; then :
   3774   ac_cv_prog_cxx_g=yes
   3775 fi
   3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3777 fi
   3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3779 fi
   3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3781    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3782 fi
   3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   3784 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   3785 if test "$ac_test_CXXFLAGS" = set; then
   3786   CXXFLAGS=$ac_save_CXXFLAGS
   3787 elif test $ac_cv_prog_cxx_g = yes; then
   3788   if test "$GXX" = yes; then
   3789     CXXFLAGS="-g -O2"
   3790   else
   3791     CXXFLAGS="-g"
   3792   fi
   3793 else
   3794   if test "$GXX" = yes; then
   3795     CXXFLAGS="-O2"
   3796   else
   3797     CXXFLAGS=
   3798   fi
   3799 fi
   3800 ac_ext=c
   3801 ac_cpp='$CPP $CPPFLAGS'
   3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3805 
   3806 
   3807 
   3808 ac_ext=c
   3809 ac_cpp='$CPP $CPPFLAGS'
   3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3814 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3815 # On Suns, sometimes $CPP names a directory.
   3816 if test -n "$CPP" && test -d "$CPP"; then
   3817   CPP=
   3818 fi
   3819 if test -z "$CPP"; then
   3820   if test "${ac_cv_prog_CPP+set}" = set; then :
   3821   $as_echo_n "(cached) " >&6
   3822 else
   3823       # Double quotes because CPP needs to be expanded
   3824     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3825     do
   3826       ac_preproc_ok=false
   3827 for ac_c_preproc_warn_flag in '' yes
   3828 do
   3829   # Use a header file that comes with gcc, so configuring glibc
   3830   # with a fresh cross-compiler works.
   3831   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3832   # <limits.h> exists even on freestanding compilers.
   3833   # On the NeXT, cc -E runs the code through the compiler's parser,
   3834   # not just through cpp. "Syntax error" is here to catch this case.
   3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3836 /* end confdefs.h.  */
   3837 #ifdef __STDC__
   3838 # include <limits.h>
   3839 #else
   3840 # include <assert.h>
   3841 #endif
   3842 		     Syntax error
   3843 _ACEOF
   3844 if ac_fn_c_try_cpp "$LINENO"; then :
   3845 
   3846 else
   3847   # Broken: fails on valid input.
   3848 continue
   3849 fi
   3850 rm -f conftest.err conftest.$ac_ext
   3851 
   3852   # OK, works on sane cases.  Now check whether nonexistent headers
   3853   # can be detected and how.
   3854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3855 /* end confdefs.h.  */
   3856 #include <ac_nonexistent.h>
   3857 _ACEOF
   3858 if ac_fn_c_try_cpp "$LINENO"; then :
   3859   # Broken: success on invalid input.
   3860 continue
   3861 else
   3862   # Passes both tests.
   3863 ac_preproc_ok=:
   3864 break
   3865 fi
   3866 rm -f conftest.err conftest.$ac_ext
   3867 
   3868 done
   3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3870 rm -f conftest.err conftest.$ac_ext
   3871 if $ac_preproc_ok; then :
   3872   break
   3873 fi
   3874 
   3875     done
   3876     ac_cv_prog_CPP=$CPP
   3877 
   3878 fi
   3879   CPP=$ac_cv_prog_CPP
   3880 else
   3881   ac_cv_prog_CPP=$CPP
   3882 fi
   3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3884 $as_echo "$CPP" >&6; }
   3885 ac_preproc_ok=false
   3886 for ac_c_preproc_warn_flag in '' yes
   3887 do
   3888   # Use a header file that comes with gcc, so configuring glibc
   3889   # with a fresh cross-compiler works.
   3890   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3891   # <limits.h> exists even on freestanding compilers.
   3892   # On the NeXT, cc -E runs the code through the compiler's parser,
   3893   # not just through cpp. "Syntax error" is here to catch this case.
   3894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3895 /* end confdefs.h.  */
   3896 #ifdef __STDC__
   3897 # include <limits.h>
   3898 #else
   3899 # include <assert.h>
   3900 #endif
   3901 		     Syntax error
   3902 _ACEOF
   3903 if ac_fn_c_try_cpp "$LINENO"; then :
   3904 
   3905 else
   3906   # Broken: fails on valid input.
   3907 continue
   3908 fi
   3909 rm -f conftest.err conftest.$ac_ext
   3910 
   3911   # OK, works on sane cases.  Now check whether nonexistent headers
   3912   # can be detected and how.
   3913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3914 /* end confdefs.h.  */
   3915 #include <ac_nonexistent.h>
   3916 _ACEOF
   3917 if ac_fn_c_try_cpp "$LINENO"; then :
   3918   # Broken: success on invalid input.
   3919 continue
   3920 else
   3921   # Passes both tests.
   3922 ac_preproc_ok=:
   3923 break
   3924 fi
   3925 rm -f conftest.err conftest.$ac_ext
   3926 
   3927 done
   3928 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3929 rm -f conftest.err conftest.$ac_ext
   3930 if $ac_preproc_ok; then :
   3931 
   3932 else
   3933   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3935 as_fn_error "C preprocessor \"$CPP\" fails sanity check
   3936 See \`config.log' for more details." "$LINENO" 5; }
   3937 fi
   3938 
   3939 ac_ext=c
   3940 ac_cpp='$CPP $CPPFLAGS'
   3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3944 
   3945 
   3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3947 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3948 if test "${ac_cv_path_GREP+set}" = set; then :
   3949   $as_echo_n "(cached) " >&6
   3950 else
   3951   if test -z "$GREP"; then
   3952   ac_path_GREP_found=false
   3953   # Loop through the user's path and test for each of PROGNAME-LIST
   3954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3956 do
   3957   IFS=$as_save_IFS
   3958   test -z "$as_dir" && as_dir=.
   3959     for ac_prog in grep ggrep; do
   3960     for ac_exec_ext in '' $ac_executable_extensions; do
   3961       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3962       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3963 # Check for GNU ac_path_GREP and select it if it is found.
   3964   # Check for GNU $ac_path_GREP
   3965 case `"$ac_path_GREP" --version 2>&1` in
   3966 *GNU*)
   3967   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3968 *)
   3969   ac_count=0
   3970   $as_echo_n 0123456789 >"conftest.in"
   3971   while :
   3972   do
   3973     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3974     mv "conftest.tmp" "conftest.in"
   3975     cp "conftest.in" "conftest.nl"
   3976     $as_echo 'GREP' >> "conftest.nl"
   3977     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3978     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3979     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3980     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3981       # Best one so far, save it but keep looking for a better one
   3982       ac_cv_path_GREP="$ac_path_GREP"
   3983       ac_path_GREP_max=$ac_count
   3984     fi
   3985     # 10*(2^10) chars as input seems more than enough
   3986     test $ac_count -gt 10 && break
   3987   done
   3988   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3989 esac
   3990 
   3991       $ac_path_GREP_found && break 3
   3992     done
   3993   done
   3994   done
   3995 IFS=$as_save_IFS
   3996   if test -z "$ac_cv_path_GREP"; then
   3997     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3998   fi
   3999 else
   4000   ac_cv_path_GREP=$GREP
   4001 fi
   4002 
   4003 fi
   4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4005 $as_echo "$ac_cv_path_GREP" >&6; }
   4006  GREP="$ac_cv_path_GREP"
   4007 
   4008 
   4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4010 $as_echo_n "checking for egrep... " >&6; }
   4011 if test "${ac_cv_path_EGREP+set}" = set; then :
   4012   $as_echo_n "(cached) " >&6
   4013 else
   4014   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4015    then ac_cv_path_EGREP="$GREP -E"
   4016    else
   4017      if test -z "$EGREP"; then
   4018   ac_path_EGREP_found=false
   4019   # Loop through the user's path and test for each of PROGNAME-LIST
   4020   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4021 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4022 do
   4023   IFS=$as_save_IFS
   4024   test -z "$as_dir" && as_dir=.
   4025     for ac_prog in egrep; do
   4026     for ac_exec_ext in '' $ac_executable_extensions; do
   4027       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4028       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   4029 # Check for GNU ac_path_EGREP and select it if it is found.
   4030   # Check for GNU $ac_path_EGREP
   4031 case `"$ac_path_EGREP" --version 2>&1` in
   4032 *GNU*)
   4033   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4034 *)
   4035   ac_count=0
   4036   $as_echo_n 0123456789 >"conftest.in"
   4037   while :
   4038   do
   4039     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4040     mv "conftest.tmp" "conftest.in"
   4041     cp "conftest.in" "conftest.nl"
   4042     $as_echo 'EGREP' >> "conftest.nl"
   4043     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4044     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4045     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4046     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4047       # Best one so far, save it but keep looking for a better one
   4048       ac_cv_path_EGREP="$ac_path_EGREP"
   4049       ac_path_EGREP_max=$ac_count
   4050     fi
   4051     # 10*(2^10) chars as input seems more than enough
   4052     test $ac_count -gt 10 && break
   4053   done
   4054   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4055 esac
   4056 
   4057       $ac_path_EGREP_found && break 3
   4058     done
   4059   done
   4060   done
   4061 IFS=$as_save_IFS
   4062   if test -z "$ac_cv_path_EGREP"; then
   4063     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4064   fi
   4065 else
   4066   ac_cv_path_EGREP=$EGREP
   4067 fi
   4068 
   4069    fi
   4070 fi
   4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4072 $as_echo "$ac_cv_path_EGREP" >&6; }
   4073  EGREP="$ac_cv_path_EGREP"
   4074 
   4075 
   4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4077 $as_echo_n "checking for ANSI C header files... " >&6; }
   4078 if test "${ac_cv_header_stdc+set}" = set; then :
   4079   $as_echo_n "(cached) " >&6
   4080 else
   4081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4082 /* end confdefs.h.  */
   4083 #include <stdlib.h>
   4084 #include <stdarg.h>
   4085 #include <string.h>
   4086 #include <float.h>
   4087 
   4088 int
   4089 main ()
   4090 {
   4091 
   4092   ;
   4093   return 0;
   4094 }
   4095 _ACEOF
   4096 if ac_fn_c_try_compile "$LINENO"; then :
   4097   ac_cv_header_stdc=yes
   4098 else
   4099   ac_cv_header_stdc=no
   4100 fi
   4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4102 
   4103 if test $ac_cv_header_stdc = yes; then
   4104   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4106 /* end confdefs.h.  */
   4107 #include <string.h>
   4108 
   4109 _ACEOF
   4110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4111   $EGREP "memchr" >/dev/null 2>&1; then :
   4112 
   4113 else
   4114   ac_cv_header_stdc=no
   4115 fi
   4116 rm -f conftest*
   4117 
   4118 fi
   4119 
   4120 if test $ac_cv_header_stdc = yes; then
   4121   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4123 /* end confdefs.h.  */
   4124 #include <stdlib.h>
   4125 
   4126 _ACEOF
   4127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4128   $EGREP "free" >/dev/null 2>&1; then :
   4129 
   4130 else
   4131   ac_cv_header_stdc=no
   4132 fi
   4133 rm -f conftest*
   4134 
   4135 fi
   4136 
   4137 if test $ac_cv_header_stdc = yes; then
   4138   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4139   if test "$cross_compiling" = yes; then :
   4140   :
   4141 else
   4142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4143 /* end confdefs.h.  */
   4144 #include <ctype.h>
   4145 #include <stdlib.h>
   4146 #if ((' ' & 0x0FF) == 0x020)
   4147 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4148 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4149 #else
   4150 # define ISLOWER(c) \
   4151 		   (('a' <= (c) && (c) <= 'i') \
   4152 		     || ('j' <= (c) && (c) <= 'r') \
   4153 		     || ('s' <= (c) && (c) <= 'z'))
   4154 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4155 #endif
   4156 
   4157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4158 int
   4159 main ()
   4160 {
   4161   int i;
   4162   for (i = 0; i < 256; i++)
   4163     if (XOR (islower (i), ISLOWER (i))
   4164 	|| toupper (i) != TOUPPER (i))
   4165       return 2;
   4166   return 0;
   4167 }
   4168 _ACEOF
   4169 if ac_fn_c_try_run "$LINENO"; then :
   4170 
   4171 else
   4172   ac_cv_header_stdc=no
   4173 fi
   4174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4175   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4176 fi
   4177 
   4178 fi
   4179 fi
   4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4181 $as_echo "$ac_cv_header_stdc" >&6; }
   4182 if test $ac_cv_header_stdc = yes; then
   4183 
   4184 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4185 
   4186 fi
   4187 
   4188 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4189 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4190 		  inttypes.h stdint.h unistd.h
   4191 do :
   4192   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4194 "
   4195 eval as_val=\$$as_ac_Header
   4196    if test "x$as_val" = x""yes; then :
   4197   cat >>confdefs.h <<_ACEOF
   4198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4199 _ACEOF
   4200 
   4201 fi
   4202 
   4203 done
   4204 
   4205 
   4206 
   4207   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4208 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
   4209   MINIX=yes
   4210 else
   4211   MINIX=
   4212 fi
   4213 
   4214 
   4215   if test "$MINIX" = yes; then
   4216 
   4217 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4218 
   4219 
   4220 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4221 
   4222 
   4223 $as_echo "#define _MINIX 1" >>confdefs.h
   4224 
   4225   fi
   4226 
   4227 
   4228   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4229 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4230 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
   4231   $as_echo_n "(cached) " >&6
   4232 else
   4233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4234 /* end confdefs.h.  */
   4235 
   4236 #	  define __EXTENSIONS__ 1
   4237 	  $ac_includes_default
   4238 int
   4239 main ()
   4240 {
   4241 
   4242   ;
   4243   return 0;
   4244 }
   4245 _ACEOF
   4246 if ac_fn_c_try_compile "$LINENO"; then :
   4247   ac_cv_safe_to_define___extensions__=yes
   4248 else
   4249   ac_cv_safe_to_define___extensions__=no
   4250 fi
   4251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4252 fi
   4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4254 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4255   test $ac_cv_safe_to_define___extensions__ = yes &&
   4256     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4257 
   4258   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4259 
   4260   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4261 
   4262   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4263 
   4264   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4265 
   4266 
   4267 ac_aux_dir=
   4268 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   4269   for ac_t in install-sh install.sh shtool; do
   4270     if test -f "$ac_dir/$ac_t"; then
   4271       ac_aux_dir=$ac_dir
   4272       ac_install_sh="$ac_aux_dir/$ac_t -c"
   4273       break 2
   4274     fi
   4275   done
   4276 done
   4277 if test -z "$ac_aux_dir"; then
   4278   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   4279 fi
   4280 
   4281 # These three variables are undocumented and unsupported,
   4282 # and are intended to be withdrawn in a future Autoconf release.
   4283 # They can cause serious problems if a builder's source tree is in a directory
   4284 # whose full name contains unusual characters.
   4285 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   4286 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   4287 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   4288 
   4289 
   4290 # Make sure we can run config.sub.
   4291 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   4292   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   4293 
   4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   4295 $as_echo_n "checking build system type... " >&6; }
   4296 if test "${ac_cv_build+set}" = set; then :
   4297   $as_echo_n "(cached) " >&6
   4298 else
   4299   ac_build_alias=$build_alias
   4300 test "x$ac_build_alias" = x &&
   4301   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   4302 test "x$ac_build_alias" = x &&
   4303   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
   4304 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   4305   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   4306 
   4307 fi
   4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   4309 $as_echo "$ac_cv_build" >&6; }
   4310 case $ac_cv_build in
   4311 *-*-*) ;;
   4312 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
   4313 esac
   4314 build=$ac_cv_build
   4315 ac_save_IFS=$IFS; IFS='-'
   4316 set x $ac_cv_build
   4317 shift
   4318 build_cpu=$1
   4319 build_vendor=$2
   4320 shift; shift
   4321 # Remember, the first character of IFS is used to create $*,
   4322 # except with old shells:
   4323 build_os=$*
   4324 IFS=$ac_save_IFS
   4325 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4326 
   4327 
   4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4329 $as_echo_n "checking host system type... " >&6; }
   4330 if test "${ac_cv_host+set}" = set; then :
   4331   $as_echo_n "(cached) " >&6
   4332 else
   4333   if test "x$host_alias" = x; then
   4334   ac_cv_host=$ac_cv_build
   4335 else
   4336   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   4337     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   4338 fi
   4339 
   4340 fi
   4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4342 $as_echo "$ac_cv_host" >&6; }
   4343 case $ac_cv_host in
   4344 *-*-*) ;;
   4345 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
   4346 esac
   4347 host=$ac_cv_host
   4348 ac_save_IFS=$IFS; IFS='-'
   4349 set x $ac_cv_host
   4350 shift
   4351 host_cpu=$1
   4352 host_vendor=$2
   4353 shift; shift
   4354 # Remember, the first character of IFS is used to create $*,
   4355 # except with old shells:
   4356 host_os=$*
   4357 IFS=$ac_save_IFS
   4358 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4359 
   4360 
   4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   4362 $as_echo_n "checking target system type... " >&6; }
   4363 if test "${ac_cv_target+set}" = set; then :
   4364   $as_echo_n "(cached) " >&6
   4365 else
   4366   if test "x$target_alias" = x; then
   4367   ac_cv_target=$ac_cv_host
   4368 else
   4369   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   4370     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   4371 fi
   4372 
   4373 fi
   4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   4375 $as_echo "$ac_cv_target" >&6; }
   4376 case $ac_cv_target in
   4377 *-*-*) ;;
   4378 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
   4379 esac
   4380 target=$ac_cv_target
   4381 ac_save_IFS=$IFS; IFS='-'
   4382 set x $ac_cv_target
   4383 shift
   4384 target_cpu=$1
   4385 target_vendor=$2
   4386 shift; shift
   4387 # Remember, the first character of IFS is used to create $*,
   4388 # except with old shells:
   4389 target_os=$*
   4390 IFS=$ac_save_IFS
   4391 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   4392 
   4393 
   4394 # The aliases save the names the user supplied, while $host etc.
   4395 # will get canonicalized.
   4396 test -n "$target_alias" &&
   4397   test "$program_prefix$program_suffix$program_transform_name" = \
   4398     NONENONEs,x,x, &&
   4399   program_prefix=${target_alias}-
   4400 
   4401 # The tests for host and target for $enable_largefile require
   4402 # canonical names.
   4403 
   4404 
   4405 
   4406 # As the $enable_largefile decision depends on --enable-plugins we must set it
   4407 # even in directories otherwise not depending on the $plugins option.
   4408 
   4409 
   4410   maybe_plugins=no
   4411   for ac_header in dlfcn.h
   4412 do :
   4413   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   4414 "
   4415 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
   4416   cat >>confdefs.h <<_ACEOF
   4417 #define HAVE_DLFCN_H 1
   4418 _ACEOF
   4419  maybe_plugins=yes
   4420 fi
   4421 
   4422 done
   4423 
   4424   for ac_header in windows.h
   4425 do :
   4426   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
   4427 "
   4428 if test "x$ac_cv_header_windows_h" = x""yes; then :
   4429   cat >>confdefs.h <<_ACEOF
   4430 #define HAVE_WINDOWS_H 1
   4431 _ACEOF
   4432  maybe_plugins=yes
   4433 fi
   4434 
   4435 done
   4436 
   4437 
   4438   # Check whether --enable-plugins was given.
   4439 if test "${enable_plugins+set}" = set; then :
   4440   enableval=$enable_plugins; case "${enableval}" in
   4441       no) plugins=no ;;
   4442       *) plugins=yes
   4443          if test "$maybe_plugins" != "yes" ; then
   4444 	   as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
   4445 	 fi ;;
   4446      esac
   4447 else
   4448   plugins=$maybe_plugins
   4449 
   4450 fi
   4451 
   4452   if test "$plugins" = "yes"; then
   4453     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   4454 $as_echo_n "checking for library containing dlopen... " >&6; }
   4455 if test "${ac_cv_search_dlopen+set}" = set; then :
   4456   $as_echo_n "(cached) " >&6
   4457 else
   4458   ac_func_search_save_LIBS=$LIBS
   4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4460 /* end confdefs.h.  */
   4461 
   4462 /* Override any GCC internal prototype to avoid an error.
   4463    Use char because int might match the return type of a GCC
   4464    builtin and then its argument prototype would still apply.  */
   4465 #ifdef __cplusplus
   4466 extern "C"
   4467 #endif
   4468 char dlopen ();
   4469 int
   4470 main ()
   4471 {
   4472 return dlopen ();
   4473   ;
   4474   return 0;
   4475 }
   4476 _ACEOF
   4477 for ac_lib in '' dl; do
   4478   if test -z "$ac_lib"; then
   4479     ac_res="none required"
   4480   else
   4481     ac_res=-l$ac_lib
   4482     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4483   fi
   4484   if ac_fn_c_try_link "$LINENO"; then :
   4485   ac_cv_search_dlopen=$ac_res
   4486 fi
   4487 rm -f core conftest.err conftest.$ac_objext \
   4488     conftest$ac_exeext
   4489   if test "${ac_cv_search_dlopen+set}" = set; then :
   4490   break
   4491 fi
   4492 done
   4493 if test "${ac_cv_search_dlopen+set}" = set; then :
   4494 
   4495 else
   4496   ac_cv_search_dlopen=no
   4497 fi
   4498 rm conftest.$ac_ext
   4499 LIBS=$ac_func_search_save_LIBS
   4500 fi
   4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   4502 $as_echo "$ac_cv_search_dlopen" >&6; }
   4503 ac_res=$ac_cv_search_dlopen
   4504 if test "$ac_res" != no; then :
   4505   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4506 
   4507 fi
   4508 
   4509   fi
   4510 
   4511 
   4512 case "${host}" in
   4513   sparc-*-solaris*|i[3-7]86-*-solaris*)
   4514     # On native 32bit sparc and ia32 solaris, large-file and procfs support
   4515     # are mutually exclusive; and without procfs support, the bfd/ elf module
   4516     # cannot provide certain routines such as elfcore_write_prpsinfo
   4517     # or elfcore_write_prstatus.  So unless the user explicitly requested
   4518     # large-file support through the --enable-largefile switch, disable
   4519     # large-file support in favor of procfs support.
   4520     test "${target}" = "${host}" -a "x$plugins" = xno \
   4521       && : ${enable_largefile="no"}
   4522     ;;
   4523 esac
   4524 
   4525 # Check whether --enable-largefile was given.
   4526 if test "${enable_largefile+set}" = set; then :
   4527   enableval=$enable_largefile;
   4528 fi
   4529 
   4530 if test "$enable_largefile" != no; then
   4531 
   4532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   4533 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4534 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
   4535   $as_echo_n "(cached) " >&6
   4536 else
   4537   ac_cv_sys_largefile_CC=no
   4538      if test "$GCC" != yes; then
   4539        ac_save_CC=$CC
   4540        while :; do
   4541 	 # IRIX 6.2 and later do not support large files by default,
   4542 	 # so use the C compiler's -n32 option if that helps.
   4543 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4544 /* end confdefs.h.  */
   4545 #include <sys/types.h>
   4546  /* Check that off_t can represent 2**63 - 1 correctly.
   4547     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4548     since some C++ compilers masquerading as C compilers
   4549     incorrectly reject 9223372036854775807.  */
   4550 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4551   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4552 		       && LARGE_OFF_T % 2147483647 == 1)
   4553 		      ? 1 : -1];
   4554 int
   4555 main ()
   4556 {
   4557 
   4558   ;
   4559   return 0;
   4560 }
   4561 _ACEOF
   4562 	 if ac_fn_c_try_compile "$LINENO"; then :
   4563   break
   4564 fi
   4565 rm -f core conftest.err conftest.$ac_objext
   4566 	 CC="$CC -n32"
   4567 	 if ac_fn_c_try_compile "$LINENO"; then :
   4568   ac_cv_sys_largefile_CC=' -n32'; break
   4569 fi
   4570 rm -f core conftest.err conftest.$ac_objext
   4571 	 break
   4572        done
   4573        CC=$ac_save_CC
   4574        rm -f conftest.$ac_ext
   4575     fi
   4576 fi
   4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4578 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4579   if test "$ac_cv_sys_largefile_CC" != no; then
   4580     CC=$CC$ac_cv_sys_largefile_CC
   4581   fi
   4582 
   4583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4584 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4585 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
   4586   $as_echo_n "(cached) " >&6
   4587 else
   4588   while :; do
   4589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4590 /* end confdefs.h.  */
   4591 #include <sys/types.h>
   4592  /* Check that off_t can represent 2**63 - 1 correctly.
   4593     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4594     since some C++ compilers masquerading as C compilers
   4595     incorrectly reject 9223372036854775807.  */
   4596 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4597   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4598 		       && LARGE_OFF_T % 2147483647 == 1)
   4599 		      ? 1 : -1];
   4600 int
   4601 main ()
   4602 {
   4603 
   4604   ;
   4605   return 0;
   4606 }
   4607 _ACEOF
   4608 if ac_fn_c_try_compile "$LINENO"; then :
   4609   ac_cv_sys_file_offset_bits=no; break
   4610 fi
   4611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4613 /* end confdefs.h.  */
   4614 #define _FILE_OFFSET_BITS 64
   4615 #include <sys/types.h>
   4616  /* Check that off_t can represent 2**63 - 1 correctly.
   4617     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4618     since some C++ compilers masquerading as C compilers
   4619     incorrectly reject 9223372036854775807.  */
   4620 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4621   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4622 		       && LARGE_OFF_T % 2147483647 == 1)
   4623 		      ? 1 : -1];
   4624 int
   4625 main ()
   4626 {
   4627 
   4628   ;
   4629   return 0;
   4630 }
   4631 _ACEOF
   4632 if ac_fn_c_try_compile "$LINENO"; then :
   4633   ac_cv_sys_file_offset_bits=64; break
   4634 fi
   4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4636   ac_cv_sys_file_offset_bits=unknown
   4637   break
   4638 done
   4639 fi
   4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4641 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4642 case $ac_cv_sys_file_offset_bits in #(
   4643   no | unknown) ;;
   4644   *)
   4645 cat >>confdefs.h <<_ACEOF
   4646 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4647 _ACEOF
   4648 ;;
   4649 esac
   4650 rm -rf conftest*
   4651   if test $ac_cv_sys_file_offset_bits = unknown; then
   4652     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4653 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4654 if test "${ac_cv_sys_large_files+set}" = set; then :
   4655   $as_echo_n "(cached) " >&6
   4656 else
   4657   while :; do
   4658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4659 /* end confdefs.h.  */
   4660 #include <sys/types.h>
   4661  /* Check that off_t can represent 2**63 - 1 correctly.
   4662     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4663     since some C++ compilers masquerading as C compilers
   4664     incorrectly reject 9223372036854775807.  */
   4665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4666   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4667 		       && LARGE_OFF_T % 2147483647 == 1)
   4668 		      ? 1 : -1];
   4669 int
   4670 main ()
   4671 {
   4672 
   4673   ;
   4674   return 0;
   4675 }
   4676 _ACEOF
   4677 if ac_fn_c_try_compile "$LINENO"; then :
   4678   ac_cv_sys_large_files=no; break
   4679 fi
   4680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4682 /* end confdefs.h.  */
   4683 #define _LARGE_FILES 1
   4684 #include <sys/types.h>
   4685  /* Check that off_t can represent 2**63 - 1 correctly.
   4686     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4687     since some C++ compilers masquerading as C compilers
   4688     incorrectly reject 9223372036854775807.  */
   4689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4690   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4691 		       && LARGE_OFF_T % 2147483647 == 1)
   4692 		      ? 1 : -1];
   4693 int
   4694 main ()
   4695 {
   4696 
   4697   ;
   4698   return 0;
   4699 }
   4700 _ACEOF
   4701 if ac_fn_c_try_compile "$LINENO"; then :
   4702   ac_cv_sys_large_files=1; break
   4703 fi
   4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4705   ac_cv_sys_large_files=unknown
   4706   break
   4707 done
   4708 fi
   4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   4710 $as_echo "$ac_cv_sys_large_files" >&6; }
   4711 case $ac_cv_sys_large_files in #(
   4712   no | unknown) ;;
   4713   *)
   4714 cat >>confdefs.h <<_ACEOF
   4715 #define _LARGE_FILES $ac_cv_sys_large_files
   4716 _ACEOF
   4717 ;;
   4718 esac
   4719 rm -rf conftest*
   4720   fi
   4721 fi
   4722 
   4723 
   4724 
   4725 
   4726 
   4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
   4728 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
   4729 if test "${am_cv_prog_cc_stdc+set}" = set; then :
   4730   $as_echo_n "(cached) " >&6
   4731 else
   4732   am_cv_prog_cc_stdc=no
   4733 ac_save_CC="$CC"
   4734 # Don't try gcc -ansi; that turns off useful extensions and
   4735 # breaks some systems' header files.
   4736 # AIX			-qlanglvl=ansi
   4737 # Ultrix and OSF/1	-std1
   4738 # HP-UX 10.20 and later	-Ae
   4739 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   4740 # SVR4			-Xc -D__EXTENSIONS__
   4741 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4742 do
   4743   CC="$ac_save_CC $ac_arg"
   4744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4745 /* end confdefs.h.  */
   4746 #include <stdarg.h>
   4747 #include <stdio.h>
   4748 #include <sys/types.h>
   4749 #include <sys/stat.h>
   4750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4751 struct buf { int x; };
   4752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4753 static char *e (p, i)
   4754      char **p;
   4755      int i;
   4756 {
   4757   return p[i];
   4758 }
   4759 static char *f (char * (*g) (char **, int), char **p, ...)
   4760 {
   4761   char *s;
   4762   va_list v;
   4763   va_start (v,p);
   4764   s = g (p, va_arg (v,int));
   4765   va_end (v);
   4766   return s;
   4767 }
   4768 int test (int i, double x);
   4769 struct s1 {int (*f) (int a);};
   4770 struct s2 {int (*f) (double a);};
   4771 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4772 int argc;
   4773 char **argv;
   4774 
   4775 int
   4776 main ()
   4777 {
   4778 
   4779 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4780 
   4781   ;
   4782   return 0;
   4783 }
   4784 _ACEOF
   4785 if ac_fn_c_try_compile "$LINENO"; then :
   4786   am_cv_prog_cc_stdc="$ac_arg"; break
   4787 fi
   4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4789 done
   4790 CC="$ac_save_CC"
   4791 
   4792 fi
   4793 
   4794 if test -z "$am_cv_prog_cc_stdc"; then
   4795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4796 $as_echo "none needed" >&6; }
   4797 else
   4798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
   4799 $as_echo "$am_cv_prog_cc_stdc" >&6; }
   4800 fi
   4801 case "x$am_cv_prog_cc_stdc" in
   4802   x|xno) ;;
   4803   *) CC="$CC $am_cv_prog_cc_stdc" ;;
   4804 esac
   4805 
   4806 # expand $ac_aux_dir to an absolute path
   4807 am_aux_dir=`cd $ac_aux_dir && pwd`
   4808 
   4809 if test x"${install_sh}" != xset; then
   4810   case $am_aux_dir in
   4811   *\ * | *\	*)
   4812     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   4813   *)
   4814     install_sh="\${SHELL} $am_aux_dir/install-sh"
   4815   esac
   4816 fi
   4817 
   4818 # Installed binaries are usually stripped using `strip' when the user
   4819 # run `make install-strip'.  However `strip' might not be the right
   4820 # tool to use in cross-compilation environments, therefore Automake
   4821 # will honor the `STRIP' environment variable to overrule this program.
   4822 if test "$cross_compiling" != no; then
   4823   if test -n "$ac_tool_prefix"; then
   4824   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   4825 set dummy ${ac_tool_prefix}strip; ac_word=$2
   4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4827 $as_echo_n "checking for $ac_word... " >&6; }
   4828 if test "${ac_cv_prog_STRIP+set}" = set; then :
   4829   $as_echo_n "(cached) " >&6
   4830 else
   4831   if test -n "$STRIP"; then
   4832   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   4833 else
   4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4835 for as_dir in $PATH
   4836 do
   4837   IFS=$as_save_IFS
   4838   test -z "$as_dir" && as_dir=.
   4839     for ac_exec_ext in '' $ac_executable_extensions; do
   4840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4841     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   4842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4843     break 2
   4844   fi
   4845 done
   4846   done
   4847 IFS=$as_save_IFS
   4848 
   4849 fi
   4850 fi
   4851 STRIP=$ac_cv_prog_STRIP
   4852 if test -n "$STRIP"; then
   4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   4854 $as_echo "$STRIP" >&6; }
   4855 else
   4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4857 $as_echo "no" >&6; }
   4858 fi
   4859 
   4860 
   4861 fi
   4862 if test -z "$ac_cv_prog_STRIP"; then
   4863   ac_ct_STRIP=$STRIP
   4864   # Extract the first word of "strip", so it can be a program name with args.
   4865 set dummy strip; ac_word=$2
   4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4867 $as_echo_n "checking for $ac_word... " >&6; }
   4868 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
   4869   $as_echo_n "(cached) " >&6
   4870 else
   4871   if test -n "$ac_ct_STRIP"; then
   4872   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   4873 else
   4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4875 for as_dir in $PATH
   4876 do
   4877   IFS=$as_save_IFS
   4878   test -z "$as_dir" && as_dir=.
   4879     for ac_exec_ext in '' $ac_executable_extensions; do
   4880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4881     ac_cv_prog_ac_ct_STRIP="strip"
   4882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4883     break 2
   4884   fi
   4885 done
   4886   done
   4887 IFS=$as_save_IFS
   4888 
   4889 fi
   4890 fi
   4891 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   4892 if test -n "$ac_ct_STRIP"; then
   4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   4894 $as_echo "$ac_ct_STRIP" >&6; }
   4895 else
   4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4897 $as_echo "no" >&6; }
   4898 fi
   4899 
   4900   if test "x$ac_ct_STRIP" = x; then
   4901     STRIP=":"
   4902   else
   4903     case $cross_compiling:$ac_tool_warned in
   4904 yes:)
   4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4907 ac_tool_warned=yes ;;
   4908 esac
   4909     STRIP=$ac_ct_STRIP
   4910   fi
   4911 else
   4912   STRIP="$ac_cv_prog_STRIP"
   4913 fi
   4914 
   4915 fi
   4916 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   4917 
   4918 
   4919 ac_aux_dir=
   4920 for ac_dir in .. "$srcdir"/..; do
   4921   for ac_t in install-sh install.sh shtool; do
   4922     if test -f "$ac_dir/$ac_t"; then
   4923       ac_aux_dir=$ac_dir
   4924       ac_install_sh="$ac_aux_dir/$ac_t -c"
   4925       break 2
   4926     fi
   4927   done
   4928 done
   4929 if test -z "$ac_aux_dir"; then
   4930   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
   4931 fi
   4932 
   4933 # These three variables are undocumented and unsupported,
   4934 # and are intended to be withdrawn in a future Autoconf release.
   4935 # They can cause serious problems if a builder's source tree is in a directory
   4936 # whose full name contains unusual characters.
   4937 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   4938 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   4939 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   4940 
   4941 
   4942 
   4943 test "$program_prefix" != NONE &&
   4944   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   4945 # Use a double $ so make ignores it.
   4946 test "$program_suffix" != NONE &&
   4947   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   4948 # Double any \ or $.
   4949 # By default was `s,x,x', remove it if useless.
   4950 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   4951 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   4952 
   4953 
   4954 # See if we are building with C++, and substitute COMPILER.
   4955 
   4956   # Check whether --enable-build-with-cxx was given.
   4957 if test "${enable_build_with_cxx+set}" = set; then :
   4958   enableval=$enable_build_with_cxx; case $enableval in
   4959       yes | no)
   4960 	  ;;
   4961       *)
   4962 	  as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
   4963     esac
   4964 else
   4965   enable_build_with_cxx=no
   4966 fi
   4967 
   4968 
   4969   if test "$enable_build_with_cxx" = "yes"; then
   4970     # We're using -fpermissive as shortcut for now.
   4971     COMPILER='$(CXX) -fpermissive'
   4972    else
   4973     COMPILER='$(CC)'
   4974   fi
   4975 
   4976 
   4977 
   4978 # Dependency checking.
   4979 rm -rf .tst 2>/dev/null
   4980 mkdir .tst 2>/dev/null
   4981 if test -d .tst; then
   4982   am__leading_dot=.
   4983 else
   4984   am__leading_dot=_
   4985 fi
   4986 rmdir .tst 2>/dev/null
   4987 
   4988 DEPDIR="${am__leading_dot}deps"
   4989 
   4990 ac_config_commands="$ac_config_commands depdir"
   4991 
   4992 
   4993 depcc="$CC"   am_compiler_list=
   4994 
   4995 am_depcomp=$ac_aux_dir/depcomp
   4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4997 $as_echo_n "checking dependency style of $depcc... " >&6; }
   4998 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
   4999   $as_echo_n "(cached) " >&6
   5000 else
   5001   if test -f "$am_depcomp"; then
   5002   # We make a subdir and do the tests there.  Otherwise we can end up
   5003   # making bogus files that we don't know about and never remove.  For
   5004   # instance it was reported that on HP-UX the gcc test will end up
   5005   # making a dummy file named `D' -- because `-MD' means `put the output
   5006   # in D'.
   5007   mkdir conftest.dir
   5008   # Copy depcomp to subdir because otherwise we won't find it if we're
   5009   # using a relative directory.
   5010   cp "$am_depcomp" conftest.dir
   5011   cd conftest.dir
   5012   # We will build objects and dependencies in a subdirectory because
   5013   # it helps to detect inapplicable dependency modes.  For instance
   5014   # both Tru64's cc and ICC support -MD to output dependencies as a
   5015   # side effect of compilation, but ICC will put the dependencies in
   5016   # the current directory while Tru64 will put them in the object
   5017   # directory.
   5018   mkdir sub
   5019 
   5020   am_cv_CC_dependencies_compiler_type=none
   5021   if test "$am_compiler_list" = ""; then
   5022      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   5023   fi
   5024   for depmode in $am_compiler_list; do
   5025     if test $depmode = none; then break; fi
   5026 
   5027     $as_echo "$as_me:$LINENO: trying $depmode" >&5
   5028     # Setup a source with many dependencies, because some compilers
   5029     # like to wrap large dependency lists on column 80 (with \), and
   5030     # we should not choose a depcomp mode which is confused by this.
   5031     #
   5032     # We need to recreate these files for each test, as the compiler may
   5033     # overwrite some of them when testing with obscure command lines.
   5034     # This happens at least with the AIX C compiler.
   5035     : > sub/conftest.c
   5036     for i in 1 2 3 4 5 6; do
   5037       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   5038       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   5039       # Solaris 8's {/usr,}/bin/sh.
   5040       touch sub/conftst$i.h
   5041     done
   5042     echo "include sub/conftest.Po" > confmf
   5043 
   5044     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   5045     # mode.  It turns out that the SunPro C++ compiler does not properly
   5046     # handle `-M -o', and we need to detect this.
   5047     depcmd="depmode=$depmode \
   5048        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   5049        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   5050        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
   5051     echo "| $depcmd" | sed -e 's/  */ /g' >&5
   5052     if env $depcmd > conftest.err 2>&1 &&
   5053        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
   5054        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
   5055        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
   5056       # icc doesn't choke on unknown options, it will just issue warnings
   5057       # or remarks (even with -Werror).  So we grep stderr for any message
   5058       # that says an option was ignored or not supported.
   5059       # When given -MP, icc 7.0 and 7.1 complain thusly:
   5060       #   icc: Command line warning: ignoring option '-M'; no argument required
   5061       # The diagnosis changed in icc 8.0:
   5062       #   icc: Command line remark: option '-MP' not supported
   5063       if (grep 'ignoring option' conftest.err ||
   5064           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   5065         am_cv_CC_dependencies_compiler_type=$depmode
   5066 	$as_echo "$as_me:$LINENO: success" >&5
   5067         break
   5068       fi
   5069     fi
   5070     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
   5071     sed -e 's/^/| /' < conftest.err >&5
   5072   done
   5073 
   5074   cd ..
   5075   rm -rf conftest.dir
   5076 else
   5077   am_cv_CC_dependencies_compiler_type=none
   5078 fi
   5079 
   5080 fi
   5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   5082 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   5083 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
   5084 then as_fn_error "no usable dependency style found" "$LINENO" 5
   5085 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   5086 
   5087 fi
   5088 
   5089 
   5090 # Check for the 'make' the user wants to use.
   5091 for ac_prog in make
   5092 do
   5093   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5094 set dummy $ac_prog; ac_word=$2
   5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5096 $as_echo_n "checking for $ac_word... " >&6; }
   5097 if test "${ac_cv_prog_MAKE+set}" = set; then :
   5098   $as_echo_n "(cached) " >&6
   5099 else
   5100   if test -n "$MAKE"; then
   5101   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
   5102 else
   5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5104 for as_dir in $PATH
   5105 do
   5106   IFS=$as_save_IFS
   5107   test -z "$as_dir" && as_dir=.
   5108     for ac_exec_ext in '' $ac_executable_extensions; do
   5109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5110     ac_cv_prog_MAKE="$ac_prog"
   5111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5112     break 2
   5113   fi
   5114 done
   5115   done
   5116 IFS=$as_save_IFS
   5117 
   5118 fi
   5119 fi
   5120 MAKE=$ac_cv_prog_MAKE
   5121 if test -n "$MAKE"; then
   5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
   5123 $as_echo "$MAKE" >&6; }
   5124 else
   5125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5126 $as_echo "no" >&6; }
   5127 fi
   5128 
   5129 
   5130   test -n "$MAKE" && break
   5131 done
   5132 
   5133 MAKE_IS_GNU=
   5134 case "`$MAKE --version 2>&1 | sed 1q`" in
   5135   *GNU*)
   5136     MAKE_IS_GNU=yes
   5137     ;;
   5138 esac
   5139  if test "$MAKE_IS_GNU" = yes; then
   5140   GMAKE_TRUE=
   5141   GMAKE_FALSE='#'
   5142 else
   5143   GMAKE_TRUE='#'
   5144   GMAKE_FALSE=
   5145 fi
   5146 
   5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   5148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   5149 set x ${MAKE-make}
   5150 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   5151 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
   5152   $as_echo_n "(cached) " >&6
   5153 else
   5154   cat >conftest.make <<\_ACEOF
   5155 SHELL = /bin/sh
   5156 all:
   5157 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   5158 _ACEOF
   5159 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   5160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   5161   *@@@%%%=?*=@@@%%%*)
   5162     eval ac_cv_prog_make_${ac_make}_set=yes;;
   5163   *)
   5164     eval ac_cv_prog_make_${ac_make}_set=no;;
   5165 esac
   5166 rm -f conftest.make
   5167 fi
   5168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5170 $as_echo "yes" >&6; }
   5171   SET_MAKE=
   5172 else
   5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5174 $as_echo "no" >&6; }
   5175   SET_MAKE="MAKE=${MAKE-make}"
   5176 fi
   5177 
   5178 
   5179 gnulib_extra_configure_args=
   5180 # If large-file support is disabled, make sure gnulib does the same.
   5181 if test "$enable_largefile" = no; then
   5182 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
   5183 fi
   5184 
   5185 # Configure gnulib.  We need to build gnulib under some other
   5186 # directory not "gnulib", to avoid the problem of both GDB and
   5187 # GDBserver wanting to build it in the same directory, when building
   5188 # in the source dir.
   5189 
   5190   in_src="gnulib"
   5191   in_build="build-gnulib"
   5192   in_extra_args="$gnulib_extra_configure_args"
   5193 
   5194   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   5195   # so they do not pile up.
   5196   ac_sub_configure_args=
   5197   ac_prev=
   5198   eval "set x $ac_configure_args"
   5199   shift
   5200   for ac_arg
   5201   do
   5202     if test -n "$ac_prev"; then
   5203       ac_prev=
   5204       continue
   5205     fi
   5206     case $ac_arg in
   5207     -cache-file | --cache-file | --cache-fil | --cache-fi \
   5208     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   5209       ac_prev=cache_file ;;
   5210     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   5211     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   5212     | --c=*)
   5213       ;;
   5214     --config-cache | -C)
   5215       ;;
   5216     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   5217       ac_prev=srcdir ;;
   5218     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   5219       ;;
   5220     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   5221       ac_prev=prefix ;;
   5222     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   5223       ;;
   5224     --disable-option-checking)
   5225       ;;
   5226     *)
   5227       case $ac_arg in
   5228       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   5229       esac
   5230       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   5231     esac
   5232   done
   5233 
   5234   # Always prepend --prefix to ensure using the same prefix
   5235   # in subdir configurations.
   5236   ac_arg="--prefix=$prefix"
   5237   case $ac_arg in
   5238   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   5239   esac
   5240   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   5241 
   5242   # Pass --silent
   5243   if test "$silent" = yes; then
   5244     ac_sub_configure_args="--silent $ac_sub_configure_args"
   5245   fi
   5246 
   5247   # Always prepend --disable-option-checking to silence warnings, since
   5248   # different subdirs can have different --enable and --with options.
   5249   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   5250 
   5251   ac_popdir=`pwd`
   5252   ac_dir=$in_build
   5253 
   5254   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   5255   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   5256   $as_echo "$ac_msg" >&6
   5257   as_dir="$ac_dir"; as_fn_mkdir_p
   5258 
   5259   case $srcdir in
   5260   [\\/]* | ?:[\\/]* )
   5261     ac_srcdir=$srcdir/$in_src ;;
   5262   *) # Relative name.
   5263     ac_srcdir=../$srcdir/$in_src ;;
   5264   esac
   5265 
   5266   cd "$ac_dir"
   5267 
   5268   ac_sub_configure=$ac_srcdir/configure
   5269 
   5270   # Make the cache file name correct relative to the subdirectory.
   5271   case $cache_file in
   5272   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   5273   *) # Relative name.
   5274     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   5275   esac
   5276 
   5277   if test -n "$in_extra_args"; then
   5278     # Add the extra args at the end.
   5279     ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
   5280   fi
   5281 
   5282   { $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
   5283 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   5284   # The eval makes quoting arguments work.
   5285   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   5286        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   5287     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   5288 
   5289   cd "$ac_popdir"
   5290 
   5291 
   5292 
   5293 CONFIG_OBS=
   5294 CONFIG_DEPS=
   5295 CONFIG_SRCS=
   5296 ENABLE_CFLAGS=
   5297 
   5298 CONFIG_ALL=
   5299 CONFIG_CLEAN=
   5300 CONFIG_INSTALL=
   5301 CONFIG_UNINSTALL=
   5302 
   5303 # If we haven't got the data from the intl directory,
   5304 # assume NLS is disabled.
   5305 USE_NLS=no
   5306 LIBINTL=
   5307 LIBINTL_DEP=
   5308 INCINTL=
   5309 XGETTEXT=
   5310 GMSGFMT=
   5311 POSUB=
   5312 
   5313 if test -f  ../intl/config.intl; then
   5314   .  ../intl/config.intl
   5315 fi
   5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   5317 $as_echo_n "checking whether NLS is requested... " >&6; }
   5318 if test x"$USE_NLS" != xyes; then
   5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5320 $as_echo "no" >&6; }
   5321 else
   5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5323 $as_echo "yes" >&6; }
   5324 
   5325 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   5326 
   5327 
   5328   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
   5329 $as_echo_n "checking for catalogs to be installed... " >&6; }
   5330   # Look for .po and .gmo files in the source directory.
   5331   CATALOGS=
   5332   XLINGUAS=
   5333   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
   5334     # If there aren't any .gmo files the shell will give us the
   5335     # literal string "../path/to/srcdir/po/*.gmo" which has to be
   5336     # weeded out.
   5337     case "$cat" in *\**)
   5338       continue;;
   5339     esac
   5340     # The quadruple backslash is collapsed to a double backslash
   5341     # by the backticks, then collapsed again by the double quotes,
   5342     # leaving us with one backslash in the sed expression (right
   5343     # before the dot that mustn't act as a wildcard).
   5344     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
   5345     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
   5346     # The user is allowed to set LINGUAS to a list of languages to
   5347     # install catalogs for.  If it's empty that means "all of them."
   5348     if test "x$LINGUAS" = x; then
   5349       CATALOGS="$CATALOGS $cat"
   5350       XLINGUAS="$XLINGUAS $lang"
   5351     else
   5352       case "$LINGUAS" in *$lang*)
   5353         CATALOGS="$CATALOGS $cat"
   5354         XLINGUAS="$XLINGUAS $lang"
   5355         ;;
   5356       esac
   5357     fi
   5358   done
   5359   LINGUAS="$XLINGUAS"
   5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
   5361 $as_echo "$LINGUAS" >&6; }
   5362 
   5363 
   5364     DATADIRNAME=share
   5365 
   5366   INSTOBJEXT=.mo
   5367 
   5368   GENCAT=gencat
   5369 
   5370   CATOBJEXT=.gmo
   5371 
   5372 fi
   5373 
   5374 localedir='${datadir}/locale'
   5375 
   5376 
   5377 if test x"$USE_NLS" = xyes; then
   5378    CONFIG_ALL="$CONFIG_ALL all-po"
   5379    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
   5380    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
   5381    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
   5382 fi
   5383 
   5384 GNULIB=build-gnulib/import
   5385 
   5386 # For Makefile dependencies.
   5387 GNULIB_STDINT_H=
   5388 if test x"$STDINT_H" != x; then
   5389   GNULIB_STDINT_H=$GNULIB/$STDINT_H
   5390 fi
   5391 
   5392 
   5393 PACKAGE=gdb
   5394 
   5395 cat >>confdefs.h <<_ACEOF
   5396 #define PACKAGE "$PACKAGE"
   5397 _ACEOF
   5398 
   5399 
   5400 
   5401 # We never need to detect it in this sub-configure.
   5402 # But preserve it for config.status --recheck.
   5403 
   5404 
   5405 
   5406 MAKEINFO_EXTRA_FLAGS=""
   5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
   5408 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
   5409 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
   5410   $as_echo_n "(cached) " >&6
   5411 else
   5412   echo '@clicksequence{a @click{} b}' >conftest.texinfo
   5413   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
   5414     gdb_cv_have_makeinfo_click=yes
   5415   else
   5416     gdb_cv_have_makeinfo_click=no
   5417   fi
   5418 fi
   5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
   5420 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
   5421 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
   5422   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
   5423 fi
   5424 
   5425 
   5426 
   5427 
   5428 # Check whether --with-separate-debug-dir was given.
   5429 if test "${with_separate_debug_dir+set}" = set; then :
   5430   withval=$with_separate_debug_dir;
   5431     DEBUGDIR=$withval
   5432 else
   5433   DEBUGDIR=${libdir}/debug
   5434 fi
   5435 
   5436 
   5437   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5438   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5439   ac_define_dir=`eval echo $DEBUGDIR`
   5440   ac_define_dir=`eval echo $ac_define_dir`
   5441 
   5442 cat >>confdefs.h <<_ACEOF
   5443 #define DEBUGDIR "$ac_define_dir"
   5444 _ACEOF
   5445 
   5446 
   5447 
   5448 
   5449   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   5450      if test "x$prefix" = xNONE; then
   5451      	test_prefix=/usr/local
   5452      else
   5453 	test_prefix=$prefix
   5454      fi
   5455   else
   5456      test_prefix=$exec_prefix
   5457   fi
   5458   value=0
   5459   case ${ac_define_dir} in
   5460      "${test_prefix}"|"${test_prefix}/"*|\
   5461 	'${exec_prefix}'|'${exec_prefix}/'*)
   5462      value=1
   5463      ;;
   5464   esac
   5465 
   5466 cat >>confdefs.h <<_ACEOF
   5467 #define DEBUGDIR_RELOCATABLE $value
   5468 _ACEOF
   5469 
   5470 
   5471 
   5472 
   5473 # We can't pass paths as command line arguments.
   5474 # Mingw32 tries to be clever and will convert the paths for us.
   5475 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
   5476 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
   5477 # This breaks GDB's relocatable path conversions since paths passed in
   5478 # config.h would not get so translated, the path prefixes no longer match.
   5479 
   5480   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5481   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5482   ac_define_dir=`eval echo $bindir`
   5483   ac_define_dir=`eval echo $ac_define_dir`
   5484 
   5485 cat >>confdefs.h <<_ACEOF
   5486 #define BINDIR "$ac_define_dir"
   5487 _ACEOF
   5488 
   5489 
   5490 
   5491 # GDB's datadir relocation
   5492 
   5493 
   5494 
   5495 # Check whether --with-gdb-datadir was given.
   5496 if test "${with_gdb_datadir+set}" = set; then :
   5497   withval=$with_gdb_datadir;
   5498     GDB_DATADIR=$withval
   5499 else
   5500   GDB_DATADIR=${datadir}/gdb
   5501 fi
   5502 
   5503 
   5504   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5505   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5506   ac_define_dir=`eval echo $GDB_DATADIR`
   5507   ac_define_dir=`eval echo $ac_define_dir`
   5508 
   5509 cat >>confdefs.h <<_ACEOF
   5510 #define GDB_DATADIR "$ac_define_dir"
   5511 _ACEOF
   5512 
   5513 
   5514 
   5515 
   5516   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   5517      if test "x$prefix" = xNONE; then
   5518      	test_prefix=/usr/local
   5519      else
   5520 	test_prefix=$prefix
   5521      fi
   5522   else
   5523      test_prefix=$exec_prefix
   5524   fi
   5525   value=0
   5526   case ${ac_define_dir} in
   5527      "${test_prefix}"|"${test_prefix}/"*|\
   5528 	'${exec_prefix}'|'${exec_prefix}/'*)
   5529      value=1
   5530      ;;
   5531   esac
   5532 
   5533 cat >>confdefs.h <<_ACEOF
   5534 #define GDB_DATADIR_RELOCATABLE $value
   5535 _ACEOF
   5536 
   5537 
   5538 
   5539 
   5540 
   5541 # Check whether --with-relocated-sources was given.
   5542 if test "${with_relocated_sources+set}" = set; then :
   5543   withval=$with_relocated_sources; reloc_srcdir="${withval}"
   5544 
   5545   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5546   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5547   ac_define_dir=`eval echo $reloc_srcdir`
   5548   ac_define_dir=`eval echo $ac_define_dir`
   5549 
   5550 cat >>confdefs.h <<_ACEOF
   5551 #define RELOC_SRCDIR "$ac_define_dir"
   5552 _ACEOF
   5553 
   5554 
   5555 
   5556 fi
   5557 
   5558 
   5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
   5560 $as_echo_n "checking for default auto-load directory... " >&6; }
   5561 
   5562 # Check whether --with-auto-load-dir was given.
   5563 if test "${with_auto_load_dir+set}" = set; then :
   5564   withval=$with_auto_load_dir;
   5565 else
   5566   with_auto_load_dir='$debugdir:$datadir/auto-load'
   5567 fi
   5568 
   5569 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
   5570 
   5571   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5572   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5573   ac_define_dir=`eval echo $escape_dir`
   5574   ac_define_dir=`eval echo $ac_define_dir`
   5575 
   5576 cat >>confdefs.h <<_ACEOF
   5577 #define AUTO_LOAD_DIR "$ac_define_dir"
   5578 _ACEOF
   5579 
   5580 
   5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
   5582 $as_echo "$with_auto_load_dir" >&6; }
   5583 
   5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
   5585 $as_echo_n "checking for default auto-load safe-path... " >&6; }
   5586 
   5587 # Check whether --with-auto-load-safe-path was given.
   5588 if test "${with_auto_load_safe_path+set}" = set; then :
   5589   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
   5590      with_auto_load_safe_path="/"
   5591      fi
   5592 else
   5593   with_auto_load_safe_path="$with_auto_load_dir"
   5594 fi
   5595 
   5596 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
   5597 
   5598   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5599   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5600   ac_define_dir=`eval echo $escape_dir`
   5601   ac_define_dir=`eval echo $ac_define_dir`
   5602 
   5603 cat >>confdefs.h <<_ACEOF
   5604 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
   5605 _ACEOF
   5606 
   5607 
   5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
   5609 $as_echo "$with_auto_load_safe_path" >&6; }
   5610 
   5611 
   5612 
   5613 subdirs="$subdirs testsuite"
   5614 
   5615 
   5616 # Check whether to support alternative target configurations
   5617 # Check whether --enable-targets was given.
   5618 if test "${enable_targets+set}" = set; then :
   5619   enableval=$enable_targets; case "${enableval}" in
   5620   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
   5621             ;;
   5622   no)       enable_targets= ;;
   5623   *)        enable_targets=$enableval ;;
   5624 esac
   5625 fi
   5626 
   5627 
   5628 # Check whether to enable 64-bit support on 32-bit hosts
   5629 # Check whether --enable-64-bit-bfd was given.
   5630 if test "${enable_64_bit_bfd+set}" = set; then :
   5631   enableval=$enable_64_bit_bfd; case "${enableval}" in
   5632   yes)  want64=true  ;;
   5633   no)   want64=false ;;
   5634   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
   5635 esac
   5636 else
   5637   want64=false
   5638 fi
   5639 
   5640 # Provide defaults for some variables set by the per-host and per-target
   5641 # configuration.
   5642 gdb_host_obs=posix-hdep.o
   5643 
   5644 if test "${target}" = "${host}"; then
   5645   gdb_native=yes
   5646 else
   5647   gdb_native=no
   5648 fi
   5649 
   5650 . $srcdir/configure.host
   5651 
   5652 # Add in the common host objects.
   5653 . $srcdir/common/common.host
   5654 gdb_host_obs="$gdb_host_obs $common_host_obs"
   5655 
   5656 # Accumulate some settings from configure.tgt over all enabled targets
   5657 
   5658 TARGET_OBS=
   5659 all_targets=
   5660 HAVE_NATIVE_GCORE_TARGET=
   5661 
   5662 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
   5663 do
   5664   if test "$targ_alias" = "all"; then
   5665     all_targets=true
   5666   else
   5667     # Canonicalize the secondary target names.
   5668     result=`$ac_config_sub $targ_alias 2>/dev/null`
   5669     if test -n "$result"; then
   5670         targ=$result
   5671     else
   5672         targ=$targ_alias
   5673     fi
   5674 
   5675     . ${srcdir}/configure.tgt
   5676 
   5677     if test -z "${gdb_target_obs}"; then :
   5678   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
   5679 fi
   5680 
   5681     # Target-specific object files
   5682     for i in ${gdb_target_obs}; do
   5683         case " $TARGET_OBS " in
   5684         *" ${i} "*) ;;
   5685         *)
   5686           TARGET_OBS="$TARGET_OBS ${i}"
   5687           ;;
   5688         esac
   5689     done
   5690 
   5691     # Check whether this target needs 64-bit CORE_ADDR
   5692     if test x${want64} = xfalse; then
   5693       . ${srcdir}/../bfd/config.bfd
   5694     fi
   5695 
   5696     # Check whether this target is native and supports gcore.
   5697     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
   5698        && $gdb_have_gcore; then
   5699       HAVE_NATIVE_GCORE_TARGET=1
   5700     fi
   5701   fi
   5702 done
   5703 
   5704 if test x${all_targets} = xtrue; then
   5705 
   5706   # We want all 64-bit targets if we either:
   5707   #  - run on a 64-bit host  or
   5708   #  - already require 64-bit support for some other target  or
   5709   #  - the --enable-64-bit-bfd option was supplied
   5710   # Otherwise we only support all 32-bit targets.
   5711   #
   5712   # NOTE: This test must be in sync with the corresponding
   5713   #       tests in BFD!
   5714 
   5715   if test x${want64} = xfalse; then
   5716     # The cast to long int works around a bug in the HP C Compiler
   5717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5719 # This bug is HP SR number 8606223364.
   5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   5721 $as_echo_n "checking size of long... " >&6; }
   5722 if test "${ac_cv_sizeof_long+set}" = set; then :
   5723   $as_echo_n "(cached) " >&6
   5724 else
   5725   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   5726 
   5727 else
   5728   if test "$ac_cv_type_long" = yes; then
   5729      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5731 { as_fn_set_status 77
   5732 as_fn_error "cannot compute sizeof (long)
   5733 See \`config.log' for more details." "$LINENO" 5; }; }
   5734    else
   5735      ac_cv_sizeof_long=0
   5736    fi
   5737 fi
   5738 
   5739 fi
   5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   5741 $as_echo "$ac_cv_sizeof_long" >&6; }
   5742 
   5743 
   5744 
   5745 cat >>confdefs.h <<_ACEOF
   5746 #define SIZEOF_LONG $ac_cv_sizeof_long
   5747 _ACEOF
   5748 
   5749 
   5750     if test "x${ac_cv_sizeof_long}" = "x8"; then
   5751       want64=true
   5752     fi
   5753   fi
   5754   if test x${want64} = xtrue; then
   5755     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
   5756   else
   5757     TARGET_OBS='$(ALL_TARGET_OBS)'
   5758   fi
   5759 fi
   5760 
   5761 
   5762 
   5763 
   5764 # For other settings, only the main target counts.
   5765 gdb_sim=
   5766 gdb_osabi=
   5767 build_gdbserver=
   5768 targ=$target; . ${srcdir}/configure.tgt
   5769 
   5770 # Fetch the default architecture and default target vector from BFD.
   5771 targ=$target; . $srcdir/../bfd/config.bfd
   5772 
   5773 # We only want the first architecture, so strip off the others if
   5774 # there is more than one.
   5775 targ_archs=`echo $targ_archs | sed 's/ .*//'`
   5776 
   5777 if test "x$targ_archs" != x; then
   5778 
   5779 cat >>confdefs.h <<_ACEOF
   5780 #define DEFAULT_BFD_ARCH $targ_archs
   5781 _ACEOF
   5782 
   5783 fi
   5784 if test "x$targ_defvec" != x; then
   5785 
   5786 cat >>confdefs.h <<_ACEOF
   5787 #define DEFAULT_BFD_VEC $targ_defvec
   5788 _ACEOF
   5789 
   5790 fi
   5791 
   5792 # The CLI cannot be disabled yet, but may be in the future.
   5793 
   5794 # Enable CLI.
   5795 # Check whether --enable-gdbcli was given.
   5796 if test "${enable_gdbcli+set}" = set; then :
   5797   enableval=$enable_gdbcli; case $enableval in
   5798     yes)
   5799       ;;
   5800     no)
   5801       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
   5802     *)
   5803       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
   5804   esac
   5805 else
   5806   enable_gdbcli=yes
   5807 fi
   5808 
   5809 if test x"$enable_gdbcli" = xyes; then
   5810   if test -d $srcdir/cli; then
   5811     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
   5812     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
   5813     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
   5814     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
   5815   fi
   5816 fi
   5817 
   5818 # Enable MI.
   5819 # Check whether --enable-gdbmi was given.
   5820 if test "${enable_gdbmi+set}" = set; then :
   5821   enableval=$enable_gdbmi; case $enableval in
   5822     yes | no)
   5823       ;;
   5824     *)
   5825       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
   5826   esac
   5827 else
   5828   enable_gdbmi=yes
   5829 fi
   5830 
   5831 if test x"$enable_gdbmi" = xyes; then
   5832   if test -d $srcdir/mi; then
   5833     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
   5834     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
   5835     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
   5836     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
   5837   fi
   5838 fi
   5839 
   5840 # Enable TUI.
   5841 # Check whether --enable-tui was given.
   5842 if test "${enable_tui+set}" = set; then :
   5843   enableval=$enable_tui; case $enableval in
   5844     yes | no | auto)
   5845       ;;
   5846     *)
   5847       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
   5848   esac
   5849 else
   5850   enable_tui=auto
   5851 fi
   5852 
   5853 
   5854 # Enable gdbtk.
   5855 # Check whether --enable-gdbtk was given.
   5856 if test "${enable_gdbtk+set}" = set; then :
   5857   enableval=$enable_gdbtk; case $enableval in
   5858     yes | no)
   5859       ;;
   5860     *)
   5861       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
   5862   esac
   5863 else
   5864   if test -d $srcdir/gdbtk; then
   5865     enable_gdbtk=yes
   5866   else
   5867     enable_gdbtk=no
   5868   fi
   5869 fi
   5870 
   5871 # We unconditionally disable gdbtk tests on selected platforms.
   5872 case $host_os in
   5873   go32* | windows*)
   5874     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
   5875 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
   5876     enable_gdbtk=no ;;
   5877 esac
   5878 
   5879 # Libunwind support for ia64.
   5880 
   5881 
   5882 # Check whether --with-libunwind-ia64 was given.
   5883 if test "${with_libunwind_ia64+set}" = set; then :
   5884   withval=$with_libunwind_ia64;
   5885 else
   5886   with_libunwind_ia64=auto
   5887 fi
   5888 
   5889 
   5890 # Backward compatibility option.
   5891 if test "${with_libunwind+set}" = set; then
   5892   if test x"$with_libunwind_ia64" != xauto; then
   5893     as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
   5894   fi
   5895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
   5896 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
   5897   with_libunwind_ia64="$with_libunwind"
   5898 fi
   5899 
   5900 case "$with_libunwind_ia64" in
   5901   yes | no)
   5902     ;;
   5903   auto)
   5904     for ac_header in libunwind-ia64.h
   5905 do :
   5906   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   5907 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
   5908   cat >>confdefs.h <<_ACEOF
   5909 #define HAVE_LIBUNWIND_IA64_H 1
   5910 _ACEOF
   5911 
   5912 fi
   5913 
   5914 done
   5915 
   5916     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
   5917     ;;
   5918   *)
   5919     as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
   5920     ;;
   5921 esac
   5922 
   5923 if test x"$with_libunwind_ia64" = xyes; then
   5924   for ac_header in libunwind-ia64.h
   5925 do :
   5926   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   5927 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
   5928   cat >>confdefs.h <<_ACEOF
   5929 #define HAVE_LIBUNWIND_IA64_H 1
   5930 _ACEOF
   5931 
   5932 fi
   5933 
   5934 done
   5935 
   5936   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
   5937     as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
   5938   fi
   5939   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
   5940   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
   5941   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
   5942 fi
   5943 
   5944 opt_curses=no
   5945 
   5946 # Check whether --with-curses was given.
   5947 if test "${with_curses+set}" = set; then :
   5948   withval=$with_curses; opt_curses=$withval
   5949 fi
   5950 
   5951 
   5952 prefer_curses=no
   5953 if test "$opt_curses" = "yes"; then
   5954   prefer_curses=yes
   5955 fi
   5956 
   5957 # Profiling support.
   5958 # Check whether --enable-profiling was given.
   5959 if test "${enable_profiling+set}" = set; then :
   5960   enableval=$enable_profiling; case $enableval in
   5961     yes | no)
   5962       ;;
   5963     *)
   5964       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
   5965   esac
   5966 else
   5967   enable_profiling=no
   5968 fi
   5969 
   5970 
   5971 for ac_func in monstartup _mcleanup
   5972 do :
   5973   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5974 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   5975 eval as_val=\$$as_ac_var
   5976    if test "x$as_val" = x""yes; then :
   5977   cat >>confdefs.h <<_ACEOF
   5978 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5979 _ACEOF
   5980 
   5981 fi
   5982 done
   5983 
   5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
   5985 $as_echo_n "checking for _etext... " >&6; }
   5986 if test "${ac_cv_var__etext+set}" = set; then :
   5987   $as_echo_n "(cached) " >&6
   5988 else
   5989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5990 /* end confdefs.h.  */
   5991 #include <stdlib.h>
   5992 extern char _etext;
   5993 
   5994 int
   5995 main ()
   5996 {
   5997 free (&_etext);
   5998   ;
   5999   return 0;
   6000 }
   6001 _ACEOF
   6002 if ac_fn_c_try_link "$LINENO"; then :
   6003   ac_cv_var__etext=yes
   6004 else
   6005   ac_cv_var__etext=no
   6006 fi
   6007 rm -f core conftest.err conftest.$ac_objext \
   6008     conftest$ac_exeext conftest.$ac_ext
   6009 fi
   6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
   6011 $as_echo "$ac_cv_var__etext" >&6; }
   6012 if test $ac_cv_var__etext = yes; then
   6013 
   6014 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
   6015 
   6016 fi
   6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
   6018 $as_echo_n "checking for etext... " >&6; }
   6019 if test "${ac_cv_var_etext+set}" = set; then :
   6020   $as_echo_n "(cached) " >&6
   6021 else
   6022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6023 /* end confdefs.h.  */
   6024 #include <stdlib.h>
   6025 extern char etext;
   6026 
   6027 int
   6028 main ()
   6029 {
   6030 free (&etext);
   6031   ;
   6032   return 0;
   6033 }
   6034 _ACEOF
   6035 if ac_fn_c_try_link "$LINENO"; then :
   6036   ac_cv_var_etext=yes
   6037 else
   6038   ac_cv_var_etext=no
   6039 fi
   6040 rm -f core conftest.err conftest.$ac_objext \
   6041     conftest$ac_exeext conftest.$ac_ext
   6042 fi
   6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
   6044 $as_echo "$ac_cv_var_etext" >&6; }
   6045 if test $ac_cv_var_etext = yes; then
   6046 
   6047 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
   6048 
   6049 fi
   6050 if test "$enable_profiling" = yes ; then
   6051   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
   6052     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
   6053   fi
   6054   PROFILE_CFLAGS=-pg
   6055   OLD_CFLAGS="$CFLAGS"
   6056   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
   6057 
   6058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
   6059 $as_echo_n "checking whether $CC supports -pg... " >&6; }
   6060 if test "${ac_cv_cc_supports_pg+set}" = set; then :
   6061   $as_echo_n "(cached) " >&6
   6062 else
   6063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6064 /* end confdefs.h.  */
   6065 
   6066 int
   6067 main ()
   6068 {
   6069 int x;
   6070   ;
   6071   return 0;
   6072 }
   6073 _ACEOF
   6074 if ac_fn_c_try_compile "$LINENO"; then :
   6075   ac_cv_cc_supports_pg=yes
   6076 else
   6077   ac_cv_cc_supports_pg=no
   6078 fi
   6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6080 fi
   6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
   6082 $as_echo "$ac_cv_cc_supports_pg" >&6; }
   6083 
   6084   if test $ac_cv_cc_supports_pg = no; then
   6085     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
   6086   fi
   6087 
   6088   CFLAGS="$OLD_CFLAGS"
   6089 fi
   6090 
   6091 
   6092 
   6093 # Check whether --with-pkgversion was given.
   6094 if test "${with_pkgversion+set}" = set; then :
   6095   withval=$with_pkgversion; case "$withval" in
   6096       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
   6097       no)  PKGVERSION= ;;
   6098       *)   PKGVERSION="($withval) " ;;
   6099      esac
   6100 else
   6101   PKGVERSION="(GDB) "
   6102 
   6103 fi
   6104 
   6105 
   6106 
   6107 
   6108 
   6109 # Check whether --with-bugurl was given.
   6110 if test "${with_bugurl+set}" = set; then :
   6111   withval=$with_bugurl; case "$withval" in
   6112       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
   6113       no)  BUGURL=
   6114 	   ;;
   6115       *)   BUGURL="$withval"
   6116 	   ;;
   6117      esac
   6118 else
   6119   BUGURL="http://www.gnu.org/software/gdb/bugs/"
   6120 
   6121 fi
   6122 
   6123   case ${BUGURL} in
   6124   "")
   6125     REPORT_BUGS_TO=
   6126     REPORT_BUGS_TEXI=
   6127     ;;
   6128   *)
   6129     REPORT_BUGS_TO="<$BUGURL>"
   6130     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
   6131     ;;
   6132   esac;
   6133 
   6134 
   6135 
   6136 
   6137 cat >>confdefs.h <<_ACEOF
   6138 #define PKGVERSION "$PKGVERSION"
   6139 _ACEOF
   6140 
   6141 
   6142 cat >>confdefs.h <<_ACEOF
   6143 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
   6144 _ACEOF
   6145 
   6146 
   6147 # --------------------- #
   6148 # Checks for programs.  #
   6149 # --------------------- #
   6150 
   6151 for ac_prog in gawk mawk nawk awk
   6152 do
   6153   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6154 set dummy $ac_prog; ac_word=$2
   6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6156 $as_echo_n "checking for $ac_word... " >&6; }
   6157 if test "${ac_cv_prog_AWK+set}" = set; then :
   6158   $as_echo_n "(cached) " >&6
   6159 else
   6160   if test -n "$AWK"; then
   6161   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   6162 else
   6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6164 for as_dir in $PATH
   6165 do
   6166   IFS=$as_save_IFS
   6167   test -z "$as_dir" && as_dir=.
   6168     for ac_exec_ext in '' $ac_executable_extensions; do
   6169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6170     ac_cv_prog_AWK="$ac_prog"
   6171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6172     break 2
   6173   fi
   6174 done
   6175   done
   6176 IFS=$as_save_IFS
   6177 
   6178 fi
   6179 fi
   6180 AWK=$ac_cv_prog_AWK
   6181 if test -n "$AWK"; then
   6182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   6183 $as_echo "$AWK" >&6; }
   6184 else
   6185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6186 $as_echo "no" >&6; }
   6187 fi
   6188 
   6189 
   6190   test -n "$AWK" && break
   6191 done
   6192 
   6193 # Find a good install program.  We prefer a C program (faster),
   6194 # so one script is as good as another.  But avoid the broken or
   6195 # incompatible versions:
   6196 # SysV /etc/install, /usr/sbin/install
   6197 # SunOS /usr/etc/install
   6198 # IRIX /sbin/install
   6199 # AIX /bin/install
   6200 # AmigaOS /C/install, which installs bootblocks on floppy discs
   6201 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   6202 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   6203 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   6204 # OS/2's system install, which has a completely different semantic
   6205 # ./install, which can be erroneously created by make from ./install.sh.
   6206 # Reject install programs that cannot install multiple files.
   6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   6208 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   6209 if test -z "$INSTALL"; then
   6210 if test "${ac_cv_path_install+set}" = set; then :
   6211   $as_echo_n "(cached) " >&6
   6212 else
   6213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6214 for as_dir in $PATH
   6215 do
   6216   IFS=$as_save_IFS
   6217   test -z "$as_dir" && as_dir=.
   6218     # Account for people who put trailing slashes in PATH elements.
   6219 case $as_dir/ in #((
   6220   ./ | .// | /[cC]/* | \
   6221   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   6222   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   6223   /usr/ucb/* ) ;;
   6224   *)
   6225     # OSF1 and SCO ODT 3.0 have their own names for install.
   6226     # Don't use installbsd from OSF since it installs stuff as root
   6227     # by default.
   6228     for ac_prog in ginstall scoinst install; do
   6229       for ac_exec_ext in '' $ac_executable_extensions; do
   6230 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   6231 	  if test $ac_prog = install &&
   6232 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6233 	    # AIX install.  It has an incompatible calling convention.
   6234 	    :
   6235 	  elif test $ac_prog = install &&
   6236 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6237 	    # program-specific install script used by HP pwplus--don't use.
   6238 	    :
   6239 	  else
   6240 	    rm -rf conftest.one conftest.two conftest.dir
   6241 	    echo one > conftest.one
   6242 	    echo two > conftest.two
   6243 	    mkdir conftest.dir
   6244 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   6245 	      test -s conftest.one && test -s conftest.two &&
   6246 	      test -s conftest.dir/conftest.one &&
   6247 	      test -s conftest.dir/conftest.two
   6248 	    then
   6249 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   6250 	      break 3
   6251 	    fi
   6252 	  fi
   6253 	fi
   6254       done
   6255     done
   6256     ;;
   6257 esac
   6258 
   6259   done
   6260 IFS=$as_save_IFS
   6261 
   6262 rm -rf conftest.one conftest.two conftest.dir
   6263 
   6264 fi
   6265   if test "${ac_cv_path_install+set}" = set; then
   6266     INSTALL=$ac_cv_path_install
   6267   else
   6268     # As a last resort, use the slow shell script.  Don't cache a
   6269     # value for INSTALL within a source directory, because that will
   6270     # break other packages using the cache if that directory is
   6271     # removed, or if the value is a relative name.
   6272     INSTALL=$ac_install_sh
   6273   fi
   6274 fi
   6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   6276 $as_echo "$INSTALL" >&6; }
   6277 
   6278 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   6279 # It thinks the first close brace ends the variable substitution.
   6280 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   6281 
   6282 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   6283 
   6284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   6285 
   6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   6287 $as_echo_n "checking whether ln -s works... " >&6; }
   6288 LN_S=$as_ln_s
   6289 if test "$LN_S" = "ln -s"; then
   6290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6291 $as_echo "yes" >&6; }
   6292 else
   6293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   6294 $as_echo "no, using $LN_S" >&6; }
   6295 fi
   6296 
   6297 if test -n "$ac_tool_prefix"; then
   6298   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6299 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6301 $as_echo_n "checking for $ac_word... " >&6; }
   6302 if test "${ac_cv_prog_RANLIB+set}" = set; then :
   6303   $as_echo_n "(cached) " >&6
   6304 else
   6305   if test -n "$RANLIB"; then
   6306   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6307 else
   6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6309 for as_dir in $PATH
   6310 do
   6311   IFS=$as_save_IFS
   6312   test -z "$as_dir" && as_dir=.
   6313     for ac_exec_ext in '' $ac_executable_extensions; do
   6314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6315     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6317     break 2
   6318   fi
   6319 done
   6320   done
   6321 IFS=$as_save_IFS
   6322 
   6323 fi
   6324 fi
   6325 RANLIB=$ac_cv_prog_RANLIB
   6326 if test -n "$RANLIB"; then
   6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   6328 $as_echo "$RANLIB" >&6; }
   6329 else
   6330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6331 $as_echo "no" >&6; }
   6332 fi
   6333 
   6334 
   6335 fi
   6336 if test -z "$ac_cv_prog_RANLIB"; then
   6337   ac_ct_RANLIB=$RANLIB
   6338   # Extract the first word of "ranlib", so it can be a program name with args.
   6339 set dummy ranlib; ac_word=$2
   6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6341 $as_echo_n "checking for $ac_word... " >&6; }
   6342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
   6343   $as_echo_n "(cached) " >&6
   6344 else
   6345   if test -n "$ac_ct_RANLIB"; then
   6346   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6347 else
   6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6349 for as_dir in $PATH
   6350 do
   6351   IFS=$as_save_IFS
   6352   test -z "$as_dir" && as_dir=.
   6353     for ac_exec_ext in '' $ac_executable_extensions; do
   6354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6355     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6357     break 2
   6358   fi
   6359 done
   6360   done
   6361 IFS=$as_save_IFS
   6362 
   6363 fi
   6364 fi
   6365 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6366 if test -n "$ac_ct_RANLIB"; then
   6367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6368 $as_echo "$ac_ct_RANLIB" >&6; }
   6369 else
   6370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6371 $as_echo "no" >&6; }
   6372 fi
   6373 
   6374   if test "x$ac_ct_RANLIB" = x; then
   6375     RANLIB=":"
   6376   else
   6377     case $cross_compiling:$ac_tool_warned in
   6378 yes:)
   6379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6381 ac_tool_warned=yes ;;
   6382 esac
   6383     RANLIB=$ac_ct_RANLIB
   6384   fi
   6385 else
   6386   RANLIB="$ac_cv_prog_RANLIB"
   6387 fi
   6388 
   6389 for ac_prog in 'bison -y' byacc
   6390 do
   6391   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6392 set dummy $ac_prog; ac_word=$2
   6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6394 $as_echo_n "checking for $ac_word... " >&6; }
   6395 if test "${ac_cv_prog_YACC+set}" = set; then :
   6396   $as_echo_n "(cached) " >&6
   6397 else
   6398   if test -n "$YACC"; then
   6399   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   6400 else
   6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6402 for as_dir in $PATH
   6403 do
   6404   IFS=$as_save_IFS
   6405   test -z "$as_dir" && as_dir=.
   6406     for ac_exec_ext in '' $ac_executable_extensions; do
   6407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6408     ac_cv_prog_YACC="$ac_prog"
   6409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6410     break 2
   6411   fi
   6412 done
   6413   done
   6414 IFS=$as_save_IFS
   6415 
   6416 fi
   6417 fi
   6418 YACC=$ac_cv_prog_YACC
   6419 if test -n "$YACC"; then
   6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   6421 $as_echo "$YACC" >&6; }
   6422 else
   6423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6424 $as_echo "no" >&6; }
   6425 fi
   6426 
   6427 
   6428   test -n "$YACC" && break
   6429 done
   6430 test -n "$YACC" || YACC="yacc"
   6431 
   6432 
   6433 if test -n "$ac_tool_prefix"; then
   6434   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6435 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6437 $as_echo_n "checking for $ac_word... " >&6; }
   6438 if test "${ac_cv_prog_AR+set}" = set; then :
   6439   $as_echo_n "(cached) " >&6
   6440 else
   6441   if test -n "$AR"; then
   6442   ac_cv_prog_AR="$AR" # Let the user override the test.
   6443 else
   6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6445 for as_dir in $PATH
   6446 do
   6447   IFS=$as_save_IFS
   6448   test -z "$as_dir" && as_dir=.
   6449     for ac_exec_ext in '' $ac_executable_extensions; do
   6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6451     ac_cv_prog_AR="${ac_tool_prefix}ar"
   6452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6453     break 2
   6454   fi
   6455 done
   6456   done
   6457 IFS=$as_save_IFS
   6458 
   6459 fi
   6460 fi
   6461 AR=$ac_cv_prog_AR
   6462 if test -n "$AR"; then
   6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6464 $as_echo "$AR" >&6; }
   6465 else
   6466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6467 $as_echo "no" >&6; }
   6468 fi
   6469 
   6470 
   6471 fi
   6472 if test -z "$ac_cv_prog_AR"; then
   6473   ac_ct_AR=$AR
   6474   # Extract the first word of "ar", so it can be a program name with args.
   6475 set dummy ar; ac_word=$2
   6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6477 $as_echo_n "checking for $ac_word... " >&6; }
   6478 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
   6479   $as_echo_n "(cached) " >&6
   6480 else
   6481   if test -n "$ac_ct_AR"; then
   6482   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6483 else
   6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6485 for as_dir in $PATH
   6486 do
   6487   IFS=$as_save_IFS
   6488   test -z "$as_dir" && as_dir=.
   6489     for ac_exec_ext in '' $ac_executable_extensions; do
   6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6491     ac_cv_prog_ac_ct_AR="ar"
   6492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6493     break 2
   6494   fi
   6495 done
   6496   done
   6497 IFS=$as_save_IFS
   6498 
   6499 fi
   6500 fi
   6501 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6502 if test -n "$ac_ct_AR"; then
   6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   6504 $as_echo "$ac_ct_AR" >&6; }
   6505 else
   6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6507 $as_echo "no" >&6; }
   6508 fi
   6509 
   6510   if test "x$ac_ct_AR" = x; then
   6511     AR=""
   6512   else
   6513     case $cross_compiling:$ac_tool_warned in
   6514 yes:)
   6515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6517 ac_tool_warned=yes ;;
   6518 esac
   6519     AR=$ac_ct_AR
   6520   fi
   6521 else
   6522   AR="$ac_cv_prog_AR"
   6523 fi
   6524 
   6525 if test -n "$ac_tool_prefix"; then
   6526   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   6527 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6529 $as_echo_n "checking for $ac_word... " >&6; }
   6530 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
   6531   $as_echo_n "(cached) " >&6
   6532 else
   6533   if test -n "$DLLTOOL"; then
   6534   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   6535 else
   6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6537 for as_dir in $PATH
   6538 do
   6539   IFS=$as_save_IFS
   6540   test -z "$as_dir" && as_dir=.
   6541     for ac_exec_ext in '' $ac_executable_extensions; do
   6542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6543     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   6544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6545     break 2
   6546   fi
   6547 done
   6548   done
   6549 IFS=$as_save_IFS
   6550 
   6551 fi
   6552 fi
   6553 DLLTOOL=$ac_cv_prog_DLLTOOL
   6554 if test -n "$DLLTOOL"; then
   6555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   6556 $as_echo "$DLLTOOL" >&6; }
   6557 else
   6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6559 $as_echo "no" >&6; }
   6560 fi
   6561 
   6562 
   6563 fi
   6564 if test -z "$ac_cv_prog_DLLTOOL"; then
   6565   ac_ct_DLLTOOL=$DLLTOOL
   6566   # Extract the first word of "dlltool", so it can be a program name with args.
   6567 set dummy dlltool; ac_word=$2
   6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6569 $as_echo_n "checking for $ac_word... " >&6; }
   6570 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
   6571   $as_echo_n "(cached) " >&6
   6572 else
   6573   if test -n "$ac_ct_DLLTOOL"; then
   6574   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   6575 else
   6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6577 for as_dir in $PATH
   6578 do
   6579   IFS=$as_save_IFS
   6580   test -z "$as_dir" && as_dir=.
   6581     for ac_exec_ext in '' $ac_executable_extensions; do
   6582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6583     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   6584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6585     break 2
   6586   fi
   6587 done
   6588   done
   6589 IFS=$as_save_IFS
   6590 
   6591 fi
   6592 fi
   6593 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   6594 if test -n "$ac_ct_DLLTOOL"; then
   6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   6596 $as_echo "$ac_ct_DLLTOOL" >&6; }
   6597 else
   6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6599 $as_echo "no" >&6; }
   6600 fi
   6601 
   6602   if test "x$ac_ct_DLLTOOL" = x; then
   6603     DLLTOOL=""
   6604   else
   6605     case $cross_compiling:$ac_tool_warned in
   6606 yes:)
   6607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6609 ac_tool_warned=yes ;;
   6610 esac
   6611     DLLTOOL=$ac_ct_DLLTOOL
   6612   fi
   6613 else
   6614   DLLTOOL="$ac_cv_prog_DLLTOOL"
   6615 fi
   6616 
   6617 if test -n "$ac_tool_prefix"; then
   6618   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   6619 set dummy ${ac_tool_prefix}windres; ac_word=$2
   6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6621 $as_echo_n "checking for $ac_word... " >&6; }
   6622 if test "${ac_cv_prog_WINDRES+set}" = set; then :
   6623   $as_echo_n "(cached) " >&6
   6624 else
   6625   if test -n "$WINDRES"; then
   6626   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   6627 else
   6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6629 for as_dir in $PATH
   6630 do
   6631   IFS=$as_save_IFS
   6632   test -z "$as_dir" && as_dir=.
   6633     for ac_exec_ext in '' $ac_executable_extensions; do
   6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6635     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
   6636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6637     break 2
   6638   fi
   6639 done
   6640   done
   6641 IFS=$as_save_IFS
   6642 
   6643 fi
   6644 fi
   6645 WINDRES=$ac_cv_prog_WINDRES
   6646 if test -n "$WINDRES"; then
   6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   6648 $as_echo "$WINDRES" >&6; }
   6649 else
   6650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6651 $as_echo "no" >&6; }
   6652 fi
   6653 
   6654 
   6655 fi
   6656 if test -z "$ac_cv_prog_WINDRES"; then
   6657   ac_ct_WINDRES=$WINDRES
   6658   # Extract the first word of "windres", so it can be a program name with args.
   6659 set dummy windres; ac_word=$2
   6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6661 $as_echo_n "checking for $ac_word... " >&6; }
   6662 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
   6663   $as_echo_n "(cached) " >&6
   6664 else
   6665   if test -n "$ac_ct_WINDRES"; then
   6666   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
   6667 else
   6668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6669 for as_dir in $PATH
   6670 do
   6671   IFS=$as_save_IFS
   6672   test -z "$as_dir" && as_dir=.
   6673     for ac_exec_ext in '' $ac_executable_extensions; do
   6674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6675     ac_cv_prog_ac_ct_WINDRES="windres"
   6676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6677     break 2
   6678   fi
   6679 done
   6680   done
   6681 IFS=$as_save_IFS
   6682 
   6683 fi
   6684 fi
   6685 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
   6686 if test -n "$ac_ct_WINDRES"; then
   6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
   6688 $as_echo "$ac_ct_WINDRES" >&6; }
   6689 else
   6690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6691 $as_echo "no" >&6; }
   6692 fi
   6693 
   6694   if test "x$ac_ct_WINDRES" = x; then
   6695     WINDRES=""
   6696   else
   6697     case $cross_compiling:$ac_tool_warned in
   6698 yes:)
   6699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6701 ac_tool_warned=yes ;;
   6702 esac
   6703     WINDRES=$ac_ct_WINDRES
   6704   fi
   6705 else
   6706   WINDRES="$ac_cv_prog_WINDRES"
   6707 fi
   6708 
   6709 
   6710 case $host_os in
   6711   gnu*)
   6712     # Needed for GNU Hurd hosts.
   6713     if test -n "$ac_tool_prefix"; then
   6714   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
   6715 set dummy ${ac_tool_prefix}mig; ac_word=$2
   6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6717 $as_echo_n "checking for $ac_word... " >&6; }
   6718 if test "${ac_cv_prog_MIG+set}" = set; then :
   6719   $as_echo_n "(cached) " >&6
   6720 else
   6721   if test -n "$MIG"; then
   6722   ac_cv_prog_MIG="$MIG" # Let the user override the test.
   6723 else
   6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6725 for as_dir in $PATH
   6726 do
   6727   IFS=$as_save_IFS
   6728   test -z "$as_dir" && as_dir=.
   6729     for ac_exec_ext in '' $ac_executable_extensions; do
   6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6731     ac_cv_prog_MIG="${ac_tool_prefix}mig"
   6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6733     break 2
   6734   fi
   6735 done
   6736   done
   6737 IFS=$as_save_IFS
   6738 
   6739 fi
   6740 fi
   6741 MIG=$ac_cv_prog_MIG
   6742 if test -n "$MIG"; then
   6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
   6744 $as_echo "$MIG" >&6; }
   6745 else
   6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6747 $as_echo "no" >&6; }
   6748 fi
   6749 
   6750 
   6751 fi
   6752 if test -z "$ac_cv_prog_MIG"; then
   6753   ac_ct_MIG=$MIG
   6754   # Extract the first word of "mig", so it can be a program name with args.
   6755 set dummy mig; ac_word=$2
   6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6757 $as_echo_n "checking for $ac_word... " >&6; }
   6758 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
   6759   $as_echo_n "(cached) " >&6
   6760 else
   6761   if test -n "$ac_ct_MIG"; then
   6762   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
   6763 else
   6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6765 for as_dir in $PATH
   6766 do
   6767   IFS=$as_save_IFS
   6768   test -z "$as_dir" && as_dir=.
   6769     for ac_exec_ext in '' $ac_executable_extensions; do
   6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6771     ac_cv_prog_ac_ct_MIG="mig"
   6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6773     break 2
   6774   fi
   6775 done
   6776   done
   6777 IFS=$as_save_IFS
   6778 
   6779 fi
   6780 fi
   6781 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
   6782 if test -n "$ac_ct_MIG"; then
   6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
   6784 $as_echo "$ac_ct_MIG" >&6; }
   6785 else
   6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6787 $as_echo "no" >&6; }
   6788 fi
   6789 
   6790   if test "x$ac_ct_MIG" = x; then
   6791     MIG=""
   6792   else
   6793     case $cross_compiling:$ac_tool_warned in
   6794 yes:)
   6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6797 ac_tool_warned=yes ;;
   6798 esac
   6799     MIG=$ac_ct_MIG
   6800   fi
   6801 else
   6802   MIG="$ac_cv_prog_MIG"
   6803 fi
   6804 
   6805     if test x"$MIG" = x; then
   6806       as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
   6807     fi
   6808     ;;
   6809 esac
   6810 
   6811 # ---------------------- #
   6812 # Checks for libraries.  #
   6813 # ---------------------- #
   6814 
   6815 # We might need to link with -lm; most simulators need it.
   6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
   6817 $as_echo_n "checking for main in -lm... " >&6; }
   6818 if test "${ac_cv_lib_m_main+set}" = set; then :
   6819   $as_echo_n "(cached) " >&6
   6820 else
   6821   ac_check_lib_save_LIBS=$LIBS
   6822 LIBS="-lm  $LIBS"
   6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6824 /* end confdefs.h.  */
   6825 
   6826 
   6827 int
   6828 main ()
   6829 {
   6830 return main ();
   6831   ;
   6832   return 0;
   6833 }
   6834 _ACEOF
   6835 if ac_fn_c_try_link "$LINENO"; then :
   6836   ac_cv_lib_m_main=yes
   6837 else
   6838   ac_cv_lib_m_main=no
   6839 fi
   6840 rm -f core conftest.err conftest.$ac_objext \
   6841     conftest$ac_exeext conftest.$ac_ext
   6842 LIBS=$ac_check_lib_save_LIBS
   6843 fi
   6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
   6845 $as_echo "$ac_cv_lib_m_main" >&6; }
   6846 if test "x$ac_cv_lib_m_main" = x""yes; then :
   6847   cat >>confdefs.h <<_ACEOF
   6848 #define HAVE_LIBM 1
   6849 _ACEOF
   6850 
   6851   LIBS="-lm $LIBS"
   6852 
   6853 fi
   6854 
   6855 
   6856 # We need to link with -lw to get `wctype' on Solaris before Solaris
   6857 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
   6858 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
   6859 # is known to have this problem).  Therefore we avoid libw if we can.
   6860 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
   6861 if test "x$ac_cv_func_wctype" = x""yes; then :
   6862 
   6863 else
   6864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
   6865 $as_echo_n "checking for wctype in -lw... " >&6; }
   6866 if test "${ac_cv_lib_w_wctype+set}" = set; then :
   6867   $as_echo_n "(cached) " >&6
   6868 else
   6869   ac_check_lib_save_LIBS=$LIBS
   6870 LIBS="-lw  $LIBS"
   6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6872 /* end confdefs.h.  */
   6873 
   6874 /* Override any GCC internal prototype to avoid an error.
   6875    Use char because int might match the return type of a GCC
   6876    builtin and then its argument prototype would still apply.  */
   6877 #ifdef __cplusplus
   6878 extern "C"
   6879 #endif
   6880 char wctype ();
   6881 int
   6882 main ()
   6883 {
   6884 return wctype ();
   6885   ;
   6886   return 0;
   6887 }
   6888 _ACEOF
   6889 if ac_fn_c_try_link "$LINENO"; then :
   6890   ac_cv_lib_w_wctype=yes
   6891 else
   6892   ac_cv_lib_w_wctype=no
   6893 fi
   6894 rm -f core conftest.err conftest.$ac_objext \
   6895     conftest$ac_exeext conftest.$ac_ext
   6896 LIBS=$ac_check_lib_save_LIBS
   6897 fi
   6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
   6899 $as_echo "$ac_cv_lib_w_wctype" >&6; }
   6900 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
   6901   cat >>confdefs.h <<_ACEOF
   6902 #define HAVE_LIBW 1
   6903 _ACEOF
   6904 
   6905   LIBS="-lw $LIBS"
   6906 
   6907 fi
   6908 
   6909 fi
   6910 
   6911 
   6912 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
   6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
   6914 $as_echo_n "checking for library containing gethostbyname... " >&6; }
   6915 if test "${ac_cv_search_gethostbyname+set}" = set; then :
   6916   $as_echo_n "(cached) " >&6
   6917 else
   6918   ac_func_search_save_LIBS=$LIBS
   6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6920 /* end confdefs.h.  */
   6921 
   6922 /* Override any GCC internal prototype to avoid an error.
   6923    Use char because int might match the return type of a GCC
   6924    builtin and then its argument prototype would still apply.  */
   6925 #ifdef __cplusplus
   6926 extern "C"
   6927 #endif
   6928 char gethostbyname ();
   6929 int
   6930 main ()
   6931 {
   6932 return gethostbyname ();
   6933   ;
   6934   return 0;
   6935 }
   6936 _ACEOF
   6937 for ac_lib in '' nsl; do
   6938   if test -z "$ac_lib"; then
   6939     ac_res="none required"
   6940   else
   6941     ac_res=-l$ac_lib
   6942     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6943   fi
   6944   if ac_fn_c_try_link "$LINENO"; then :
   6945   ac_cv_search_gethostbyname=$ac_res
   6946 fi
   6947 rm -f core conftest.err conftest.$ac_objext \
   6948     conftest$ac_exeext
   6949   if test "${ac_cv_search_gethostbyname+set}" = set; then :
   6950   break
   6951 fi
   6952 done
   6953 if test "${ac_cv_search_gethostbyname+set}" = set; then :
   6954 
   6955 else
   6956   ac_cv_search_gethostbyname=no
   6957 fi
   6958 rm conftest.$ac_ext
   6959 LIBS=$ac_func_search_save_LIBS
   6960 fi
   6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
   6962 $as_echo "$ac_cv_search_gethostbyname" >&6; }
   6963 ac_res=$ac_cv_search_gethostbyname
   6964 if test "$ac_res" != no; then :
   6965   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6966 
   6967 fi
   6968 
   6969 
   6970 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
   6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
   6972 $as_echo_n "checking for library containing socketpair... " >&6; }
   6973 if test "${ac_cv_search_socketpair+set}" = set; then :
   6974   $as_echo_n "(cached) " >&6
   6975 else
   6976   ac_func_search_save_LIBS=$LIBS
   6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6978 /* end confdefs.h.  */
   6979 
   6980 /* Override any GCC internal prototype to avoid an error.
   6981    Use char because int might match the return type of a GCC
   6982    builtin and then its argument prototype would still apply.  */
   6983 #ifdef __cplusplus
   6984 extern "C"
   6985 #endif
   6986 char socketpair ();
   6987 int
   6988 main ()
   6989 {
   6990 return socketpair ();
   6991   ;
   6992   return 0;
   6993 }
   6994 _ACEOF
   6995 for ac_lib in '' socket; do
   6996   if test -z "$ac_lib"; then
   6997     ac_res="none required"
   6998   else
   6999     ac_res=-l$ac_lib
   7000     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7001   fi
   7002   if ac_fn_c_try_link "$LINENO"; then :
   7003   ac_cv_search_socketpair=$ac_res
   7004 fi
   7005 rm -f core conftest.err conftest.$ac_objext \
   7006     conftest$ac_exeext
   7007   if test "${ac_cv_search_socketpair+set}" = set; then :
   7008   break
   7009 fi
   7010 done
   7011 if test "${ac_cv_search_socketpair+set}" = set; then :
   7012 
   7013 else
   7014   ac_cv_search_socketpair=no
   7015 fi
   7016 rm conftest.$ac_ext
   7017 LIBS=$ac_func_search_save_LIBS
   7018 fi
   7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
   7020 $as_echo "$ac_cv_search_socketpair" >&6; }
   7021 ac_res=$ac_cv_search_socketpair
   7022 if test "$ac_res" != no; then :
   7023   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7024 
   7025 fi
   7026 
   7027 
   7028 # Link in zlib if we can.  This allows us to read compressed debug sections.
   7029 
   7030   # Use the system's zlib library.
   7031   zlibdir="-L\$(top_builddir)/../zlib"
   7032   zlibinc="-I\$(top_srcdir)/../zlib"
   7033 
   7034 # Check whether --with-system-zlib was given.
   7035 if test "${with_system_zlib+set}" = set; then :
   7036   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
   7037     zlibdir=
   7038     zlibinc=
   7039   fi
   7040 
   7041 fi
   7042 
   7043 
   7044 
   7045 
   7046 
   7047 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
   7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
   7049 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
   7050 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
   7051   $as_echo_n "(cached) " >&6
   7052 else
   7053   ac_func_search_save_LIBS=$LIBS
   7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7055 /* end confdefs.h.  */
   7056 
   7057 /* Override any GCC internal prototype to avoid an error.
   7058    Use char because int might match the return type of a GCC
   7059    builtin and then its argument prototype would still apply.  */
   7060 #ifdef __cplusplus
   7061 extern "C"
   7062 #endif
   7063 char kinfo_getvmmap ();
   7064 int
   7065 main ()
   7066 {
   7067 return kinfo_getvmmap ();
   7068   ;
   7069   return 0;
   7070 }
   7071 _ACEOF
   7072 for ac_lib in '' util; do
   7073   if test -z "$ac_lib"; then
   7074     ac_res="none required"
   7075   else
   7076     ac_res=-l$ac_lib
   7077     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7078   fi
   7079   if ac_fn_c_try_link "$LINENO"; then :
   7080   ac_cv_search_kinfo_getvmmap=$ac_res
   7081 fi
   7082 rm -f core conftest.err conftest.$ac_objext \
   7083     conftest$ac_exeext
   7084   if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
   7085   break
   7086 fi
   7087 done
   7088 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
   7089 
   7090 else
   7091   ac_cv_search_kinfo_getvmmap=no
   7092 fi
   7093 rm conftest.$ac_ext
   7094 LIBS=$ac_func_search_save_LIBS
   7095 fi
   7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
   7097 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
   7098 ac_res=$ac_cv_search_kinfo_getvmmap
   7099 if test "$ac_res" != no; then :
   7100   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7101 
   7102 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
   7103 
   7104 fi
   7105 
   7106 
   7107 
   7108 
   7109 
   7110 # Check whether --with-libiconv-prefix was given.
   7111 if test "${with_libiconv_prefix+set}" = set; then :
   7112   withval=$with_libiconv_prefix;
   7113     for dir in `echo "$withval" | tr : ' '`; do
   7114       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
   7115       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
   7116     done
   7117 
   7118 fi
   7119 
   7120 
   7121   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
   7122   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
   7123 
   7124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
   7125 $as_echo_n "checking for iconv... " >&6; }
   7126 if test "${am_cv_func_iconv+set}" = set; then :
   7127   $as_echo_n "(cached) " >&6
   7128 else
   7129 
   7130     am_cv_func_iconv="no, consider installing GNU libiconv"
   7131     am_cv_lib_iconv=no
   7132     am_cv_use_build_libiconv=no
   7133     am_cv_build_libiconv_path=
   7134 
   7135     # If libiconv is part of the build tree, then try using it over
   7136     # any system iconv.
   7137     if test -d ../libiconv; then
   7138       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
   7139         am_save_LIBS="$LIBS"
   7140         am_save_CPPFLAGS="$CPPFLAGS"
   7141         LIBS="$LIBS $lib_dir/libiconv.a"
   7142         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
   7143         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7144 /* end confdefs.h.  */
   7145 #include <stdlib.h>
   7146 #include <iconv.h>
   7147 int
   7148 main ()
   7149 {
   7150 iconv_t cd = iconv_open("","");
   7151            iconv(cd,NULL,NULL,NULL,NULL);
   7152            iconv_close(cd);
   7153   ;
   7154   return 0;
   7155 }
   7156 _ACEOF
   7157 if ac_fn_c_try_link "$LINENO"; then :
   7158   am_cv_use_build_libiconv=yes
   7159           am_cv_build_libiconv_path=$lib_dir/libiconv.a
   7160           am_cv_lib_iconv=yes
   7161           am_cv_func_iconv=yes
   7162 fi
   7163 rm -f core conftest.err conftest.$ac_objext \
   7164     conftest$ac_exeext conftest.$ac_ext
   7165         LIBS="$am_save_LIBS"
   7166         CPPFLAGS="$am_save_CPPFLAGS"
   7167         if test "$am_cv_use_build_libiconv" = "yes"; then
   7168           break
   7169         fi
   7170       done
   7171     fi
   7172 
   7173     # Next, try to find iconv in libc.
   7174     if test "$am_cv_func_iconv" != yes; then
   7175       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7176 /* end confdefs.h.  */
   7177 #include <stdlib.h>
   7178 #include <iconv.h>
   7179 int
   7180 main ()
   7181 {
   7182 iconv_t cd = iconv_open("","");
   7183          iconv(cd,NULL,NULL,NULL,NULL);
   7184          iconv_close(cd);
   7185   ;
   7186   return 0;
   7187 }
   7188 _ACEOF
   7189 if ac_fn_c_try_link "$LINENO"; then :
   7190   am_cv_func_iconv=yes
   7191 fi
   7192 rm -f core conftest.err conftest.$ac_objext \
   7193     conftest$ac_exeext conftest.$ac_ext
   7194     fi
   7195 
   7196     # If iconv was not in libc, try -liconv.  In this case, arrange to
   7197     # look in the libiconv prefix, if it was specified by the user.
   7198     if test "$am_cv_func_iconv" != yes; then
   7199       am_save_CPPFLAGS="$CPPFLAGS"
   7200       am_save_LIBS="$LIBS"
   7201       if test -n "$LIBICONV_INCLUDE"; then
   7202         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
   7203         LIBS="$LIBS $LIBICONV_LIBDIR"
   7204       fi
   7205       LIBS="$LIBS -liconv"
   7206       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7207 /* end confdefs.h.  */
   7208 #include <stdlib.h>
   7209 #include <iconv.h>
   7210 int
   7211 main ()
   7212 {
   7213 iconv_t cd = iconv_open("","");
   7214          iconv(cd,NULL,NULL,NULL,NULL);
   7215          iconv_close(cd);
   7216   ;
   7217   return 0;
   7218 }
   7219 _ACEOF
   7220 if ac_fn_c_try_link "$LINENO"; then :
   7221   am_cv_lib_iconv=yes
   7222         am_cv_func_iconv=yes
   7223 fi
   7224 rm -f core conftest.err conftest.$ac_objext \
   7225     conftest$ac_exeext conftest.$ac_ext
   7226       LIBS="$am_save_LIBS"
   7227       CPPFLAGS="$am_save_CPPFLAGS"
   7228     fi
   7229 
   7230 fi
   7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
   7232 $as_echo "$am_cv_func_iconv" >&6; }
   7233 
   7234   # Set the various flags based on the cache variables.  We can't rely
   7235   # on the flags to remain set from the above code, due to caching.
   7236   LIBICONV=
   7237   if test "$am_cv_lib_iconv" = yes; then
   7238     LIBICONV="-liconv"
   7239   else
   7240     LIBICONV_LIBDIR=
   7241     LIBICONV_INCLUDE=
   7242   fi
   7243   if test "$am_cv_use_build_libiconv" = yes; then
   7244     LIBICONV="$am_cv_build_libiconv_path"
   7245     LIBICONV_LIBDIR=""
   7246     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
   7247   fi
   7248   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
   7249   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
   7250 
   7251   if test "$am_cv_func_iconv" = yes; then
   7252 
   7253 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
   7254 
   7255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
   7256 $as_echo_n "checking for iconv declaration... " >&6; }
   7257     if test "${am_cv_proto_iconv+set}" = set; then :
   7258   $as_echo_n "(cached) " >&6
   7259 else
   7260 
   7261       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7262 /* end confdefs.h.  */
   7263 
   7264 #include <stdlib.h>
   7265 #include <iconv.h>
   7266 extern
   7267 #ifdef __cplusplus
   7268 "C"
   7269 #endif
   7270 #if defined(__STDC__) || defined(__cplusplus)
   7271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
   7272 #else
   7273 size_t iconv();
   7274 #endif
   7275 
   7276 int
   7277 main ()
   7278 {
   7279 
   7280   ;
   7281   return 0;
   7282 }
   7283 _ACEOF
   7284 if ac_fn_c_try_compile "$LINENO"; then :
   7285   am_cv_proto_iconv_arg1=""
   7286 else
   7287   am_cv_proto_iconv_arg1="const"
   7288 fi
   7289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7290       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
   7291 fi
   7292 
   7293     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
   7294     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
   7295          }$am_cv_proto_iconv" >&5
   7296 $as_echo "${ac_t:-
   7297          }$am_cv_proto_iconv" >&6; }
   7298 
   7299 cat >>confdefs.h <<_ACEOF
   7300 #define ICONV_CONST $am_cv_proto_iconv_arg1
   7301 _ACEOF
   7302 
   7303   fi
   7304 
   7305 
   7306 # GDB may fork/exec the iconv program to get the list of supported character
   7307 # sets.  Allow the user to specify where to find it.
   7308 # There are several factors affecting the choice of option name:
   7309 # - There is already --with-libiconv-prefix but we can't use it, it specifies
   7310 #   the build-time location of libiconv files.
   7311 # - The program we need to find is iconv, which comes with glibc.  The user
   7312 #   doesn't necessarily have libiconv installed.  Therefore naming this
   7313 #   --with-libiconv-foo feels wrong.
   7314 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
   7315 #   defined to work on directories not files (though it really doesn't know
   7316 #   the difference).
   7317 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
   7318 #   with --with-libiconv-prefix.
   7319 # Putting these together is why the option name is --with-iconv-bin.
   7320 
   7321 
   7322 # Check whether --with-iconv-bin was given.
   7323 if test "${with_iconv_bin+set}" = set; then :
   7324   withval=$with_iconv_bin; iconv_bin="${withval}"
   7325 
   7326 cat >>confdefs.h <<_ACEOF
   7327 #define ICONV_BIN "${iconv_bin}"
   7328 _ACEOF
   7329 
   7330 
   7331   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   7332      if test "x$prefix" = xNONE; then
   7333      	test_prefix=/usr/local
   7334      else
   7335 	test_prefix=$prefix
   7336      fi
   7337   else
   7338      test_prefix=$exec_prefix
   7339   fi
   7340   value=0
   7341   case ${iconv_bin} in
   7342      "${test_prefix}"|"${test_prefix}/"*|\
   7343 	'${exec_prefix}'|'${exec_prefix}/'*)
   7344      value=1
   7345      ;;
   7346   esac
   7347 
   7348 cat >>confdefs.h <<_ACEOF
   7349 #define ICONV_BIN_RELOCATABLE $value
   7350 _ACEOF
   7351 
   7352 
   7353 
   7354 fi
   7355 
   7356 
   7357 # For the TUI, we need enhanced curses functionality.
   7358 if test x"$enable_tui" != xno; then
   7359   prefer_curses=yes
   7360 fi
   7361 
   7362 curses_found=no
   7363 if test x"$prefer_curses" = xyes; then
   7364   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
   7365   # curses library because the latter might not provide all the
   7366   # functionality we need.  However, this leads to problems on systems
   7367   # where the linker searches /usr/local/lib, but the compiler doesn't
   7368   # search /usr/local/include, if ncurses is installed in /usr/local.  A
   7369   # default installation of ncurses on alpha*-dec-osf* will lead to such
   7370   # a situation.
   7371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
   7372 $as_echo_n "checking for library containing waddstr... " >&6; }
   7373 if test "${ac_cv_search_waddstr+set}" = set; then :
   7374   $as_echo_n "(cached) " >&6
   7375 else
   7376   ac_func_search_save_LIBS=$LIBS
   7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7378 /* end confdefs.h.  */
   7379 
   7380 /* Override any GCC internal prototype to avoid an error.
   7381    Use char because int might match the return type of a GCC
   7382    builtin and then its argument prototype would still apply.  */
   7383 #ifdef __cplusplus
   7384 extern "C"
   7385 #endif
   7386 char waddstr ();
   7387 int
   7388 main ()
   7389 {
   7390 return waddstr ();
   7391   ;
   7392   return 0;
   7393 }
   7394 _ACEOF
   7395 for ac_lib in '' ncurses cursesX curses; do
   7396   if test -z "$ac_lib"; then
   7397     ac_res="none required"
   7398   else
   7399     ac_res=-l$ac_lib
   7400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7401   fi
   7402   if ac_fn_c_try_link "$LINENO"; then :
   7403   ac_cv_search_waddstr=$ac_res
   7404 fi
   7405 rm -f core conftest.err conftest.$ac_objext \
   7406     conftest$ac_exeext
   7407   if test "${ac_cv_search_waddstr+set}" = set; then :
   7408   break
   7409 fi
   7410 done
   7411 if test "${ac_cv_search_waddstr+set}" = set; then :
   7412 
   7413 else
   7414   ac_cv_search_waddstr=no
   7415 fi
   7416 rm conftest.$ac_ext
   7417 LIBS=$ac_func_search_save_LIBS
   7418 fi
   7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
   7420 $as_echo "$ac_cv_search_waddstr" >&6; }
   7421 ac_res=$ac_cv_search_waddstr
   7422 if test "$ac_res" != no; then :
   7423   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7424 
   7425 fi
   7426 
   7427 
   7428   if test "$ac_cv_search_waddstr" != no; then
   7429     curses_found=yes
   7430   fi
   7431 fi
   7432 
   7433 # Check whether we should enable the TUI, but only do so if we really
   7434 # can.
   7435 if test x"$enable_tui" != xno; then
   7436   if test -d $srcdir/tui; then
   7437     if test "$curses_found" != no; then
   7438       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
   7439       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
   7440       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
   7441       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
   7442     else
   7443       if test x"$enable_tui" = xyes; then
   7444 	as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
   7445       else
   7446 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
   7447 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
   7448       fi
   7449     fi
   7450   fi
   7451 fi
   7452 
   7453 # Since GDB uses Readline, we need termcap functionality.  In many
   7454 # cases this will be provided by the curses library, but some systems
   7455 # have a seperate termcap library, or no curses library at all.
   7456 
   7457 case $host_os in
   7458   cygwin*)
   7459     if test -d $srcdir/libtermcap; then
   7460       LIBS="../libtermcap/libtermcap.a $LIBS"
   7461       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
   7462     fi ;;
   7463   go32* | *djgpp*)
   7464     ac_cv_search_tgetent="none required"
   7465     ;;
   7466 esac
   7467 
   7468 # These are the libraries checked by Readline.
   7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
   7470 $as_echo_n "checking for library containing tgetent... " >&6; }
   7471 if test "${ac_cv_search_tgetent+set}" = set; then :
   7472   $as_echo_n "(cached) " >&6
   7473 else
   7474   ac_func_search_save_LIBS=$LIBS
   7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7476 /* end confdefs.h.  */
   7477 
   7478 /* Override any GCC internal prototype to avoid an error.
   7479    Use char because int might match the return type of a GCC
   7480    builtin and then its argument prototype would still apply.  */
   7481 #ifdef __cplusplus
   7482 extern "C"
   7483 #endif
   7484 char tgetent ();
   7485 int
   7486 main ()
   7487 {
   7488 return tgetent ();
   7489   ;
   7490   return 0;
   7491 }
   7492 _ACEOF
   7493 for ac_lib in '' termcap tinfo curses ncurses; do
   7494   if test -z "$ac_lib"; then
   7495     ac_res="none required"
   7496   else
   7497     ac_res=-l$ac_lib
   7498     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7499   fi
   7500   if ac_fn_c_try_link "$LINENO"; then :
   7501   ac_cv_search_tgetent=$ac_res
   7502 fi
   7503 rm -f core conftest.err conftest.$ac_objext \
   7504     conftest$ac_exeext
   7505   if test "${ac_cv_search_tgetent+set}" = set; then :
   7506   break
   7507 fi
   7508 done
   7509 if test "${ac_cv_search_tgetent+set}" = set; then :
   7510 
   7511 else
   7512   ac_cv_search_tgetent=no
   7513 fi
   7514 rm conftest.$ac_ext
   7515 LIBS=$ac_func_search_save_LIBS
   7516 fi
   7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
   7518 $as_echo "$ac_cv_search_tgetent" >&6; }
   7519 ac_res=$ac_cv_search_tgetent
   7520 if test "$ac_res" != no; then :
   7521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7522 
   7523 fi
   7524 
   7525 
   7526 if test "$ac_cv_search_tgetent" = no; then
   7527   CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
   7528 fi
   7529 
   7530 
   7531 # Check whether --with-system-readline was given.
   7532 if test "${with_system_readline+set}" = set; then :
   7533   withval=$with_system_readline;
   7534 fi
   7535 
   7536 
   7537 if test "$with_system_readline" = yes; then
   7538   READLINE=-lreadline
   7539   READLINE_DEPS=
   7540   READLINE_CFLAGS=
   7541   READLINE_TEXI_INCFLAG=
   7542 else
   7543   READLINE='$(READLINE_DIR)/libreadline.a'
   7544   READLINE_DEPS='$(READLINE)'
   7545   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
   7546   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
   7547 fi
   7548 
   7549 
   7550 
   7551 
   7552 
   7553 # Generate jit-reader.h
   7554 
   7555 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
   7556 TARGET_PTR=
   7557 
   7558 # The cast to long int works around a bug in the HP C Compiler
   7559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7561 # This bug is HP SR number 8606223364.
   7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
   7563 $as_echo_n "checking size of unsigned long long... " >&6; }
   7564 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
   7565   $as_echo_n "(cached) " >&6
   7566 else
   7567   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
   7568 
   7569 else
   7570   if test "$ac_cv_type_unsigned_long_long" = yes; then
   7571      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7573 { as_fn_set_status 77
   7574 as_fn_error "cannot compute sizeof (unsigned long long)
   7575 See \`config.log' for more details." "$LINENO" 5; }; }
   7576    else
   7577      ac_cv_sizeof_unsigned_long_long=0
   7578    fi
   7579 fi
   7580 
   7581 fi
   7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
   7583 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
   7584 
   7585 
   7586 
   7587 cat >>confdefs.h <<_ACEOF
   7588 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
   7589 _ACEOF
   7590 
   7591 
   7592 # The cast to long int works around a bug in the HP C Compiler
   7593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7595 # This bug is HP SR number 8606223364.
   7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
   7597 $as_echo_n "checking size of unsigned long... " >&6; }
   7598 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
   7599   $as_echo_n "(cached) " >&6
   7600 else
   7601   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
   7602 
   7603 else
   7604   if test "$ac_cv_type_unsigned_long" = yes; then
   7605      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7607 { as_fn_set_status 77
   7608 as_fn_error "cannot compute sizeof (unsigned long)
   7609 See \`config.log' for more details." "$LINENO" 5; }; }
   7610    else
   7611      ac_cv_sizeof_unsigned_long=0
   7612    fi
   7613 fi
   7614 
   7615 fi
   7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
   7617 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
   7618 
   7619 
   7620 
   7621 cat >>confdefs.h <<_ACEOF
   7622 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
   7623 _ACEOF
   7624 
   7625 
   7626 # The cast to long int works around a bug in the HP C Compiler
   7627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7629 # This bug is HP SR number 8606223364.
   7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
   7631 $as_echo_n "checking size of unsigned __int128... " >&6; }
   7632 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
   7633   $as_echo_n "(cached) " >&6
   7634 else
   7635   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
   7636 
   7637 else
   7638   if test "$ac_cv_type_unsigned___int128" = yes; then
   7639      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7641 { as_fn_set_status 77
   7642 as_fn_error "cannot compute sizeof (unsigned __int128)
   7643 See \`config.log' for more details." "$LINENO" 5; }; }
   7644    else
   7645      ac_cv_sizeof_unsigned___int128=0
   7646    fi
   7647 fi
   7648 
   7649 fi
   7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
   7651 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
   7652 
   7653 
   7654 
   7655 cat >>confdefs.h <<_ACEOF
   7656 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
   7657 _ACEOF
   7658 
   7659 
   7660 
   7661 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
   7662   TARGET_PTR="unsigned long"
   7663 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
   7664   TARGET_PTR="unsigned long long"
   7665 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
   7666   TARGET_PTR="unsigned __int128"
   7667 else
   7668   TARGET_PTR="unsigned long"
   7669 fi
   7670 
   7671 
   7672 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
   7673 
   7674 
   7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   7676 $as_echo_n "checking for library containing dlopen... " >&6; }
   7677 if test "${ac_cv_search_dlopen+set}" = set; then :
   7678   $as_echo_n "(cached) " >&6
   7679 else
   7680   ac_func_search_save_LIBS=$LIBS
   7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7682 /* end confdefs.h.  */
   7683 
   7684 /* Override any GCC internal prototype to avoid an error.
   7685    Use char because int might match the return type of a GCC
   7686    builtin and then its argument prototype would still apply.  */
   7687 #ifdef __cplusplus
   7688 extern "C"
   7689 #endif
   7690 char dlopen ();
   7691 int
   7692 main ()
   7693 {
   7694 return dlopen ();
   7695   ;
   7696   return 0;
   7697 }
   7698 _ACEOF
   7699 for ac_lib in '' dl; do
   7700   if test -z "$ac_lib"; then
   7701     ac_res="none required"
   7702   else
   7703     ac_res=-l$ac_lib
   7704     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7705   fi
   7706   if ac_fn_c_try_link "$LINENO"; then :
   7707   ac_cv_search_dlopen=$ac_res
   7708 fi
   7709 rm -f core conftest.err conftest.$ac_objext \
   7710     conftest$ac_exeext
   7711   if test "${ac_cv_search_dlopen+set}" = set; then :
   7712   break
   7713 fi
   7714 done
   7715 if test "${ac_cv_search_dlopen+set}" = set; then :
   7716 
   7717 else
   7718   ac_cv_search_dlopen=no
   7719 fi
   7720 rm conftest.$ac_ext
   7721 LIBS=$ac_func_search_save_LIBS
   7722 fi
   7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   7724 $as_echo "$ac_cv_search_dlopen" >&6; }
   7725 ac_res=$ac_cv_search_dlopen
   7726 if test "$ac_res" != no; then :
   7727   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7728 
   7729 fi
   7730 
   7731 
   7732 
   7733 
   7734 # Check whether --with-jit-reader-dir was given.
   7735 if test "${with_jit_reader_dir+set}" = set; then :
   7736   withval=$with_jit_reader_dir;
   7737     JIT_READER_DIR=$withval
   7738 else
   7739   JIT_READER_DIR=${libdir}/gdb
   7740 fi
   7741 
   7742 
   7743   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   7744   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   7745   ac_define_dir=`eval echo $JIT_READER_DIR`
   7746   ac_define_dir=`eval echo $ac_define_dir`
   7747 
   7748 cat >>confdefs.h <<_ACEOF
   7749 #define JIT_READER_DIR "$ac_define_dir"
   7750 _ACEOF
   7751 
   7752 
   7753 
   7754 
   7755   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   7756      if test "x$prefix" = xNONE; then
   7757      	test_prefix=/usr/local
   7758      else
   7759 	test_prefix=$prefix
   7760      fi
   7761   else
   7762      test_prefix=$exec_prefix
   7763   fi
   7764   value=0
   7765   case ${ac_define_dir} in
   7766      "${test_prefix}"|"${test_prefix}/"*|\
   7767 	'${exec_prefix}'|'${exec_prefix}/'*)
   7768      value=1
   7769      ;;
   7770   esac
   7771 
   7772 cat >>confdefs.h <<_ACEOF
   7773 #define JIT_READER_DIR_RELOCATABLE $value
   7774 _ACEOF
   7775 
   7776 
   7777 
   7778 
   7779 
   7780 # Check whether --with-expat was given.
   7781 if test "${with_expat+set}" = set; then :
   7782   withval=$with_expat;
   7783 else
   7784   with_expat=auto
   7785 fi
   7786 
   7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
   7788 $as_echo_n "checking whether to use expat... " >&6; }
   7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
   7790 $as_echo "$with_expat" >&6; }
   7791 
   7792 if test "${with_expat}" = no; then
   7793   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
   7794 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
   7795   HAVE_LIBEXPAT=no
   7796 else
   7797 
   7798       if test "X$prefix" = "XNONE"; then
   7799     acl_final_prefix="$ac_default_prefix"
   7800   else
   7801     acl_final_prefix="$prefix"
   7802   fi
   7803   if test "X$exec_prefix" = "XNONE"; then
   7804     acl_final_exec_prefix='${prefix}'
   7805   else
   7806     acl_final_exec_prefix="$exec_prefix"
   7807   fi
   7808   acl_save_prefix="$prefix"
   7809   prefix="$acl_final_prefix"
   7810   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   7811   prefix="$acl_save_prefix"
   7812 
   7813 
   7814 # Check whether --with-gnu-ld was given.
   7815 if test "${with_gnu_ld+set}" = set; then :
   7816   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   7817 else
   7818   with_gnu_ld=no
   7819 fi
   7820 
   7821 # Prepare PATH_SEPARATOR.
   7822 # The user is always right.
   7823 if test "${PATH_SEPARATOR+set}" != set; then
   7824   echo "#! /bin/sh" >conf$$.sh
   7825   echo  "exit 0"   >>conf$$.sh
   7826   chmod +x conf$$.sh
   7827   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   7828     PATH_SEPARATOR=';'
   7829   else
   7830     PATH_SEPARATOR=:
   7831   fi
   7832   rm -f conf$$.sh
   7833 fi
   7834 ac_prog=ld
   7835 if test "$GCC" = yes; then
   7836   # Check if gcc -print-prog-name=ld gives a path.
   7837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
   7838 $as_echo_n "checking for ld used by GCC... " >&6; }
   7839   case $host in
   7840   *-*-mingw*)
   7841     # gcc leaves a trailing carriage return which upsets mingw
   7842     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   7843   *)
   7844     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   7845   esac
   7846   case $ac_prog in
   7847     # Accept absolute paths.
   7848     [\\/]* | [A-Za-z]:[\\/]*)
   7849       re_direlt='/[^/][^/]*/\.\./'
   7850       # Canonicalize the path of ld
   7851       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   7852       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   7853 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   7854       done
   7855       test -z "$LD" && LD="$ac_prog"
   7856       ;;
   7857   "")
   7858     # If it fails, then pretend we aren't using GCC.
   7859     ac_prog=ld
   7860     ;;
   7861   *)
   7862     # If it is relative, then search for the first ld in PATH.
   7863     with_gnu_ld=unknown
   7864     ;;
   7865   esac
   7866 elif test "$with_gnu_ld" = yes; then
   7867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   7868 $as_echo_n "checking for GNU ld... " >&6; }
   7869 else
   7870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   7871 $as_echo_n "checking for non-GNU ld... " >&6; }
   7872 fi
   7873 if test "${acl_cv_path_LD+set}" = set; then :
   7874   $as_echo_n "(cached) " >&6
   7875 else
   7876   if test -z "$LD"; then
   7877   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   7878   for ac_dir in $PATH; do
   7879     test -z "$ac_dir" && ac_dir=.
   7880     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   7881       acl_cv_path_LD="$ac_dir/$ac_prog"
   7882       # Check to see if the program is GNU ld.  I'd rather use --version,
   7883       # but apparently some GNU ld's only accept -v.
   7884       # Break only if it was the GNU/non-GNU ld that we prefer.
   7885       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
   7886 	test "$with_gnu_ld" != no && break
   7887       else
   7888 	test "$with_gnu_ld" != yes && break
   7889       fi
   7890     fi
   7891   done
   7892   IFS="$ac_save_ifs"
   7893 else
   7894   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   7895 fi
   7896 fi
   7897 
   7898 LD="$acl_cv_path_LD"
   7899 if test -n "$LD"; then
   7900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   7901 $as_echo "$LD" >&6; }
   7902 else
   7903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7904 $as_echo "no" >&6; }
   7905 fi
   7906 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
   7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   7908 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   7909 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
   7910   $as_echo_n "(cached) " >&6
   7911 else
   7912   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   7913 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   7914   acl_cv_prog_gnu_ld=yes
   7915 else
   7916   acl_cv_prog_gnu_ld=no
   7917 fi
   7918 fi
   7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
   7920 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   7921 with_gnu_ld=$acl_cv_prog_gnu_ld
   7922 
   7923 
   7924 
   7925                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
   7926 $as_echo_n "checking for shared library run path origin... " >&6; }
   7927 if test "${acl_cv_rpath+set}" = set; then :
   7928   $as_echo_n "(cached) " >&6
   7929 else
   7930 
   7931     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   7932     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   7933     . ./conftest.sh
   7934     rm -f ./conftest.sh
   7935     acl_cv_rpath=done
   7936 
   7937 fi
   7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
   7939 $as_echo "$acl_cv_rpath" >&6; }
   7940   wl="$acl_cv_wl"
   7941   libext="$acl_cv_libext"
   7942   shlibext="$acl_cv_shlibext"
   7943   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   7944   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   7945   hardcode_direct="$acl_cv_hardcode_direct"
   7946   hardcode_minus_L="$acl_cv_hardcode_minus_L"
   7947     # Check whether --enable-rpath was given.
   7948 if test "${enable_rpath+set}" = set; then :
   7949   enableval=$enable_rpath; :
   7950 else
   7951   enable_rpath=yes
   7952 fi
   7953 
   7954 
   7955 
   7956 
   7957 
   7958 
   7959 
   7960 
   7961 
   7962 
   7963     use_additional=yes
   7964 
   7965   acl_save_prefix="$prefix"
   7966   prefix="$acl_final_prefix"
   7967   acl_save_exec_prefix="$exec_prefix"
   7968   exec_prefix="$acl_final_exec_prefix"
   7969 
   7970     eval additional_includedir=\"$includedir\"
   7971     eval additional_libdir=\"$libdir\"
   7972 
   7973   exec_prefix="$acl_save_exec_prefix"
   7974   prefix="$acl_save_prefix"
   7975 
   7976 
   7977 # Check whether --with-libexpat-prefix was given.
   7978 if test "${with_libexpat_prefix+set}" = set; then :
   7979   withval=$with_libexpat_prefix;
   7980     if test "X$withval" = "Xno"; then
   7981       use_additional=no
   7982     else
   7983       if test "X$withval" = "X"; then
   7984 
   7985   acl_save_prefix="$prefix"
   7986   prefix="$acl_final_prefix"
   7987   acl_save_exec_prefix="$exec_prefix"
   7988   exec_prefix="$acl_final_exec_prefix"
   7989 
   7990           eval additional_includedir=\"$includedir\"
   7991           eval additional_libdir=\"$libdir\"
   7992 
   7993   exec_prefix="$acl_save_exec_prefix"
   7994   prefix="$acl_save_prefix"
   7995 
   7996       else
   7997         additional_includedir="$withval/include"
   7998         additional_libdir="$withval/lib"
   7999       fi
   8000     fi
   8001 
   8002 fi
   8003 
   8004       LIBEXPAT=
   8005   LTLIBEXPAT=
   8006   INCEXPAT=
   8007   rpathdirs=
   8008   ltrpathdirs=
   8009   names_already_handled=
   8010   names_next_round='expat '
   8011   while test -n "$names_next_round"; do
   8012     names_this_round="$names_next_round"
   8013     names_next_round=
   8014     for name in $names_this_round; do
   8015       already_handled=
   8016       for n in $names_already_handled; do
   8017         if test "$n" = "$name"; then
   8018           already_handled=yes
   8019           break
   8020         fi
   8021       done
   8022       if test -z "$already_handled"; then
   8023         names_already_handled="$names_already_handled $name"
   8024                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   8025         eval value=\"\$HAVE_LIB$uppername\"
   8026         if test -n "$value"; then
   8027           if test "$value" = yes; then
   8028             eval value=\"\$LIB$uppername\"
   8029             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
   8030             eval value=\"\$LTLIB$uppername\"
   8031             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
   8032           else
   8033                                     :
   8034           fi
   8035         else
   8036                               found_dir=
   8037           found_la=
   8038           found_so=
   8039           found_a=
   8040           if test $use_additional = yes; then
   8041             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   8042               found_dir="$additional_libdir"
   8043               found_so="$additional_libdir/lib$name.$shlibext"
   8044               if test -f "$additional_libdir/lib$name.la"; then
   8045                 found_la="$additional_libdir/lib$name.la"
   8046               fi
   8047             else
   8048               if test -f "$additional_libdir/lib$name.$libext"; then
   8049                 found_dir="$additional_libdir"
   8050                 found_a="$additional_libdir/lib$name.$libext"
   8051                 if test -f "$additional_libdir/lib$name.la"; then
   8052                   found_la="$additional_libdir/lib$name.la"
   8053                 fi
   8054               fi
   8055             fi
   8056           fi
   8057           if test "X$found_dir" = "X"; then
   8058             for x in $LDFLAGS $LTLIBEXPAT; do
   8059 
   8060   acl_save_prefix="$prefix"
   8061   prefix="$acl_final_prefix"
   8062   acl_save_exec_prefix="$exec_prefix"
   8063   exec_prefix="$acl_final_exec_prefix"
   8064   eval x=\"$x\"
   8065   exec_prefix="$acl_save_exec_prefix"
   8066   prefix="$acl_save_prefix"
   8067 
   8068               case "$x" in
   8069                 -L*)
   8070                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   8071                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   8072                     found_dir="$dir"
   8073                     found_so="$dir/lib$name.$shlibext"
   8074                     if test -f "$dir/lib$name.la"; then
   8075                       found_la="$dir/lib$name.la"
   8076                     fi
   8077                   else
   8078                     if test -f "$dir/lib$name.$libext"; then
   8079                       found_dir="$dir"
   8080                       found_a="$dir/lib$name.$libext"
   8081                       if test -f "$dir/lib$name.la"; then
   8082                         found_la="$dir/lib$name.la"
   8083                       fi
   8084                     fi
   8085                   fi
   8086                   ;;
   8087               esac
   8088               if test "X$found_dir" != "X"; then
   8089                 break
   8090               fi
   8091             done
   8092           fi
   8093           if test "X$found_dir" != "X"; then
   8094                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
   8095             if test "X$found_so" != "X"; then
   8096                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   8097                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   8098               else
   8099                                                                                 haveit=
   8100                 for x in $ltrpathdirs; do
   8101                   if test "X$x" = "X$found_dir"; then
   8102                     haveit=yes
   8103                     break
   8104                   fi
   8105                 done
   8106                 if test -z "$haveit"; then
   8107                   ltrpathdirs="$ltrpathdirs $found_dir"
   8108                 fi
   8109                                 if test "$hardcode_direct" = yes; then
   8110                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   8111                 else
   8112                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   8113                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   8114                                                             haveit=
   8115                     for x in $rpathdirs; do
   8116                       if test "X$x" = "X$found_dir"; then
   8117                         haveit=yes
   8118                         break
   8119                       fi
   8120                     done
   8121                     if test -z "$haveit"; then
   8122                       rpathdirs="$rpathdirs $found_dir"
   8123                     fi
   8124                   else
   8125                                                                                 haveit=
   8126                     for x in $LDFLAGS $LIBEXPAT; do
   8127 
   8128   acl_save_prefix="$prefix"
   8129   prefix="$acl_final_prefix"
   8130   acl_save_exec_prefix="$exec_prefix"
   8131   exec_prefix="$acl_final_exec_prefix"
   8132   eval x=\"$x\"
   8133   exec_prefix="$acl_save_exec_prefix"
   8134   prefix="$acl_save_prefix"
   8135 
   8136                       if test "X$x" = "X-L$found_dir"; then
   8137                         haveit=yes
   8138                         break
   8139                       fi
   8140                     done
   8141                     if test -z "$haveit"; then
   8142                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
   8143                     fi
   8144                     if test "$hardcode_minus_L" != no; then
   8145                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   8146                     else
   8147                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   8148                     fi
   8149                   fi
   8150                 fi
   8151               fi
   8152             else
   8153               if test "X$found_a" != "X"; then
   8154                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
   8155               else
   8156                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
   8157               fi
   8158             fi
   8159                         additional_includedir=
   8160             case "$found_dir" in
   8161               */lib | */lib/)
   8162                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   8163                 additional_includedir="$basedir/include"
   8164                 ;;
   8165             esac
   8166             if test "X$additional_includedir" != "X"; then
   8167                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   8168                 haveit=
   8169                 if test "X$additional_includedir" = "X/usr/local/include"; then
   8170                   if test -n "$GCC"; then
   8171                     case $host_os in
   8172                       linux*) haveit=yes;;
   8173                     esac
   8174                   fi
   8175                 fi
   8176                 if test -z "$haveit"; then
   8177                   for x in $CPPFLAGS $INCEXPAT; do
   8178 
   8179   acl_save_prefix="$prefix"
   8180   prefix="$acl_final_prefix"
   8181   acl_save_exec_prefix="$exec_prefix"
   8182   exec_prefix="$acl_final_exec_prefix"
   8183   eval x=\"$x\"
   8184   exec_prefix="$acl_save_exec_prefix"
   8185   prefix="$acl_save_prefix"
   8186 
   8187                     if test "X$x" = "X-I$additional_includedir"; then
   8188                       haveit=yes
   8189                       break
   8190                     fi
   8191                   done
   8192                   if test -z "$haveit"; then
   8193                     if test -d "$additional_includedir"; then
   8194                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
   8195                     fi
   8196                   fi
   8197                 fi
   8198               fi
   8199             fi
   8200                         if test -n "$found_la"; then
   8201                                                         save_libdir="$libdir"
   8202               case "$found_la" in
   8203                 */* | *\\*) . "$found_la" ;;
   8204                 *) . "./$found_la" ;;
   8205               esac
   8206               libdir="$save_libdir"
   8207                             for dep in $dependency_libs; do
   8208                 case "$dep" in
   8209                   -L*)
   8210                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   8211                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   8212                       haveit=
   8213                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   8214                         if test -n "$GCC"; then
   8215                           case $host_os in
   8216                             linux*) haveit=yes;;
   8217                           esac
   8218                         fi
   8219                       fi
   8220                       if test -z "$haveit"; then
   8221                         haveit=
   8222                         for x in $LDFLAGS $LIBEXPAT; do
   8223 
   8224   acl_save_prefix="$prefix"
   8225   prefix="$acl_final_prefix"
   8226   acl_save_exec_prefix="$exec_prefix"
   8227   exec_prefix="$acl_final_exec_prefix"
   8228   eval x=\"$x\"
   8229   exec_prefix="$acl_save_exec_prefix"
   8230   prefix="$acl_save_prefix"
   8231 
   8232                           if test "X$x" = "X-L$additional_libdir"; then
   8233                             haveit=yes
   8234                             break
   8235                           fi
   8236                         done
   8237                         if test -z "$haveit"; then
   8238                           if test -d "$additional_libdir"; then
   8239                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
   8240                           fi
   8241                         fi
   8242                         haveit=
   8243                         for x in $LDFLAGS $LTLIBEXPAT; do
   8244 
   8245   acl_save_prefix="$prefix"
   8246   prefix="$acl_final_prefix"
   8247   acl_save_exec_prefix="$exec_prefix"
   8248   exec_prefix="$acl_final_exec_prefix"
   8249   eval x=\"$x\"
   8250   exec_prefix="$acl_save_exec_prefix"
   8251   prefix="$acl_save_prefix"
   8252 
   8253                           if test "X$x" = "X-L$additional_libdir"; then
   8254                             haveit=yes
   8255                             break
   8256                           fi
   8257                         done
   8258                         if test -z "$haveit"; then
   8259                           if test -d "$additional_libdir"; then
   8260                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
   8261                           fi
   8262                         fi
   8263                       fi
   8264                     fi
   8265                     ;;
   8266                   -R*)
   8267                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   8268                     if test "$enable_rpath" != no; then
   8269                                                                   haveit=
   8270                       for x in $rpathdirs; do
   8271                         if test "X$x" = "X$dir"; then
   8272                           haveit=yes
   8273                           break
   8274                         fi
   8275                       done
   8276                       if test -z "$haveit"; then
   8277                         rpathdirs="$rpathdirs $dir"
   8278                       fi
   8279                                                                   haveit=
   8280                       for x in $ltrpathdirs; do
   8281                         if test "X$x" = "X$dir"; then
   8282                           haveit=yes
   8283                           break
   8284                         fi
   8285                       done
   8286                       if test -z "$haveit"; then
   8287                         ltrpathdirs="$ltrpathdirs $dir"
   8288                       fi
   8289                     fi
   8290                     ;;
   8291                   -l*)
   8292                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   8293                     ;;
   8294                   *.la)
   8295                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   8296                     ;;
   8297                   *)
   8298                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
   8299                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
   8300                     ;;
   8301                 esac
   8302               done
   8303             fi
   8304           else
   8305                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   8306             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
   8307           fi
   8308         fi
   8309       fi
   8310     done
   8311   done
   8312   if test "X$rpathdirs" != "X"; then
   8313     if test -n "$hardcode_libdir_separator"; then
   8314                         alldirs=
   8315       for found_dir in $rpathdirs; do
   8316         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   8317       done
   8318             acl_save_libdir="$libdir"
   8319       libdir="$alldirs"
   8320       eval flag=\"$hardcode_libdir_flag_spec\"
   8321       libdir="$acl_save_libdir"
   8322       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   8323     else
   8324             for found_dir in $rpathdirs; do
   8325         acl_save_libdir="$libdir"
   8326         libdir="$found_dir"
   8327         eval flag=\"$hardcode_libdir_flag_spec\"
   8328         libdir="$acl_save_libdir"
   8329         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   8330       done
   8331     fi
   8332   fi
   8333   if test "X$ltrpathdirs" != "X"; then
   8334             for found_dir in $ltrpathdirs; do
   8335       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
   8336     done
   8337   fi
   8338 
   8339 
   8340         ac_save_CPPFLAGS="$CPPFLAGS"
   8341 
   8342   for element in $INCEXPAT; do
   8343     haveit=
   8344     for x in $CPPFLAGS; do
   8345 
   8346   acl_save_prefix="$prefix"
   8347   prefix="$acl_final_prefix"
   8348   acl_save_exec_prefix="$exec_prefix"
   8349   exec_prefix="$acl_final_exec_prefix"
   8350   eval x=\"$x\"
   8351   exec_prefix="$acl_save_exec_prefix"
   8352   prefix="$acl_save_prefix"
   8353 
   8354       if test "X$x" = "X$element"; then
   8355         haveit=yes
   8356         break
   8357       fi
   8358     done
   8359     if test -z "$haveit"; then
   8360       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   8361     fi
   8362   done
   8363 
   8364 
   8365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
   8366 $as_echo_n "checking for libexpat... " >&6; }
   8367 if test "${ac_cv_libexpat+set}" = set; then :
   8368   $as_echo_n "(cached) " >&6
   8369 else
   8370 
   8371     ac_save_LIBS="$LIBS"
   8372     LIBS="$LIBS $LIBEXPAT"
   8373     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8374 /* end confdefs.h.  */
   8375 #include "expat.h"
   8376 int
   8377 main ()
   8378 {
   8379 XML_Parser p = XML_ParserCreate (0);
   8380   ;
   8381   return 0;
   8382 }
   8383 _ACEOF
   8384 if ac_fn_c_try_link "$LINENO"; then :
   8385   ac_cv_libexpat=yes
   8386 else
   8387   ac_cv_libexpat=no
   8388 fi
   8389 rm -f core conftest.err conftest.$ac_objext \
   8390     conftest$ac_exeext conftest.$ac_ext
   8391     LIBS="$ac_save_LIBS"
   8392 
   8393 fi
   8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
   8395 $as_echo "$ac_cv_libexpat" >&6; }
   8396   if test "$ac_cv_libexpat" = yes; then
   8397     HAVE_LIBEXPAT=yes
   8398 
   8399 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
   8400 
   8401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
   8402 $as_echo_n "checking how to link with libexpat... " >&6; }
   8403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
   8404 $as_echo "$LIBEXPAT" >&6; }
   8405   else
   8406     HAVE_LIBEXPAT=no
   8407             CPPFLAGS="$ac_save_CPPFLAGS"
   8408     LIBEXPAT=
   8409     LTLIBEXPAT=
   8410   fi
   8411 
   8412 
   8413 
   8414 
   8415 
   8416 
   8417   if test "$HAVE_LIBEXPAT" != yes; then
   8418     if test "$with_expat" = yes; then
   8419       as_fn_error "expat is missing or unusable" "$LINENO" 5
   8420     else
   8421       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
   8422 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
   8423     fi
   8424   else
   8425     save_LIBS=$LIBS
   8426     LIBS="$LIBS $LIBEXPAT"
   8427     for ac_func in XML_StopParser
   8428 do :
   8429   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
   8430 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
   8431   cat >>confdefs.h <<_ACEOF
   8432 #define HAVE_XML_STOPPARSER 1
   8433 _ACEOF
   8434 
   8435 fi
   8436 done
   8437 
   8438     LIBS=$save_LIBS
   8439   fi
   8440 fi
   8441 
   8442 # --------------------- #
   8443 # Check for libpython.  #
   8444 # --------------------- #
   8445 
   8446 
   8447 
   8448 
   8449 
   8450 
   8451 # Check whether --with-python was given.
   8452 if test "${with_python+set}" = set; then :
   8453   withval=$with_python;
   8454 else
   8455   with_python=auto
   8456 fi
   8457 
   8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
   8459 $as_echo_n "checking whether to use python... " >&6; }
   8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
   8461 $as_echo "$with_python" >&6; }
   8462 
   8463 if test "${with_python}" = no; then
   8464   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
   8465 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
   8466   have_libpython=no
   8467 else
   8468   case "${with_python}" in
   8469   [\\/]* | ?:[\\/]*)
   8470     if test -d ${with_python}; then
   8471       # Assume the python binary is ${with_python}/bin/python.
   8472       python_prog="${with_python}/bin/python"
   8473       python_prefix=
   8474       # If python does not exit ${with_python}/bin, then try in
   8475       # ${with_python}.  On Windows/MinGW, this is where the Python
   8476       # executable is.
   8477       if test ! -x "${python_prog}"; then
   8478         python_prog="${with_python}/python"
   8479         python_prefix=
   8480       fi
   8481       if test ! -x "${python_prog}"; then
   8482         # Fall back to gdb 7.0/7.1 behaviour.
   8483         python_prog=missing
   8484         python_prefix=${with_python}
   8485       fi
   8486     elif test -x "${with_python}"; then
   8487       # While we can't run python compiled for $host (unless host == build),
   8488       # the user could write a script that provides the needed information,
   8489       # so we support that.
   8490       python_prog=${with_python}
   8491       python_prefix=
   8492     else
   8493       as_fn_error "invalid value for --with-python" "$LINENO" 5
   8494     fi
   8495     ;;
   8496   */*)
   8497     # Disallow --with-python=foo/bar.
   8498     as_fn_error "invalid value for --with-python" "$LINENO" 5
   8499     ;;
   8500   *)
   8501     # The user has either specified auto, yes, or the name of the python
   8502     # program assumed to be in $PATH.
   8503     python_prefix=
   8504     case "${with_python}" in
   8505     yes | auto)
   8506       if test ${build} = ${host}; then
   8507         # Extract the first word of "python", so it can be a program name with args.
   8508 set dummy python; ac_word=$2
   8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8510 $as_echo_n "checking for $ac_word... " >&6; }
   8511 if test "${ac_cv_path_python_prog_path+set}" = set; then :
   8512   $as_echo_n "(cached) " >&6
   8513 else
   8514   case $python_prog_path in
   8515   [\\/]* | ?:[\\/]*)
   8516   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   8517   ;;
   8518   *)
   8519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8520 for as_dir in $PATH
   8521 do
   8522   IFS=$as_save_IFS
   8523   test -z "$as_dir" && as_dir=.
   8524     for ac_exec_ext in '' $ac_executable_extensions; do
   8525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8526     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   8527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8528     break 2
   8529   fi
   8530 done
   8531   done
   8532 IFS=$as_save_IFS
   8533 
   8534   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   8535   ;;
   8536 esac
   8537 fi
   8538 python_prog_path=$ac_cv_path_python_prog_path
   8539 if test -n "$python_prog_path"; then
   8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   8541 $as_echo "$python_prog_path" >&6; }
   8542 else
   8543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8544 $as_echo "no" >&6; }
   8545 fi
   8546 
   8547 
   8548         if test "${python_prog_path}" = missing; then
   8549           python_prog=missing
   8550         else
   8551           python_prog=${python_prog_path}
   8552         fi
   8553       else
   8554         # Not much we can do except assume the cross-compiler will find the
   8555         # right files.
   8556         python_prog=missing
   8557       fi
   8558       ;;
   8559     *)
   8560       # While we can't run python compiled for $host (unless host == build),
   8561       # the user could write a script that provides the needed information,
   8562       # so we support that.
   8563       python_prog="${with_python}"
   8564       # Extract the first word of "${python_prog}", so it can be a program name with args.
   8565 set dummy ${python_prog}; ac_word=$2
   8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8567 $as_echo_n "checking for $ac_word... " >&6; }
   8568 if test "${ac_cv_path_python_prog_path+set}" = set; then :
   8569   $as_echo_n "(cached) " >&6
   8570 else
   8571   case $python_prog_path in
   8572   [\\/]* | ?:[\\/]*)
   8573   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   8574   ;;
   8575   *)
   8576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8577 for as_dir in $PATH
   8578 do
   8579   IFS=$as_save_IFS
   8580   test -z "$as_dir" && as_dir=.
   8581     for ac_exec_ext in '' $ac_executable_extensions; do
   8582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8583     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   8584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8585     break 2
   8586   fi
   8587 done
   8588   done
   8589 IFS=$as_save_IFS
   8590 
   8591   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   8592   ;;
   8593 esac
   8594 fi
   8595 python_prog_path=$ac_cv_path_python_prog_path
   8596 if test -n "$python_prog_path"; then
   8597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   8598 $as_echo "$python_prog_path" >&6; }
   8599 else
   8600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8601 $as_echo "no" >&6; }
   8602 fi
   8603 
   8604 
   8605       if test "${python_prog_path}" = missing; then
   8606         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
   8607       fi
   8608       ;;
   8609     esac
   8610   esac
   8611 
   8612   if test "${python_prog}" != missing; then
   8613     # We have a python program to use, but it may be too old.
   8614     # Don't flag an error for --with-python=auto (the default).
   8615     have_python_config=yes
   8616     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
   8617     if test $? != 0; then
   8618       have_python_config=failed
   8619       if test "${with_python}" != auto; then
   8620         as_fn_error "failure running python-config --includes" "$LINENO" 5
   8621       fi
   8622     fi
   8623     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
   8624     if test $? != 0; then
   8625       have_python_config=failed
   8626       if test "${with_python}" != auto; then
   8627         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
   8628       fi
   8629     fi
   8630     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
   8631     if test $? != 0; then
   8632       have_python_config=failed
   8633       if test "${with_python}" != auto; then
   8634         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
   8635       fi
   8636     fi
   8637   else
   8638     # We do not have a python executable we can use to determine where
   8639     # to find the Python headers and libs.  We cannot guess the include
   8640     # path from the python_prefix either, because that include path
   8641     # depends on the Python version.  So, there is nothing much we can
   8642     # do except assume that the compiler will be able to find those files.
   8643     python_includes=
   8644     python_libs=
   8645     have_python_config=no
   8646   fi
   8647 
   8648   # If we have python-config, only try the configuration it provides.
   8649   # Otherwise fallback on the old way of trying different versions of
   8650   # python in turn.
   8651 
   8652   have_libpython=no
   8653   if test "${have_python_config}" = yes; then
   8654     # Determine the Python version by extracting "-lpython<version>"
   8655     # part of the python_libs. <version> is usually X.Y with X and Y
   8656     # being decimal numbers, but can also be XY (seen on Windows).
   8657     #
   8658     # The extraction is performed using sed with a regular expression.
   8659     # Initially, the regexp used was using the '?' quantifier to make
   8660     # the dot in the version number optional.  Unfortunately, this
   8661     # does not work with non-GNU versions of sed because, because of
   8662     # what looks like a limitation (the '?' quantifier does not work
   8663     # with back-references).  We work around this limitation by using
   8664     # the '*' quantifier instead.  It means that, in theory, we might
   8665     # match unexpected version strings such as "-lpython2..7", but
   8666     # this seems unlikely in practice.  And even if that happens,
   8667     # an error will be triggered later on, when checking that version
   8668     # number.
   8669     python_version=`echo " ${python_libs} " \
   8670                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
   8671     case "${python_version}" in
   8672     python*)
   8673 
   8674   version=${python_version}
   8675 
   8676   new_CPPFLAGS=${python_includes}
   8677   new_LIBS=${python_libs}
   8678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8679 $as_echo_n "checking for ${version}... " >&6; }
   8680   save_CPPFLAGS=$CPPFLAGS
   8681   save_LIBS=$LIBS
   8682   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8683   LIBS="$LIBS $new_LIBS"
   8684   found_usable_python=no
   8685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8686 /* end confdefs.h.  */
   8687 #include "Python.h"
   8688 int
   8689 main ()
   8690 {
   8691 Py_Initialize ();
   8692   ;
   8693   return 0;
   8694 }
   8695 _ACEOF
   8696 if ac_fn_c_try_link "$LINENO"; then :
   8697   have_libpython=${version}
   8698                   found_usable_python=yes
   8699                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8700                   PYTHON_LIBS=$new_LIBS
   8701 fi
   8702 rm -f core conftest.err conftest.$ac_objext \
   8703     conftest$ac_exeext conftest.$ac_ext
   8704   CPPFLAGS=$save_CPPFLAGS
   8705   LIBS=$save_LIBS
   8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8707 $as_echo "${found_usable_python}" >&6; }
   8708 
   8709       ;;
   8710     *)
   8711       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
   8712       ;;
   8713     esac
   8714   elif test "${have_python_config}" != failed; then
   8715     if test "${have_libpython}" = no; then
   8716 
   8717   version=python2.7
   8718 
   8719   new_CPPFLAGS=${python_includes}
   8720   new_LIBS="${python_libs} -lpython2.7"
   8721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8722 $as_echo_n "checking for ${version}... " >&6; }
   8723   save_CPPFLAGS=$CPPFLAGS
   8724   save_LIBS=$LIBS
   8725   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8726   LIBS="$LIBS $new_LIBS"
   8727   found_usable_python=no
   8728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8729 /* end confdefs.h.  */
   8730 #include "Python.h"
   8731 int
   8732 main ()
   8733 {
   8734 Py_Initialize ();
   8735   ;
   8736   return 0;
   8737 }
   8738 _ACEOF
   8739 if ac_fn_c_try_link "$LINENO"; then :
   8740   have_libpython=${version}
   8741                   found_usable_python=yes
   8742                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8743                   PYTHON_LIBS=$new_LIBS
   8744 fi
   8745 rm -f core conftest.err conftest.$ac_objext \
   8746     conftest$ac_exeext conftest.$ac_ext
   8747   CPPFLAGS=$save_CPPFLAGS
   8748   LIBS=$save_LIBS
   8749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8750 $as_echo "${found_usable_python}" >&6; }
   8751 
   8752     fi
   8753     if test "${have_libpython}" = no; then
   8754 
   8755   version=python2.6
   8756 
   8757   new_CPPFLAGS=${python_includes}
   8758   new_LIBS="${python_libs} -lpython2.6"
   8759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8760 $as_echo_n "checking for ${version}... " >&6; }
   8761   save_CPPFLAGS=$CPPFLAGS
   8762   save_LIBS=$LIBS
   8763   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8764   LIBS="$LIBS $new_LIBS"
   8765   found_usable_python=no
   8766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8767 /* end confdefs.h.  */
   8768 #include "Python.h"
   8769 int
   8770 main ()
   8771 {
   8772 Py_Initialize ();
   8773   ;
   8774   return 0;
   8775 }
   8776 _ACEOF
   8777 if ac_fn_c_try_link "$LINENO"; then :
   8778   have_libpython=${version}
   8779                   found_usable_python=yes
   8780                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8781                   PYTHON_LIBS=$new_LIBS
   8782 fi
   8783 rm -f core conftest.err conftest.$ac_objext \
   8784     conftest$ac_exeext conftest.$ac_ext
   8785   CPPFLAGS=$save_CPPFLAGS
   8786   LIBS=$save_LIBS
   8787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8788 $as_echo "${found_usable_python}" >&6; }
   8789 
   8790     fi
   8791     if test ${have_libpython} = no; then
   8792 
   8793   version=python2.5
   8794 
   8795   new_CPPFLAGS=${python_includes}
   8796   new_LIBS="${python_libs} -lpython2.5"
   8797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8798 $as_echo_n "checking for ${version}... " >&6; }
   8799   save_CPPFLAGS=$CPPFLAGS
   8800   save_LIBS=$LIBS
   8801   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8802   LIBS="$LIBS $new_LIBS"
   8803   found_usable_python=no
   8804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8805 /* end confdefs.h.  */
   8806 #include "Python.h"
   8807 int
   8808 main ()
   8809 {
   8810 Py_Initialize ();
   8811   ;
   8812   return 0;
   8813 }
   8814 _ACEOF
   8815 if ac_fn_c_try_link "$LINENO"; then :
   8816   have_libpython=${version}
   8817                   found_usable_python=yes
   8818                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8819                   PYTHON_LIBS=$new_LIBS
   8820 fi
   8821 rm -f core conftest.err conftest.$ac_objext \
   8822     conftest$ac_exeext conftest.$ac_ext
   8823   CPPFLAGS=$save_CPPFLAGS
   8824   LIBS=$save_LIBS
   8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8826 $as_echo "${found_usable_python}" >&6; }
   8827 
   8828     fi
   8829     if test ${have_libpython} = no; then
   8830 
   8831   version=python2.4
   8832 
   8833   new_CPPFLAGS=${python_includes}
   8834   new_LIBS="${python_libs} -lpython2.4"
   8835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8836 $as_echo_n "checking for ${version}... " >&6; }
   8837   save_CPPFLAGS=$CPPFLAGS
   8838   save_LIBS=$LIBS
   8839   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8840   LIBS="$LIBS $new_LIBS"
   8841   found_usable_python=no
   8842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8843 /* end confdefs.h.  */
   8844 #include "Python.h"
   8845 int
   8846 main ()
   8847 {
   8848 Py_Initialize ();
   8849   ;
   8850   return 0;
   8851 }
   8852 _ACEOF
   8853 if ac_fn_c_try_link "$LINENO"; then :
   8854   have_libpython=${version}
   8855                   found_usable_python=yes
   8856                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8857                   PYTHON_LIBS=$new_LIBS
   8858 fi
   8859 rm -f core conftest.err conftest.$ac_objext \
   8860     conftest$ac_exeext conftest.$ac_ext
   8861   CPPFLAGS=$save_CPPFLAGS
   8862   LIBS=$save_LIBS
   8863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8864 $as_echo "${found_usable_python}" >&6; }
   8865 
   8866     fi
   8867   fi
   8868   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
   8869 
   8870 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
   8871 
   8872   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
   8873 
   8874 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
   8875 
   8876   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
   8877 
   8878 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
   8879 
   8880   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
   8881 
   8882 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
   8883 
   8884   fi
   8885 
   8886   if test "${have_libpython}" = no; then
   8887     case "${with_python}" in
   8888     yes)
   8889       as_fn_error "python is missing or unusable" "$LINENO" 5
   8890       ;;
   8891     auto)
   8892       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
   8893 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
   8894       ;;
   8895     *)
   8896       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
   8897       ;;
   8898     esac
   8899   else
   8900     if test -n "${python_prefix}"; then
   8901 
   8902 cat >>confdefs.h <<_ACEOF
   8903 #define WITH_PYTHON_PATH "${python_prefix}"
   8904 _ACEOF
   8905 
   8906 
   8907   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   8908      if test "x$prefix" = xNONE; then
   8909      	test_prefix=/usr/local
   8910      else
   8911 	test_prefix=$prefix
   8912      fi
   8913   else
   8914      test_prefix=$exec_prefix
   8915   fi
   8916   value=0
   8917   case ${python_prefix} in
   8918      "${test_prefix}"|"${test_prefix}/"*|\
   8919 	'${exec_prefix}'|'${exec_prefix}/'*)
   8920      value=1
   8921      ;;
   8922   esac
   8923 
   8924 cat >>confdefs.h <<_ACEOF
   8925 #define PYTHON_PATH_RELOCATABLE $value
   8926 _ACEOF
   8927 
   8928 
   8929     fi
   8930   fi
   8931 fi
   8932 
   8933 if test "${have_libpython}" != no; then
   8934 
   8935 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
   8936 
   8937   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
   8938   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
   8939   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
   8940   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
   8941   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
   8942 
   8943   # Flags needed to compile Python code (taken from python-config --cflags).
   8944   # We cannot call python-config directly because it will output whatever was
   8945   # used when compiling the Python interpreter itself, including flags which
   8946   # would make the python-related objects be compiled differently from the
   8947   # rest of GDB (e.g., -O2 and -fPIC).
   8948   if test "${GCC}" = yes; then
   8949     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
   8950   fi
   8951 
   8952   if test "x${tentative_python_cflags}" != x; then
   8953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
   8954 $as_echo_n "checking compiler flags for python code... " >&6; }
   8955     for flag in ${tentative_python_cflags}; do
   8956       # Check that the compiler accepts it
   8957       saved_CFLAGS="$CFLAGS"
   8958       CFLAGS="$CFLAGS $flag"
   8959       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8960 /* end confdefs.h.  */
   8961 
   8962 int
   8963 main ()
   8964 {
   8965 
   8966   ;
   8967   return 0;
   8968 }
   8969 _ACEOF
   8970 if ac_fn_c_try_compile "$LINENO"; then :
   8971   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
   8972 fi
   8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8974       CFLAGS="$saved_CFLAGS"
   8975     done
   8976     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
   8977 $as_echo "${PYTHON_CFLAGS}" >&6; }
   8978   fi
   8979 
   8980   # On x64 Windows, Python's include headers, and pyconfig.h in
   8981   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
   8982   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
   8983   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
   8984   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
   8985   # The issue was reported to the Python community, but still isn't
   8986   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
   8987 
   8988   case "$gdb_host" in
   8989     mingw64)
   8990            if test "${GCC}" = yes; then
   8991              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
   8992            fi
   8993            ;;
   8994   esac
   8995 
   8996   # Note that "python -m threading" cannot be used to check for
   8997   # threading support due to a bug in Python 2.7.3
   8998   # (http://bugs.python.org/issue15567).
   8999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
   9000 $as_echo_n "checking whether python supports threads... " >&6; }
   9001   saved_CPPFLAGS="${CPPFLAGS}"
   9002   CPPFLAGS="${PYTHON_CPPFLAGS}"
   9003   # Note that the test is reversed so that python_has_threads=yes on
   9004   # unexpected failures.
   9005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9006 /* end confdefs.h.  */
   9007 
   9008 #include <Python.h>
   9009 #ifdef WITH_THREAD
   9010 # error
   9011 #endif
   9012 
   9013 _ACEOF
   9014 if ac_fn_c_try_cpp "$LINENO"; then :
   9015   python_has_threads=no
   9016 else
   9017   python_has_threads=yes
   9018 fi
   9019 rm -f conftest.err conftest.$ac_ext
   9020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
   9021 $as_echo "${python_has_threads}" >&6; }
   9022   CPPFLAGS="${saved_CPPFLAGS}"
   9023 else
   9024   # Even if Python support is not compiled in, we need to have this file
   9025   # included so that the "python" command, et.al., still exists.
   9026   CONFIG_OBS="$CONFIG_OBS python.o"
   9027   CONFIG_SRCS="$CONFIG_SRCS python/python.c"
   9028 fi
   9029 
   9030 
   9031 
   9032  if test "${have_libpython}" != no; then
   9033   HAVE_PYTHON_TRUE=
   9034   HAVE_PYTHON_FALSE='#'
   9035 else
   9036   HAVE_PYTHON_TRUE='#'
   9037   HAVE_PYTHON_FALSE=
   9038 fi
   9039 
   9040 
   9041 # -------------------- #
   9042 # Check for libguile.  #
   9043 # -------------------- #
   9044 
   9045 
   9046 
   9047 
   9048 
   9049 
   9050 # Check whether --with-guile was given.
   9051 if test "${with_guile+set}" = set; then :
   9052   withval=$with_guile;
   9053 else
   9054   with_guile=auto
   9055 fi
   9056 
   9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
   9058 $as_echo_n "checking whether to use guile... " >&6; }
   9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
   9060 $as_echo "$with_guile" >&6; }
   9061 
   9062 # Extract the first word of "pkg-config", so it can be a program name with args.
   9063 set dummy pkg-config; ac_word=$2
   9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9065 $as_echo_n "checking for $ac_word... " >&6; }
   9066 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
   9067   $as_echo_n "(cached) " >&6
   9068 else
   9069   case $pkg_config_prog_path in
   9070   [\\/]* | ?:[\\/]*)
   9071   ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
   9072   ;;
   9073   *)
   9074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9075 for as_dir in $PATH
   9076 do
   9077   IFS=$as_save_IFS
   9078   test -z "$as_dir" && as_dir=.
   9079     for ac_exec_ext in '' $ac_executable_extensions; do
   9080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   9081     ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
   9082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9083     break 2
   9084   fi
   9085 done
   9086   done
   9087 IFS=$as_save_IFS
   9088 
   9089   test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
   9090   ;;
   9091 esac
   9092 fi
   9093 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
   9094 if test -n "$pkg_config_prog_path"; then
   9095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
   9096 $as_echo "$pkg_config_prog_path" >&6; }
   9097 else
   9098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9099 $as_echo "no" >&6; }
   9100 fi
   9101 
   9102 
   9103 
   9104 try_guile_versions="guile-2.2 guile-2.0"
   9105 have_libguile=no
   9106 case "${with_guile}" in
   9107 no)
   9108   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
   9109 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
   9110   ;;
   9111 auto)
   9112   if test "${pkg_config_prog_path}" = "missing"; then
   9113     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
   9114 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
   9115   else
   9116 
   9117   pkg_config=${pkg_config_prog_path}
   9118   guile_version_list=${try_guile_versions}
   9119   flag_errors=no
   9120 
   9121   found_usable_guile=checking
   9122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   9123 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   9124   for guile_version in ${guile_version_list}; do
   9125     ${pkg_config} --exists ${guile_version} 2>/dev/null
   9126     if test $? != 0; then
   9127       continue
   9128     fi
   9129             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   9130     if test $? != 0; then
   9131       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   9132     fi
   9133     new_LIBS=`${pkg_config} --libs ${guile_version}`
   9134     if test $? != 0; then
   9135       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   9136     fi
   9137         found_usable_guile=${guile_version}
   9138     break
   9139   done
   9140   if test "${found_usable_guile}" = "checking"; then
   9141     if test "${flag_errors}" = "yes"; then
   9142       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   9143     else
   9144       found_usable_guile=no
   9145     fi
   9146   fi
   9147       if test "${found_usable_guile}" != no; then
   9148     save_CPPFLAGS=$CPPFLAGS
   9149     save_LIBS=$LIBS
   9150     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9151     LIBS="$LIBS $new_LIBS"
   9152     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9153 /* end confdefs.h.  */
   9154 #include "libguile.h"
   9155 int
   9156 main ()
   9157 {
   9158 scm_init_guile ();
   9159   ;
   9160   return 0;
   9161 }
   9162 _ACEOF
   9163 if ac_fn_c_try_link "$LINENO"; then :
   9164   have_libguile=yes
   9165                     GUILE_CPPFLAGS=$new_CPPFLAGS
   9166                     GUILE_LIBS=$new_LIBS
   9167 else
   9168   found_usable_guile=no
   9169 fi
   9170 rm -f core conftest.err conftest.$ac_objext \
   9171     conftest$ac_exeext conftest.$ac_ext
   9172         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   9173 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
   9174 
   9175 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   9176 
   9177 
   9178 fi
   9179 
   9180     CPPFLAGS=$save_CPPFLAGS
   9181     LIBS=$save_LIBS
   9182     if test "${found_usable_guile}" = no; then
   9183       if test "${flag_errors}" = yes; then
   9184         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9186 as_fn_error "linking guile version ${guile_version} test program failed
   9187 See \`config.log' for more details." "$LINENO" 5; }
   9188       fi
   9189     fi
   9190   fi
   9191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   9192 $as_echo "${found_usable_guile}" >&6; }
   9193 
   9194   fi
   9195   ;;
   9196 yes)
   9197   if test "${pkg_config_prog_path}" = "missing"; then
   9198     as_fn_error "pkg-config not found" "$LINENO" 5
   9199   fi
   9200 
   9201   pkg_config=${pkg_config_prog_path}
   9202   guile_version_list=${try_guile_versions}
   9203   flag_errors=yes
   9204 
   9205   found_usable_guile=checking
   9206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   9207 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   9208   for guile_version in ${guile_version_list}; do
   9209     ${pkg_config} --exists ${guile_version} 2>/dev/null
   9210     if test $? != 0; then
   9211       continue
   9212     fi
   9213             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   9214     if test $? != 0; then
   9215       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   9216     fi
   9217     new_LIBS=`${pkg_config} --libs ${guile_version}`
   9218     if test $? != 0; then
   9219       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   9220     fi
   9221         found_usable_guile=${guile_version}
   9222     break
   9223   done
   9224   if test "${found_usable_guile}" = "checking"; then
   9225     if test "${flag_errors}" = "yes"; then
   9226       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   9227     else
   9228       found_usable_guile=no
   9229     fi
   9230   fi
   9231       if test "${found_usable_guile}" != no; then
   9232     save_CPPFLAGS=$CPPFLAGS
   9233     save_LIBS=$LIBS
   9234     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9235     LIBS="$LIBS $new_LIBS"
   9236     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9237 /* end confdefs.h.  */
   9238 #include "libguile.h"
   9239 int
   9240 main ()
   9241 {
   9242 scm_init_guile ();
   9243   ;
   9244   return 0;
   9245 }
   9246 _ACEOF
   9247 if ac_fn_c_try_link "$LINENO"; then :
   9248   have_libguile=yes
   9249                     GUILE_CPPFLAGS=$new_CPPFLAGS
   9250                     GUILE_LIBS=$new_LIBS
   9251 else
   9252   found_usable_guile=no
   9253 fi
   9254 rm -f core conftest.err conftest.$ac_objext \
   9255     conftest$ac_exeext conftest.$ac_ext
   9256         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   9257 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
   9258 
   9259 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   9260 
   9261 
   9262 fi
   9263 
   9264     CPPFLAGS=$save_CPPFLAGS
   9265     LIBS=$save_LIBS
   9266     if test "${found_usable_guile}" = no; then
   9267       if test "${flag_errors}" = yes; then
   9268         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9270 as_fn_error "linking guile version ${guile_version} test program failed
   9271 See \`config.log' for more details." "$LINENO" 5; }
   9272       fi
   9273     fi
   9274   fi
   9275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   9276 $as_echo "${found_usable_guile}" >&6; }
   9277 
   9278   ;;
   9279 [\\/]* | ?:[\\/]*)
   9280   if test -x "${with_guile}"; then
   9281 
   9282   pkg_config=${with_guile}
   9283   guile_version_list=${try_guile_versions}
   9284   flag_errors=yes
   9285 
   9286   found_usable_guile=checking
   9287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   9288 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   9289   for guile_version in ${guile_version_list}; do
   9290     ${pkg_config} --exists ${guile_version} 2>/dev/null
   9291     if test $? != 0; then
   9292       continue
   9293     fi
   9294             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   9295     if test $? != 0; then
   9296       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   9297     fi
   9298     new_LIBS=`${pkg_config} --libs ${guile_version}`
   9299     if test $? != 0; then
   9300       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   9301     fi
   9302         found_usable_guile=${guile_version}
   9303     break
   9304   done
   9305   if test "${found_usable_guile}" = "checking"; then
   9306     if test "${flag_errors}" = "yes"; then
   9307       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   9308     else
   9309       found_usable_guile=no
   9310     fi
   9311   fi
   9312       if test "${found_usable_guile}" != no; then
   9313     save_CPPFLAGS=$CPPFLAGS
   9314     save_LIBS=$LIBS
   9315     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9316     LIBS="$LIBS $new_LIBS"
   9317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9318 /* end confdefs.h.  */
   9319 #include "libguile.h"
   9320 int
   9321 main ()
   9322 {
   9323 scm_init_guile ();
   9324   ;
   9325   return 0;
   9326 }
   9327 _ACEOF
   9328 if ac_fn_c_try_link "$LINENO"; then :
   9329   have_libguile=yes
   9330                     GUILE_CPPFLAGS=$new_CPPFLAGS
   9331                     GUILE_LIBS=$new_LIBS
   9332 else
   9333   found_usable_guile=no
   9334 fi
   9335 rm -f core conftest.err conftest.$ac_objext \
   9336     conftest$ac_exeext conftest.$ac_ext
   9337         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   9338 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
   9339 
   9340 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   9341 
   9342 
   9343 fi
   9344 
   9345     CPPFLAGS=$save_CPPFLAGS
   9346     LIBS=$save_LIBS
   9347     if test "${found_usable_guile}" = no; then
   9348       if test "${flag_errors}" = yes; then
   9349         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9351 as_fn_error "linking guile version ${guile_version} test program failed
   9352 See \`config.log' for more details." "$LINENO" 5; }
   9353       fi
   9354     fi
   9355   fi
   9356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   9357 $as_echo "${found_usable_guile}" >&6; }
   9358 
   9359   else
   9360     as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
   9361   fi
   9362   ;;
   9363 "" | */*)
   9364   # Disallow --with=guile="" and --with-guile=foo/bar.
   9365   as_fn_error "invalid value for --with-guile" "$LINENO" 5
   9366   ;;
   9367 *)
   9368   # A space separate list of guile versions to try, in order.
   9369   if test "${pkg_config_prog_path}" = "missing"; then
   9370     as_fn_error "pkg-config not found" "$LINENO" 5
   9371   fi
   9372 
   9373   pkg_config=${pkg_config_prog_path}
   9374   guile_version_list=${with_guile}
   9375   flag_errors=yes
   9376 
   9377   found_usable_guile=checking
   9378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   9379 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   9380   for guile_version in ${guile_version_list}; do
   9381     ${pkg_config} --exists ${guile_version} 2>/dev/null
   9382     if test $? != 0; then
   9383       continue
   9384     fi
   9385             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   9386     if test $? != 0; then
   9387       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   9388     fi
   9389     new_LIBS=`${pkg_config} --libs ${guile_version}`
   9390     if test $? != 0; then
   9391       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   9392     fi
   9393         found_usable_guile=${guile_version}
   9394     break
   9395   done
   9396   if test "${found_usable_guile}" = "checking"; then
   9397     if test "${flag_errors}" = "yes"; then
   9398       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   9399     else
   9400       found_usable_guile=no
   9401     fi
   9402   fi
   9403       if test "${found_usable_guile}" != no; then
   9404     save_CPPFLAGS=$CPPFLAGS
   9405     save_LIBS=$LIBS
   9406     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9407     LIBS="$LIBS $new_LIBS"
   9408     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9409 /* end confdefs.h.  */
   9410 #include "libguile.h"
   9411 int
   9412 main ()
   9413 {
   9414 scm_init_guile ();
   9415   ;
   9416   return 0;
   9417 }
   9418 _ACEOF
   9419 if ac_fn_c_try_link "$LINENO"; then :
   9420   have_libguile=yes
   9421                     GUILE_CPPFLAGS=$new_CPPFLAGS
   9422                     GUILE_LIBS=$new_LIBS
   9423 else
   9424   found_usable_guile=no
   9425 fi
   9426 rm -f core conftest.err conftest.$ac_objext \
   9427     conftest$ac_exeext conftest.$ac_ext
   9428         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   9429 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
   9430 
   9431 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   9432 
   9433 
   9434 fi
   9435 
   9436     CPPFLAGS=$save_CPPFLAGS
   9437     LIBS=$save_LIBS
   9438     if test "${found_usable_guile}" = no; then
   9439       if test "${flag_errors}" = yes; then
   9440         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9442 as_fn_error "linking guile version ${guile_version} test program failed
   9443 See \`config.log' for more details." "$LINENO" 5; }
   9444       fi
   9445     fi
   9446   fi
   9447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   9448 $as_echo "${found_usable_guile}" >&6; }
   9449 
   9450   ;;
   9451 esac
   9452 
   9453 if test "${have_libguile}" != no; then
   9454     case "${with_guile}" in
   9455   [\\/]* | ?:[\\/]*)
   9456 
   9457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
   9458 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
   9459 if test "${ac_cv_guild_program_name+set}" = set; then :
   9460   $as_echo_n "(cached) " >&6
   9461 else
   9462   ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
   9463 
   9464      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
   9465      # the 'guild' and 'bindir' variables.  In that case, try to guess
   9466      # what the program name is, at the risk of getting it wrong if
   9467      # Guile was configured with '--program-suffix' or similar.
   9468      if test "x$ac_cv_guild_program_name" = "x"; then
   9469        guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
   9470        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
   9471      fi
   9472 
   9473 fi
   9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
   9475 $as_echo "$ac_cv_guild_program_name" >&6; }
   9476 
   9477   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
   9478     as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
   9479   fi
   9480 
   9481   GUILD="$ac_cv_guild_program_name"
   9482 
   9483 
   9484     ;;
   9485   *)
   9486 
   9487   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
   9488 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
   9489 if test "${ac_cv_guild_program_name+set}" = set; then :
   9490   $as_echo_n "(cached) " >&6
   9491 else
   9492   ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
   9493 
   9494      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
   9495      # the 'guild' and 'bindir' variables.  In that case, try to guess
   9496      # what the program name is, at the risk of getting it wrong if
   9497      # Guile was configured with '--program-suffix' or similar.
   9498      if test "x$ac_cv_guild_program_name" = "x"; then
   9499        guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
   9500        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
   9501      fi
   9502 
   9503 fi
   9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
   9505 $as_echo "$ac_cv_guild_program_name" >&6; }
   9506 
   9507   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
   9508     as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
   9509   fi
   9510 
   9511   GUILD="$ac_cv_guild_program_name"
   9512 
   9513 
   9514     ;;
   9515   esac
   9516 
   9517 
   9518   if test "$cross_compiling" = no; then
   9519     GUILD_TARGET_FLAG=
   9520   else
   9521     GUILD_TARGET_FLAG="--target=$host"
   9522   fi
   9523 
   9524 
   9525 
   9526 
   9527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
   9528 $as_echo_n "checking whether guild supports this host... " >&6; }
   9529 if test "${ac_cv_guild_ok+set}" = set; then :
   9530   $as_echo_n "(cached) " >&6
   9531 else
   9532   echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
   9533      if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
   9534        ac_cv_guild_ok=yes
   9535      else
   9536        ac_cv_guild_ok=no
   9537      fi
   9538 fi
   9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
   9540 $as_echo "$ac_cv_guild_ok" >&6; }
   9541 
   9542     if test "$ac_cv_guild_ok" = no; then
   9543     have_libguile=no
   9544     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
   9545 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
   9546   fi
   9547 fi
   9548 
   9549 if test "${have_libguile}" != no; then
   9550 
   9551 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
   9552 
   9553   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
   9554   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
   9555   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
   9556   CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
   9557   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
   9558 
   9559     save_LIBS="$LIBS"
   9560   save_CPPFLAGS="$CPPFLAGS"
   9561   LIBS="$GUILE_LIBS"
   9562   CPPFLAGS="$GUILE_CPPFLAGS"
   9563   for ac_func in scm_new_smob
   9564 do :
   9565   ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
   9566 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
   9567   cat >>confdefs.h <<_ACEOF
   9568 #define HAVE_SCM_NEW_SMOB 1
   9569 _ACEOF
   9570 
   9571 fi
   9572 done
   9573 
   9574   LIBS="$save_LIBS"
   9575   CPPFLAGS="$save_CPPFLAGS"
   9576 else
   9577   # Even if Guile support is not compiled in, we need to have these files
   9578   # included.
   9579   CONFIG_OBS="$CONFIG_OBS guile.o"
   9580   CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
   9581 fi
   9582 
   9583 
   9584  if test "${have_libguile}" != no; then
   9585   HAVE_GUILE_TRUE=
   9586   HAVE_GUILE_FALSE='#'
   9587 else
   9588   HAVE_GUILE_TRUE='#'
   9589   HAVE_GUILE_FALSE=
   9590 fi
   9591 
   9592 
   9593 # --------------------- #
   9594 # Check for libmcheck.  #
   9595 # --------------------- #
   9596 
   9597 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
   9598 # but turn it off if Python is enabled with threads, since -lmcheck is
   9599 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
   9600 # and for releases.
   9601 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
   9602    && $development; then
   9603   libmcheck_default=yes
   9604 else
   9605   libmcheck_default=no
   9606 fi
   9607 
   9608   # Check whether --enable-libmcheck was given.
   9609 if test "${enable_libmcheck+set}" = set; then :
   9610   enableval=$enable_libmcheck; case "${enableval}" in
   9611       yes | y) ENABLE_LIBMCHECK="yes" ;;
   9612       no | n)  ENABLE_LIBMCHECK="no" ;;
   9613       *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
   9614     esac
   9615 fi
   9616 
   9617 
   9618   if test -z "${ENABLE_LIBMCHECK}"; then
   9619     ENABLE_LIBMCHECK=${libmcheck_default}
   9620   fi
   9621 
   9622   if test "$ENABLE_LIBMCHECK" = "yes" ; then
   9623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
   9624 $as_echo_n "checking for main in -lmcheck... " >&6; }
   9625 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
   9626   $as_echo_n "(cached) " >&6
   9627 else
   9628   ac_check_lib_save_LIBS=$LIBS
   9629 LIBS="-lmcheck  $LIBS"
   9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9631 /* end confdefs.h.  */
   9632 
   9633 
   9634 int
   9635 main ()
   9636 {
   9637 return main ();
   9638   ;
   9639   return 0;
   9640 }
   9641 _ACEOF
   9642 if ac_fn_c_try_link "$LINENO"; then :
   9643   ac_cv_lib_mcheck_main=yes
   9644 else
   9645   ac_cv_lib_mcheck_main=no
   9646 fi
   9647 rm -f core conftest.err conftest.$ac_objext \
   9648     conftest$ac_exeext conftest.$ac_ext
   9649 LIBS=$ac_check_lib_save_LIBS
   9650 fi
   9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
   9652 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
   9653 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
   9654   cat >>confdefs.h <<_ACEOF
   9655 #define HAVE_LIBMCHECK 1
   9656 _ACEOF
   9657 
   9658   LIBS="-lmcheck $LIBS"
   9659 
   9660 fi
   9661 
   9662   fi
   9663 
   9664 
   9665 if test "$ENABLE_LIBMCHECK" = "yes" \
   9666 	-a "${have_libpython}" != "no" \
   9667 	-a "${python_has_threads}" = "yes" ; then
   9668   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
   9669 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
   9670 fi
   9671 
   9672 
   9673 # Check whether --with-intel_pt was given.
   9674 if test "${with_intel_pt+set}" = set; then :
   9675   withval=$with_intel_pt;
   9676 else
   9677   with_intel_pt=auto
   9678 fi
   9679 
   9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
   9681 $as_echo_n "checking whether to use intel pt... " >&6; }
   9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
   9683 $as_echo "$with_intel_pt" >&6; }
   9684 
   9685 if test "${with_intel_pt}" = no; then
   9686   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&5
   9687 $as_echo "$as_me: WARNING: Intel(R) Processor Trace support disabled; some features may be unavailable." >&2;}
   9688   HAVE_LIBIPT=no
   9689 else
   9690 
   9691 
   9692 
   9693 
   9694 
   9695 
   9696 
   9697 
   9698     use_additional=yes
   9699 
   9700   acl_save_prefix="$prefix"
   9701   prefix="$acl_final_prefix"
   9702   acl_save_exec_prefix="$exec_prefix"
   9703   exec_prefix="$acl_final_exec_prefix"
   9704 
   9705     eval additional_includedir=\"$includedir\"
   9706     eval additional_libdir=\"$libdir\"
   9707 
   9708   exec_prefix="$acl_save_exec_prefix"
   9709   prefix="$acl_save_prefix"
   9710 
   9711 
   9712 # Check whether --with-libipt-prefix was given.
   9713 if test "${with_libipt_prefix+set}" = set; then :
   9714   withval=$with_libipt_prefix;
   9715     if test "X$withval" = "Xno"; then
   9716       use_additional=no
   9717     else
   9718       if test "X$withval" = "X"; then
   9719 
   9720   acl_save_prefix="$prefix"
   9721   prefix="$acl_final_prefix"
   9722   acl_save_exec_prefix="$exec_prefix"
   9723   exec_prefix="$acl_final_exec_prefix"
   9724 
   9725           eval additional_includedir=\"$includedir\"
   9726           eval additional_libdir=\"$libdir\"
   9727 
   9728   exec_prefix="$acl_save_exec_prefix"
   9729   prefix="$acl_save_prefix"
   9730 
   9731       else
   9732         additional_includedir="$withval/include"
   9733         additional_libdir="$withval/lib"
   9734       fi
   9735     fi
   9736 
   9737 fi
   9738 
   9739       LIBIPT=
   9740   LTLIBIPT=
   9741   INCIPT=
   9742   rpathdirs=
   9743   ltrpathdirs=
   9744   names_already_handled=
   9745   names_next_round='ipt '
   9746   while test -n "$names_next_round"; do
   9747     names_this_round="$names_next_round"
   9748     names_next_round=
   9749     for name in $names_this_round; do
   9750       already_handled=
   9751       for n in $names_already_handled; do
   9752         if test "$n" = "$name"; then
   9753           already_handled=yes
   9754           break
   9755         fi
   9756       done
   9757       if test -z "$already_handled"; then
   9758         names_already_handled="$names_already_handled $name"
   9759                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   9760         eval value=\"\$HAVE_LIB$uppername\"
   9761         if test -n "$value"; then
   9762           if test "$value" = yes; then
   9763             eval value=\"\$LIB$uppername\"
   9764             test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
   9765             eval value=\"\$LTLIB$uppername\"
   9766             test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
   9767           else
   9768                                     :
   9769           fi
   9770         else
   9771                               found_dir=
   9772           found_la=
   9773           found_so=
   9774           found_a=
   9775           if test $use_additional = yes; then
   9776             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   9777               found_dir="$additional_libdir"
   9778               found_so="$additional_libdir/lib$name.$shlibext"
   9779               if test -f "$additional_libdir/lib$name.la"; then
   9780                 found_la="$additional_libdir/lib$name.la"
   9781               fi
   9782             else
   9783               if test -f "$additional_libdir/lib$name.$libext"; then
   9784                 found_dir="$additional_libdir"
   9785                 found_a="$additional_libdir/lib$name.$libext"
   9786                 if test -f "$additional_libdir/lib$name.la"; then
   9787                   found_la="$additional_libdir/lib$name.la"
   9788                 fi
   9789               fi
   9790             fi
   9791           fi
   9792           if test "X$found_dir" = "X"; then
   9793             for x in $LDFLAGS $LTLIBIPT; do
   9794 
   9795   acl_save_prefix="$prefix"
   9796   prefix="$acl_final_prefix"
   9797   acl_save_exec_prefix="$exec_prefix"
   9798   exec_prefix="$acl_final_exec_prefix"
   9799   eval x=\"$x\"
   9800   exec_prefix="$acl_save_exec_prefix"
   9801   prefix="$acl_save_prefix"
   9802 
   9803               case "$x" in
   9804                 -L*)
   9805                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   9806                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   9807                     found_dir="$dir"
   9808                     found_so="$dir/lib$name.$shlibext"
   9809                     if test -f "$dir/lib$name.la"; then
   9810                       found_la="$dir/lib$name.la"
   9811                     fi
   9812                   else
   9813                     if test -f "$dir/lib$name.$libext"; then
   9814                       found_dir="$dir"
   9815                       found_a="$dir/lib$name.$libext"
   9816                       if test -f "$dir/lib$name.la"; then
   9817                         found_la="$dir/lib$name.la"
   9818                       fi
   9819                     fi
   9820                   fi
   9821                   ;;
   9822               esac
   9823               if test "X$found_dir" != "X"; then
   9824                 break
   9825               fi
   9826             done
   9827           fi
   9828           if test "X$found_dir" != "X"; then
   9829                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
   9830             if test "X$found_so" != "X"; then
   9831                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   9832                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   9833               else
   9834                                                                                 haveit=
   9835                 for x in $ltrpathdirs; do
   9836                   if test "X$x" = "X$found_dir"; then
   9837                     haveit=yes
   9838                     break
   9839                   fi
   9840                 done
   9841                 if test -z "$haveit"; then
   9842                   ltrpathdirs="$ltrpathdirs $found_dir"
   9843                 fi
   9844                                 if test "$hardcode_direct" = yes; then
   9845                                                       LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   9846                 else
   9847                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   9848                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   9849                                                             haveit=
   9850                     for x in $rpathdirs; do
   9851                       if test "X$x" = "X$found_dir"; then
   9852                         haveit=yes
   9853                         break
   9854                       fi
   9855                     done
   9856                     if test -z "$haveit"; then
   9857                       rpathdirs="$rpathdirs $found_dir"
   9858                     fi
   9859                   else
   9860                                                                                 haveit=
   9861                     for x in $LDFLAGS $LIBIPT; do
   9862 
   9863   acl_save_prefix="$prefix"
   9864   prefix="$acl_final_prefix"
   9865   acl_save_exec_prefix="$exec_prefix"
   9866   exec_prefix="$acl_final_exec_prefix"
   9867   eval x=\"$x\"
   9868   exec_prefix="$acl_save_exec_prefix"
   9869   prefix="$acl_save_prefix"
   9870 
   9871                       if test "X$x" = "X-L$found_dir"; then
   9872                         haveit=yes
   9873                         break
   9874                       fi
   9875                     done
   9876                     if test -z "$haveit"; then
   9877                       LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
   9878                     fi
   9879                     if test "$hardcode_minus_L" != no; then
   9880                                                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   9881                     else
   9882                                                                                                                                                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   9883                     fi
   9884                   fi
   9885                 fi
   9886               fi
   9887             else
   9888               if test "X$found_a" != "X"; then
   9889                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
   9890               else
   9891                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
   9892               fi
   9893             fi
   9894                         additional_includedir=
   9895             case "$found_dir" in
   9896               */lib | */lib/)
   9897                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   9898                 additional_includedir="$basedir/include"
   9899                 ;;
   9900             esac
   9901             if test "X$additional_includedir" != "X"; then
   9902                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   9903                 haveit=
   9904                 if test "X$additional_includedir" = "X/usr/local/include"; then
   9905                   if test -n "$GCC"; then
   9906                     case $host_os in
   9907                       linux*) haveit=yes;;
   9908                     esac
   9909                   fi
   9910                 fi
   9911                 if test -z "$haveit"; then
   9912                   for x in $CPPFLAGS $INCIPT; do
   9913 
   9914   acl_save_prefix="$prefix"
   9915   prefix="$acl_final_prefix"
   9916   acl_save_exec_prefix="$exec_prefix"
   9917   exec_prefix="$acl_final_exec_prefix"
   9918   eval x=\"$x\"
   9919   exec_prefix="$acl_save_exec_prefix"
   9920   prefix="$acl_save_prefix"
   9921 
   9922                     if test "X$x" = "X-I$additional_includedir"; then
   9923                       haveit=yes
   9924                       break
   9925                     fi
   9926                   done
   9927                   if test -z "$haveit"; then
   9928                     if test -d "$additional_includedir"; then
   9929                                             INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
   9930                     fi
   9931                   fi
   9932                 fi
   9933               fi
   9934             fi
   9935                         if test -n "$found_la"; then
   9936                                                         save_libdir="$libdir"
   9937               case "$found_la" in
   9938                 */* | *\\*) . "$found_la" ;;
   9939                 *) . "./$found_la" ;;
   9940               esac
   9941               libdir="$save_libdir"
   9942                             for dep in $dependency_libs; do
   9943                 case "$dep" in
   9944                   -L*)
   9945                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   9946                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   9947                       haveit=
   9948                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   9949                         if test -n "$GCC"; then
   9950                           case $host_os in
   9951                             linux*) haveit=yes;;
   9952                           esac
   9953                         fi
   9954                       fi
   9955                       if test -z "$haveit"; then
   9956                         haveit=
   9957                         for x in $LDFLAGS $LIBIPT; do
   9958 
   9959   acl_save_prefix="$prefix"
   9960   prefix="$acl_final_prefix"
   9961   acl_save_exec_prefix="$exec_prefix"
   9962   exec_prefix="$acl_final_exec_prefix"
   9963   eval x=\"$x\"
   9964   exec_prefix="$acl_save_exec_prefix"
   9965   prefix="$acl_save_prefix"
   9966 
   9967                           if test "X$x" = "X-L$additional_libdir"; then
   9968                             haveit=yes
   9969                             break
   9970                           fi
   9971                         done
   9972                         if test -z "$haveit"; then
   9973                           if test -d "$additional_libdir"; then
   9974                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
   9975                           fi
   9976                         fi
   9977                         haveit=
   9978                         for x in $LDFLAGS $LTLIBIPT; do
   9979 
   9980   acl_save_prefix="$prefix"
   9981   prefix="$acl_final_prefix"
   9982   acl_save_exec_prefix="$exec_prefix"
   9983   exec_prefix="$acl_final_exec_prefix"
   9984   eval x=\"$x\"
   9985   exec_prefix="$acl_save_exec_prefix"
   9986   prefix="$acl_save_prefix"
   9987 
   9988                           if test "X$x" = "X-L$additional_libdir"; then
   9989                             haveit=yes
   9990                             break
   9991                           fi
   9992                         done
   9993                         if test -z "$haveit"; then
   9994                           if test -d "$additional_libdir"; then
   9995                                                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
   9996                           fi
   9997                         fi
   9998                       fi
   9999                     fi
   10000                     ;;
   10001                   -R*)
   10002                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   10003                     if test "$enable_rpath" != no; then
   10004                                                                   haveit=
   10005                       for x in $rpathdirs; do
   10006                         if test "X$x" = "X$dir"; then
   10007                           haveit=yes
   10008                           break
   10009                         fi
   10010                       done
   10011                       if test -z "$haveit"; then
   10012                         rpathdirs="$rpathdirs $dir"
   10013                       fi
   10014                                                                   haveit=
   10015                       for x in $ltrpathdirs; do
   10016                         if test "X$x" = "X$dir"; then
   10017                           haveit=yes
   10018                           break
   10019                         fi
   10020                       done
   10021                       if test -z "$haveit"; then
   10022                         ltrpathdirs="$ltrpathdirs $dir"
   10023                       fi
   10024                     fi
   10025                     ;;
   10026                   -l*)
   10027                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   10028                     ;;
   10029                   *.la)
   10030                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   10031                     ;;
   10032                   *)
   10033                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
   10034                     LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
   10035                     ;;
   10036                 esac
   10037               done
   10038             fi
   10039           else
   10040                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   10041             LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
   10042           fi
   10043         fi
   10044       fi
   10045     done
   10046   done
   10047   if test "X$rpathdirs" != "X"; then
   10048     if test -n "$hardcode_libdir_separator"; then
   10049                         alldirs=
   10050       for found_dir in $rpathdirs; do
   10051         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   10052       done
   10053             acl_save_libdir="$libdir"
   10054       libdir="$alldirs"
   10055       eval flag=\"$hardcode_libdir_flag_spec\"
   10056       libdir="$acl_save_libdir"
   10057       LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   10058     else
   10059             for found_dir in $rpathdirs; do
   10060         acl_save_libdir="$libdir"
   10061         libdir="$found_dir"
   10062         eval flag=\"$hardcode_libdir_flag_spec\"
   10063         libdir="$acl_save_libdir"
   10064         LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   10065       done
   10066     fi
   10067   fi
   10068   if test "X$ltrpathdirs" != "X"; then
   10069             for found_dir in $ltrpathdirs; do
   10070       LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
   10071     done
   10072   fi
   10073 
   10074 
   10075         ac_save_CPPFLAGS="$CPPFLAGS"
   10076 
   10077   for element in $INCIPT; do
   10078     haveit=
   10079     for x in $CPPFLAGS; do
   10080 
   10081   acl_save_prefix="$prefix"
   10082   prefix="$acl_final_prefix"
   10083   acl_save_exec_prefix="$exec_prefix"
   10084   exec_prefix="$acl_final_exec_prefix"
   10085   eval x=\"$x\"
   10086   exec_prefix="$acl_save_exec_prefix"
   10087   prefix="$acl_save_prefix"
   10088 
   10089       if test "X$x" = "X$element"; then
   10090         haveit=yes
   10091         break
   10092       fi
   10093     done
   10094     if test -z "$haveit"; then
   10095       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   10096     fi
   10097   done
   10098 
   10099 
   10100   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
   10101 $as_echo_n "checking for libipt... " >&6; }
   10102 if test "${ac_cv_libipt+set}" = set; then :
   10103   $as_echo_n "(cached) " >&6
   10104 else
   10105 
   10106     ac_save_LIBS="$LIBS"
   10107     LIBS="$LIBS $LIBIPT"
   10108     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10109 /* end confdefs.h.  */
   10110 #include "intel-pt.h"
   10111 int
   10112 main ()
   10113 {
   10114 pt_insn_alloc_decoder (0);
   10115   ;
   10116   return 0;
   10117 }
   10118 _ACEOF
   10119 if ac_fn_c_try_link "$LINENO"; then :
   10120   ac_cv_libipt=yes
   10121 else
   10122   ac_cv_libipt=no
   10123 fi
   10124 rm -f core conftest.err conftest.$ac_objext \
   10125     conftest$ac_exeext conftest.$ac_ext
   10126     LIBS="$ac_save_LIBS"
   10127 
   10128 fi
   10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
   10130 $as_echo "$ac_cv_libipt" >&6; }
   10131   if test "$ac_cv_libipt" = yes; then
   10132     HAVE_LIBIPT=yes
   10133 
   10134 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
   10135 
   10136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
   10137 $as_echo_n "checking how to link with libipt... " >&6; }
   10138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
   10139 $as_echo "$LIBIPT" >&6; }
   10140   else
   10141     HAVE_LIBIPT=no
   10142             CPPFLAGS="$ac_save_CPPFLAGS"
   10143     LIBIPT=
   10144     LTLIBIPT=
   10145   fi
   10146 
   10147 
   10148 
   10149 
   10150 
   10151 
   10152   if test "$HAVE_LIBIPT" != yes; then
   10153     if test "$with_intel_pt" = yes; then
   10154       as_fn_error "libipt is missing or unusable" "$LINENO" 5
   10155     else
   10156       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
   10157 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
   10158     fi
   10159   fi
   10160 fi
   10161 
   10162 # ------------------------- #
   10163 # Checks for header files.  #
   10164 # ------------------------- #
   10165 
   10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   10167 $as_echo_n "checking for ANSI C header files... " >&6; }
   10168 if test "${ac_cv_header_stdc+set}" = set; then :
   10169   $as_echo_n "(cached) " >&6
   10170 else
   10171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10172 /* end confdefs.h.  */
   10173 #include <stdlib.h>
   10174 #include <stdarg.h>
   10175 #include <string.h>
   10176 #include <float.h>
   10177 
   10178 int
   10179 main ()
   10180 {
   10181 
   10182   ;
   10183   return 0;
   10184 }
   10185 _ACEOF
   10186 if ac_fn_c_try_compile "$LINENO"; then :
   10187   ac_cv_header_stdc=yes
   10188 else
   10189   ac_cv_header_stdc=no
   10190 fi
   10191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10192 
   10193 if test $ac_cv_header_stdc = yes; then
   10194   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   10195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10196 /* end confdefs.h.  */
   10197 #include <string.h>
   10198 
   10199 _ACEOF
   10200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10201   $EGREP "memchr" >/dev/null 2>&1; then :
   10202 
   10203 else
   10204   ac_cv_header_stdc=no
   10205 fi
   10206 rm -f conftest*
   10207 
   10208 fi
   10209 
   10210 if test $ac_cv_header_stdc = yes; then
   10211   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   10212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10213 /* end confdefs.h.  */
   10214 #include <stdlib.h>
   10215 
   10216 _ACEOF
   10217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10218   $EGREP "free" >/dev/null 2>&1; then :
   10219 
   10220 else
   10221   ac_cv_header_stdc=no
   10222 fi
   10223 rm -f conftest*
   10224 
   10225 fi
   10226 
   10227 if test $ac_cv_header_stdc = yes; then
   10228   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   10229   if test "$cross_compiling" = yes; then :
   10230   :
   10231 else
   10232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10233 /* end confdefs.h.  */
   10234 #include <ctype.h>
   10235 #include <stdlib.h>
   10236 #if ((' ' & 0x0FF) == 0x020)
   10237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   10238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   10239 #else
   10240 # define ISLOWER(c) \
   10241 		   (('a' <= (c) && (c) <= 'i') \
   10242 		     || ('j' <= (c) && (c) <= 'r') \
   10243 		     || ('s' <= (c) && (c) <= 'z'))
   10244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   10245 #endif
   10246 
   10247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   10248 int
   10249 main ()
   10250 {
   10251   int i;
   10252   for (i = 0; i < 256; i++)
   10253     if (XOR (islower (i), ISLOWER (i))
   10254 	|| toupper (i) != TOUPPER (i))
   10255       return 2;
   10256   return 0;
   10257 }
   10258 _ACEOF
   10259 if ac_fn_c_try_run "$LINENO"; then :
   10260 
   10261 else
   10262   ac_cv_header_stdc=no
   10263 fi
   10264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10265   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10266 fi
   10267 
   10268 fi
   10269 fi
   10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   10271 $as_echo "$ac_cv_header_stdc" >&6; }
   10272 if test $ac_cv_header_stdc = yes; then
   10273 
   10274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   10275 
   10276 fi
   10277 
   10278 # elf_hp.h is for HP/UX 64-bit shared library support.
   10279 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
   10280                   thread_db.h \
   10281 		  sys/fault.h \
   10282 		  sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
   10283 		  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
   10284 		  sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
   10285 		  termios.h termio.h \
   10286 		  sgtty.h elf_hp.h \
   10287 		  dlfcn.h
   10288 do :
   10289   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10290 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   10291 eval as_val=\$$as_ac_Header
   10292    if test "x$as_val" = x""yes; then :
   10293   cat >>confdefs.h <<_ACEOF
   10294 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10295 _ACEOF
   10296 
   10297 fi
   10298 
   10299 done
   10300 
   10301 for ac_header in sys/proc.h
   10302 do :
   10303   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
   10304 # include <sys/param.h>
   10305 #endif
   10306 
   10307 "
   10308 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
   10309   cat >>confdefs.h <<_ACEOF
   10310 #define HAVE_SYS_PROC_H 1
   10311 _ACEOF
   10312 
   10313 fi
   10314 
   10315 done
   10316 
   10317 for ac_header in sys/user.h
   10318 do :
   10319   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
   10320 # include <sys/param.h>
   10321 #endif
   10322 
   10323 "
   10324 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
   10325   cat >>confdefs.h <<_ACEOF
   10326 #define HAVE_SYS_USER_H 1
   10327 _ACEOF
   10328 
   10329 fi
   10330 
   10331 done
   10332 
   10333 
   10334 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
   10335 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
   10336 # think that we don't have <curses.h> if we're using GCC.
   10337 case $host_os in
   10338   solaris2.[789])
   10339     if test "$GCC" = yes; then
   10340 
   10341 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
   10342 
   10343     fi ;;
   10344 esac
   10345 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
   10346 do :
   10347   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   10349 eval as_val=\$$as_ac_Header
   10350    if test "x$as_val" = x""yes; then :
   10351   cat >>confdefs.h <<_ACEOF
   10352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10353 _ACEOF
   10354 
   10355 fi
   10356 
   10357 done
   10358 
   10359 for ac_header in term.h
   10360 do :
   10361   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
   10362 # include <curses.h>
   10363 #endif
   10364 
   10365 "
   10366 if test "x$ac_cv_header_term_h" = x""yes; then :
   10367   cat >>confdefs.h <<_ACEOF
   10368 #define HAVE_TERM_H 1
   10369 _ACEOF
   10370 
   10371 fi
   10372 
   10373 done
   10374 
   10375 
   10376 # ------------------------- #
   10377 # Checks for declarations.  #
   10378 # ------------------------- #
   10379 
   10380 
   10381   # Check for presence and size of long long.
   10382   ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   10383 if test "x$ac_cv_type_long_long" = x""yes; then :
   10384 
   10385 cat >>confdefs.h <<_ACEOF
   10386 #define HAVE_LONG_LONG 1
   10387 _ACEOF
   10388 
   10389 # The cast to long int works around a bug in the HP C Compiler
   10390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   10391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   10392 # This bug is HP SR number 8606223364.
   10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   10394 $as_echo_n "checking size of long long... " >&6; }
   10395 if test "${ac_cv_sizeof_long_long+set}" = set; then :
   10396   $as_echo_n "(cached) " >&6
   10397 else
   10398   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   10399 
   10400 else
   10401   if test "$ac_cv_type_long_long" = yes; then
   10402      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   10403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   10404 { as_fn_set_status 77
   10405 as_fn_error "cannot compute sizeof (long long)
   10406 See \`config.log' for more details." "$LINENO" 5; }; }
   10407    else
   10408      ac_cv_sizeof_long_long=0
   10409    fi
   10410 fi
   10411 
   10412 fi
   10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   10414 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   10415 
   10416 
   10417 
   10418 cat >>confdefs.h <<_ACEOF
   10419 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   10420 _ACEOF
   10421 
   10422 
   10423 fi
   10424 
   10425 
   10426   ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
   10427 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
   10428   ac_have_decl=1
   10429 else
   10430   ac_have_decl=0
   10431 fi
   10432 
   10433 cat >>confdefs.h <<_ACEOF
   10434 #define HAVE_DECL_BASENAME $ac_have_decl
   10435 _ACEOF
   10436 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
   10437 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
   10438   ac_have_decl=1
   10439 else
   10440   ac_have_decl=0
   10441 fi
   10442 
   10443 cat >>confdefs.h <<_ACEOF
   10444 #define HAVE_DECL_FFS $ac_have_decl
   10445 _ACEOF
   10446 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
   10447 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
   10448   ac_have_decl=1
   10449 else
   10450   ac_have_decl=0
   10451 fi
   10452 
   10453 cat >>confdefs.h <<_ACEOF
   10454 #define HAVE_DECL_ASPRINTF $ac_have_decl
   10455 _ACEOF
   10456 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
   10457 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
   10458   ac_have_decl=1
   10459 else
   10460   ac_have_decl=0
   10461 fi
   10462 
   10463 cat >>confdefs.h <<_ACEOF
   10464 #define HAVE_DECL_VASPRINTF $ac_have_decl
   10465 _ACEOF
   10466 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   10467 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
   10468   ac_have_decl=1
   10469 else
   10470   ac_have_decl=0
   10471 fi
   10472 
   10473 cat >>confdefs.h <<_ACEOF
   10474 #define HAVE_DECL_SNPRINTF $ac_have_decl
   10475 _ACEOF
   10476 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
   10477 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
   10478   ac_have_decl=1
   10479 else
   10480   ac_have_decl=0
   10481 fi
   10482 
   10483 cat >>confdefs.h <<_ACEOF
   10484 #define HAVE_DECL_VSNPRINTF $ac_have_decl
   10485 _ACEOF
   10486 
   10487   ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
   10488 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
   10489   ac_have_decl=1
   10490 else
   10491   ac_have_decl=0
   10492 fi
   10493 
   10494 cat >>confdefs.h <<_ACEOF
   10495 #define HAVE_DECL_STRTOL $ac_have_decl
   10496 _ACEOF
   10497 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
   10498 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
   10499   ac_have_decl=1
   10500 else
   10501   ac_have_decl=0
   10502 fi
   10503 
   10504 cat >>confdefs.h <<_ACEOF
   10505 #define HAVE_DECL_STRTOUL $ac_have_decl
   10506 _ACEOF
   10507 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
   10508 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
   10509   ac_have_decl=1
   10510 else
   10511   ac_have_decl=0
   10512 fi
   10513 
   10514 cat >>confdefs.h <<_ACEOF
   10515 #define HAVE_DECL_STRTOLL $ac_have_decl
   10516 _ACEOF
   10517 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
   10518 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
   10519   ac_have_decl=1
   10520 else
   10521   ac_have_decl=0
   10522 fi
   10523 
   10524 cat >>confdefs.h <<_ACEOF
   10525 #define HAVE_DECL_STRTOULL $ac_have_decl
   10526 _ACEOF
   10527 
   10528   ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
   10529 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
   10530   ac_have_decl=1
   10531 else
   10532   ac_have_decl=0
   10533 fi
   10534 
   10535 cat >>confdefs.h <<_ACEOF
   10536 #define HAVE_DECL_STRVERSCMP $ac_have_decl
   10537 _ACEOF
   10538 
   10539 
   10540 
   10541 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
   10542 if test "x$ac_cv_have_decl_free" = x""yes; then :
   10543   ac_have_decl=1
   10544 else
   10545   ac_have_decl=0
   10546 fi
   10547 
   10548 cat >>confdefs.h <<_ACEOF
   10549 #define HAVE_DECL_FREE $ac_have_decl
   10550 _ACEOF
   10551 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
   10552 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
   10553   ac_have_decl=1
   10554 else
   10555   ac_have_decl=0
   10556 fi
   10557 
   10558 cat >>confdefs.h <<_ACEOF
   10559 #define HAVE_DECL_MALLOC $ac_have_decl
   10560 _ACEOF
   10561 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
   10562 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
   10563   ac_have_decl=1
   10564 else
   10565   ac_have_decl=0
   10566 fi
   10567 
   10568 cat >>confdefs.h <<_ACEOF
   10569 #define HAVE_DECL_REALLOC $ac_have_decl
   10570 _ACEOF
   10571 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   10572 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
   10573   ac_have_decl=1
   10574 else
   10575   ac_have_decl=0
   10576 fi
   10577 
   10578 cat >>confdefs.h <<_ACEOF
   10579 #define HAVE_DECL_SNPRINTF $ac_have_decl
   10580 _ACEOF
   10581 
   10582 
   10583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
   10584 $as_echo_n "checking for LC_MESSAGES... " >&6; }
   10585 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
   10586   $as_echo_n "(cached) " >&6
   10587 else
   10588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10589 /* end confdefs.h.  */
   10590 #include <locale.h>
   10591 int
   10592 main ()
   10593 {
   10594 return LC_MESSAGES
   10595   ;
   10596   return 0;
   10597 }
   10598 _ACEOF
   10599 if ac_fn_c_try_link "$LINENO"; then :
   10600   am_cv_val_LC_MESSAGES=yes
   10601 else
   10602   am_cv_val_LC_MESSAGES=no
   10603 fi
   10604 rm -f core conftest.err conftest.$ac_objext \
   10605     conftest$ac_exeext conftest.$ac_ext
   10606 fi
   10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
   10608 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
   10609   if test $am_cv_val_LC_MESSAGES = yes; then
   10610 
   10611 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
   10612 
   10613   fi
   10614 
   10615 
   10616 # ----------------------- #
   10617 # Checks for structures.  #
   10618 # ----------------------- #
   10619 
   10620 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
   10621 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
   10622 
   10623 cat >>confdefs.h <<_ACEOF
   10624 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
   10625 _ACEOF
   10626 
   10627 
   10628 fi
   10629 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   10630 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
   10631 
   10632 cat >>confdefs.h <<_ACEOF
   10633 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   10634 _ACEOF
   10635 
   10636 
   10637 fi
   10638 
   10639 
   10640 # ------------------ #
   10641 # Checks for types.  #
   10642 # ------------------ #
   10643 
   10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
   10645 $as_echo_n "checking return type of signal handlers... " >&6; }
   10646 if test "${ac_cv_type_signal+set}" = set; then :
   10647   $as_echo_n "(cached) " >&6
   10648 else
   10649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10650 /* end confdefs.h.  */
   10651 #include <sys/types.h>
   10652 #include <signal.h>
   10653 
   10654 int
   10655 main ()
   10656 {
   10657 return *(signal (0, 0)) (0) == 1;
   10658   ;
   10659   return 0;
   10660 }
   10661 _ACEOF
   10662 if ac_fn_c_try_compile "$LINENO"; then :
   10663   ac_cv_type_signal=int
   10664 else
   10665   ac_cv_type_signal=void
   10666 fi
   10667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10668 fi
   10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
   10670 $as_echo "$ac_cv_type_signal" >&6; }
   10671 
   10672 cat >>confdefs.h <<_ACEOF
   10673 #define RETSIGTYPE $ac_cv_type_signal
   10674 _ACEOF
   10675 
   10676 
   10677 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
   10678 #include <sys/socket.h>
   10679 
   10680 "
   10681 if test "x$ac_cv_type_socklen_t" = x""yes; then :
   10682 
   10683 cat >>confdefs.h <<_ACEOF
   10684 #define HAVE_SOCKLEN_T 1
   10685 _ACEOF
   10686 
   10687 
   10688 fi
   10689 
   10690 
   10691 # ------------------------------------- #
   10692 # Checks for compiler characteristics.  #
   10693 # ------------------------------------- #
   10694 
   10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   10696 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   10697 if test "${ac_cv_c_const+set}" = set; then :
   10698   $as_echo_n "(cached) " >&6
   10699 else
   10700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10701 /* end confdefs.h.  */
   10702 
   10703 int
   10704 main ()
   10705 {
   10706 /* FIXME: Include the comments suggested by Paul. */
   10707 #ifndef __cplusplus
   10708   /* Ultrix mips cc rejects this.  */
   10709   typedef int charset[2];
   10710   const charset cs;
   10711   /* SunOS 4.1.1 cc rejects this.  */
   10712   char const *const *pcpcc;
   10713   char **ppc;
   10714   /* NEC SVR4.0.2 mips cc rejects this.  */
   10715   struct point {int x, y;};
   10716   static struct point const zero = {0,0};
   10717   /* AIX XL C 1.02.0.0 rejects this.
   10718      It does not let you subtract one const X* pointer from another in
   10719      an arm of an if-expression whose if-part is not a constant
   10720      expression */
   10721   const char *g = "string";
   10722   pcpcc = &g + (g ? g-g : 0);
   10723   /* HPUX 7.0 cc rejects these. */
   10724   ++pcpcc;
   10725   ppc = (char**) pcpcc;
   10726   pcpcc = (char const *const *) ppc;
   10727   { /* SCO 3.2v4 cc rejects this.  */
   10728     char *t;
   10729     char const *s = 0 ? (char *) 0 : (char const *) 0;
   10730 
   10731     *t++ = 0;
   10732     if (s) return 0;
   10733   }
   10734   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   10735     int x[] = {25, 17};
   10736     const int *foo = &x[0];
   10737     ++foo;
   10738   }
   10739   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   10740     typedef const int *iptr;
   10741     iptr p = 0;
   10742     ++p;
   10743   }
   10744   { /* AIX XL C 1.02.0.0 rejects this saying
   10745        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   10746     struct s { int j; const int *ap[3]; };
   10747     struct s *b; b->j = 5;
   10748   }
   10749   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   10750     const int foo = 10;
   10751     if (!foo) return 0;
   10752   }
   10753   return !cs[0] && !zero.x;
   10754 #endif
   10755 
   10756   ;
   10757   return 0;
   10758 }
   10759 _ACEOF
   10760 if ac_fn_c_try_compile "$LINENO"; then :
   10761   ac_cv_c_const=yes
   10762 else
   10763   ac_cv_c_const=no
   10764 fi
   10765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10766 fi
   10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   10768 $as_echo "$ac_cv_c_const" >&6; }
   10769 if test $ac_cv_c_const = no; then
   10770 
   10771 $as_echo "#define const /**/" >>confdefs.h
   10772 
   10773 fi
   10774 
   10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   10776 $as_echo_n "checking for inline... " >&6; }
   10777 if test "${ac_cv_c_inline+set}" = set; then :
   10778   $as_echo_n "(cached) " >&6
   10779 else
   10780   ac_cv_c_inline=no
   10781 for ac_kw in inline __inline__ __inline; do
   10782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10783 /* end confdefs.h.  */
   10784 #ifndef __cplusplus
   10785 typedef int foo_t;
   10786 static $ac_kw foo_t static_foo () {return 0; }
   10787 $ac_kw foo_t foo () {return 0; }
   10788 #endif
   10789 
   10790 _ACEOF
   10791 if ac_fn_c_try_compile "$LINENO"; then :
   10792   ac_cv_c_inline=$ac_kw
   10793 fi
   10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10795   test "$ac_cv_c_inline" != no && break
   10796 done
   10797 
   10798 fi
   10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   10800 $as_echo "$ac_cv_c_inline" >&6; }
   10801 
   10802 case $ac_cv_c_inline in
   10803   inline | yes) ;;
   10804   *)
   10805     case $ac_cv_c_inline in
   10806       no) ac_val=;;
   10807       *) ac_val=$ac_cv_c_inline;;
   10808     esac
   10809     cat >>confdefs.h <<_ACEOF
   10810 #ifndef __cplusplus
   10811 #define inline $ac_val
   10812 #endif
   10813 _ACEOF
   10814     ;;
   10815 esac
   10816 
   10817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   10818 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   10819 if test "${ac_cv_c_bigendian+set}" = set; then :
   10820   $as_echo_n "(cached) " >&6
   10821 else
   10822   ac_cv_c_bigendian=unknown
   10823     # See if we're dealing with a universal compiler.
   10824     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10825 /* end confdefs.h.  */
   10826 #ifndef __APPLE_CC__
   10827 	       not a universal capable compiler
   10828 	     #endif
   10829 	     typedef int dummy;
   10830 
   10831 _ACEOF
   10832 if ac_fn_c_try_compile "$LINENO"; then :
   10833 
   10834 	# Check for potential -arch flags.  It is not universal unless
   10835 	# there are at least two -arch flags with different values.
   10836 	ac_arch=
   10837 	ac_prev=
   10838 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   10839 	 if test -n "$ac_prev"; then
   10840 	   case $ac_word in
   10841 	     i?86 | x86_64 | ppc | ppc64)
   10842 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   10843 		 ac_arch=$ac_word
   10844 	       else
   10845 		 ac_cv_c_bigendian=universal
   10846 		 break
   10847 	       fi
   10848 	       ;;
   10849 	   esac
   10850 	   ac_prev=
   10851 	 elif test "x$ac_word" = "x-arch"; then
   10852 	   ac_prev=arch
   10853 	 fi
   10854        done
   10855 fi
   10856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10857     if test $ac_cv_c_bigendian = unknown; then
   10858       # See if sys/param.h defines the BYTE_ORDER macro.
   10859       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10860 /* end confdefs.h.  */
   10861 #include <sys/types.h>
   10862 	     #include <sys/param.h>
   10863 
   10864 int
   10865 main ()
   10866 {
   10867 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   10868 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   10869 		     && LITTLE_ENDIAN)
   10870 	      bogus endian macros
   10871 	     #endif
   10872 
   10873   ;
   10874   return 0;
   10875 }
   10876 _ACEOF
   10877 if ac_fn_c_try_compile "$LINENO"; then :
   10878   # It does; now see whether it defined to BIG_ENDIAN or not.
   10879 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10880 /* end confdefs.h.  */
   10881 #include <sys/types.h>
   10882 		#include <sys/param.h>
   10883 
   10884 int
   10885 main ()
   10886 {
   10887 #if BYTE_ORDER != BIG_ENDIAN
   10888 		 not big endian
   10889 		#endif
   10890 
   10891   ;
   10892   return 0;
   10893 }
   10894 _ACEOF
   10895 if ac_fn_c_try_compile "$LINENO"; then :
   10896   ac_cv_c_bigendian=yes
   10897 else
   10898   ac_cv_c_bigendian=no
   10899 fi
   10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10901 fi
   10902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10903     fi
   10904     if test $ac_cv_c_bigendian = unknown; then
   10905       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   10906       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10907 /* end confdefs.h.  */
   10908 #include <limits.h>
   10909 
   10910 int
   10911 main ()
   10912 {
   10913 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   10914 	      bogus endian macros
   10915 	     #endif
   10916 
   10917   ;
   10918   return 0;
   10919 }
   10920 _ACEOF
   10921 if ac_fn_c_try_compile "$LINENO"; then :
   10922   # It does; now see whether it defined to _BIG_ENDIAN or not.
   10923 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10924 /* end confdefs.h.  */
   10925 #include <limits.h>
   10926 
   10927 int
   10928 main ()
   10929 {
   10930 #ifndef _BIG_ENDIAN
   10931 		 not big endian
   10932 		#endif
   10933 
   10934   ;
   10935   return 0;
   10936 }
   10937 _ACEOF
   10938 if ac_fn_c_try_compile "$LINENO"; then :
   10939   ac_cv_c_bigendian=yes
   10940 else
   10941   ac_cv_c_bigendian=no
   10942 fi
   10943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10944 fi
   10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10946     fi
   10947     if test $ac_cv_c_bigendian = unknown; then
   10948       # Compile a test program.
   10949       if test "$cross_compiling" = yes; then :
   10950   # Try to guess by grepping values from an object file.
   10951 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10952 /* end confdefs.h.  */
   10953 short int ascii_mm[] =
   10954 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   10955 		short int ascii_ii[] =
   10956 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   10957 		int use_ascii (int i) {
   10958 		  return ascii_mm[i] + ascii_ii[i];
   10959 		}
   10960 		short int ebcdic_ii[] =
   10961 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   10962 		short int ebcdic_mm[] =
   10963 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   10964 		int use_ebcdic (int i) {
   10965 		  return ebcdic_mm[i] + ebcdic_ii[i];
   10966 		}
   10967 		extern int foo;
   10968 
   10969 int
   10970 main ()
   10971 {
   10972 return use_ascii (foo) == use_ebcdic (foo);
   10973   ;
   10974   return 0;
   10975 }
   10976 _ACEOF
   10977 if ac_fn_c_try_compile "$LINENO"; then :
   10978   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   10979 	      ac_cv_c_bigendian=yes
   10980 	    fi
   10981 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   10982 	      if test "$ac_cv_c_bigendian" = unknown; then
   10983 		ac_cv_c_bigendian=no
   10984 	      else
   10985 		# finding both strings is unlikely to happen, but who knows?
   10986 		ac_cv_c_bigendian=unknown
   10987 	      fi
   10988 	    fi
   10989 fi
   10990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10991 else
   10992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10993 /* end confdefs.h.  */
   10994 $ac_includes_default
   10995 int
   10996 main ()
   10997 {
   10998 
   10999 	     /* Are we little or big endian?  From Harbison&Steele.  */
   11000 	     union
   11001 	     {
   11002 	       long int l;
   11003 	       char c[sizeof (long int)];
   11004 	     } u;
   11005 	     u.l = 1;
   11006 	     return u.c[sizeof (long int) - 1] == 1;
   11007 
   11008   ;
   11009   return 0;
   11010 }
   11011 _ACEOF
   11012 if ac_fn_c_try_run "$LINENO"; then :
   11013   ac_cv_c_bigendian=no
   11014 else
   11015   ac_cv_c_bigendian=yes
   11016 fi
   11017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11018   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11019 fi
   11020 
   11021     fi
   11022 fi
   11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   11024 $as_echo "$ac_cv_c_bigendian" >&6; }
   11025  case $ac_cv_c_bigendian in #(
   11026    yes)
   11027      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   11028 ;; #(
   11029    no)
   11030       ;; #(
   11031    universal)
   11032 
   11033 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   11034 
   11035      ;; #(
   11036    *)
   11037      as_fn_error "unknown endianness
   11038  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   11039  esac
   11040 
   11041 
   11042 # ------------------------------ #
   11043 # Checks for library functions.  #
   11044 # ------------------------------ #
   11045 
   11046 for ac_header in stdlib.h unistd.h
   11047 do :
   11048   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11049 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   11050 eval as_val=\$$as_ac_Header
   11051    if test "x$as_val" = x""yes; then :
   11052   cat >>confdefs.h <<_ACEOF
   11053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11054 _ACEOF
   11055 
   11056 fi
   11057 
   11058 done
   11059 
   11060 for ac_func in getpagesize
   11061 do :
   11062   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   11063 if test "x$ac_cv_func_getpagesize" = x""yes; then :
   11064   cat >>confdefs.h <<_ACEOF
   11065 #define HAVE_GETPAGESIZE 1
   11066 _ACEOF
   11067 
   11068 fi
   11069 done
   11070 
   11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
   11072 $as_echo_n "checking for working mmap... " >&6; }
   11073 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
   11074   $as_echo_n "(cached) " >&6
   11075 else
   11076   if test "$cross_compiling" = yes; then :
   11077   ac_cv_func_mmap_fixed_mapped=no
   11078 else
   11079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11080 /* end confdefs.h.  */
   11081 $ac_includes_default
   11082 /* malloc might have been renamed as rpl_malloc. */
   11083 #undef malloc
   11084 
   11085 /* Thanks to Mike Haertel and Jim Avera for this test.
   11086    Here is a matrix of mmap possibilities:
   11087 	mmap private not fixed
   11088 	mmap private fixed at somewhere currently unmapped
   11089 	mmap private fixed at somewhere already mapped
   11090 	mmap shared not fixed
   11091 	mmap shared fixed at somewhere currently unmapped
   11092 	mmap shared fixed at somewhere already mapped
   11093    For private mappings, we should verify that changes cannot be read()
   11094    back from the file, nor mmap's back from the file at a different
   11095    address.  (There have been systems where private was not correctly
   11096    implemented like the infamous i386 svr4.0, and systems where the
   11097    VM page cache was not coherent with the file system buffer cache
   11098    like early versions of FreeBSD and possibly contemporary NetBSD.)
   11099    For shared mappings, we should conversely verify that changes get
   11100    propagated back to all the places they're supposed to be.
   11101 
   11102    Grep wants private fixed already mapped.
   11103    The main things grep needs to know about mmap are:
   11104    * does it exist and is it safe to write into the mmap'd area
   11105    * how to use it (BSD variants)  */
   11106 
   11107 #include <fcntl.h>
   11108 #include <sys/mman.h>
   11109 
   11110 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
   11111 char *malloc ();
   11112 #endif
   11113 
   11114 /* This mess was copied from the GNU getpagesize.h.  */
   11115 #ifndef HAVE_GETPAGESIZE
   11116 /* Assume that all systems that can run configure have sys/param.h.  */
   11117 # ifndef HAVE_SYS_PARAM_H
   11118 #  define HAVE_SYS_PARAM_H 1
   11119 # endif
   11120 
   11121 # ifdef _SC_PAGESIZE
   11122 #  define getpagesize() sysconf(_SC_PAGESIZE)
   11123 # else /* no _SC_PAGESIZE */
   11124 #  ifdef HAVE_SYS_PARAM_H
   11125 #   include <sys/param.h>
   11126 #   ifdef EXEC_PAGESIZE
   11127 #    define getpagesize() EXEC_PAGESIZE
   11128 #   else /* no EXEC_PAGESIZE */
   11129 #    ifdef NBPG
   11130 #     define getpagesize() NBPG * CLSIZE
   11131 #     ifndef CLSIZE
   11132 #      define CLSIZE 1
   11133 #     endif /* no CLSIZE */
   11134 #    else /* no NBPG */
   11135 #     ifdef NBPC
   11136 #      define getpagesize() NBPC
   11137 #     else /* no NBPC */
   11138 #      ifdef PAGESIZE
   11139 #       define getpagesize() PAGESIZE
   11140 #      endif /* PAGESIZE */
   11141 #     endif /* no NBPC */
   11142 #    endif /* no NBPG */
   11143 #   endif /* no EXEC_PAGESIZE */
   11144 #  else /* no HAVE_SYS_PARAM_H */
   11145 #   define getpagesize() 8192	/* punt totally */
   11146 #  endif /* no HAVE_SYS_PARAM_H */
   11147 # endif /* no _SC_PAGESIZE */
   11148 
   11149 #endif /* no HAVE_GETPAGESIZE */
   11150 
   11151 int
   11152 main ()
   11153 {
   11154   char *data, *data2, *data3;
   11155   int i, pagesize;
   11156   int fd;
   11157 
   11158   pagesize = getpagesize ();
   11159 
   11160   /* First, make a file with some known garbage in it. */
   11161   data = (char *) malloc (pagesize);
   11162   if (!data)
   11163     return 1;
   11164   for (i = 0; i < pagesize; ++i)
   11165     *(data + i) = rand ();
   11166   umask (0);
   11167   fd = creat ("conftest.mmap", 0600);
   11168   if (fd < 0)
   11169     return 1;
   11170   if (write (fd, data, pagesize) != pagesize)
   11171     return 1;
   11172   close (fd);
   11173 
   11174   /* Next, try to mmap the file at a fixed address which already has
   11175      something else allocated at it.  If we can, also make sure that
   11176      we see the same garbage.  */
   11177   fd = open ("conftest.mmap", O_RDWR);
   11178   if (fd < 0)
   11179     return 1;
   11180   data2 = (char *) malloc (2 * pagesize);
   11181   if (!data2)
   11182     return 1;
   11183   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   11184   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   11185 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   11186     return 1;
   11187   for (i = 0; i < pagesize; ++i)
   11188     if (*(data + i) != *(data2 + i))
   11189       return 1;
   11190 
   11191   /* Finally, make sure that changes to the mapped area do not
   11192      percolate back to the file as seen by read().  (This is a bug on
   11193      some variants of i386 svr4.0.)  */
   11194   for (i = 0; i < pagesize; ++i)
   11195     *(data2 + i) = *(data2 + i) + 1;
   11196   data3 = (char *) malloc (pagesize);
   11197   if (!data3)
   11198     return 1;
   11199   if (read (fd, data3, pagesize) != pagesize)
   11200     return 1;
   11201   for (i = 0; i < pagesize; ++i)
   11202     if (*(data + i) != *(data3 + i))
   11203       return 1;
   11204   close (fd);
   11205   return 0;
   11206 }
   11207 _ACEOF
   11208 if ac_fn_c_try_run "$LINENO"; then :
   11209   ac_cv_func_mmap_fixed_mapped=yes
   11210 else
   11211   ac_cv_func_mmap_fixed_mapped=no
   11212 fi
   11213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11214   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11215 fi
   11216 
   11217 fi
   11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
   11219 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
   11220 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   11221 
   11222 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
   11223 
   11224 fi
   11225 rm -f conftest.mmap
   11226 
   11227 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   11228 if test "x$ac_cv_type_pid_t" = x""yes; then :
   11229 
   11230 else
   11231 
   11232 cat >>confdefs.h <<_ACEOF
   11233 #define pid_t int
   11234 _ACEOF
   11235 
   11236 fi
   11237 
   11238 for ac_header in vfork.h
   11239 do :
   11240   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
   11241 if test "x$ac_cv_header_vfork_h" = x""yes; then :
   11242   cat >>confdefs.h <<_ACEOF
   11243 #define HAVE_VFORK_H 1
   11244 _ACEOF
   11245 
   11246 fi
   11247 
   11248 done
   11249 
   11250 for ac_func in fork vfork
   11251 do :
   11252   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11254 eval as_val=\$$as_ac_var
   11255    if test "x$as_val" = x""yes; then :
   11256   cat >>confdefs.h <<_ACEOF
   11257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11258 _ACEOF
   11259 
   11260 fi
   11261 done
   11262 
   11263 if test "x$ac_cv_func_fork" = xyes; then
   11264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   11265 $as_echo_n "checking for working fork... " >&6; }
   11266 if test "${ac_cv_func_fork_works+set}" = set; then :
   11267   $as_echo_n "(cached) " >&6
   11268 else
   11269   if test "$cross_compiling" = yes; then :
   11270   ac_cv_func_fork_works=cross
   11271 else
   11272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11273 /* end confdefs.h.  */
   11274 $ac_includes_default
   11275 int
   11276 main ()
   11277 {
   11278 
   11279 	  /* By Ruediger Kuhlmann. */
   11280 	  return fork () < 0;
   11281 
   11282   ;
   11283   return 0;
   11284 }
   11285 _ACEOF
   11286 if ac_fn_c_try_run "$LINENO"; then :
   11287   ac_cv_func_fork_works=yes
   11288 else
   11289   ac_cv_func_fork_works=no
   11290 fi
   11291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11292   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11293 fi
   11294 
   11295 fi
   11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   11297 $as_echo "$ac_cv_func_fork_works" >&6; }
   11298 
   11299 else
   11300   ac_cv_func_fork_works=$ac_cv_func_fork
   11301 fi
   11302 if test "x$ac_cv_func_fork_works" = xcross; then
   11303   case $host in
   11304     *-*-amigaos* | *-*-msdosdjgpp*)
   11305       # Override, as these systems have only a dummy fork() stub
   11306       ac_cv_func_fork_works=no
   11307       ;;
   11308     *)
   11309       ac_cv_func_fork_works=yes
   11310       ;;
   11311   esac
   11312   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   11313 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   11314 fi
   11315 ac_cv_func_vfork_works=$ac_cv_func_vfork
   11316 if test "x$ac_cv_func_vfork" = xyes; then
   11317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   11318 $as_echo_n "checking for working vfork... " >&6; }
   11319 if test "${ac_cv_func_vfork_works+set}" = set; then :
   11320   $as_echo_n "(cached) " >&6
   11321 else
   11322   if test "$cross_compiling" = yes; then :
   11323   ac_cv_func_vfork_works=cross
   11324 else
   11325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11326 /* end confdefs.h.  */
   11327 /* Thanks to Paul Eggert for this test.  */
   11328 $ac_includes_default
   11329 #include <sys/wait.h>
   11330 #ifdef HAVE_VFORK_H
   11331 # include <vfork.h>
   11332 #endif
   11333 /* On some sparc systems, changes by the child to local and incoming
   11334    argument registers are propagated back to the parent.  The compiler
   11335    is told about this with #include <vfork.h>, but some compilers
   11336    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   11337    static variable whose address is put into a register that is
   11338    clobbered by the vfork.  */
   11339 static void
   11340 #ifdef __cplusplus
   11341 sparc_address_test (int arg)
   11342 # else
   11343 sparc_address_test (arg) int arg;
   11344 #endif
   11345 {
   11346   static pid_t child;
   11347   if (!child) {
   11348     child = vfork ();
   11349     if (child < 0) {
   11350       perror ("vfork");
   11351       _exit(2);
   11352     }
   11353     if (!child) {
   11354       arg = getpid();
   11355       write(-1, "", 0);
   11356       _exit (arg);
   11357     }
   11358   }
   11359 }
   11360 
   11361 int
   11362 main ()
   11363 {
   11364   pid_t parent = getpid ();
   11365   pid_t child;
   11366 
   11367   sparc_address_test (0);
   11368 
   11369   child = vfork ();
   11370 
   11371   if (child == 0) {
   11372     /* Here is another test for sparc vfork register problems.  This
   11373        test uses lots of local variables, at least as many local
   11374        variables as main has allocated so far including compiler
   11375        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   11376        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   11377        reuse the register of parent for one of the local variables,
   11378        since it will think that parent can't possibly be used any more
   11379        in this routine.  Assigning to the local variable will thus
   11380        munge parent in the parent process.  */
   11381     pid_t
   11382       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   11383       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   11384     /* Convince the compiler that p..p7 are live; otherwise, it might
   11385        use the same hardware register for all 8 local variables.  */
   11386     if (p != p1 || p != p2 || p != p3 || p != p4
   11387 	|| p != p5 || p != p6 || p != p7)
   11388       _exit(1);
   11389 
   11390     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   11391        from child file descriptors.  If the child closes a descriptor
   11392        before it execs or exits, this munges the parent's descriptor
   11393        as well.  Test for this by closing stdout in the child.  */
   11394     _exit(close(fileno(stdout)) != 0);
   11395   } else {
   11396     int status;
   11397     struct stat st;
   11398 
   11399     while (wait(&status) != child)
   11400       ;
   11401     return (
   11402 	 /* Was there some problem with vforking?  */
   11403 	 child < 0
   11404 
   11405 	 /* Did the child fail?  (This shouldn't happen.)  */
   11406 	 || status
   11407 
   11408 	 /* Did the vfork/compiler bug occur?  */
   11409 	 || parent != getpid()
   11410 
   11411 	 /* Did the file descriptor bug occur?  */
   11412 	 || fstat(fileno(stdout), &st) != 0
   11413 	 );
   11414   }
   11415 }
   11416 _ACEOF
   11417 if ac_fn_c_try_run "$LINENO"; then :
   11418   ac_cv_func_vfork_works=yes
   11419 else
   11420   ac_cv_func_vfork_works=no
   11421 fi
   11422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11423   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11424 fi
   11425 
   11426 fi
   11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   11428 $as_echo "$ac_cv_func_vfork_works" >&6; }
   11429 
   11430 fi;
   11431 if test "x$ac_cv_func_fork_works" = xcross; then
   11432   ac_cv_func_vfork_works=$ac_cv_func_vfork
   11433   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   11434 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   11435 fi
   11436 
   11437 if test "x$ac_cv_func_vfork_works" = xyes; then
   11438 
   11439 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   11440 
   11441 else
   11442 
   11443 $as_echo "#define vfork fork" >>confdefs.h
   11444 
   11445 fi
   11446 if test "x$ac_cv_func_fork_works" = xyes; then
   11447 
   11448 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   11449 
   11450 fi
   11451 
   11452 for ac_func in getauxval getrusage getuid getgid \
   11453 		pipe poll pread pread64 pwrite resize_term \
   11454 		sbrk setpgid setpgrp setsid \
   11455 		sigaction sigprocmask sigsetmask socketpair \
   11456 		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
   11457 		setrlimit getrlimit posix_madvise waitpid \
   11458 		ptrace64 sigaltstack mkdtemp setns
   11459 do :
   11460   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11461 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11462 eval as_val=\$$as_ac_var
   11463    if test "x$as_val" = x""yes; then :
   11464   cat >>confdefs.h <<_ACEOF
   11465 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11466 _ACEOF
   11467 
   11468 fi
   11469 done
   11470 
   11471 
   11472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   11473 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   11474 if test "${am_cv_langinfo_codeset+set}" = set; then :
   11475   $as_echo_n "(cached) " >&6
   11476 else
   11477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11478 /* end confdefs.h.  */
   11479 #include <langinfo.h>
   11480 int
   11481 main ()
   11482 {
   11483 char* cs = nl_langinfo(CODESET);
   11484   ;
   11485   return 0;
   11486 }
   11487 _ACEOF
   11488 if ac_fn_c_try_link "$LINENO"; then :
   11489   am_cv_langinfo_codeset=yes
   11490 else
   11491   am_cv_langinfo_codeset=no
   11492 fi
   11493 rm -f core conftest.err conftest.$ac_objext \
   11494     conftest$ac_exeext conftest.$ac_ext
   11495 
   11496 fi
   11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   11498 $as_echo "$am_cv_langinfo_codeset" >&6; }
   11499   if test $am_cv_langinfo_codeset = yes; then
   11500 
   11501 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   11502 
   11503   fi
   11504 
   11505 
   11506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   11507 $as_echo_n "checking for ANSI C header files... " >&6; }
   11508 if test "${ac_cv_header_stdc+set}" = set; then :
   11509   $as_echo_n "(cached) " >&6
   11510 else
   11511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11512 /* end confdefs.h.  */
   11513 #include <stdlib.h>
   11514 #include <stdarg.h>
   11515 #include <string.h>
   11516 #include <float.h>
   11517 
   11518 int
   11519 main ()
   11520 {
   11521 
   11522   ;
   11523   return 0;
   11524 }
   11525 _ACEOF
   11526 if ac_fn_c_try_compile "$LINENO"; then :
   11527   ac_cv_header_stdc=yes
   11528 else
   11529   ac_cv_header_stdc=no
   11530 fi
   11531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11532 
   11533 if test $ac_cv_header_stdc = yes; then
   11534   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   11535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11536 /* end confdefs.h.  */
   11537 #include <string.h>
   11538 
   11539 _ACEOF
   11540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11541   $EGREP "memchr" >/dev/null 2>&1; then :
   11542 
   11543 else
   11544   ac_cv_header_stdc=no
   11545 fi
   11546 rm -f conftest*
   11547 
   11548 fi
   11549 
   11550 if test $ac_cv_header_stdc = yes; then
   11551   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   11552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11553 /* end confdefs.h.  */
   11554 #include <stdlib.h>
   11555 
   11556 _ACEOF
   11557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11558   $EGREP "free" >/dev/null 2>&1; then :
   11559 
   11560 else
   11561   ac_cv_header_stdc=no
   11562 fi
   11563 rm -f conftest*
   11564 
   11565 fi
   11566 
   11567 if test $ac_cv_header_stdc = yes; then
   11568   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   11569   if test "$cross_compiling" = yes; then :
   11570   :
   11571 else
   11572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11573 /* end confdefs.h.  */
   11574 #include <ctype.h>
   11575 #include <stdlib.h>
   11576 #if ((' ' & 0x0FF) == 0x020)
   11577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   11578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   11579 #else
   11580 # define ISLOWER(c) \
   11581 		   (('a' <= (c) && (c) <= 'i') \
   11582 		     || ('j' <= (c) && (c) <= 'r') \
   11583 		     || ('s' <= (c) && (c) <= 'z'))
   11584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   11585 #endif
   11586 
   11587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   11588 int
   11589 main ()
   11590 {
   11591   int i;
   11592   for (i = 0; i < 256; i++)
   11593     if (XOR (islower (i), ISLOWER (i))
   11594 	|| toupper (i) != TOUPPER (i))
   11595       return 2;
   11596   return 0;
   11597 }
   11598 _ACEOF
   11599 if ac_fn_c_try_run "$LINENO"; then :
   11600 
   11601 else
   11602   ac_cv_header_stdc=no
   11603 fi
   11604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11605   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11606 fi
   11607 
   11608 fi
   11609 fi
   11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   11611 $as_echo "$ac_cv_header_stdc" >&6; }
   11612 if test $ac_cv_header_stdc = yes; then
   11613 
   11614 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   11615 
   11616 fi
   11617 
   11618   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   11619 # for constant arguments.  Useless!
   11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   11621 $as_echo_n "checking for working alloca.h... " >&6; }
   11622 if test "${ac_cv_working_alloca_h+set}" = set; then :
   11623   $as_echo_n "(cached) " >&6
   11624 else
   11625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11626 /* end confdefs.h.  */
   11627 #include <alloca.h>
   11628 int
   11629 main ()
   11630 {
   11631 char *p = (char *) alloca (2 * sizeof (int));
   11632 			  if (p) return 0;
   11633   ;
   11634   return 0;
   11635 }
   11636 _ACEOF
   11637 if ac_fn_c_try_link "$LINENO"; then :
   11638   ac_cv_working_alloca_h=yes
   11639 else
   11640   ac_cv_working_alloca_h=no
   11641 fi
   11642 rm -f core conftest.err conftest.$ac_objext \
   11643     conftest$ac_exeext conftest.$ac_ext
   11644 fi
   11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   11646 $as_echo "$ac_cv_working_alloca_h" >&6; }
   11647 if test $ac_cv_working_alloca_h = yes; then
   11648 
   11649 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   11650 
   11651 fi
   11652 
   11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   11654 $as_echo_n "checking for alloca... " >&6; }
   11655 if test "${ac_cv_func_alloca_works+set}" = set; then :
   11656   $as_echo_n "(cached) " >&6
   11657 else
   11658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11659 /* end confdefs.h.  */
   11660 #ifdef __GNUC__
   11661 # define alloca __builtin_alloca
   11662 #else
   11663 # ifdef _MSC_VER
   11664 #  include <malloc.h>
   11665 #  define alloca _alloca
   11666 # else
   11667 #  ifdef HAVE_ALLOCA_H
   11668 #   include <alloca.h>
   11669 #  else
   11670 #   ifdef _AIX
   11671  #pragma alloca
   11672 #   else
   11673 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   11674 char *alloca ();
   11675 #    endif
   11676 #   endif
   11677 #  endif
   11678 # endif
   11679 #endif
   11680 
   11681 int
   11682 main ()
   11683 {
   11684 char *p = (char *) alloca (1);
   11685 				    if (p) return 0;
   11686   ;
   11687   return 0;
   11688 }
   11689 _ACEOF
   11690 if ac_fn_c_try_link "$LINENO"; then :
   11691   ac_cv_func_alloca_works=yes
   11692 else
   11693   ac_cv_func_alloca_works=no
   11694 fi
   11695 rm -f core conftest.err conftest.$ac_objext \
   11696     conftest$ac_exeext conftest.$ac_ext
   11697 fi
   11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   11699 $as_echo "$ac_cv_func_alloca_works" >&6; }
   11700 
   11701 if test $ac_cv_func_alloca_works = yes; then
   11702 
   11703 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   11704 
   11705 else
   11706   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   11707 # that cause trouble.  Some versions do not even contain alloca or
   11708 # contain a buggy version.  If you still want to use their alloca,
   11709 # use ar to extract alloca.o from them instead of compiling alloca.c.
   11710 
   11711 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   11712 
   11713 $as_echo "#define C_ALLOCA 1" >>confdefs.h
   11714 
   11715 
   11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
   11717 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   11718 if test "${ac_cv_os_cray+set}" = set; then :
   11719   $as_echo_n "(cached) " >&6
   11720 else
   11721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11722 /* end confdefs.h.  */
   11723 #if defined CRAY && ! defined CRAY2
   11724 webecray
   11725 #else
   11726 wenotbecray
   11727 #endif
   11728 
   11729 _ACEOF
   11730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11731   $EGREP "webecray" >/dev/null 2>&1; then :
   11732   ac_cv_os_cray=yes
   11733 else
   11734   ac_cv_os_cray=no
   11735 fi
   11736 rm -f conftest*
   11737 
   11738 fi
   11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   11740 $as_echo "$ac_cv_os_cray" >&6; }
   11741 if test $ac_cv_os_cray = yes; then
   11742   for ac_func in _getb67 GETB67 getb67; do
   11743     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11744 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11745 eval as_val=\$$as_ac_var
   11746    if test "x$as_val" = x""yes; then :
   11747 
   11748 cat >>confdefs.h <<_ACEOF
   11749 #define CRAY_STACKSEG_END $ac_func
   11750 _ACEOF
   11751 
   11752     break
   11753 fi
   11754 
   11755   done
   11756 fi
   11757 
   11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   11759 $as_echo_n "checking stack direction for C alloca... " >&6; }
   11760 if test "${ac_cv_c_stack_direction+set}" = set; then :
   11761   $as_echo_n "(cached) " >&6
   11762 else
   11763   if test "$cross_compiling" = yes; then :
   11764   ac_cv_c_stack_direction=0
   11765 else
   11766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11767 /* end confdefs.h.  */
   11768 $ac_includes_default
   11769 int
   11770 find_stack_direction ()
   11771 {
   11772   static char *addr = 0;
   11773   auto char dummy;
   11774   if (addr == 0)
   11775     {
   11776       addr = &dummy;
   11777       return find_stack_direction ();
   11778     }
   11779   else
   11780     return (&dummy > addr) ? 1 : -1;
   11781 }
   11782 
   11783 int
   11784 main ()
   11785 {
   11786   return find_stack_direction () < 0;
   11787 }
   11788 _ACEOF
   11789 if ac_fn_c_try_run "$LINENO"; then :
   11790   ac_cv_c_stack_direction=1
   11791 else
   11792   ac_cv_c_stack_direction=-1
   11793 fi
   11794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11795   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11796 fi
   11797 
   11798 fi
   11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   11800 $as_echo "$ac_cv_c_stack_direction" >&6; }
   11801 cat >>confdefs.h <<_ACEOF
   11802 #define STACK_DIRECTION $ac_cv_c_stack_direction
   11803 _ACEOF
   11804 
   11805 
   11806 fi
   11807 
   11808 
   11809 
   11810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   11811 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   11812 if test "${am_cv_langinfo_codeset+set}" = set; then :
   11813   $as_echo_n "(cached) " >&6
   11814 else
   11815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11816 /* end confdefs.h.  */
   11817 #include <sys/param.h>
   11818 #define _KMEMUSER
   11819 #include <sys/lwp.h>
   11820 #include <langinfo.h>
   11821 int
   11822 main ()
   11823 {
   11824 char* cs = nl_langinfo(CODESET);
   11825   ;
   11826   return 0;
   11827 }
   11828 _ACEOF
   11829 if ac_fn_c_try_link "$LINENO"; then :
   11830   am_cv_langinfo_codeset=yes
   11831 else
   11832   am_cv_langinfo_codeset=no
   11833 fi
   11834 rm -f core conftest.err conftest.$ac_objext \
   11835     conftest$ac_exeext conftest.$ac_ext
   11836 
   11837 fi
   11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   11839 $as_echo "$am_cv_langinfo_codeset" >&6; }
   11840   if test $am_cv_langinfo_codeset = yes; then
   11841 
   11842 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   11843 
   11844   fi
   11845 
   11846 
   11847   for ac_header in linux/perf_event.h locale.h memory.h signal.h 		   sys/resource.h sys/socket.h sys/syscall.h 		   sys/un.h sys/wait.h 		   thread_db.h wait.h
   11848 do :
   11849   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11850 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   11851 eval as_val=\$$as_ac_Header
   11852    if test "x$as_val" = x""yes; then :
   11853   cat >>confdefs.h <<_ACEOF
   11854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11855 _ACEOF
   11856 
   11857 fi
   11858 
   11859 done
   11860 
   11861 
   11862   for ac_func in fdwalk getrlimit pipe pipe2 socketpair
   11863 do :
   11864   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11865 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11866 eval as_val=\$$as_ac_var
   11867    if test "x$as_val" = x""yes; then :
   11868   cat >>confdefs.h <<_ACEOF
   11869 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11870 _ACEOF
   11871 
   11872 fi
   11873 done
   11874 
   11875 
   11876   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
   11877 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
   11878   ac_have_decl=1
   11879 else
   11880   ac_have_decl=0
   11881 fi
   11882 
   11883 cat >>confdefs.h <<_ACEOF
   11884 #define HAVE_DECL_STRERROR $ac_have_decl
   11885 _ACEOF
   11886 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
   11887 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
   11888   ac_have_decl=1
   11889 else
   11890   ac_have_decl=0
   11891 fi
   11892 
   11893 cat >>confdefs.h <<_ACEOF
   11894 #define HAVE_DECL_STRSTR $ac_have_decl
   11895 _ACEOF
   11896 
   11897 
   11898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
   11899 $as_echo_n "checking for sigsetjmp... " >&6; }
   11900 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
   11901   $as_echo_n "(cached) " >&6
   11902 else
   11903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11904 /* end confdefs.h.  */
   11905 
   11906 #include <setjmp.h>
   11907 
   11908 int
   11909 main ()
   11910 {
   11911 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
   11912   ;
   11913   return 0;
   11914 }
   11915 _ACEOF
   11916 if ac_fn_c_try_compile "$LINENO"; then :
   11917   gdb_cv_func_sigsetjmp=yes
   11918 else
   11919   gdb_cv_func_sigsetjmp=no
   11920 fi
   11921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11922 fi
   11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
   11924 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
   11925 if test $gdb_cv_func_sigsetjmp = yes; then
   11926 
   11927 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
   11928 
   11929 fi
   11930 
   11931 
   11932 # Check the return and argument types of ptrace.  No canned test for
   11933 # this, so roll our own.
   11934 gdb_ptrace_headers='
   11935 #include <sys/types.h>
   11936 #if HAVE_SYS_PTRACE_H
   11937 # include <sys/ptrace.h>
   11938 #endif
   11939 #if HAVE_UNISTD_H
   11940 # include <unistd.h>
   11941 #endif
   11942 '
   11943 # There is no point in checking if we don't have a prototype.
   11944 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
   11945 "
   11946 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
   11947   ac_have_decl=1
   11948 else
   11949   ac_have_decl=0
   11950 fi
   11951 
   11952 cat >>confdefs.h <<_ACEOF
   11953 #define HAVE_DECL_PTRACE $ac_have_decl
   11954 _ACEOF
   11955 if test $ac_have_decl = 1; then :
   11956 
   11957 else
   11958 
   11959   : ${gdb_cv_func_ptrace_ret='int'}
   11960   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   11961 
   11962 fi
   11963 
   11964 # Check return type.  Varargs (used on GNU/Linux) conflict with the
   11965 # empty argument list, so check for that explicitly.
   11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
   11967 $as_echo_n "checking return type of ptrace... " >&6; }
   11968 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
   11969   $as_echo_n "(cached) " >&6
   11970 else
   11971   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11972 /* end confdefs.h.  */
   11973 $gdb_ptrace_headers
   11974 int
   11975 main ()
   11976 {
   11977 extern long ptrace (enum __ptrace_request, ...);
   11978   ;
   11979   return 0;
   11980 }
   11981 _ACEOF
   11982 if ac_fn_c_try_compile "$LINENO"; then :
   11983   gdb_cv_func_ptrace_ret='long'
   11984 else
   11985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11986 /* end confdefs.h.  */
   11987 $gdb_ptrace_headers
   11988 int
   11989 main ()
   11990 {
   11991 extern int ptrace ();
   11992   ;
   11993   return 0;
   11994 }
   11995 _ACEOF
   11996 if ac_fn_c_try_compile "$LINENO"; then :
   11997   gdb_cv_func_ptrace_ret='int'
   11998 else
   11999   gdb_cv_func_ptrace_ret='long'
   12000 fi
   12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12002 fi
   12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12004 fi
   12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
   12006 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
   12007 
   12008 cat >>confdefs.h <<_ACEOF
   12009 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
   12010 _ACEOF
   12011 
   12012 # Check argument types.
   12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
   12014 $as_echo_n "checking types of arguments for ptrace... " >&6; }
   12015 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
   12016   $as_echo_n "(cached) " >&6
   12017 else
   12018 
   12019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12020 /* end confdefs.h.  */
   12021 $gdb_ptrace_headers
   12022 int
   12023 main ()
   12024 {
   12025 extern long ptrace (enum __ptrace_request, ...);
   12026   ;
   12027   return 0;
   12028 }
   12029 _ACEOF
   12030 if ac_fn_c_try_compile "$LINENO"; then :
   12031   gdb_cv_func_ptrace_args='int,int,long,long'
   12032 else
   12033 
   12034 for gdb_arg1 in 'int' 'long'; do
   12035  for gdb_arg2 in 'pid_t' 'int' 'long'; do
   12036   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
   12037    for gdb_arg4 in 'int' 'long' 'void *'; do
   12038      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12039 /* end confdefs.h.  */
   12040 $gdb_ptrace_headers
   12041 int
   12042 main ()
   12043 {
   12044 
   12045 extern $gdb_cv_func_ptrace_ret
   12046   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
   12047 
   12048   ;
   12049   return 0;
   12050 }
   12051 _ACEOF
   12052 if ac_fn_c_try_compile "$LINENO"; then :
   12053   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
   12054     break 4;
   12055 fi
   12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12057     for gdb_arg5 in 'int *' 'int' 'long'; do
   12058      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12059 /* end confdefs.h.  */
   12060 $gdb_ptrace_headers
   12061 int
   12062 main ()
   12063 {
   12064 
   12065 extern $gdb_cv_func_ptrace_ret
   12066   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
   12067 
   12068   ;
   12069   return 0;
   12070 }
   12071 _ACEOF
   12072 if ac_fn_c_try_compile "$LINENO"; then :
   12073 
   12074 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
   12075     break 5;
   12076 fi
   12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12078     done
   12079    done
   12080   done
   12081  done
   12082 done
   12083 # Provide a safe default value.
   12084 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   12085 
   12086 fi
   12087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12088 fi
   12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
   12090 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
   12091 ac_save_IFS=$IFS; IFS=','
   12092 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
   12093 IFS=$ac_save_IFS
   12094 shift
   12095 
   12096 cat >>confdefs.h <<_ACEOF
   12097 #define PTRACE_TYPE_ARG3 $3
   12098 _ACEOF
   12099 
   12100 
   12101 cat >>confdefs.h <<_ACEOF
   12102 #define PTRACE_TYPE_ARG4 $4
   12103 _ACEOF
   12104 
   12105 if test -n "$5"; then
   12106 
   12107 cat >>confdefs.h <<_ACEOF
   12108 #define PTRACE_TYPE_ARG5 $5
   12109 _ACEOF
   12110 
   12111 fi
   12112 
   12113 if test "$cross_compiling" = no; then
   12114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   12115 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   12116 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
   12117   $as_echo_n "(cached) " >&6
   12118 else
   12119   if test "$cross_compiling" = yes; then :
   12120   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
   12121 else
   12122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12123 /* end confdefs.h.  */
   12124 $ac_includes_default
   12125 int
   12126 main ()
   12127 {
   12128 /* If this system has a BSD-style setpgrp which takes arguments,
   12129   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
   12130   exit successfully. */
   12131   return setpgrp (1,1) != -1;
   12132   ;
   12133   return 0;
   12134 }
   12135 _ACEOF
   12136 if ac_fn_c_try_run "$LINENO"; then :
   12137   ac_cv_func_setpgrp_void=no
   12138 else
   12139   ac_cv_func_setpgrp_void=yes
   12140 fi
   12141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12142   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12143 fi
   12144 
   12145 fi
   12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   12147 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   12148 if test $ac_cv_func_setpgrp_void = yes; then
   12149 
   12150 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   12151 
   12152 fi
   12153 
   12154 else
   12155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   12156 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   12157 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
   12158   $as_echo_n "(cached) " >&6
   12159 else
   12160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12161 /* end confdefs.h.  */
   12162 
   12163 #include <unistd.h>
   12164 
   12165 int
   12166 main ()
   12167 {
   12168 
   12169   if (setpgrp(1,1) == -1)
   12170     exit (0);
   12171   else
   12172     exit (1);
   12173 
   12174   ;
   12175   return 0;
   12176 }
   12177 _ACEOF
   12178 if ac_fn_c_try_compile "$LINENO"; then :
   12179   ac_cv_func_setpgrp_void=no
   12180 else
   12181   ac_cv_func_setpgrp_void=yes
   12182 fi
   12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12184 fi
   12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   12186 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   12187 if test $ac_cv_func_setpgrp_void = yes; then
   12188   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   12189 
   12190 fi
   12191 fi
   12192 
   12193 # Assume we'll default to using the included libiberty regex.
   12194 gdb_use_included_regex=yes
   12195 
   12196 # However, if the system regex is GNU regex, then default to *not*
   12197 # using the included regex.
   12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
   12199 $as_echo_n "checking for GNU regex... " >&6; }
   12200 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
   12201   $as_echo_n "(cached) " >&6
   12202 else
   12203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12204 /* end confdefs.h.  */
   12205 #include <gnu-versions.h>
   12206 int
   12207 main ()
   12208 {
   12209 #define REGEX_INTERFACE_VERSION 1
   12210 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
   12211 # error "Version mismatch"
   12212 #endif
   12213   ;
   12214   return 0;
   12215 }
   12216 _ACEOF
   12217 if ac_fn_c_try_compile "$LINENO"; then :
   12218   gdb_cv_have_gnu_regex=yes
   12219 else
   12220   gdb_cv_have_gnu_regex=no
   12221 fi
   12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12223 fi
   12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
   12225 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
   12226 if test $gdb_cv_have_gnu_regex = yes; then
   12227   gdb_use_included_regex=no
   12228 fi
   12229 
   12230 
   12231 # Check whether --with-included-regex was given.
   12232 if test "${with_included_regex+set}" = set; then :
   12233   withval=$with_included_regex; gdb_with_regex=$withval
   12234 else
   12235   gdb_with_regex=$gdb_use_included_regex
   12236 fi
   12237 
   12238 if test "$gdb_with_regex" = yes; then
   12239 
   12240 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
   12241 
   12242 fi
   12243 
   12244 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
   12245 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
   12246 #include <sys/proc.h>
   12247 
   12248 "
   12249 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
   12250 
   12251 cat >>confdefs.h <<_ACEOF
   12252 #define HAVE_STRUCT_THREAD_TD_PCB 1
   12253 _ACEOF
   12254 
   12255 
   12256 fi
   12257 
   12258 
   12259 # See if <sys/lwp.h> defines `struct lwp`.
   12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
   12261 $as_echo_n "checking for struct lwp... " >&6; }
   12262 if test "${gdb_cv_struct_lwp+set}" = set; then :
   12263   $as_echo_n "(cached) " >&6
   12264 else
   12265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12266 /* end confdefs.h.  */
   12267 #define _KMEMUSER
   12268 #include <sys/param.h>
   12269 #include <sys/lwp.h>
   12270 int
   12271 main ()
   12272 {
   12273 struct lwp l;
   12274   ;
   12275   return 0;
   12276 }
   12277 _ACEOF
   12278 if ac_fn_c_try_compile "$LINENO"; then :
   12279   gdb_cv_struct_lwp=yes
   12280 else
   12281   gdb_cv_struct_lwp=no
   12282 fi
   12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12284 fi
   12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
   12286 $as_echo "$gdb_cv_struct_lwp" >&6; }
   12287 if test $gdb_cv_struct_lwp = yes; then
   12288 
   12289 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
   12290 
   12291 fi
   12292 
   12293 # See if <machine/reg.h> degines `struct reg'.
   12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
   12295 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
   12296 if test "${gdb_cv_struct_reg+set}" = set; then :
   12297   $as_echo_n "(cached) " >&6
   12298 else
   12299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12300 /* end confdefs.h.  */
   12301 #include <sys/types.h>
   12302 #include <machine/reg.h>
   12303 int
   12304 main ()
   12305 {
   12306 struct reg r;
   12307   ;
   12308   return 0;
   12309 }
   12310 _ACEOF
   12311 if ac_fn_c_try_compile "$LINENO"; then :
   12312   gdb_cv_struct_reg=yes
   12313 else
   12314   gdb_cv_struct_reg=no
   12315 fi
   12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12317 fi
   12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
   12319 $as_echo "$gdb_cv_struct_reg" >&6; }
   12320 if test $gdb_cv_struct_reg = yes; then
   12321 
   12322 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
   12323 
   12324 fi
   12325 
   12326 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
   12327 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
   12328 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
   12329 "
   12330 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
   12331 
   12332 cat >>confdefs.h <<_ACEOF
   12333 #define HAVE_STRUCT_REG_R_FS 1
   12334 _ACEOF
   12335 
   12336 
   12337 fi
   12338 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
   12339 "
   12340 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
   12341 
   12342 cat >>confdefs.h <<_ACEOF
   12343 #define HAVE_STRUCT_REG_R_GS 1
   12344 _ACEOF
   12345 
   12346 
   12347 fi
   12348 
   12349 
   12350 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
   12351 # Older amd64 Linux's don't have the fs_base and gs_base members of
   12352 # `struct user_regs_struct'.
   12353 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
   12354 "
   12355 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
   12356 
   12357 cat >>confdefs.h <<_ACEOF
   12358 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
   12359 _ACEOF
   12360 
   12361 
   12362 fi
   12363 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
   12364 "
   12365 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
   12366 
   12367 cat >>confdefs.h <<_ACEOF
   12368 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
   12369 _ACEOF
   12370 
   12371 
   12372 fi
   12373 
   12374 
   12375 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
   12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
   12377 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
   12378 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
   12379   $as_echo_n "(cached) " >&6
   12380 else
   12381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12382 /* end confdefs.h.  */
   12383 #include <sys/ptrace.h>
   12384 int
   12385 main ()
   12386 {
   12387 PTRACE_GETREGS;
   12388   ;
   12389   return 0;
   12390 }
   12391 _ACEOF
   12392 if ac_fn_c_try_compile "$LINENO"; then :
   12393   gdb_cv_have_ptrace_getregs=yes
   12394 else
   12395   gdb_cv_have_ptrace_getregs=no
   12396 fi
   12397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12398 fi
   12399 
   12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
   12401 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
   12402 if test $gdb_cv_have_ptrace_getregs = yes; then
   12403 
   12404 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
   12405 
   12406 fi
   12407 
   12408 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
   12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
   12410 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
   12411 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
   12412   $as_echo_n "(cached) " >&6
   12413 else
   12414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12415 /* end confdefs.h.  */
   12416 #include <sys/ptrace.h>
   12417 int
   12418 main ()
   12419 {
   12420 PTRACE_GETFPXREGS;
   12421   ;
   12422   return 0;
   12423 }
   12424 _ACEOF
   12425 if ac_fn_c_try_compile "$LINENO"; then :
   12426   gdb_cv_have_ptrace_getfpxregs=yes
   12427 else
   12428   gdb_cv_have_ptrace_getfpxregs=no
   12429 fi
   12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12431 fi
   12432 
   12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
   12434 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
   12435 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
   12436 
   12437 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
   12438 
   12439 fi
   12440 
   12441 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
   12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
   12443 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
   12444 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
   12445   $as_echo_n "(cached) " >&6
   12446 else
   12447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12448 /* end confdefs.h.  */
   12449 #include <sys/types.h>
   12450 #include <sys/ptrace.h>
   12451 int
   12452 main ()
   12453 {
   12454 PT_GETDBREGS;
   12455   ;
   12456   return 0;
   12457 }
   12458 _ACEOF
   12459 if ac_fn_c_try_compile "$LINENO"; then :
   12460   gdb_cv_have_pt_getdbregs=yes
   12461 else
   12462   gdb_cv_have_pt_getdbregs=no
   12463 fi
   12464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12465 fi
   12466 
   12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
   12468 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
   12469 if test $gdb_cv_have_pt_getdbregs = yes; then
   12470 
   12471 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
   12472 
   12473 fi
   12474 
   12475 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
   12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
   12477 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
   12478 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
   12479   $as_echo_n "(cached) " >&6
   12480 else
   12481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12482 /* end confdefs.h.  */
   12483 #include <sys/types.h>
   12484 #include <sys/ptrace.h>
   12485 int
   12486 main ()
   12487 {
   12488 PT_GETXMMREGS;
   12489   ;
   12490   return 0;
   12491 }
   12492 _ACEOF
   12493 if ac_fn_c_try_compile "$LINENO"; then :
   12494   gdb_cv_have_pt_getxmmregs=yes
   12495 else
   12496   gdb_cv_have_pt_getxmmregs=no
   12497 fi
   12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12499 fi
   12500 
   12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
   12502 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
   12503 if test $gdb_cv_have_pt_getxmmregs = yes; then
   12504 
   12505 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
   12506 
   12507 fi
   12508 
   12509 # Detect which type of /proc is in use, such as for Solaris.
   12510 
   12511 if test "${target}" = "${host}"; then
   12512   case "${host}" in
   12513   *-*-sysv4.2* | *-*-sysv5* )
   12514 
   12515 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
   12516 
   12517       ;;
   12518   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
   12519 
   12520 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
   12521 
   12522       ;;
   12523   mips-sgi-irix5*)
   12524       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
   12525 
   12526 $as_echo "#define _KMEMUSER 1" >>confdefs.h
   12527 
   12528       ;;
   12529   esac
   12530 fi
   12531 
   12532 if test "$ac_cv_header_sys_procfs_h" = yes; then
   12533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
   12534 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
   12535  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
   12536   $as_echo_n "(cached) " >&6
   12537 else
   12538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12539 /* end confdefs.h.  */
   12540 
   12541 #define _SYSCALL32
   12542 /* Needed for new procfs interface on sparc-solaris.  */
   12543 #define _STRUCTURED_PROC 1
   12544 #include <sys/procfs.h>
   12545 int
   12546 main ()
   12547 {
   12548 gregset_t avar
   12549   ;
   12550   return 0;
   12551 }
   12552 _ACEOF
   12553 if ac_fn_c_try_compile "$LINENO"; then :
   12554   bfd_cv_have_sys_procfs_type_gregset_t=yes
   12555 else
   12556   bfd_cv_have_sys_procfs_type_gregset_t=no
   12557 
   12558 fi
   12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12560 fi
   12561 
   12562  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
   12563 
   12564 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
   12565 
   12566  fi
   12567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
   12568 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
   12569 
   12570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
   12571 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
   12572  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
   12573   $as_echo_n "(cached) " >&6
   12574 else
   12575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12576 /* end confdefs.h.  */
   12577 
   12578 #define _SYSCALL32
   12579 /* Needed for new procfs interface on sparc-solaris.  */
   12580 #define _STRUCTURED_PROC 1
   12581 #include <sys/procfs.h>
   12582 int
   12583 main ()
   12584 {
   12585 fpregset_t avar
   12586   ;
   12587   return 0;
   12588 }
   12589 _ACEOF
   12590 if ac_fn_c_try_compile "$LINENO"; then :
   12591   bfd_cv_have_sys_procfs_type_fpregset_t=yes
   12592 else
   12593   bfd_cv_have_sys_procfs_type_fpregset_t=no
   12594 
   12595 fi
   12596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12597 fi
   12598 
   12599  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
   12600 
   12601 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
   12602 
   12603  fi
   12604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
   12605 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
   12606 
   12607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
   12608 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
   12609  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
   12610   $as_echo_n "(cached) " >&6
   12611 else
   12612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12613 /* end confdefs.h.  */
   12614 
   12615 #define _SYSCALL32
   12616 /* Needed for new procfs interface on sparc-solaris.  */
   12617 #define _STRUCTURED_PROC 1
   12618 #include <sys/procfs.h>
   12619 int
   12620 main ()
   12621 {
   12622 prgregset_t avar
   12623   ;
   12624   return 0;
   12625 }
   12626 _ACEOF
   12627 if ac_fn_c_try_compile "$LINENO"; then :
   12628   bfd_cv_have_sys_procfs_type_prgregset_t=yes
   12629 else
   12630   bfd_cv_have_sys_procfs_type_prgregset_t=no
   12631 
   12632 fi
   12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12634 fi
   12635 
   12636  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
   12637 
   12638 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
   12639 
   12640  fi
   12641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
   12642 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
   12643 
   12644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
   12645 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
   12646  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
   12647   $as_echo_n "(cached) " >&6
   12648 else
   12649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12650 /* end confdefs.h.  */
   12651 
   12652 #define _SYSCALL32
   12653 /* Needed for new procfs interface on sparc-solaris.  */
   12654 #define _STRUCTURED_PROC 1
   12655 #include <sys/procfs.h>
   12656 int
   12657 main ()
   12658 {
   12659 prfpregset_t avar
   12660   ;
   12661   return 0;
   12662 }
   12663 _ACEOF
   12664 if ac_fn_c_try_compile "$LINENO"; then :
   12665   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
   12666 else
   12667   bfd_cv_have_sys_procfs_type_prfpregset_t=no
   12668 
   12669 fi
   12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12671 fi
   12672 
   12673  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   12674 
   12675 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
   12676 
   12677  fi
   12678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
   12679 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
   12680 
   12681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
   12682 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
   12683  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
   12684   $as_echo_n "(cached) " >&6
   12685 else
   12686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12687 /* end confdefs.h.  */
   12688 
   12689 #define _SYSCALL32
   12690 /* Needed for new procfs interface on sparc-solaris.  */
   12691 #define _STRUCTURED_PROC 1
   12692 #include <sys/procfs.h>
   12693 int
   12694 main ()
   12695 {
   12696 prgregset32_t avar
   12697   ;
   12698   return 0;
   12699 }
   12700 _ACEOF
   12701 if ac_fn_c_try_compile "$LINENO"; then :
   12702   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
   12703 else
   12704   bfd_cv_have_sys_procfs_type_prgregset32_t=no
   12705 
   12706 fi
   12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12708 fi
   12709 
   12710  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
   12711 
   12712 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
   12713 
   12714  fi
   12715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
   12716 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
   12717 
   12718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
   12719 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
   12720  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
   12721   $as_echo_n "(cached) " >&6
   12722 else
   12723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12724 /* end confdefs.h.  */
   12725 
   12726 #define _SYSCALL32
   12727 /* Needed for new procfs interface on sparc-solaris.  */
   12728 #define _STRUCTURED_PROC 1
   12729 #include <sys/procfs.h>
   12730 int
   12731 main ()
   12732 {
   12733 lwpid_t avar
   12734   ;
   12735   return 0;
   12736 }
   12737 _ACEOF
   12738 if ac_fn_c_try_compile "$LINENO"; then :
   12739   bfd_cv_have_sys_procfs_type_lwpid_t=yes
   12740 else
   12741   bfd_cv_have_sys_procfs_type_lwpid_t=no
   12742 
   12743 fi
   12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12745 fi
   12746 
   12747  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
   12748 
   12749 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
   12750 
   12751  fi
   12752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
   12753 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
   12754 
   12755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
   12756 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
   12757  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
   12758   $as_echo_n "(cached) " >&6
   12759 else
   12760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12761 /* end confdefs.h.  */
   12762 
   12763 #define _SYSCALL32
   12764 /* Needed for new procfs interface on sparc-solaris.  */
   12765 #define _STRUCTURED_PROC 1
   12766 #include <sys/procfs.h>
   12767 int
   12768 main ()
   12769 {
   12770 psaddr_t avar
   12771   ;
   12772   return 0;
   12773 }
   12774 _ACEOF
   12775 if ac_fn_c_try_compile "$LINENO"; then :
   12776   bfd_cv_have_sys_procfs_type_psaddr_t=yes
   12777 else
   12778   bfd_cv_have_sys_procfs_type_psaddr_t=no
   12779 
   12780 fi
   12781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12782 fi
   12783 
   12784  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
   12785 
   12786 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
   12787 
   12788  fi
   12789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
   12790 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
   12791 
   12792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
   12793 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
   12794  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
   12795   $as_echo_n "(cached) " >&6
   12796 else
   12797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12798 /* end confdefs.h.  */
   12799 
   12800 #define _SYSCALL32
   12801 /* Needed for new procfs interface on sparc-solaris.  */
   12802 #define _STRUCTURED_PROC 1
   12803 #include <sys/procfs.h>
   12804 int
   12805 main ()
   12806 {
   12807 prsysent_t avar
   12808   ;
   12809   return 0;
   12810 }
   12811 _ACEOF
   12812 if ac_fn_c_try_compile "$LINENO"; then :
   12813   bfd_cv_have_sys_procfs_type_prsysent_t=yes
   12814 else
   12815   bfd_cv_have_sys_procfs_type_prsysent_t=no
   12816 
   12817 fi
   12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12819 fi
   12820 
   12821  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
   12822 
   12823 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
   12824 
   12825  fi
   12826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
   12827 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
   12828 
   12829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
   12830 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
   12831  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
   12832   $as_echo_n "(cached) " >&6
   12833 else
   12834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12835 /* end confdefs.h.  */
   12836 
   12837 #define _SYSCALL32
   12838 /* Needed for new procfs interface on sparc-solaris.  */
   12839 #define _STRUCTURED_PROC 1
   12840 #include <sys/procfs.h>
   12841 int
   12842 main ()
   12843 {
   12844 pr_sigset_t avar
   12845   ;
   12846   return 0;
   12847 }
   12848 _ACEOF
   12849 if ac_fn_c_try_compile "$LINENO"; then :
   12850   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
   12851 else
   12852   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
   12853 
   12854 fi
   12855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12856 fi
   12857 
   12858  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
   12859 
   12860 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
   12861 
   12862  fi
   12863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
   12864 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
   12865 
   12866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
   12867 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
   12868  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
   12869   $as_echo_n "(cached) " >&6
   12870 else
   12871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12872 /* end confdefs.h.  */
   12873 
   12874 #define _SYSCALL32
   12875 /* Needed for new procfs interface on sparc-solaris.  */
   12876 #define _STRUCTURED_PROC 1
   12877 #include <sys/procfs.h>
   12878 int
   12879 main ()
   12880 {
   12881 pr_sigaction64_t avar
   12882   ;
   12883   return 0;
   12884 }
   12885 _ACEOF
   12886 if ac_fn_c_try_compile "$LINENO"; then :
   12887   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
   12888 else
   12889   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
   12890 
   12891 fi
   12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12893 fi
   12894 
   12895  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
   12896 
   12897 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
   12898 
   12899  fi
   12900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
   12901 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
   12902 
   12903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
   12904 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
   12905  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
   12906   $as_echo_n "(cached) " >&6
   12907 else
   12908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12909 /* end confdefs.h.  */
   12910 
   12911 #define _SYSCALL32
   12912 /* Needed for new procfs interface on sparc-solaris.  */
   12913 #define _STRUCTURED_PROC 1
   12914 #include <sys/procfs.h>
   12915 int
   12916 main ()
   12917 {
   12918 pr_siginfo64_t avar
   12919   ;
   12920   return 0;
   12921 }
   12922 _ACEOF
   12923 if ac_fn_c_try_compile "$LINENO"; then :
   12924   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
   12925 else
   12926   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
   12927 
   12928 fi
   12929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12930 fi
   12931 
   12932  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
   12933 
   12934 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
   12935 
   12936  fi
   12937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
   12938 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
   12939 
   12940 
   12941 
   12942 
   12943 
   12944   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   12945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
   12946 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
   12947     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
   12948   $as_echo_n "(cached) " >&6
   12949 else
   12950   if test "$cross_compiling" = yes; then :
   12951   gdb_cv_prfpregset_t_broken=yes
   12952 else
   12953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12954 /* end confdefs.h.  */
   12955 #include <sys/procfs.h>
   12956        int main ()
   12957        {
   12958          if (sizeof (prfpregset_t) == sizeof (void *))
   12959            return 1;
   12960          return 0;
   12961        }
   12962 _ACEOF
   12963 if ac_fn_c_try_run "$LINENO"; then :
   12964   gdb_cv_prfpregset_t_broken=no
   12965 else
   12966   gdb_cv_prfpregset_t_broken=yes
   12967 fi
   12968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12969   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12970 fi
   12971 
   12972 fi
   12973 
   12974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
   12975 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
   12976     if test $gdb_cv_prfpregset_t_broken = yes; then
   12977 
   12978 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
   12979 
   12980     fi
   12981   fi
   12982 fi
   12983 
   12984 # Check if the compiler supports the `long long' type.
   12985 
   12986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
   12987 $as_echo_n "checking for long long support in compiler... " >&6; }
   12988 if test "${gdb_cv_c_long_long+set}" = set; then :
   12989   $as_echo_n "(cached) " >&6
   12990 else
   12991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12992 /* end confdefs.h.  */
   12993 extern long long foo;
   12994 int
   12995 main ()
   12996 {
   12997 switch (foo & 2) { case 0: return 1; }
   12998   ;
   12999   return 0;
   13000 }
   13001 _ACEOF
   13002 if ac_fn_c_try_compile "$LINENO"; then :
   13003   gdb_cv_c_long_long=yes
   13004 else
   13005   gdb_cv_c_long_long=no
   13006 fi
   13007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13008 fi
   13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
   13010 $as_echo "$gdb_cv_c_long_long" >&6; }
   13011 if test $gdb_cv_c_long_long != yes; then
   13012   # libdecnumber requires long long.
   13013   as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
   13014 fi
   13015 
   13016 # Check if the compiler and runtime support printing long longs.
   13017 
   13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
   13019 $as_echo_n "checking for long long support in printf... " >&6; }
   13020 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
   13021   $as_echo_n "(cached) " >&6
   13022 else
   13023   if test "$cross_compiling" = yes; then :
   13024   gdb_cv_printf_has_long_long=no
   13025 else
   13026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13027 /* end confdefs.h.  */
   13028 $ac_includes_default
   13029 int
   13030 main ()
   13031 {
   13032 char buf[32];
   13033   long long l = 0;
   13034   l = (l << 16) + 0x0123;
   13035   l = (l << 16) + 0x4567;
   13036   l = (l << 16) + 0x89ab;
   13037   l = (l << 16) + 0xcdef;
   13038   sprintf (buf, "0x%016llx", l);
   13039   return (strcmp ("0x0123456789abcdef", buf));
   13040   ;
   13041   return 0;
   13042 }
   13043 _ACEOF
   13044 if ac_fn_c_try_run "$LINENO"; then :
   13045   gdb_cv_printf_has_long_long=yes
   13046 else
   13047   gdb_cv_printf_has_long_long=no
   13048 fi
   13049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13050   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13051 fi
   13052 
   13053 fi
   13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
   13055 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
   13056 if test $gdb_cv_printf_has_long_long = yes; then
   13057 
   13058 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
   13059 
   13060 fi
   13061 
   13062 # Check if the compiler and runtime support printing decfloats.
   13063 
   13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
   13065 $as_echo_n "checking for decfloat support in printf... " >&6; }
   13066 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
   13067   $as_echo_n "(cached) " >&6
   13068 else
   13069   if test "$cross_compiling" = yes; then :
   13070   gdb_cv_printf_has_decfloat=no
   13071 else
   13072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13073 /* end confdefs.h.  */
   13074 $ac_includes_default
   13075 int
   13076 main ()
   13077 {
   13078 char buf[64];
   13079   _Decimal32 d32 = 1.2345df;
   13080   _Decimal64 d64 = 1.2345dd;
   13081   _Decimal128 d128 = 1.2345dl;
   13082   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
   13083   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
   13084   ;
   13085   return 0;
   13086 }
   13087 _ACEOF
   13088 if ac_fn_c_try_run "$LINENO"; then :
   13089   gdb_cv_printf_has_decfloat=yes
   13090 else
   13091   gdb_cv_printf_has_decfloat=no
   13092 fi
   13093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13094   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13095 fi
   13096 
   13097 fi
   13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
   13099 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
   13100 if test $gdb_cv_printf_has_decfloat = yes; then
   13101 
   13102 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
   13103 
   13104 fi
   13105 
   13106 # Check if the compiler supports the `long double' type.  We can't use
   13107 # AC_C_LONG_DOUBLE because that one does additional checks on the
   13108 # constants defined in <float.h> that fail on some systems,
   13109 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
   13110 
   13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
   13112 $as_echo_n "checking for long double support in compiler... " >&6; }
   13113 if test "${gdb_cv_c_long_double+set}" = set; then :
   13114   $as_echo_n "(cached) " >&6
   13115 else
   13116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13117 /* end confdefs.h.  */
   13118 long double foo;
   13119 _ACEOF
   13120 if ac_fn_c_try_compile "$LINENO"; then :
   13121   gdb_cv_c_long_double=yes
   13122 else
   13123   gdb_cv_c_long_double=no
   13124 fi
   13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13126 fi
   13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
   13128 $as_echo "$gdb_cv_c_long_double" >&6; }
   13129 if test $gdb_cv_c_long_double = yes; then
   13130 
   13131 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
   13132 
   13133 fi
   13134 
   13135 # Check if the compiler and runtime support printing long doubles.
   13136 
   13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
   13138 $as_echo_n "checking for long double support in printf... " >&6; }
   13139 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
   13140   $as_echo_n "(cached) " >&6
   13141 else
   13142   if test "$cross_compiling" = yes; then :
   13143   gdb_cv_printf_has_long_double=no
   13144 else
   13145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13146 /* end confdefs.h.  */
   13147 $ac_includes_default
   13148 int
   13149 main ()
   13150 {
   13151 char buf[16];
   13152   long double f = 3.141592653;
   13153   sprintf (buf, "%Lg", f);
   13154   return (strncmp ("3.14159", buf, 7));
   13155   ;
   13156   return 0;
   13157 }
   13158 _ACEOF
   13159 if ac_fn_c_try_run "$LINENO"; then :
   13160   gdb_cv_printf_has_long_double=yes
   13161 else
   13162   gdb_cv_printf_has_long_double=no
   13163 fi
   13164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13165   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13166 fi
   13167 
   13168 fi
   13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
   13170 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
   13171 if test $gdb_cv_printf_has_long_double = yes; then
   13172 
   13173 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
   13174 
   13175 fi
   13176 
   13177 # Check if the compiler and runtime support scanning long doubles.
   13178 
   13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
   13180 $as_echo_n "checking for long double support in scanf... " >&6; }
   13181 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
   13182   $as_echo_n "(cached) " >&6
   13183 else
   13184   if test "$cross_compiling" = yes; then :
   13185   gdb_cv_scanf_has_long_double=no
   13186 else
   13187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13188 /* end confdefs.h.  */
   13189 #include <stdio.h>
   13190 int
   13191 main ()
   13192 {
   13193 char *buf = "3.141592653";
   13194   long double f = 0;
   13195   sscanf (buf, "%Lg", &f);
   13196   return !(f > 3.14159 && f < 3.14160);
   13197   ;
   13198   return 0;
   13199 }
   13200 _ACEOF
   13201 if ac_fn_c_try_run "$LINENO"; then :
   13202   gdb_cv_scanf_has_long_double=yes
   13203 else
   13204   gdb_cv_scanf_has_long_double=no
   13205 fi
   13206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13207   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13208 fi
   13209 
   13210 fi
   13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
   13212 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
   13213 if test $gdb_cv_scanf_has_long_double = yes; then
   13214 
   13215 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
   13216 
   13217 fi
   13218 
   13219 case ${host_os} in
   13220 aix*)
   13221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
   13222 $as_echo_n "checking for -bbigtoc option... " >&6; }
   13223 if test "${gdb_cv_bigtoc+set}" = set; then :
   13224   $as_echo_n "(cached) " >&6
   13225 else
   13226 
   13227     SAVE_LDFLAGS=$LDFLAGS
   13228 
   13229     case $GCC in
   13230     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
   13231     *) gdb_cv_bigtoc=-bbigtoc ;;
   13232     esac
   13233 
   13234     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
   13235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13236 /* end confdefs.h.  */
   13237 
   13238 int
   13239 main ()
   13240 {
   13241 int i;
   13242   ;
   13243   return 0;
   13244 }
   13245 _ACEOF
   13246 if ac_fn_c_try_link "$LINENO"; then :
   13247 
   13248 else
   13249   gdb_cv_bigtoc=
   13250 fi
   13251 rm -f core conftest.err conftest.$ac_objext \
   13252     conftest$ac_exeext conftest.$ac_ext
   13253     LDFLAGS="${SAVE_LDFLAGS}"
   13254 
   13255 fi
   13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
   13257 $as_echo "$gdb_cv_bigtoc" >&6; }
   13258   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
   13259   ;;
   13260 esac
   13261 
   13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
   13263 $as_echo_n "checking for the dynamic export flag... " >&6; }
   13264 dynamic_list=false
   13265 if test "${gdb_native}" = yes; then
   13266    # The dynamically loaded libthread_db needs access to symbols in the gdb
   13267    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
   13268    # may not be supported there.
   13269    old_LDFLAGS="$LDFLAGS"
   13270    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
   13271    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
   13272    LDFLAGS="$LDFLAGS $RDYNAMIC"
   13273    if test "${have_libpython}" = no; then
   13274      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13275 /* end confdefs.h.  */
   13276 
   13277 int
   13278 main ()
   13279 {
   13280 
   13281   ;
   13282   return 0;
   13283 }
   13284 _ACEOF
   13285 if ac_fn_c_try_link "$LINENO"; then :
   13286   dynamic_list=true
   13287 fi
   13288 rm -f core conftest.err conftest.$ac_objext \
   13289     conftest$ac_exeext conftest.$ac_ext
   13290    else
   13291      # Workaround http://bugs.python.org/issue4434 where static
   13292      # libpythonX.Y.a would get its symbols required for
   13293      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
   13294      # Problem does not happen for the recommended libpythonX.Y.so linkage.
   13295      old_CFLAGS="$CFLAGS"
   13296      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
   13297      old_LIBS="$LIBS"
   13298      LIBS="$LIBS $PYTHON_LIBS"
   13299      if test "$cross_compiling" = yes; then :
   13300   true
   13301 else
   13302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13303 /* end confdefs.h.  */
   13304 #include "${have_libpython}/Python.h"
   13305 int
   13306 main ()
   13307 {
   13308 int err;
   13309           Py_Initialize ();
   13310           err = PyRun_SimpleString ("import itertools\n");
   13311           Py_Finalize ();
   13312           return err == 0 ? 0 : 1;
   13313   ;
   13314   return 0;
   13315 }
   13316 _ACEOF
   13317 if ac_fn_c_try_run "$LINENO"; then :
   13318   dynamic_list=true
   13319 fi
   13320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13321   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13322 fi
   13323 
   13324      LIBS="$old_LIBS"
   13325      CFLAGS="$old_CFLAGS"
   13326    fi
   13327    LDFLAGS="$old_LDFLAGS"
   13328 fi
   13329 if $dynamic_list; then
   13330   found="-Wl,--dynamic-list"
   13331   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
   13332 else
   13333   found="-rdynamic"
   13334   RDYNAMIC="-rdynamic"
   13335 fi
   13336 
   13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
   13338 $as_echo "$found" >&6; }
   13339 
   13340 
   13341 if test ${build} = ${host} -a ${host} = ${target} ; then
   13342    case ${host_os} in
   13343    solaris*)
   13344       # See if thread_db library is around for Solaris thread debugging.
   13345       # Note that we must explicitly test for version 1 of the library
   13346       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
   13347       # the same API.
   13348       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
   13349 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
   13350       if test -f /usr/lib/libthread_db.so.1 ; then
   13351          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13352 $as_echo "yes" >&6; }
   13353 
   13354 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
   13355 
   13356          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
   13357          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
   13358          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   13359 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   13360 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
   13361   $as_echo_n "(cached) " >&6
   13362 else
   13363   ac_check_lib_save_LIBS=$LIBS
   13364 LIBS="-ldl  $LIBS"
   13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13366 /* end confdefs.h.  */
   13367 
   13368 /* Override any GCC internal prototype to avoid an error.
   13369    Use char because int might match the return type of a GCC
   13370    builtin and then its argument prototype would still apply.  */
   13371 #ifdef __cplusplus
   13372 extern "C"
   13373 #endif
   13374 char dlopen ();
   13375 int
   13376 main ()
   13377 {
   13378 return dlopen ();
   13379   ;
   13380   return 0;
   13381 }
   13382 _ACEOF
   13383 if ac_fn_c_try_link "$LINENO"; then :
   13384   ac_cv_lib_dl_dlopen=yes
   13385 else
   13386   ac_cv_lib_dl_dlopen=no
   13387 fi
   13388 rm -f core conftest.err conftest.$ac_objext \
   13389     conftest$ac_exeext conftest.$ac_ext
   13390 LIBS=$ac_check_lib_save_LIBS
   13391 fi
   13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13393 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   13394 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
   13395   cat >>confdefs.h <<_ACEOF
   13396 #define HAVE_LIBDL 1
   13397 _ACEOF
   13398 
   13399   LIBS="-ldl $LIBS"
   13400 
   13401 fi
   13402 
   13403 	 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
   13404 	 # Sun randomly tweaked the prototypes in <proc_service.h>
   13405 	 # at one point.
   13406 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
   13407 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
   13408 	 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
   13409   $as_echo_n "(cached) " >&6
   13410 else
   13411 
   13412 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13413 /* end confdefs.h.  */
   13414 
   13415 		#include <proc_service.h>
   13416 		ps_err_e ps_pdwrite
   13417 		    (struct ps_prochandle*, psaddr_t, const void*, size_t);
   13418 
   13419 int
   13420 main ()
   13421 {
   13422 
   13423   ;
   13424   return 0;
   13425 }
   13426 _ACEOF
   13427 if ac_fn_c_try_compile "$LINENO"; then :
   13428   gdb_cv_proc_service_is_old=no
   13429 else
   13430   gdb_cv_proc_service_is_old=yes
   13431 fi
   13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13433 
   13434 fi
   13435 
   13436 	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
   13437 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
   13438 	 if test $gdb_cv_proc_service_is_old = yes; then
   13439 
   13440 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
   13441 
   13442 	 fi
   13443       else
   13444          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13445 $as_echo "no" >&6; }
   13446       fi
   13447       ;;
   13448    aix*)
   13449       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
   13450 $as_echo_n "checking for AiX thread debugging library... " >&6; }
   13451       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
   13452   $as_echo_n "(cached) " >&6
   13453 else
   13454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13455 /* end confdefs.h.  */
   13456 #include <sys/pthdebug.h>
   13457 int
   13458 main ()
   13459 {
   13460 #ifndef PTHDB_VERSION_3
   13461                                     #error
   13462                                     #endif
   13463   ;
   13464   return 0;
   13465 }
   13466 _ACEOF
   13467 if ac_fn_c_try_compile "$LINENO"; then :
   13468   gdb_cv_have_aix_thread_debug=yes
   13469 else
   13470   gdb_cv_have_aix_thread_debug=no
   13471 fi
   13472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13473 fi
   13474 
   13475       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
   13476 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
   13477       if test $gdb_cv_have_aix_thread_debug = yes; then
   13478          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
   13479          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
   13480          LIBS="$LIBS -lpthdebug"
   13481 
   13482          # Older versions of AIX do not provide the declaration for
   13483          # the getthrds function (it appears that it was introduced
   13484          # with AIX 6.x).
   13485          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
   13486 "
   13487 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
   13488   ac_have_decl=1
   13489 else
   13490   ac_have_decl=0
   13491 fi
   13492 
   13493 cat >>confdefs.h <<_ACEOF
   13494 #define HAVE_DECL_GETTHRDS $ac_have_decl
   13495 _ACEOF
   13496 
   13497       fi
   13498       ;;
   13499    esac
   13500 
   13501 fi
   13502 
   13503 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
   13504    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
   13505 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
   13506 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
   13507   $as_echo_n "(cached) " >&6
   13508 else
   13509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13510 /* end confdefs.h.  */
   13511 #include <thread_db.h>
   13512 int
   13513 main ()
   13514 {
   13515 int i = TD_NOTALLOC;
   13516   ;
   13517   return 0;
   13518 }
   13519 _ACEOF
   13520 if ac_fn_c_try_compile "$LINENO"; then :
   13521   gdb_cv_thread_db_h_has_td_notalloc=yes
   13522 else
   13523   gdb_cv_thread_db_h_has_td_notalloc=no
   13524 
   13525 fi
   13526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13527 
   13528 fi
   13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
   13530 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
   13531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
   13532 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
   13533 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
   13534   $as_echo_n "(cached) " >&6
   13535 else
   13536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13537 /* end confdefs.h.  */
   13538 #include <thread_db.h>
   13539 int
   13540 main ()
   13541 {
   13542 int i = TD_VERSION;
   13543   ;
   13544   return 0;
   13545 }
   13546 _ACEOF
   13547 if ac_fn_c_try_compile "$LINENO"; then :
   13548   gdb_cv_thread_db_h_has_td_version=yes
   13549 else
   13550   gdb_cv_thread_db_h_has_td_version=no
   13551 
   13552 fi
   13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13554 
   13555 fi
   13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
   13557 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
   13558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
   13559 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
   13560 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
   13561   $as_echo_n "(cached) " >&6
   13562 else
   13563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13564 /* end confdefs.h.  */
   13565 #include <thread_db.h>
   13566 int
   13567 main ()
   13568 {
   13569 int i = TD_NOTLS;
   13570   ;
   13571   return 0;
   13572 }
   13573 _ACEOF
   13574 if ac_fn_c_try_compile "$LINENO"; then :
   13575   gdb_cv_thread_db_h_has_td_notls=yes
   13576 else
   13577   gdb_cv_thread_db_h_has_td_notls=no
   13578 
   13579 fi
   13580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13581 
   13582 fi
   13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
   13584 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
   13585 fi
   13586 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
   13587 
   13588 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
   13589 
   13590 fi
   13591 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
   13592 
   13593 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
   13594 
   13595 fi
   13596 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
   13597 
   13598 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
   13599 
   13600 fi
   13601 
   13602 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
   13603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
   13604 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
   13605 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
   13606   $as_echo_n "(cached) " >&6
   13607 else
   13608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13609 /* end confdefs.h.  */
   13610 #include <sys/syscall.h>
   13611 int
   13612 main ()
   13613 {
   13614 int i = __NR_tkill;
   13615   ;
   13616   return 0;
   13617 }
   13618 _ACEOF
   13619 if ac_fn_c_try_compile "$LINENO"; then :
   13620   gdb_cv_sys_syscall_h_has_tkill=yes
   13621 else
   13622   gdb_cv_sys_syscall_h_has_tkill=no
   13623 
   13624 fi
   13625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13626 
   13627 fi
   13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
   13629 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
   13630 fi
   13631 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
   13632   ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
   13633 if test "x$ac_cv_func_syscall" = x""yes; then :
   13634 
   13635 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
   13636 
   13637 
   13638 fi
   13639 
   13640 fi
   13641 
   13642 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
   13643 "
   13644 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
   13645   ac_have_decl=1
   13646 else
   13647   ac_have_decl=0
   13648 fi
   13649 
   13650 cat >>confdefs.h <<_ACEOF
   13651 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
   13652 _ACEOF
   13653 
   13654 
   13655 if test "$cross_compiling" = yes; then :
   13656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13657 /* end confdefs.h.  */
   13658 #include <sys/personality.h>
   13659 int
   13660 main ()
   13661 {
   13662 
   13663 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   13664 #       define ADDR_NO_RANDOMIZE 0x0040000
   13665 #      endif
   13666        /* Test the flag could be set and stays set.  */
   13667        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   13668        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   13669 	   return 1
   13670   ;
   13671   return 0;
   13672 }
   13673 _ACEOF
   13674 if ac_fn_c_try_link "$LINENO"; then :
   13675   have_personality=true
   13676 else
   13677   have_personality=false
   13678 fi
   13679 rm -f core conftest.err conftest.$ac_objext \
   13680     conftest$ac_exeext conftest.$ac_ext
   13681 else
   13682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13683 /* end confdefs.h.  */
   13684 #include <sys/personality.h>
   13685 int
   13686 main ()
   13687 {
   13688 
   13689 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   13690 #       define ADDR_NO_RANDOMIZE 0x0040000
   13691 #      endif
   13692        /* Test the flag could be set and stays set.  */
   13693        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   13694        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   13695 	   return 1
   13696   ;
   13697   return 0;
   13698 }
   13699 _ACEOF
   13700 if ac_fn_c_try_run "$LINENO"; then :
   13701   have_personality=true
   13702 else
   13703   have_personality=false
   13704 fi
   13705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13706   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13707 fi
   13708 
   13709 if $have_personality
   13710 then
   13711 
   13712 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
   13713 
   13714 fi
   13715 
   13716 case $host_os in
   13717   go32* | *djgpp*)
   13718     gdbinit=gdb.ini
   13719     ;;
   13720   *)
   13721     gdbinit=.gdbinit
   13722     ;;
   13723 esac
   13724 
   13725 cat >>confdefs.h <<_ACEOF
   13726 #define GDBINIT "$gdbinit"
   13727 _ACEOF
   13728 
   13729 
   13730 
   13731 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
   13732 # except that the argument to --with-sysroot is optional.
   13733 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
   13734 if test "x$with_sysroot" = xyes; then
   13735   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
   13736 fi
   13737 
   13738 # Check whether --with-sysroot was given.
   13739 if test "${with_sysroot+set}" = set; then :
   13740   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
   13741 else
   13742   TARGET_SYSTEM_ROOT=
   13743 fi
   13744 
   13745 
   13746   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   13747   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   13748   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
   13749   ac_define_dir=`eval echo $ac_define_dir`
   13750 
   13751 cat >>confdefs.h <<_ACEOF
   13752 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
   13753 _ACEOF
   13754 
   13755 
   13756 
   13757 
   13758   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   13759      if test "x$prefix" = xNONE; then
   13760      	test_prefix=/usr/local
   13761      else
   13762 	test_prefix=$prefix
   13763      fi
   13764   else
   13765      test_prefix=$exec_prefix
   13766   fi
   13767   value=0
   13768   case ${ac_define_dir} in
   13769      "${test_prefix}"|"${test_prefix}/"*|\
   13770 	'${exec_prefix}'|'${exec_prefix}/'*)
   13771      value=1
   13772      ;;
   13773   esac
   13774 
   13775 cat >>confdefs.h <<_ACEOF
   13776 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
   13777 _ACEOF
   13778 
   13779 
   13780 
   13781 
   13782 
   13783 # Check whether --with-system-gdbinit was given.
   13784 if test "${with_system_gdbinit+set}" = set; then :
   13785   withval=$with_system_gdbinit;
   13786     SYSTEM_GDBINIT=$withval
   13787 else
   13788   SYSTEM_GDBINIT=
   13789 fi
   13790 
   13791 
   13792   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   13793   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   13794   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
   13795   ac_define_dir=`eval echo $ac_define_dir`
   13796 
   13797 cat >>confdefs.h <<_ACEOF
   13798 #define SYSTEM_GDBINIT "$ac_define_dir"
   13799 _ACEOF
   13800 
   13801 
   13802 
   13803 
   13804   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   13805      if test "x$prefix" = xNONE; then
   13806      	test_prefix=/usr/local
   13807      else
   13808 	test_prefix=$prefix
   13809      fi
   13810   else
   13811      test_prefix=$exec_prefix
   13812   fi
   13813   value=0
   13814   case ${ac_define_dir} in
   13815      "${test_prefix}"|"${test_prefix}/"*|\
   13816 	'${exec_prefix}'|'${exec_prefix}/'*)
   13817      value=1
   13818      ;;
   13819   esac
   13820 
   13821 cat >>confdefs.h <<_ACEOF
   13822 #define SYSTEM_GDBINIT_RELOCATABLE $value
   13823 _ACEOF
   13824 
   13825 
   13826 
   13827 
   13828 # Check whether --enable-werror was given.
   13829 if test "${enable_werror+set}" = set; then :
   13830   enableval=$enable_werror; case "${enableval}" in
   13831      yes | y) ERROR_ON_WARNING="yes" ;;
   13832      no | n)  ERROR_ON_WARNING="no" ;;
   13833      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
   13834    esac
   13835 fi
   13836 
   13837 
   13838 # Enable -Werror by default when using gcc in C mode.  Leave it off
   13839 # for C++ until we're warning clean.  Turn it off for releases.
   13840 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
   13841    && test x"$enable_build_with_cxx" != x"yes" \
   13842    && $development; then
   13843     ERROR_ON_WARNING=yes
   13844 fi
   13845 
   13846 WERROR_CFLAGS=""
   13847 if test "${ERROR_ON_WARNING}" = yes ; then
   13848     WERROR_CFLAGS="-Werror"
   13849 fi
   13850 
   13851 # These options work in either C or C++ modes.
   13852 build_warnings="-Wall -Wpointer-arith \
   13853 -Wno-unused -Wunused-value -Wunused-function \
   13854 -Wno-switch -Wno-char-subscripts \
   13855 -Wempty-body"
   13856 
   13857 # Now add in C and C++ specific options, depending on mode.
   13858 if test "$enable_build_with_cxx" = "yes"; then
   13859    build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
   13860 -Wno-narrowing"
   13861 else
   13862    build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
   13863 -Wdeclaration-after-statement -Wmissing-parameter-type \
   13864 -Wold-style-declaration -Wold-style-definition"
   13865 fi
   13866 
   13867 # Enable -Wno-format by default when using gcc on mingw since many
   13868 # GCC versions complain about %I64.
   13869 case "${host}" in
   13870   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
   13871   *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
   13872 esac
   13873 
   13874 # Check whether --enable-build-warnings was given.
   13875 if test "${enable_build_warnings+set}" = set; then :
   13876   enableval=$enable_build_warnings; case "${enableval}" in
   13877   yes)	;;
   13878   no)	build_warnings="-w";;
   13879   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   13880         build_warnings="${build_warnings} ${t}";;
   13881   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   13882         build_warnings="${t} ${build_warnings}";;
   13883   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   13884 esac
   13885 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   13886   echo "Setting compiler warning flags = $build_warnings" 6>&1
   13887 fi
   13888 fi
   13889 # Check whether --enable-gdb-build-warnings was given.
   13890 if test "${enable_gdb_build_warnings+set}" = set; then :
   13891   enableval=$enable_gdb_build_warnings; case "${enableval}" in
   13892   yes)	;;
   13893   no)	build_warnings="-w";;
   13894   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   13895         build_warnings="${build_warnings} ${t}";;
   13896   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   13897         build_warnings="${t} ${build_warnings}";;
   13898   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   13899 esac
   13900 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   13901   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
   13902 fi
   13903 fi
   13904 
   13905 # The set of warnings supported by a C++ compiler is not the same as
   13906 # of the C compiler.
   13907 if test "$enable_build_with_cxx" = "yes"; then
   13908     ac_ext=cpp
   13909 ac_cpp='$CXXCPP $CPPFLAGS'
   13910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   13913 
   13914 fi
   13915 
   13916 WARN_CFLAGS=""
   13917 if test "x${build_warnings}" != x -a "x$GCC" = xyes
   13918 then
   13919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
   13920 $as_echo_n "checking compiler warning flags... " >&6; }
   13921     # Separate out the -Werror flag as some files just cannot be
   13922     # compiled with it enabled.
   13923     for w in ${build_warnings}; do
   13924 	case $w in
   13925 	-Werr*) WERROR_CFLAGS=-Werror ;;
   13926 	*)
   13927 	    # Check whether GCC accepts it.
   13928 	    saved_CFLAGS="$CFLAGS"
   13929 	    CFLAGS="$CFLAGS $w"
   13930 	    saved_CXXFLAGS="$CXXFLAGS"
   13931 	    CXXFLAGS="$CXXFLAGS $w"
   13932 
   13933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13934 /* end confdefs.h.  */
   13935 
   13936 int
   13937 main ()
   13938 {
   13939 
   13940   ;
   13941   return 0;
   13942 }
   13943 _ACEOF
   13944 if ac_fn_cxx_try_compile "$LINENO"; then :
   13945   WARN_CFLAGS="${WARN_CFLAGS} $w"
   13946 fi
   13947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13948 	    CFLAGS="$saved_CFLAGS"
   13949 	    CXXFLAGS="$saved_CXXFLAGS"
   13950 	esac
   13951     done
   13952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
   13953 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
   13954 fi
   13955 
   13956 
   13957 
   13958 if test "$enable_build_with_cxx" = "yes"; then
   13959    ac_ext=c
   13960 ac_cpp='$CPP $CPPFLAGS'
   13961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13964 
   13965 fi
   13966 
   13967 # In the Cygwin environment, we need some additional flags.
   13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
   13969 $as_echo_n "checking for cygwin... " >&6; }
   13970 if test "${gdb_cv_os_cygwin+set}" = set; then :
   13971   $as_echo_n "(cached) " >&6
   13972 else
   13973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13974 /* end confdefs.h.  */
   13975 
   13976 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
   13977 lose
   13978 #endif
   13979 _ACEOF
   13980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13981   $EGREP "^lose$" >/dev/null 2>&1; then :
   13982   gdb_cv_os_cygwin=yes
   13983 else
   13984   gdb_cv_os_cygwin=no
   13985 fi
   13986 rm -f conftest*
   13987 
   13988 fi
   13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
   13990 $as_echo "$gdb_cv_os_cygwin" >&6; }
   13991 
   13992 
   13993 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
   13994 case ${host} in
   13995   *go32* ) SER_HARDWIRE=ser-go32.o ;;
   13996   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
   13997   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
   13998 esac
   13999 
   14000 
   14001 # libreadline needs libuser32.a in a cygwin environment
   14002 WIN32LIBS=
   14003 if test x$gdb_cv_os_cygwin = xyes; then
   14004     WIN32LIBS="-luser32"
   14005     case "${target}" in
   14006 	*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
   14007 	;;
   14008     esac
   14009 fi
   14010 
   14011 # The ser-tcp.c module requires sockets.
   14012 case ${host} in
   14013   *mingw32*)
   14014 
   14015 $as_echo "#define USE_WIN32API 1" >>confdefs.h
   14016 
   14017     WIN32LIBS="$WIN32LIBS -lws2_32"
   14018     ;;
   14019 esac
   14020 
   14021 
   14022 # Add ELF support to GDB, but only if BFD includes ELF support.
   14023 
   14024   OLD_CFLAGS=$CFLAGS
   14025   OLD_LDFLAGS=$LDFLAGS
   14026   OLD_LIBS=$LIBS
   14027   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   14028   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   14029   # always want our bfd.
   14030   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   14031   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
   14032   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
   14033   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   14034   LIBS="-lbfd -liberty -lz $intl $LIBS"
   14035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
   14036 $as_echo_n "checking for ELF support in BFD... " >&6; }
   14037 if test "${gdb_cv_var_elf+set}" = set; then :
   14038   $as_echo_n "(cached) " >&6
   14039 else
   14040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14041 /* end confdefs.h.  */
   14042 #include <stdlib.h>
   14043   #include "bfd.h"
   14044   #include "elf-bfd.h"
   14045 
   14046 int
   14047 main ()
   14048 {
   14049 return bfd_get_elf_phdr_upper_bound (NULL);
   14050   ;
   14051   return 0;
   14052 }
   14053 _ACEOF
   14054 if ac_fn_c_try_link "$LINENO"; then :
   14055   gdb_cv_var_elf=yes
   14056 else
   14057   gdb_cv_var_elf=no
   14058 fi
   14059 rm -f core conftest.err conftest.$ac_objext \
   14060     conftest$ac_exeext conftest.$ac_ext
   14061 fi
   14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
   14063 $as_echo "$gdb_cv_var_elf" >&6; }
   14064   CFLAGS=$OLD_CFLAGS
   14065   LDFLAGS=$OLD_LDFLAGS
   14066   LIBS=$OLD_LIBS
   14067 if test $gdb_cv_var_elf = yes; then
   14068   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
   14069 
   14070 $as_echo "#define HAVE_ELF 1" >>confdefs.h
   14071 
   14072   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
   14073   if test "$plugins" = "yes"; then
   14074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   14075 $as_echo_n "checking for library containing dlopen... " >&6; }
   14076 if test "${ac_cv_search_dlopen+set}" = set; then :
   14077   $as_echo_n "(cached) " >&6
   14078 else
   14079   ac_func_search_save_LIBS=$LIBS
   14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14081 /* end confdefs.h.  */
   14082 
   14083 /* Override any GCC internal prototype to avoid an error.
   14084    Use char because int might match the return type of a GCC
   14085    builtin and then its argument prototype would still apply.  */
   14086 #ifdef __cplusplus
   14087 extern "C"
   14088 #endif
   14089 char dlopen ();
   14090 int
   14091 main ()
   14092 {
   14093 return dlopen ();
   14094   ;
   14095   return 0;
   14096 }
   14097 _ACEOF
   14098 for ac_lib in '' dl; do
   14099   if test -z "$ac_lib"; then
   14100     ac_res="none required"
   14101   else
   14102     ac_res=-l$ac_lib
   14103     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14104   fi
   14105   if ac_fn_c_try_link "$LINENO"; then :
   14106   ac_cv_search_dlopen=$ac_res
   14107 fi
   14108 rm -f core conftest.err conftest.$ac_objext \
   14109     conftest$ac_exeext
   14110   if test "${ac_cv_search_dlopen+set}" = set; then :
   14111   break
   14112 fi
   14113 done
   14114 if test "${ac_cv_search_dlopen+set}" = set; then :
   14115 
   14116 else
   14117   ac_cv_search_dlopen=no
   14118 fi
   14119 rm conftest.$ac_ext
   14120 LIBS=$ac_func_search_save_LIBS
   14121 fi
   14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   14123 $as_echo "$ac_cv_search_dlopen" >&6; }
   14124 ac_res=$ac_cv_search_dlopen
   14125 if test "$ac_res" != no; then :
   14126   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14127 
   14128 fi
   14129 
   14130   fi
   14131 fi
   14132 
   14133 # Add macho support to GDB, but only if BFD includes it.
   14134 
   14135   OLD_CFLAGS=$CFLAGS
   14136   OLD_LDFLAGS=$LDFLAGS
   14137   OLD_LIBS=$LIBS
   14138   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   14139   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   14140   # always want our bfd.
   14141   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   14142   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
   14143   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
   14144   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   14145   LIBS="-lbfd -liberty -lz $intl $LIBS"
   14146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
   14147 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
   14148 if test "${gdb_cv_var_macho+set}" = set; then :
   14149   $as_echo_n "(cached) " >&6
   14150 else
   14151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14152 /* end confdefs.h.  */
   14153 #include <stdlib.h>
   14154   #include "bfd.h"
   14155   #include "mach-o.h"
   14156 
   14157 int
   14158 main ()
   14159 {
   14160 return bfd_mach_o_lookup_command (NULL, 0, NULL);
   14161   ;
   14162   return 0;
   14163 }
   14164 _ACEOF
   14165 if ac_fn_c_try_link "$LINENO"; then :
   14166   gdb_cv_var_macho=yes
   14167 else
   14168   gdb_cv_var_macho=no
   14169 fi
   14170 rm -f core conftest.err conftest.$ac_objext \
   14171     conftest$ac_exeext conftest.$ac_ext
   14172 fi
   14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
   14174 $as_echo "$gdb_cv_var_macho" >&6; }
   14175   CFLAGS=$OLD_CFLAGS
   14176   LDFLAGS=$OLD_LDFLAGS
   14177   LIBS=$OLD_LIBS
   14178 if test $gdb_cv_var_macho = yes; then
   14179   CONFIG_OBS="$CONFIG_OBS machoread.o"
   14180 fi
   14181 
   14182 # Add any host-specific objects to GDB.
   14183 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
   14184 
   14185 # If building on ELF, look for lzma support for embedded compressed debug info.
   14186 if test $gdb_cv_var_elf = yes; then
   14187 
   14188 # Check whether --with-lzma was given.
   14189 if test "${with_lzma+set}" = set; then :
   14190   withval=$with_lzma;
   14191 else
   14192   with_lzma=auto
   14193 fi
   14194 
   14195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
   14196 $as_echo_n "checking whether to use lzma... " >&6; }
   14197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
   14198 $as_echo "$with_lzma" >&6; }
   14199 
   14200   if test "${with_lzma}" != no; then
   14201 
   14202 
   14203 
   14204 
   14205 
   14206 
   14207 
   14208 
   14209     use_additional=yes
   14210 
   14211   acl_save_prefix="$prefix"
   14212   prefix="$acl_final_prefix"
   14213   acl_save_exec_prefix="$exec_prefix"
   14214   exec_prefix="$acl_final_exec_prefix"
   14215 
   14216     eval additional_includedir=\"$includedir\"
   14217     eval additional_libdir=\"$libdir\"
   14218 
   14219   exec_prefix="$acl_save_exec_prefix"
   14220   prefix="$acl_save_prefix"
   14221 
   14222 
   14223 # Check whether --with-liblzma-prefix was given.
   14224 if test "${with_liblzma_prefix+set}" = set; then :
   14225   withval=$with_liblzma_prefix;
   14226     if test "X$withval" = "Xno"; then
   14227       use_additional=no
   14228     else
   14229       if test "X$withval" = "X"; then
   14230 
   14231   acl_save_prefix="$prefix"
   14232   prefix="$acl_final_prefix"
   14233   acl_save_exec_prefix="$exec_prefix"
   14234   exec_prefix="$acl_final_exec_prefix"
   14235 
   14236           eval additional_includedir=\"$includedir\"
   14237           eval additional_libdir=\"$libdir\"
   14238 
   14239   exec_prefix="$acl_save_exec_prefix"
   14240   prefix="$acl_save_prefix"
   14241 
   14242       else
   14243         additional_includedir="$withval/include"
   14244         additional_libdir="$withval/lib"
   14245       fi
   14246     fi
   14247 
   14248 fi
   14249 
   14250       LIBLZMA=
   14251   LTLIBLZMA=
   14252   INCLZMA=
   14253   rpathdirs=
   14254   ltrpathdirs=
   14255   names_already_handled=
   14256   names_next_round='lzma '
   14257   while test -n "$names_next_round"; do
   14258     names_this_round="$names_next_round"
   14259     names_next_round=
   14260     for name in $names_this_round; do
   14261       already_handled=
   14262       for n in $names_already_handled; do
   14263         if test "$n" = "$name"; then
   14264           already_handled=yes
   14265           break
   14266         fi
   14267       done
   14268       if test -z "$already_handled"; then
   14269         names_already_handled="$names_already_handled $name"
   14270                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   14271         eval value=\"\$HAVE_LIB$uppername\"
   14272         if test -n "$value"; then
   14273           if test "$value" = yes; then
   14274             eval value=\"\$LIB$uppername\"
   14275             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
   14276             eval value=\"\$LTLIB$uppername\"
   14277             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
   14278           else
   14279                                     :
   14280           fi
   14281         else
   14282                               found_dir=
   14283           found_la=
   14284           found_so=
   14285           found_a=
   14286           if test $use_additional = yes; then
   14287             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   14288               found_dir="$additional_libdir"
   14289               found_so="$additional_libdir/lib$name.$shlibext"
   14290               if test -f "$additional_libdir/lib$name.la"; then
   14291                 found_la="$additional_libdir/lib$name.la"
   14292               fi
   14293             else
   14294               if test -f "$additional_libdir/lib$name.$libext"; then
   14295                 found_dir="$additional_libdir"
   14296                 found_a="$additional_libdir/lib$name.$libext"
   14297                 if test -f "$additional_libdir/lib$name.la"; then
   14298                   found_la="$additional_libdir/lib$name.la"
   14299                 fi
   14300               fi
   14301             fi
   14302           fi
   14303           if test "X$found_dir" = "X"; then
   14304             for x in $LDFLAGS $LTLIBLZMA; do
   14305 
   14306   acl_save_prefix="$prefix"
   14307   prefix="$acl_final_prefix"
   14308   acl_save_exec_prefix="$exec_prefix"
   14309   exec_prefix="$acl_final_exec_prefix"
   14310   eval x=\"$x\"
   14311   exec_prefix="$acl_save_exec_prefix"
   14312   prefix="$acl_save_prefix"
   14313 
   14314               case "$x" in
   14315                 -L*)
   14316                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   14317                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   14318                     found_dir="$dir"
   14319                     found_so="$dir/lib$name.$shlibext"
   14320                     if test -f "$dir/lib$name.la"; then
   14321                       found_la="$dir/lib$name.la"
   14322                     fi
   14323                   else
   14324                     if test -f "$dir/lib$name.$libext"; then
   14325                       found_dir="$dir"
   14326                       found_a="$dir/lib$name.$libext"
   14327                       if test -f "$dir/lib$name.la"; then
   14328                         found_la="$dir/lib$name.la"
   14329                       fi
   14330                     fi
   14331                   fi
   14332                   ;;
   14333               esac
   14334               if test "X$found_dir" != "X"; then
   14335                 break
   14336               fi
   14337             done
   14338           fi
   14339           if test "X$found_dir" != "X"; then
   14340                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
   14341             if test "X$found_so" != "X"; then
   14342                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   14343                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   14344               else
   14345                                                                                 haveit=
   14346                 for x in $ltrpathdirs; do
   14347                   if test "X$x" = "X$found_dir"; then
   14348                     haveit=yes
   14349                     break
   14350                   fi
   14351                 done
   14352                 if test -z "$haveit"; then
   14353                   ltrpathdirs="$ltrpathdirs $found_dir"
   14354                 fi
   14355                                 if test "$hardcode_direct" = yes; then
   14356                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   14357                 else
   14358                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   14359                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   14360                                                             haveit=
   14361                     for x in $rpathdirs; do
   14362                       if test "X$x" = "X$found_dir"; then
   14363                         haveit=yes
   14364                         break
   14365                       fi
   14366                     done
   14367                     if test -z "$haveit"; then
   14368                       rpathdirs="$rpathdirs $found_dir"
   14369                     fi
   14370                   else
   14371                                                                                 haveit=
   14372                     for x in $LDFLAGS $LIBLZMA; do
   14373 
   14374   acl_save_prefix="$prefix"
   14375   prefix="$acl_final_prefix"
   14376   acl_save_exec_prefix="$exec_prefix"
   14377   exec_prefix="$acl_final_exec_prefix"
   14378   eval x=\"$x\"
   14379   exec_prefix="$acl_save_exec_prefix"
   14380   prefix="$acl_save_prefix"
   14381 
   14382                       if test "X$x" = "X-L$found_dir"; then
   14383                         haveit=yes
   14384                         break
   14385                       fi
   14386                     done
   14387                     if test -z "$haveit"; then
   14388                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
   14389                     fi
   14390                     if test "$hardcode_minus_L" != no; then
   14391                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   14392                     else
   14393                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   14394                     fi
   14395                   fi
   14396                 fi
   14397               fi
   14398             else
   14399               if test "X$found_a" != "X"; then
   14400                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
   14401               else
   14402                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
   14403               fi
   14404             fi
   14405                         additional_includedir=
   14406             case "$found_dir" in
   14407               */lib | */lib/)
   14408                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   14409                 additional_includedir="$basedir/include"
   14410                 ;;
   14411             esac
   14412             if test "X$additional_includedir" != "X"; then
   14413                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   14414                 haveit=
   14415                 if test "X$additional_includedir" = "X/usr/local/include"; then
   14416                   if test -n "$GCC"; then
   14417                     case $host_os in
   14418                       linux*) haveit=yes;;
   14419                     esac
   14420                   fi
   14421                 fi
   14422                 if test -z "$haveit"; then
   14423                   for x in $CPPFLAGS $INCLZMA; do
   14424 
   14425   acl_save_prefix="$prefix"
   14426   prefix="$acl_final_prefix"
   14427   acl_save_exec_prefix="$exec_prefix"
   14428   exec_prefix="$acl_final_exec_prefix"
   14429   eval x=\"$x\"
   14430   exec_prefix="$acl_save_exec_prefix"
   14431   prefix="$acl_save_prefix"
   14432 
   14433                     if test "X$x" = "X-I$additional_includedir"; then
   14434                       haveit=yes
   14435                       break
   14436                     fi
   14437                   done
   14438                   if test -z "$haveit"; then
   14439                     if test -d "$additional_includedir"; then
   14440                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
   14441                     fi
   14442                   fi
   14443                 fi
   14444               fi
   14445             fi
   14446                         if test -n "$found_la"; then
   14447                                                         save_libdir="$libdir"
   14448               case "$found_la" in
   14449                 */* | *\\*) . "$found_la" ;;
   14450                 *) . "./$found_la" ;;
   14451               esac
   14452               libdir="$save_libdir"
   14453                             for dep in $dependency_libs; do
   14454                 case "$dep" in
   14455                   -L*)
   14456                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   14457                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   14458                       haveit=
   14459                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   14460                         if test -n "$GCC"; then
   14461                           case $host_os in
   14462                             linux*) haveit=yes;;
   14463                           esac
   14464                         fi
   14465                       fi
   14466                       if test -z "$haveit"; then
   14467                         haveit=
   14468                         for x in $LDFLAGS $LIBLZMA; do
   14469 
   14470   acl_save_prefix="$prefix"
   14471   prefix="$acl_final_prefix"
   14472   acl_save_exec_prefix="$exec_prefix"
   14473   exec_prefix="$acl_final_exec_prefix"
   14474   eval x=\"$x\"
   14475   exec_prefix="$acl_save_exec_prefix"
   14476   prefix="$acl_save_prefix"
   14477 
   14478                           if test "X$x" = "X-L$additional_libdir"; then
   14479                             haveit=yes
   14480                             break
   14481                           fi
   14482                         done
   14483                         if test -z "$haveit"; then
   14484                           if test -d "$additional_libdir"; then
   14485                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
   14486                           fi
   14487                         fi
   14488                         haveit=
   14489                         for x in $LDFLAGS $LTLIBLZMA; do
   14490 
   14491   acl_save_prefix="$prefix"
   14492   prefix="$acl_final_prefix"
   14493   acl_save_exec_prefix="$exec_prefix"
   14494   exec_prefix="$acl_final_exec_prefix"
   14495   eval x=\"$x\"
   14496   exec_prefix="$acl_save_exec_prefix"
   14497   prefix="$acl_save_prefix"
   14498 
   14499                           if test "X$x" = "X-L$additional_libdir"; then
   14500                             haveit=yes
   14501                             break
   14502                           fi
   14503                         done
   14504                         if test -z "$haveit"; then
   14505                           if test -d "$additional_libdir"; then
   14506                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
   14507                           fi
   14508                         fi
   14509                       fi
   14510                     fi
   14511                     ;;
   14512                   -R*)
   14513                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   14514                     if test "$enable_rpath" != no; then
   14515                                                                   haveit=
   14516                       for x in $rpathdirs; do
   14517                         if test "X$x" = "X$dir"; then
   14518                           haveit=yes
   14519                           break
   14520                         fi
   14521                       done
   14522                       if test -z "$haveit"; then
   14523                         rpathdirs="$rpathdirs $dir"
   14524                       fi
   14525                                                                   haveit=
   14526                       for x in $ltrpathdirs; do
   14527                         if test "X$x" = "X$dir"; then
   14528                           haveit=yes
   14529                           break
   14530                         fi
   14531                       done
   14532                       if test -z "$haveit"; then
   14533                         ltrpathdirs="$ltrpathdirs $dir"
   14534                       fi
   14535                     fi
   14536                     ;;
   14537                   -l*)
   14538                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   14539                     ;;
   14540                   *.la)
   14541                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   14542                     ;;
   14543                   *)
   14544                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
   14545                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
   14546                     ;;
   14547                 esac
   14548               done
   14549             fi
   14550           else
   14551                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   14552             LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
   14553           fi
   14554         fi
   14555       fi
   14556     done
   14557   done
   14558   if test "X$rpathdirs" != "X"; then
   14559     if test -n "$hardcode_libdir_separator"; then
   14560                         alldirs=
   14561       for found_dir in $rpathdirs; do
   14562         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   14563       done
   14564             acl_save_libdir="$libdir"
   14565       libdir="$alldirs"
   14566       eval flag=\"$hardcode_libdir_flag_spec\"
   14567       libdir="$acl_save_libdir"
   14568       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   14569     else
   14570             for found_dir in $rpathdirs; do
   14571         acl_save_libdir="$libdir"
   14572         libdir="$found_dir"
   14573         eval flag=\"$hardcode_libdir_flag_spec\"
   14574         libdir="$acl_save_libdir"
   14575         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   14576       done
   14577     fi
   14578   fi
   14579   if test "X$ltrpathdirs" != "X"; then
   14580             for found_dir in $ltrpathdirs; do
   14581       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
   14582     done
   14583   fi
   14584 
   14585 
   14586         ac_save_CPPFLAGS="$CPPFLAGS"
   14587 
   14588   for element in $INCLZMA; do
   14589     haveit=
   14590     for x in $CPPFLAGS; do
   14591 
   14592   acl_save_prefix="$prefix"
   14593   prefix="$acl_final_prefix"
   14594   acl_save_exec_prefix="$exec_prefix"
   14595   exec_prefix="$acl_final_exec_prefix"
   14596   eval x=\"$x\"
   14597   exec_prefix="$acl_save_exec_prefix"
   14598   prefix="$acl_save_prefix"
   14599 
   14600       if test "X$x" = "X$element"; then
   14601         haveit=yes
   14602         break
   14603       fi
   14604     done
   14605     if test -z "$haveit"; then
   14606       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   14607     fi
   14608   done
   14609 
   14610 
   14611   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
   14612 $as_echo_n "checking for liblzma... " >&6; }
   14613 if test "${ac_cv_liblzma+set}" = set; then :
   14614   $as_echo_n "(cached) " >&6
   14615 else
   14616 
   14617     ac_save_LIBS="$LIBS"
   14618     LIBS="$LIBS $LIBLZMA"
   14619     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14620 /* end confdefs.h.  */
   14621 #include "lzma.h"
   14622 int
   14623 main ()
   14624 {
   14625 lzma_index_iter iter;
   14626 			   lzma_index_iter_init (&iter, 0);
   14627 			   lzma_mf_is_supported (LZMA_MF_HC3);
   14628   ;
   14629   return 0;
   14630 }
   14631 _ACEOF
   14632 if ac_fn_c_try_link "$LINENO"; then :
   14633   ac_cv_liblzma=yes
   14634 else
   14635   ac_cv_liblzma=no
   14636 fi
   14637 rm -f core conftest.err conftest.$ac_objext \
   14638     conftest$ac_exeext conftest.$ac_ext
   14639     LIBS="$ac_save_LIBS"
   14640 
   14641 fi
   14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
   14643 $as_echo "$ac_cv_liblzma" >&6; }
   14644   if test "$ac_cv_liblzma" = yes; then
   14645     HAVE_LIBLZMA=yes
   14646 
   14647 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
   14648 
   14649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
   14650 $as_echo_n "checking how to link with liblzma... " >&6; }
   14651     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
   14652 $as_echo "$LIBLZMA" >&6; }
   14653   else
   14654     HAVE_LIBLZMA=no
   14655             CPPFLAGS="$ac_save_CPPFLAGS"
   14656     LIBLZMA=
   14657     LTLIBLZMA=
   14658   fi
   14659 
   14660 
   14661 
   14662 
   14663 
   14664 
   14665     if test "$HAVE_LIBLZMA" != yes; then
   14666       if test "$with_lzma" = yes; then
   14667         as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
   14668       fi
   14669     fi
   14670   fi
   14671 fi
   14672 
   14673 LIBGUI="../libgui/src/libgui.a"
   14674 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
   14675 
   14676 
   14677 
   14678 WIN32LDAPP=
   14679 
   14680 
   14681 
   14682 case "${host}" in
   14683 *-*-cygwin* | *-*-mingw* )
   14684     configdir="win"
   14685     ;;
   14686 *)
   14687     configdir="unix"
   14688     ;;
   14689 esac
   14690 
   14691 GDBTKLIBS=
   14692 if test "${enable_gdbtk}" = "yes"; then
   14693 
   14694     # Gdbtk must have an absolute path to srcdir in order to run
   14695     # properly when not installed.
   14696     here=`pwd`
   14697     cd ${srcdir}
   14698     GDBTK_SRC_DIR=`pwd`
   14699     cd $here
   14700 
   14701 
   14702     #
   14703     # Ok, lets find the tcl configuration
   14704     # First, look for one uninstalled.
   14705     # the alternative search directory is invoked by --with-tcl
   14706     #
   14707 
   14708     if test x"${no_tcl}" = x ; then
   14709 	# we reset no_tcl in case something fails here
   14710 	no_tcl=true
   14711 
   14712 # Check whether --with-tcl was given.
   14713 if test "${with_tcl+set}" = set; then :
   14714   withval=$with_tcl; with_tclconfig=${withval}
   14715 fi
   14716 
   14717 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
   14718 $as_echo_n "checking for Tcl configuration... " >&6; }
   14719 	if test "${ac_cv_c_tclconfig+set}" = set; then :
   14720   $as_echo_n "(cached) " >&6
   14721 else
   14722 
   14723 
   14724 	    # First check to see if --with-tcl was specified.
   14725 	    case "${host}" in
   14726 		*-*-cygwin*) platDir="win" ;;
   14727 		*) platDir="unix" ;;
   14728 	    esac
   14729 	    if test x"${with_tclconfig}" != x ; then
   14730 		if test -f "${with_tclconfig}/tclConfig.sh" ; then
   14731 		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
   14732 		else
   14733 		    as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
   14734 		fi
   14735 	    fi
   14736 
   14737 	    # then check for a private Tcl installation
   14738 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   14739 		for i in \
   14740 			../tcl \
   14741 			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   14742 			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
   14743 			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
   14744 			../../tcl \
   14745 			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   14746 			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
   14747 			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
   14748 			../../../tcl \
   14749 			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   14750 			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
   14751 			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
   14752 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   14753 			ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   14754 			break
   14755 		    fi
   14756 		done
   14757 	    fi
   14758 
   14759 	    # on Darwin, check in Framework installation locations
   14760 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
   14761 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   14762 			`ls -d /Library/Frameworks 2>/dev/null` \
   14763 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   14764 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   14765 			; do
   14766 		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
   14767 			ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
   14768 			break
   14769 		    fi
   14770 		done
   14771 	    fi
   14772 
   14773 	    # check in a few common install locations
   14774 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   14775 		for i in `ls -d ${libdir} 2>/dev/null` \
   14776 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   14777 			`ls -d ${prefix}/lib 2>/dev/null` \
   14778 			`ls -d /usr/local/lib 2>/dev/null` \
   14779 			`ls -d /usr/contrib/lib 2>/dev/null` \
   14780 			`ls -d /usr/lib 2>/dev/null` \
   14781 			; do
   14782 		    if test -f "$i/tclConfig.sh" ; then
   14783 			ac_cv_c_tclconfig=`(cd $i; pwd)`
   14784 			break
   14785 		    fi
   14786 		done
   14787 	    fi
   14788 
   14789 	    # check in a few other private locations
   14790 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   14791 		for i in \
   14792 			${srcdir}/../tcl \
   14793 			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   14794 			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
   14795 			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
   14796 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   14797 		    ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   14798 		    break
   14799 		fi
   14800 		done
   14801 	    fi
   14802 
   14803 fi
   14804 
   14805 
   14806 	if test x"${ac_cv_c_tclconfig}" = x ; then
   14807 	    TCL_BIN_DIR="# no Tcl configs found"
   14808 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
   14809 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
   14810 	else
   14811 	    no_tcl=
   14812 	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
   14813 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
   14814 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   14815 	fi
   14816     fi
   14817 
   14818 
   14819     # If $no_tk is nonempty, then we can't do Tk, and there is no
   14820     # point to doing Tcl.
   14821 
   14822     #
   14823     # Ok, lets find the tk configuration
   14824     # First, look for one uninstalled.
   14825     # the alternative search directory is invoked by --with-tk
   14826     #
   14827 
   14828     if test x"${no_tk}" = x ; then
   14829 	# we reset no_tk in case something fails here
   14830 	no_tk=true
   14831 
   14832 # Check whether --with-tk was given.
   14833 if test "${with_tk+set}" = set; then :
   14834   withval=$with_tk; with_tkconfig=${withval}
   14835 fi
   14836 
   14837 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
   14838 $as_echo_n "checking for Tk configuration... " >&6; }
   14839 	if test "${ac_cv_c_tkconfig+set}" = set; then :
   14840   $as_echo_n "(cached) " >&6
   14841 else
   14842 
   14843 
   14844 	    # First check to see if --with-tkconfig was specified.
   14845 	    if test x"${with_tkconfig}" != x ; then
   14846 		if test -f "${with_tkconfig}/tkConfig.sh" ; then
   14847 		    ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
   14848 		else
   14849 		    as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
   14850 		fi
   14851 	    fi
   14852 
   14853 	    # then check for a private Tk library
   14854 	    case "${host}" in
   14855 		*-*-cygwin*) platDir="win" ;;
   14856 		*) platDir="unix" ;;
   14857 	    esac
   14858 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   14859 		for i in \
   14860 			../tk \
   14861 			`ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   14862 			`ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
   14863 			`ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
   14864 			../../tk \
   14865 			`ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   14866 			`ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
   14867 			`ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
   14868 			../../../tk \
   14869 			`ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   14870 			`ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
   14871 			`ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
   14872 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   14873 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   14874 			break
   14875 		    fi
   14876 		done
   14877 	    fi
   14878 
   14879 	    # on Darwin, check in Framework installation locations
   14880 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
   14881 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   14882 			`ls -d /Library/Frameworks 2>/dev/null` \
   14883 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   14884 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   14885 			; do
   14886 		    if test -f "$i/Tk.framework/tkConfig.sh" ; then
   14887 			ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
   14888 			break
   14889 		    fi
   14890 		done
   14891 	    fi
   14892 
   14893 	    # check in a few common install locations
   14894 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   14895 		for i in `ls -d ${libdir} 2>/dev/null` \
   14896 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   14897 			`ls -d ${prefix}/lib 2>/dev/null` \
   14898 			`ls -d /usr/local/lib 2>/dev/null` \
   14899 			`ls -d /usr/contrib/lib 2>/dev/null` \
   14900 			`ls -d /usr/lib 2>/dev/null` \
   14901 			; do
   14902 		    if test -f "$i/tkConfig.sh" ; then
   14903 			ac_cv_c_tkconfig=`(cd $i; pwd)`
   14904 			break
   14905 		    fi
   14906 		done
   14907 	    fi
   14908 	    # check in a few other private locations
   14909 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   14910 		for i in \
   14911 			${srcdir}/../tk \
   14912 			`ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   14913 			`ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
   14914 			`ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
   14915 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   14916 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   14917 			break
   14918 		    fi
   14919 		done
   14920 	    fi
   14921 
   14922 fi
   14923 
   14924 
   14925 	if test x"${ac_cv_c_tkconfig}" = x ; then
   14926 	    TK_BIN_DIR="# no Tk configs found"
   14927 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
   14928 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
   14929 	else
   14930 	    no_tk=
   14931 	    TK_BIN_DIR=${ac_cv_c_tkconfig}
   14932 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
   14933 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   14934 	fi
   14935     fi
   14936 
   14937 
   14938     if test -z "${no_tcl}" -a -z "${no_tk}"; then
   14939 
   14940     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
   14941 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
   14942 
   14943     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
   14944         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   14945 $as_echo "loading" >&6; }
   14946 	. ${TCL_BIN_DIR}/tclConfig.sh
   14947     else
   14948         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
   14949 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   14950     fi
   14951 
   14952     # eval is required to do the TCL_DBGX substitution
   14953     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
   14954     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
   14955 
   14956     # If the TCL_BIN_DIR is the build directory (not the install directory),
   14957     # then set the common variable name to the value of the build variables.
   14958     # For example, the variable TCL_LIB_SPEC will be set to the value
   14959     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
   14960     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
   14961     # installed and uninstalled version of Tcl.
   14962     if test -f "${TCL_BIN_DIR}/Makefile" ; then
   14963         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
   14964         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
   14965         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
   14966     elif test "`uname -s`" = "Darwin"; then
   14967 	# If Tcl was built as a framework, attempt to use the libraries
   14968 	# from the framework at the given location so that linking works
   14969 	# against Tcl.framework installed in an arbitrary location.
   14970 	case ${TCL_DEFS} in
   14971 	    *TCL_FRAMEWORK*)
   14972 		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
   14973 		    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
   14974 			     "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
   14975 			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
   14976 			    TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
   14977 			    break
   14978 			fi
   14979 		    done
   14980 		fi
   14981 		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
   14982 		    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
   14983 		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
   14984 		fi
   14985 		;;
   14986 	esac
   14987     fi
   14988 
   14989     # eval is required to do the TCL_DBGX substitution
   14990     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
   14991     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
   14992     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
   14993     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
   14994 
   14995 
   14996 
   14997 
   14998 
   14999 
   15000 
   15001 
   15002 
   15003 
   15004 
   15005 
   15006 
   15007 
   15008 
   15009         # Check for in-tree tcl
   15010         here=`pwd`
   15011         cd ${srcdir}/..
   15012         topdir=`pwd`
   15013         cd ${here}
   15014 
   15015         intree="no"
   15016         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
   15017           intree="yes"
   15018         fi
   15019 
   15020         # Find Tcl private headers
   15021         if test x"${intree}" = xno; then
   15022 
   15023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
   15024 $as_echo_n "checking for Tcl private headers... " >&6; }
   15025   private_dir=""
   15026   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
   15027   if test -f ${dir}/tclInt.h ; then
   15028     private_dir=${dir}
   15029   fi
   15030 
   15031   if test x"${private_dir}" = x; then
   15032     as_fn_error "could not find private Tcl headers" "$LINENO" 5
   15033   else
   15034     TCL_PRIVATE_INCLUDE="-I${private_dir}"
   15035     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   15036 $as_echo "${private_dir}" >&6; }
   15037   fi
   15038 
   15039 	  TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
   15040           TCL_LIBRARY="${TCL_LIB_SPEC}"
   15041           TCL_DEPS=""
   15042         else
   15043           # If building tcl in the same src tree, private headers
   15044           # are not needed, but we need to be sure to use the right
   15045           # headers library
   15046 	  TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
   15047           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
   15048           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
   15049         fi
   15050 
   15051 
   15052 
   15053 
   15054 
   15055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
   15056 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
   15057 
   15058     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
   15059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   15060 $as_echo "loading" >&6; }
   15061 	. ${TK_BIN_DIR}/tkConfig.sh
   15062     else
   15063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
   15064 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   15065     fi
   15066 
   15067     # eval is required to do the TK_DBGX substitution
   15068     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
   15069     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
   15070 
   15071     # If the TK_BIN_DIR is the build directory (not the install directory),
   15072     # then set the common variable name to the value of the build variables.
   15073     # For example, the variable TK_LIB_SPEC will be set to the value
   15074     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
   15075     # instead of TK_BUILD_LIB_SPEC since it will work with both an
   15076     # installed and uninstalled version of Tcl.
   15077     if test -f "${TK_BIN_DIR}/Makefile" ; then
   15078         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
   15079         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
   15080         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
   15081     elif test "`uname -s`" = "Darwin"; then
   15082 	# If Tk was built as a framework, attempt to use the libraries
   15083 	# from the framework at the given location so that linking works
   15084 	# against Tk.framework installed in an arbitrary location.
   15085 	case ${TK_DEFS} in
   15086 	    *TK_FRAMEWORK*)
   15087 		if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
   15088 		    for i in "`cd ${TK_BIN_DIR}; pwd`" \
   15089 			     "`cd ${TK_BIN_DIR}/../..; pwd`"; do
   15090 			if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
   15091 			    TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
   15092 			    break
   15093 			fi
   15094 		    done
   15095 		fi
   15096 		if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
   15097 		    TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
   15098 		    TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
   15099 		fi
   15100 		;;
   15101 	esac
   15102     fi
   15103 
   15104     # eval is required to do the TK_DBGX substitution
   15105     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
   15106     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
   15107     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
   15108     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
   15109 
   15110 
   15111 
   15112 
   15113 
   15114 
   15115 
   15116 
   15117 
   15118 
   15119 
   15120 
   15121 
   15122 
   15123         # Check for in-tree Tk
   15124         intree="no"
   15125         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
   15126           intree="yes"
   15127         fi
   15128 
   15129         # Find Tk private headers
   15130         if test x"${intree}" = xno; then
   15131 
   15132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
   15133 $as_echo_n "checking for Tk private headers... " >&6; }
   15134   private_dir=""
   15135   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
   15136   if test -f ${dir}/tkInt.h; then
   15137     private_dir=${dir}
   15138   fi
   15139 
   15140   if test x"${private_dir}" = x; then
   15141     as_fn_error "could not find Tk private headers" "$LINENO" 5
   15142   else
   15143     TK_PRIVATE_INCLUDE="-I${private_dir}"
   15144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   15145 $as_echo "${private_dir}" >&6; }
   15146   fi
   15147 
   15148 	  TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
   15149 	  TK_LIBRARY=${TK_LIB_SPEC}
   15150           TK_DEPS=""
   15151         else
   15152           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
   15153           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
   15154           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
   15155         fi
   15156 
   15157 
   15158 
   15159 
   15160 
   15161         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
   15162 
   15163 	# Include some libraries that Tcl and Tk want.
   15164 	TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
   15165 	# Yes, the ordering seems wrong here.  But it isn't.
   15166 	# TK_LIBS is the list of libraries that need to be linked
   15167 	# after Tcl/Tk.  Note that this isn't put into LIBS.  If it
   15168 	# were in LIBS then any link tests after this point would
   15169 	# try to include things like `$(LIBGUI)', which wouldn't work.
   15170 	GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
   15171 
   15172         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
   15173         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
   15174         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
   15175 	CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
   15176 	CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
   15177 	CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
   15178 	CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
   15179 
   15180 	if test x$gdb_cv_os_cygwin = xyes; then
   15181 	  WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
   15182 	  WIN32LDAPP="-Wl,--subsystem,console"
   15183 	  CONFIG_OBS="${CONFIG_OBS} gdbres.o"
   15184 	fi
   15185 
   15186         subdirs="$subdirs gdbtk"
   15187 
   15188     fi
   15189 fi
   15190 
   15191 
   15192 
   15193 
   15194 
   15195 
   15196 
   15197 
   15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
   15199 $as_echo_n "checking for X... " >&6; }
   15200 
   15201 
   15202 # Check whether --with-x was given.
   15203 if test "${with_x+set}" = set; then :
   15204   withval=$with_x;
   15205 fi
   15206 
   15207 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   15208 if test "x$with_x" = xno; then
   15209   # The user explicitly disabled X.
   15210   have_x=disabled
   15211 else
   15212   case $x_includes,$x_libraries in #(
   15213     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
   15214     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
   15215   $as_echo_n "(cached) " >&6
   15216 else
   15217   # One or both of the vars are not set, and there is no cached value.
   15218 ac_x_includes=no ac_x_libraries=no
   15219 rm -f -r conftest.dir
   15220 if mkdir conftest.dir; then
   15221   cd conftest.dir
   15222   cat >Imakefile <<'_ACEOF'
   15223 incroot:
   15224 	@echo incroot='${INCROOT}'
   15225 usrlibdir:
   15226 	@echo usrlibdir='${USRLIBDIR}'
   15227 libdir:
   15228 	@echo libdir='${LIBDIR}'
   15229 _ACEOF
   15230   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
   15231     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   15232     for ac_var in incroot usrlibdir libdir; do
   15233       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
   15234     done
   15235     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   15236     for ac_extension in a so sl dylib la dll; do
   15237       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
   15238 	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
   15239 	ac_im_usrlibdir=$ac_im_libdir; break
   15240       fi
   15241     done
   15242     # Screen out bogus values from the imake configuration.  They are
   15243     # bogus both because they are the default anyway, and because
   15244     # using them would break gcc on systems where it needs fixed includes.
   15245     case $ac_im_incroot in
   15246 	/usr/include) ac_x_includes= ;;
   15247 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   15248     esac
   15249     case $ac_im_usrlibdir in
   15250 	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
   15251 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   15252     esac
   15253   fi
   15254   cd ..
   15255   rm -f -r conftest.dir
   15256 fi
   15257 
   15258 # Standard set of common directories for X headers.
   15259 # Check X11 before X11Rn because it is often a symlink to the current release.
   15260 ac_x_header_dirs='
   15261 /usr/X11/include
   15262 /usr/X11R7/include
   15263 /usr/X11R6/include
   15264 /usr/X11R5/include
   15265 /usr/X11R4/include
   15266 
   15267 /usr/include/X11
   15268 /usr/include/X11R7
   15269 /usr/include/X11R6
   15270 /usr/include/X11R5
   15271 /usr/include/X11R4
   15272 
   15273 /usr/local/X11/include
   15274 /usr/local/X11R7/include
   15275 /usr/local/X11R6/include
   15276 /usr/local/X11R5/include
   15277 /usr/local/X11R4/include
   15278 
   15279 /usr/local/include/X11
   15280 /usr/local/include/X11R7
   15281 /usr/local/include/X11R6
   15282 /usr/local/include/X11R5
   15283 /usr/local/include/X11R4
   15284 
   15285 /usr/X386/include
   15286 /usr/x386/include
   15287 /usr/XFree86/include/X11
   15288 
   15289 /usr/include
   15290 /usr/local/include
   15291 /usr/unsupported/include
   15292 /usr/athena/include
   15293 /usr/local/x11r5/include
   15294 /usr/lpp/Xamples/include
   15295 
   15296 /usr/openwin/include
   15297 /usr/openwin/share/include'
   15298 
   15299 if test "$ac_x_includes" = no; then
   15300   # Guess where to find include files, by looking for Xlib.h.
   15301   # First, try using that file with no special directory specified.
   15302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15303 /* end confdefs.h.  */
   15304 #include <X11/Xlib.h>
   15305 _ACEOF
   15306 if ac_fn_c_try_cpp "$LINENO"; then :
   15307   # We can compile using X headers with no special include directory.
   15308 ac_x_includes=
   15309 else
   15310   for ac_dir in $ac_x_header_dirs; do
   15311   if test -r "$ac_dir/X11/Xlib.h"; then
   15312     ac_x_includes=$ac_dir
   15313     break
   15314   fi
   15315 done
   15316 fi
   15317 rm -f conftest.err conftest.$ac_ext
   15318 fi # $ac_x_includes = no
   15319 
   15320 if test "$ac_x_libraries" = no; then
   15321   # Check for the libraries.
   15322   # See if we find them without any special options.
   15323   # Don't add to $LIBS permanently.
   15324   ac_save_LIBS=$LIBS
   15325   LIBS="-lX11 $LIBS"
   15326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15327 /* end confdefs.h.  */
   15328 #include <X11/Xlib.h>
   15329 int
   15330 main ()
   15331 {
   15332 XrmInitialize ()
   15333   ;
   15334   return 0;
   15335 }
   15336 _ACEOF
   15337 if ac_fn_c_try_link "$LINENO"; then :
   15338   LIBS=$ac_save_LIBS
   15339 # We can link X programs with no special library path.
   15340 ac_x_libraries=
   15341 else
   15342   LIBS=$ac_save_LIBS
   15343 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   15344 do
   15345   # Don't even attempt the hair of trying to link an X program!
   15346   for ac_extension in a so sl dylib la dll; do
   15347     if test -r "$ac_dir/libX11.$ac_extension"; then
   15348       ac_x_libraries=$ac_dir
   15349       break 2
   15350     fi
   15351   done
   15352 done
   15353 fi
   15354 rm -f core conftest.err conftest.$ac_objext \
   15355     conftest$ac_exeext conftest.$ac_ext
   15356 fi # $ac_x_libraries = no
   15357 
   15358 case $ac_x_includes,$ac_x_libraries in #(
   15359   no,* | *,no | *\'*)
   15360     # Didn't find X, or a directory has "'" in its name.
   15361     ac_cv_have_x="have_x=no";; #(
   15362   *)
   15363     # Record where we found X for the cache.
   15364     ac_cv_have_x="have_x=yes\
   15365 	ac_x_includes='$ac_x_includes'\
   15366 	ac_x_libraries='$ac_x_libraries'"
   15367 esac
   15368 fi
   15369 ;; #(
   15370     *) have_x=yes;;
   15371   esac
   15372   eval "$ac_cv_have_x"
   15373 fi # $with_x != no
   15374 
   15375 if test "$have_x" != yes; then
   15376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
   15377 $as_echo "$have_x" >&6; }
   15378   no_x=yes
   15379 else
   15380   # If each of the values was on the command line, it overrides each guess.
   15381   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   15382   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   15383   # Update the cache value to reflect the command line values.
   15384   ac_cv_have_x="have_x=yes\
   15385 	ac_x_includes='$x_includes'\
   15386 	ac_x_libraries='$x_libraries'"
   15387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
   15388 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
   15389 fi
   15390 
   15391 
   15392 # Unlike the sim directory, whether a simulator is linked is controlled by
   15393 # presence of a gdb_sim definition in the target configure.tgt entry.
   15394 # This code just checks for a few cases where we'd like to ignore those
   15395 # definitions, even when they're present in the '.mt' file.  These cases
   15396 # are when --disable-sim is specified, or if the simulator directory is
   15397 # not part of the source tree.
   15398 #
   15399 # Check whether --enable-sim was given.
   15400 if test "${enable_sim+set}" = set; then :
   15401   enableval=$enable_sim; echo "enable_sim = $enable_sim";
   15402  echo "enableval = ${enableval}";
   15403  case "${enableval}" in
   15404   yes) ignore_sim=false ;;
   15405   no)  ignore_sim=true ;;
   15406   *)   ignore_sim=false ;;
   15407  esac
   15408 else
   15409   ignore_sim=false
   15410 fi
   15411 
   15412 
   15413 if test ! -d "${srcdir}/../sim"; then
   15414   ignore_sim=true
   15415 fi
   15416 
   15417 SIM=
   15418 SIM_OBS=
   15419 if test "${ignore_sim}" = "false"; then
   15420   if test x"${gdb_sim}" != x ; then
   15421     SIM="${gdb_sim}"
   15422     SIM_OBS="remote-sim.o"
   15423 
   15424 $as_echo "#define WITH_SIM 1" >>confdefs.h
   15425 
   15426   fi
   15427 fi
   15428 
   15429 
   15430 
   15431 
   15432 
   15433 
   15434 
   15435 
   15436 
   15437 
   15438 
   15439 
   15440 
   15441 
   15442 # List of host floatformats.
   15443 
   15444 cat >>confdefs.h <<_ACEOF
   15445 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
   15446 _ACEOF
   15447 
   15448 
   15449 cat >>confdefs.h <<_ACEOF
   15450 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
   15451 _ACEOF
   15452 
   15453 
   15454 cat >>confdefs.h <<_ACEOF
   15455 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
   15456 _ACEOF
   15457 
   15458 
   15459 # target_subdir is used by the testsuite to find the target libraries.
   15460 target_subdir=
   15461 if test "${host}" != "${target}"; then
   15462     target_subdir="${target_alias}/"
   15463 fi
   15464 
   15465 
   15466 frags=
   15467 if test "${gdb_native}" = "yes"; then
   15468   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
   15469   if test ! -f ${host_makefile_frag}; then
   15470     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
   15471   fi
   15472   frags="$frags $host_makefile_frag"
   15473 else
   15474   host_makefile_frag=/dev/null
   15475 fi
   15476 
   15477 
   15478 
   15479 
   15480 if test "${gdb_native}" = "yes"; then
   15481 # We pick this up from the host configuration file (.mh) because we
   15482 # do not have a native configuration Makefile fragment.
   15483 nativefile=`sed -n '
   15484 s/NAT_FILE[ 	]*=[ 	]*\([^ 	]*\)/\1/p
   15485 ' ${host_makefile_frag}`
   15486 fi
   15487 
   15488 
   15489 if test x"${gdb_osabi}" != x ; then
   15490 
   15491 cat >>confdefs.h <<_ACEOF
   15492 #define GDB_OSABI_DEFAULT $gdb_osabi
   15493 _ACEOF
   15494 
   15495 fi
   15496 
   15497 # Enable multi-ice-gdb-server.
   15498 # Check whether --enable-multi-ice was given.
   15499 if test "${enable_multi_ice+set}" = set; then :
   15500   enableval=$enable_multi_ice; case $enableval in
   15501     yes | no)
   15502       ;;
   15503     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
   15504   esac
   15505 fi
   15506 
   15507 if test "x$enable_multi_ice" = xyes; then
   15508    subdirs="$subdirs multi-ice"
   15509 
   15510 fi
   15511 
   15512 # Check whether --enable-gdbserver was given.
   15513 if test "${enable_gdbserver+set}" = set; then :
   15514   enableval=$enable_gdbserver; case "${enableval}" in
   15515   yes| no|auto) ;;
   15516   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
   15517 esac
   15518 else
   15519   enable_gdbserver=auto
   15520 fi
   15521 
   15522 
   15523 # We only build gdbserver automatically in a native configuration, and
   15524 # only if the user did not explicitly disable its build.
   15525 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
   15526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
   15527 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
   15528   if test "x$build_gdbserver" = xyes; then
   15529     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15530 $as_echo "yes" >&6; }
   15531     subdirs="$subdirs gdbserver"
   15532 
   15533     gdbserver_build_enabled=yes
   15534   else
   15535     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15536 $as_echo "no" >&6; }
   15537   fi
   15538 fi
   15539 
   15540 # If the user explicitly request the gdbserver to be built, verify that
   15541 # we were in fact able to enable it.
   15542 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
   15543   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
   15544 fi
   15545 
   15546 # Check for babeltrace and babeltrace-ctf
   15547 
   15548 # Check whether --with-babeltrace was given.
   15549 if test "${with_babeltrace+set}" = set; then :
   15550   withval=$with_babeltrace;
   15551 else
   15552   with_babeltrace=auto
   15553 fi
   15554 
   15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
   15556 $as_echo_n "checking whether to use babeltrace... " >&6; }
   15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
   15558 $as_echo "$with_babeltrace" >&6; }
   15559 
   15560 if test "x$with_babeltrace" = "xno"; then
   15561   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
   15562 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
   15563 else
   15564   # Append -Werror to CFLAGS so that configure can catch the warning
   15565   # "assignment from incompatible pointer type", which is related to
   15566   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
   15567   # in GDB, while babeltrace 1.0.3 is broken.
   15568   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
   15569   # safe to save and restore CFLAGS here.
   15570   saved_CFLAGS=$CFLAGS
   15571   CFLAGS="$CFLAGS -Werror"
   15572 
   15573 
   15574 
   15575 
   15576 
   15577 
   15578 
   15579 
   15580     use_additional=yes
   15581 
   15582   acl_save_prefix="$prefix"
   15583   prefix="$acl_final_prefix"
   15584   acl_save_exec_prefix="$exec_prefix"
   15585   exec_prefix="$acl_final_exec_prefix"
   15586 
   15587     eval additional_includedir=\"$includedir\"
   15588     eval additional_libdir=\"$libdir\"
   15589 
   15590   exec_prefix="$acl_save_exec_prefix"
   15591   prefix="$acl_save_prefix"
   15592 
   15593 
   15594 # Check whether --with-libbabeltrace-prefix was given.
   15595 if test "${with_libbabeltrace_prefix+set}" = set; then :
   15596   withval=$with_libbabeltrace_prefix;
   15597     if test "X$withval" = "Xno"; then
   15598       use_additional=no
   15599     else
   15600       if test "X$withval" = "X"; then
   15601 
   15602   acl_save_prefix="$prefix"
   15603   prefix="$acl_final_prefix"
   15604   acl_save_exec_prefix="$exec_prefix"
   15605   exec_prefix="$acl_final_exec_prefix"
   15606 
   15607           eval additional_includedir=\"$includedir\"
   15608           eval additional_libdir=\"$libdir\"
   15609 
   15610   exec_prefix="$acl_save_exec_prefix"
   15611   prefix="$acl_save_prefix"
   15612 
   15613       else
   15614         additional_includedir="$withval/include"
   15615         additional_libdir="$withval/lib"
   15616       fi
   15617     fi
   15618 
   15619 fi
   15620 
   15621       LIBBABELTRACE=
   15622   LTLIBBABELTRACE=
   15623   INCBABELTRACE=
   15624   rpathdirs=
   15625   ltrpathdirs=
   15626   names_already_handled=
   15627   names_next_round='babeltrace babeltrace-ctf'
   15628   while test -n "$names_next_round"; do
   15629     names_this_round="$names_next_round"
   15630     names_next_round=
   15631     for name in $names_this_round; do
   15632       already_handled=
   15633       for n in $names_already_handled; do
   15634         if test "$n" = "$name"; then
   15635           already_handled=yes
   15636           break
   15637         fi
   15638       done
   15639       if test -z "$already_handled"; then
   15640         names_already_handled="$names_already_handled $name"
   15641                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   15642         eval value=\"\$HAVE_LIB$uppername\"
   15643         if test -n "$value"; then
   15644           if test "$value" = yes; then
   15645             eval value=\"\$LIB$uppername\"
   15646             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
   15647             eval value=\"\$LTLIB$uppername\"
   15648             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
   15649           else
   15650                                     :
   15651           fi
   15652         else
   15653                               found_dir=
   15654           found_la=
   15655           found_so=
   15656           found_a=
   15657           if test $use_additional = yes; then
   15658             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   15659               found_dir="$additional_libdir"
   15660               found_so="$additional_libdir/lib$name.$shlibext"
   15661               if test -f "$additional_libdir/lib$name.la"; then
   15662                 found_la="$additional_libdir/lib$name.la"
   15663               fi
   15664             else
   15665               if test -f "$additional_libdir/lib$name.$libext"; then
   15666                 found_dir="$additional_libdir"
   15667                 found_a="$additional_libdir/lib$name.$libext"
   15668                 if test -f "$additional_libdir/lib$name.la"; then
   15669                   found_la="$additional_libdir/lib$name.la"
   15670                 fi
   15671               fi
   15672             fi
   15673           fi
   15674           if test "X$found_dir" = "X"; then
   15675             for x in $LDFLAGS $LTLIBBABELTRACE; do
   15676 
   15677   acl_save_prefix="$prefix"
   15678   prefix="$acl_final_prefix"
   15679   acl_save_exec_prefix="$exec_prefix"
   15680   exec_prefix="$acl_final_exec_prefix"
   15681   eval x=\"$x\"
   15682   exec_prefix="$acl_save_exec_prefix"
   15683   prefix="$acl_save_prefix"
   15684 
   15685               case "$x" in
   15686                 -L*)
   15687                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   15688                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   15689                     found_dir="$dir"
   15690                     found_so="$dir/lib$name.$shlibext"
   15691                     if test -f "$dir/lib$name.la"; then
   15692                       found_la="$dir/lib$name.la"
   15693                     fi
   15694                   else
   15695                     if test -f "$dir/lib$name.$libext"; then
   15696                       found_dir="$dir"
   15697                       found_a="$dir/lib$name.$libext"
   15698                       if test -f "$dir/lib$name.la"; then
   15699                         found_la="$dir/lib$name.la"
   15700                       fi
   15701                     fi
   15702                   fi
   15703                   ;;
   15704               esac
   15705               if test "X$found_dir" != "X"; then
   15706                 break
   15707               fi
   15708             done
   15709           fi
   15710           if test "X$found_dir" != "X"; then
   15711                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
   15712             if test "X$found_so" != "X"; then
   15713                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   15714                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   15715               else
   15716                                                                                 haveit=
   15717                 for x in $ltrpathdirs; do
   15718                   if test "X$x" = "X$found_dir"; then
   15719                     haveit=yes
   15720                     break
   15721                   fi
   15722                 done
   15723                 if test -z "$haveit"; then
   15724                   ltrpathdirs="$ltrpathdirs $found_dir"
   15725                 fi
   15726                                 if test "$hardcode_direct" = yes; then
   15727                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   15728                 else
   15729                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   15730                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   15731                                                             haveit=
   15732                     for x in $rpathdirs; do
   15733                       if test "X$x" = "X$found_dir"; then
   15734                         haveit=yes
   15735                         break
   15736                       fi
   15737                     done
   15738                     if test -z "$haveit"; then
   15739                       rpathdirs="$rpathdirs $found_dir"
   15740                     fi
   15741                   else
   15742                                                                                 haveit=
   15743                     for x in $LDFLAGS $LIBBABELTRACE; do
   15744 
   15745   acl_save_prefix="$prefix"
   15746   prefix="$acl_final_prefix"
   15747   acl_save_exec_prefix="$exec_prefix"
   15748   exec_prefix="$acl_final_exec_prefix"
   15749   eval x=\"$x\"
   15750   exec_prefix="$acl_save_exec_prefix"
   15751   prefix="$acl_save_prefix"
   15752 
   15753                       if test "X$x" = "X-L$found_dir"; then
   15754                         haveit=yes
   15755                         break
   15756                       fi
   15757                     done
   15758                     if test -z "$haveit"; then
   15759                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
   15760                     fi
   15761                     if test "$hardcode_minus_L" != no; then
   15762                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   15763                     else
   15764                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   15765                     fi
   15766                   fi
   15767                 fi
   15768               fi
   15769             else
   15770               if test "X$found_a" != "X"; then
   15771                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
   15772               else
   15773                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
   15774               fi
   15775             fi
   15776                         additional_includedir=
   15777             case "$found_dir" in
   15778               */lib | */lib/)
   15779                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   15780                 additional_includedir="$basedir/include"
   15781                 ;;
   15782             esac
   15783             if test "X$additional_includedir" != "X"; then
   15784                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   15785                 haveit=
   15786                 if test "X$additional_includedir" = "X/usr/local/include"; then
   15787                   if test -n "$GCC"; then
   15788                     case $host_os in
   15789                       linux*) haveit=yes;;
   15790                     esac
   15791                   fi
   15792                 fi
   15793                 if test -z "$haveit"; then
   15794                   for x in $CPPFLAGS $INCBABELTRACE; do
   15795 
   15796   acl_save_prefix="$prefix"
   15797   prefix="$acl_final_prefix"
   15798   acl_save_exec_prefix="$exec_prefix"
   15799   exec_prefix="$acl_final_exec_prefix"
   15800   eval x=\"$x\"
   15801   exec_prefix="$acl_save_exec_prefix"
   15802   prefix="$acl_save_prefix"
   15803 
   15804                     if test "X$x" = "X-I$additional_includedir"; then
   15805                       haveit=yes
   15806                       break
   15807                     fi
   15808                   done
   15809                   if test -z "$haveit"; then
   15810                     if test -d "$additional_includedir"; then
   15811                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
   15812                     fi
   15813                   fi
   15814                 fi
   15815               fi
   15816             fi
   15817                         if test -n "$found_la"; then
   15818                                                         save_libdir="$libdir"
   15819               case "$found_la" in
   15820                 */* | *\\*) . "$found_la" ;;
   15821                 *) . "./$found_la" ;;
   15822               esac
   15823               libdir="$save_libdir"
   15824                             for dep in $dependency_libs; do
   15825                 case "$dep" in
   15826                   -L*)
   15827                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   15828                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   15829                       haveit=
   15830                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   15831                         if test -n "$GCC"; then
   15832                           case $host_os in
   15833                             linux*) haveit=yes;;
   15834                           esac
   15835                         fi
   15836                       fi
   15837                       if test -z "$haveit"; then
   15838                         haveit=
   15839                         for x in $LDFLAGS $LIBBABELTRACE; do
   15840 
   15841   acl_save_prefix="$prefix"
   15842   prefix="$acl_final_prefix"
   15843   acl_save_exec_prefix="$exec_prefix"
   15844   exec_prefix="$acl_final_exec_prefix"
   15845   eval x=\"$x\"
   15846   exec_prefix="$acl_save_exec_prefix"
   15847   prefix="$acl_save_prefix"
   15848 
   15849                           if test "X$x" = "X-L$additional_libdir"; then
   15850                             haveit=yes
   15851                             break
   15852                           fi
   15853                         done
   15854                         if test -z "$haveit"; then
   15855                           if test -d "$additional_libdir"; then
   15856                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
   15857                           fi
   15858                         fi
   15859                         haveit=
   15860                         for x in $LDFLAGS $LTLIBBABELTRACE; do
   15861 
   15862   acl_save_prefix="$prefix"
   15863   prefix="$acl_final_prefix"
   15864   acl_save_exec_prefix="$exec_prefix"
   15865   exec_prefix="$acl_final_exec_prefix"
   15866   eval x=\"$x\"
   15867   exec_prefix="$acl_save_exec_prefix"
   15868   prefix="$acl_save_prefix"
   15869 
   15870                           if test "X$x" = "X-L$additional_libdir"; then
   15871                             haveit=yes
   15872                             break
   15873                           fi
   15874                         done
   15875                         if test -z "$haveit"; then
   15876                           if test -d "$additional_libdir"; then
   15877                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
   15878                           fi
   15879                         fi
   15880                       fi
   15881                     fi
   15882                     ;;
   15883                   -R*)
   15884                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   15885                     if test "$enable_rpath" != no; then
   15886                                                                   haveit=
   15887                       for x in $rpathdirs; do
   15888                         if test "X$x" = "X$dir"; then
   15889                           haveit=yes
   15890                           break
   15891                         fi
   15892                       done
   15893                       if test -z "$haveit"; then
   15894                         rpathdirs="$rpathdirs $dir"
   15895                       fi
   15896                                                                   haveit=
   15897                       for x in $ltrpathdirs; do
   15898                         if test "X$x" = "X$dir"; then
   15899                           haveit=yes
   15900                           break
   15901                         fi
   15902                       done
   15903                       if test -z "$haveit"; then
   15904                         ltrpathdirs="$ltrpathdirs $dir"
   15905                       fi
   15906                     fi
   15907                     ;;
   15908                   -l*)
   15909                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   15910                     ;;
   15911                   *.la)
   15912                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   15913                     ;;
   15914                   *)
   15915                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
   15916                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
   15917                     ;;
   15918                 esac
   15919               done
   15920             fi
   15921           else
   15922                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   15923             LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
   15924           fi
   15925         fi
   15926       fi
   15927     done
   15928   done
   15929   if test "X$rpathdirs" != "X"; then
   15930     if test -n "$hardcode_libdir_separator"; then
   15931                         alldirs=
   15932       for found_dir in $rpathdirs; do
   15933         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   15934       done
   15935             acl_save_libdir="$libdir"
   15936       libdir="$alldirs"
   15937       eval flag=\"$hardcode_libdir_flag_spec\"
   15938       libdir="$acl_save_libdir"
   15939       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   15940     else
   15941             for found_dir in $rpathdirs; do
   15942         acl_save_libdir="$libdir"
   15943         libdir="$found_dir"
   15944         eval flag=\"$hardcode_libdir_flag_spec\"
   15945         libdir="$acl_save_libdir"
   15946         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   15947       done
   15948     fi
   15949   fi
   15950   if test "X$ltrpathdirs" != "X"; then
   15951             for found_dir in $ltrpathdirs; do
   15952       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
   15953     done
   15954   fi
   15955 
   15956 
   15957         ac_save_CPPFLAGS="$CPPFLAGS"
   15958 
   15959   for element in $INCBABELTRACE; do
   15960     haveit=
   15961     for x in $CPPFLAGS; do
   15962 
   15963   acl_save_prefix="$prefix"
   15964   prefix="$acl_final_prefix"
   15965   acl_save_exec_prefix="$exec_prefix"
   15966   exec_prefix="$acl_final_exec_prefix"
   15967   eval x=\"$x\"
   15968   exec_prefix="$acl_save_exec_prefix"
   15969   prefix="$acl_save_prefix"
   15970 
   15971       if test "X$x" = "X$element"; then
   15972         haveit=yes
   15973         break
   15974       fi
   15975     done
   15976     if test -z "$haveit"; then
   15977       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   15978     fi
   15979   done
   15980 
   15981 
   15982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
   15983 $as_echo_n "checking for libbabeltrace... " >&6; }
   15984 if test "${ac_cv_libbabeltrace+set}" = set; then :
   15985   $as_echo_n "(cached) " >&6
   15986 else
   15987 
   15988     ac_save_LIBS="$LIBS"
   15989     LIBS="$LIBS $LIBBABELTRACE"
   15990     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15991 /* end confdefs.h.  */
   15992 #include <babeltrace/babeltrace.h>
   15993 			 #include <babeltrace/ctf/events.h>
   15994 			 #include <babeltrace/ctf/iterator.h>
   15995 int
   15996 main ()
   15997 {
   15998 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
   15999 			struct bt_ctf_event *event = NULL;
   16000 			const struct bt_definition *scope;
   16001 
   16002 			bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
   16003 			scope = bt_ctf_get_top_level_scope (event,
   16004 			      				   BT_STREAM_EVENT_HEADER);
   16005 		        bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
   16006 
   16007   ;
   16008   return 0;
   16009 }
   16010 _ACEOF
   16011 if ac_fn_c_try_link "$LINENO"; then :
   16012   ac_cv_libbabeltrace=yes
   16013 else
   16014   ac_cv_libbabeltrace=no
   16015 fi
   16016 rm -f core conftest.err conftest.$ac_objext \
   16017     conftest$ac_exeext conftest.$ac_ext
   16018     LIBS="$ac_save_LIBS"
   16019 
   16020 fi
   16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
   16022 $as_echo "$ac_cv_libbabeltrace" >&6; }
   16023   if test "$ac_cv_libbabeltrace" = yes; then
   16024     HAVE_LIBBABELTRACE=yes
   16025 
   16026 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
   16027 
   16028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
   16029 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
   16030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
   16031 $as_echo "$LIBBABELTRACE" >&6; }
   16032   else
   16033     HAVE_LIBBABELTRACE=no
   16034             CPPFLAGS="$ac_save_CPPFLAGS"
   16035     LIBBABELTRACE=
   16036     LTLIBBABELTRACE=
   16037   fi
   16038 
   16039 
   16040 
   16041 
   16042 
   16043 
   16044   CFLAGS=$saved_CFLAGS
   16045 
   16046   if test "$HAVE_LIBBABELTRACE" != yes; then
   16047      if test "$with_babeltrace" = yes; then
   16048        as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
   16049      else
   16050        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
   16051 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
   16052      fi
   16053   fi
   16054 fi
   16055 
   16056 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
   16057 # to an empty version.
   16058 
   16059 files=
   16060 links=
   16061 
   16062 rm -f nm.h
   16063 if test "${nativefile}" != ""; then
   16064     case "${nativefile}" in
   16065       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
   16066       * ) GDB_NM_FILE="${nativefile}"
   16067     esac
   16068     files="${files} ${GDB_NM_FILE}"
   16069     links="${links} nm.h"
   16070 
   16071 cat >>confdefs.h <<_ACEOF
   16072 #define GDB_NM_FILE "${GDB_NM_FILE}"
   16073 _ACEOF
   16074 
   16075 fi
   16076 
   16077 
   16078 ac_sources="$files"
   16079 ac_dests="$links"
   16080 while test -n "$ac_sources"; do
   16081   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
   16082   set $ac_sources; ac_source=$1; shift; ac_sources=$*
   16083   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
   16084 done
   16085 ac_config_links="$ac_config_links $ac_config_links_1"
   16086 
   16087 
   16088 
   16089 
   16090 
   16091 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
   16092 
   16093 
   16094 
   16095   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
   16096   GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
   16097   if test "x$GDB_TRANSFORM_NAME" = x; then
   16098      GDB_TRANSFORM_NAME=gdb
   16099   fi
   16100 
   16101 
   16102 
   16103   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
   16104   GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
   16105   if test "x$GCORE_TRANSFORM_NAME" = x; then
   16106      GCORE_TRANSFORM_NAME=gcore
   16107   fi
   16108 
   16109 
   16110 ac_config_files="$ac_config_files gcore"
   16111 
   16112 
   16113 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
   16114 
   16115 ac_config_commands="$ac_config_commands default"
   16116 
   16117 cat >confcache <<\_ACEOF
   16118 # This file is a shell script that caches the results of configure
   16119 # tests run on this system so they can be shared between configure
   16120 # scripts and configure runs, see configure's option --config-cache.
   16121 # It is not useful on other systems.  If it contains results you don't
   16122 # want to keep, you may remove or edit it.
   16123 #
   16124 # config.status only pays attention to the cache file if you give it
   16125 # the --recheck option to rerun configure.
   16126 #
   16127 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   16128 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   16129 # following values.
   16130 
   16131 _ACEOF
   16132 
   16133 # The following way of writing the cache mishandles newlines in values,
   16134 # but we know of no workaround that is simple, portable, and efficient.
   16135 # So, we kill variables containing newlines.
   16136 # Ultrix sh set writes to stderr and can't be redirected directly,
   16137 # and sets the high bit in the cache file unless we assign to the vars.
   16138 (
   16139   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   16140     eval ac_val=\$$ac_var
   16141     case $ac_val in #(
   16142     *${as_nl}*)
   16143       case $ac_var in #(
   16144       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   16145 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   16146       esac
   16147       case $ac_var in #(
   16148       _ | IFS | as_nl) ;; #(
   16149       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   16150       *) { eval $ac_var=; unset $ac_var;} ;;
   16151       esac ;;
   16152     esac
   16153   done
   16154 
   16155   (set) 2>&1 |
   16156     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   16157     *${as_nl}ac_space=\ *)
   16158       # `set' does not quote correctly, so add quotes: double-quote
   16159       # substitution turns \\\\ into \\, and sed turns \\ into \.
   16160       sed -n \
   16161 	"s/'/'\\\\''/g;
   16162 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   16163       ;; #(
   16164     *)
   16165       # `set' quotes correctly as required by POSIX, so do not add quotes.
   16166       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   16167       ;;
   16168     esac |
   16169     sort
   16170 ) |
   16171   sed '
   16172      /^ac_cv_env_/b end
   16173      t clear
   16174      :clear
   16175      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   16176      t end
   16177      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   16178      :end' >>confcache
   16179 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   16180   if test -w "$cache_file"; then
   16181     test "x$cache_file" != "x/dev/null" &&
   16182       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   16183 $as_echo "$as_me: updating cache $cache_file" >&6;}
   16184     cat confcache >$cache_file
   16185   else
   16186     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   16187 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   16188   fi
   16189 fi
   16190 rm -f confcache
   16191 
   16192 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   16193 # Let make expand exec_prefix.
   16194 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   16195 
   16196 DEFS=-DHAVE_CONFIG_H
   16197 
   16198 ac_libobjs=
   16199 ac_ltlibobjs=
   16200 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   16201   # 1. Remove the extension, and $U if already installed.
   16202   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   16203   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   16204   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   16205   #    will be set to the directory where LIBOBJS objects are built.
   16206   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   16207   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   16208 done
   16209 LIBOBJS=$ac_libobjs
   16210 
   16211 LTLIBOBJS=$ac_ltlibobjs
   16212 
   16213 
   16214 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   16215   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
   16216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16217 fi
   16218 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
   16219   as_fn_error "conditional \"GMAKE\" was never defined.
   16220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16221 fi
   16222 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
   16223   as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
   16224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16225 fi
   16226 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
   16227   as_fn_error "conditional \"HAVE_GUILE\" was never defined.
   16228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16229 fi
   16230 
   16231 
   16232 : ${CONFIG_STATUS=./config.status}
   16233 ac_write_fail=0
   16234 ac_clean_files_save=$ac_clean_files
   16235 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   16236 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   16237 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   16238 as_write_fail=0
   16239 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   16240 #! $SHELL
   16241 # Generated by $as_me.
   16242 # Run this file to recreate the current configuration.
   16243 # Compiler output produced by configure, useful for debugging
   16244 # configure, is in config.log if it exists.
   16245 
   16246 debug=false
   16247 ac_cs_recheck=false
   16248 ac_cs_silent=false
   16249 
   16250 SHELL=\${CONFIG_SHELL-$SHELL}
   16251 export SHELL
   16252 _ASEOF
   16253 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   16254 ## -------------------- ##
   16255 ## M4sh Initialization. ##
   16256 ## -------------------- ##
   16257 
   16258 # Be more Bourne compatible
   16259 DUALCASE=1; export DUALCASE # for MKS sh
   16260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   16261   emulate sh
   16262   NULLCMD=:
   16263   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   16264   # is contrary to our usage.  Disable this feature.
   16265   alias -g '${1+"$@"}'='"$@"'
   16266   setopt NO_GLOB_SUBST
   16267 else
   16268   case `(set -o) 2>/dev/null` in #(
   16269   *posix*) :
   16270     set -o posix ;; #(
   16271   *) :
   16272      ;;
   16273 esac
   16274 fi
   16275 
   16276 
   16277 as_nl='
   16278 '
   16279 export as_nl
   16280 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   16281 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   16282 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   16283 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   16284 # Prefer a ksh shell builtin over an external printf program on Solaris,
   16285 # but without wasting forks for bash or zsh.
   16286 if test -z "$BASH_VERSION$ZSH_VERSION" \
   16287     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   16288   as_echo='print -r --'
   16289   as_echo_n='print -rn --'
   16290 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   16291   as_echo='printf %s\n'
   16292   as_echo_n='printf %s'
   16293 else
   16294   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   16295     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   16296     as_echo_n='/usr/ucb/echo -n'
   16297   else
   16298     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   16299     as_echo_n_body='eval
   16300       arg=$1;
   16301       case $arg in #(
   16302       *"$as_nl"*)
   16303 	expr "X$arg" : "X\\(.*\\)$as_nl";
   16304 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   16305       esac;
   16306       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   16307     '
   16308     export as_echo_n_body
   16309     as_echo_n='sh -c $as_echo_n_body as_echo'
   16310   fi
   16311   export as_echo_body
   16312   as_echo='sh -c $as_echo_body as_echo'
   16313 fi
   16314 
   16315 # The user is always right.
   16316 if test "${PATH_SEPARATOR+set}" != set; then
   16317   PATH_SEPARATOR=:
   16318   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   16319     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   16320       PATH_SEPARATOR=';'
   16321   }
   16322 fi
   16323 
   16324 
   16325 # IFS
   16326 # We need space, tab and new line, in precisely that order.  Quoting is
   16327 # there to prevent editors from complaining about space-tab.
   16328 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   16329 # splitting by setting IFS to empty value.)
   16330 IFS=" ""	$as_nl"
   16331 
   16332 # Find who we are.  Look in the path if we contain no directory separator.
   16333 case $0 in #((
   16334   *[\\/]* ) as_myself=$0 ;;
   16335   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16336 for as_dir in $PATH
   16337 do
   16338   IFS=$as_save_IFS
   16339   test -z "$as_dir" && as_dir=.
   16340     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   16341   done
   16342 IFS=$as_save_IFS
   16343 
   16344      ;;
   16345 esac
   16346 # We did not find ourselves, most probably we were run as `sh COMMAND'
   16347 # in which case we are not to be found in the path.
   16348 if test "x$as_myself" = x; then
   16349   as_myself=$0
   16350 fi
   16351 if test ! -f "$as_myself"; then
   16352   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   16353   exit 1
   16354 fi
   16355 
   16356 # Unset variables that we do not need and which cause bugs (e.g. in
   16357 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   16358 # suppresses any "Segmentation fault" message there.  '((' could
   16359 # trigger a bug in pdksh 5.2.14.
   16360 for as_var in BASH_ENV ENV MAIL MAILPATH
   16361 do eval test x\${$as_var+set} = xset \
   16362   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   16363 done
   16364 PS1='$ '
   16365 PS2='> '
   16366 PS4='+ '
   16367 
   16368 # NLS nuisances.
   16369 LC_ALL=C
   16370 export LC_ALL
   16371 LANGUAGE=C
   16372 export LANGUAGE
   16373 
   16374 # CDPATH.
   16375 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   16376 
   16377 
   16378 # as_fn_error ERROR [LINENO LOG_FD]
   16379 # ---------------------------------
   16380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   16381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   16382 # script with status $?, using 1 if that was 0.
   16383 as_fn_error ()
   16384 {
   16385   as_status=$?; test $as_status -eq 0 && as_status=1
   16386   if test "$3"; then
   16387     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   16388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
   16389   fi
   16390   $as_echo "$as_me: error: $1" >&2
   16391   as_fn_exit $as_status
   16392 } # as_fn_error
   16393 
   16394 
   16395 # as_fn_set_status STATUS
   16396 # -----------------------
   16397 # Set $? to STATUS, without forking.
   16398 as_fn_set_status ()
   16399 {
   16400   return $1
   16401 } # as_fn_set_status
   16402 
   16403 # as_fn_exit STATUS
   16404 # -----------------
   16405 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   16406 as_fn_exit ()
   16407 {
   16408   set +e
   16409   as_fn_set_status $1
   16410   exit $1
   16411 } # as_fn_exit
   16412 
   16413 # as_fn_unset VAR
   16414 # ---------------
   16415 # Portably unset VAR.
   16416 as_fn_unset ()
   16417 {
   16418   { eval $1=; unset $1;}
   16419 }
   16420 as_unset=as_fn_unset
   16421 # as_fn_append VAR VALUE
   16422 # ----------------------
   16423 # Append the text in VALUE to the end of the definition contained in VAR. Take
   16424 # advantage of any shell optimizations that allow amortized linear growth over
   16425 # repeated appends, instead of the typical quadratic growth present in naive
   16426 # implementations.
   16427 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   16428   eval 'as_fn_append ()
   16429   {
   16430     eval $1+=\$2
   16431   }'
   16432 else
   16433   as_fn_append ()
   16434   {
   16435     eval $1=\$$1\$2
   16436   }
   16437 fi # as_fn_append
   16438 
   16439 # as_fn_arith ARG...
   16440 # ------------------
   16441 # Perform arithmetic evaluation on the ARGs, and store the result in the
   16442 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   16443 # must be portable across $(()) and expr.
   16444 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   16445   eval 'as_fn_arith ()
   16446   {
   16447     as_val=$(( $* ))
   16448   }'
   16449 else
   16450   as_fn_arith ()
   16451   {
   16452     as_val=`expr "$@" || test $? -eq 1`
   16453   }
   16454 fi # as_fn_arith
   16455 
   16456 
   16457 if expr a : '\(a\)' >/dev/null 2>&1 &&
   16458    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   16459   as_expr=expr
   16460 else
   16461   as_expr=false
   16462 fi
   16463 
   16464 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   16465   as_basename=basename
   16466 else
   16467   as_basename=false
   16468 fi
   16469 
   16470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   16471   as_dirname=dirname
   16472 else
   16473   as_dirname=false
   16474 fi
   16475 
   16476 as_me=`$as_basename -- "$0" ||
   16477 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   16478 	 X"$0" : 'X\(//\)$' \| \
   16479 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   16480 $as_echo X/"$0" |
   16481     sed '/^.*\/\([^/][^/]*\)\/*$/{
   16482 	    s//\1/
   16483 	    q
   16484 	  }
   16485 	  /^X\/\(\/\/\)$/{
   16486 	    s//\1/
   16487 	    q
   16488 	  }
   16489 	  /^X\/\(\/\).*/{
   16490 	    s//\1/
   16491 	    q
   16492 	  }
   16493 	  s/.*/./; q'`
   16494 
   16495 # Avoid depending upon Character Ranges.
   16496 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   16497 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   16498 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   16499 as_cr_digits='0123456789'
   16500 as_cr_alnum=$as_cr_Letters$as_cr_digits
   16501 
   16502 ECHO_C= ECHO_N= ECHO_T=
   16503 case `echo -n x` in #(((((
   16504 -n*)
   16505   case `echo 'xy\c'` in
   16506   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   16507   xy)  ECHO_C='\c';;
   16508   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   16509        ECHO_T='	';;
   16510   esac;;
   16511 *)
   16512   ECHO_N='-n';;
   16513 esac
   16514 
   16515 rm -f conf$$ conf$$.exe conf$$.file
   16516 if test -d conf$$.dir; then
   16517   rm -f conf$$.dir/conf$$.file
   16518 else
   16519   rm -f conf$$.dir
   16520   mkdir conf$$.dir 2>/dev/null
   16521 fi
   16522 if (echo >conf$$.file) 2>/dev/null; then
   16523   if ln -s conf$$.file conf$$ 2>/dev/null; then
   16524     as_ln_s='ln -s'
   16525     # ... but there are two gotchas:
   16526     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   16527     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   16528     # In both cases, we have to default to `cp -p'.
   16529     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   16530       as_ln_s='cp -p'
   16531   elif ln conf$$.file conf$$ 2>/dev/null; then
   16532     as_ln_s=ln
   16533   else
   16534     as_ln_s='cp -p'
   16535   fi
   16536 else
   16537   as_ln_s='cp -p'
   16538 fi
   16539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   16540 rmdir conf$$.dir 2>/dev/null
   16541 
   16542 
   16543 # as_fn_mkdir_p
   16544 # -------------
   16545 # Create "$as_dir" as a directory, including parents if necessary.
   16546 as_fn_mkdir_p ()
   16547 {
   16548 
   16549   case $as_dir in #(
   16550   -*) as_dir=./$as_dir;;
   16551   esac
   16552   test -d "$as_dir" || eval $as_mkdir_p || {
   16553     as_dirs=
   16554     while :; do
   16555       case $as_dir in #(
   16556       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   16557       *) as_qdir=$as_dir;;
   16558       esac
   16559       as_dirs="'$as_qdir' $as_dirs"
   16560       as_dir=`$as_dirname -- "$as_dir" ||
   16561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   16562 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   16563 	 X"$as_dir" : 'X\(//\)$' \| \
   16564 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   16565 $as_echo X"$as_dir" |
   16566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   16567 	    s//\1/
   16568 	    q
   16569 	  }
   16570 	  /^X\(\/\/\)[^/].*/{
   16571 	    s//\1/
   16572 	    q
   16573 	  }
   16574 	  /^X\(\/\/\)$/{
   16575 	    s//\1/
   16576 	    q
   16577 	  }
   16578 	  /^X\(\/\).*/{
   16579 	    s//\1/
   16580 	    q
   16581 	  }
   16582 	  s/.*/./; q'`
   16583       test -d "$as_dir" && break
   16584     done
   16585     test -z "$as_dirs" || eval "mkdir $as_dirs"
   16586   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
   16587 
   16588 
   16589 } # as_fn_mkdir_p
   16590 if mkdir -p . 2>/dev/null; then
   16591   as_mkdir_p='mkdir -p "$as_dir"'
   16592 else
   16593   test -d ./-p && rmdir ./-p
   16594   as_mkdir_p=false
   16595 fi
   16596 
   16597 if test -x / >/dev/null 2>&1; then
   16598   as_test_x='test -x'
   16599 else
   16600   if ls -dL / >/dev/null 2>&1; then
   16601     as_ls_L_option=L
   16602   else
   16603     as_ls_L_option=
   16604   fi
   16605   as_test_x='
   16606     eval sh -c '\''
   16607       if test -d "$1"; then
   16608 	test -d "$1/.";
   16609       else
   16610 	case $1 in #(
   16611 	-*)set "./$1";;
   16612 	esac;
   16613 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   16614 	???[sx]*):;;*)false;;esac;fi
   16615     '\'' sh
   16616   '
   16617 fi
   16618 as_executable_p=$as_test_x
   16619 
   16620 # Sed expression to map a string onto a valid CPP name.
   16621 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   16622 
   16623 # Sed expression to map a string onto a valid variable name.
   16624 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   16625 
   16626 
   16627 exec 6>&1
   16628 ## ----------------------------------- ##
   16629 ## Main body of $CONFIG_STATUS script. ##
   16630 ## ----------------------------------- ##
   16631 _ASEOF
   16632 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   16633 
   16634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16635 # Save the log message, to keep $0 and so on meaningful, and to
   16636 # report actual input values of CONFIG_FILES etc. instead of their
   16637 # values after options handling.
   16638 ac_log="
   16639 This file was extended by $as_me, which was
   16640 generated by GNU Autoconf 2.64.  Invocation command line was
   16641 
   16642   CONFIG_FILES    = $CONFIG_FILES
   16643   CONFIG_HEADERS  = $CONFIG_HEADERS
   16644   CONFIG_LINKS    = $CONFIG_LINKS
   16645   CONFIG_COMMANDS = $CONFIG_COMMANDS
   16646   $ $0 $@
   16647 
   16648 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   16649 "
   16650 
   16651 _ACEOF
   16652 
   16653 case $ac_config_files in *"
   16654 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   16655 esac
   16656 
   16657 case $ac_config_headers in *"
   16658 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   16659 esac
   16660 
   16661 
   16662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16663 # Files that config.status was made for.
   16664 config_files="$ac_config_files"
   16665 config_headers="$ac_config_headers"
   16666 config_links="$ac_config_links"
   16667 config_commands="$ac_config_commands"
   16668 
   16669 _ACEOF
   16670 
   16671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16672 ac_cs_usage="\
   16673 \`$as_me' instantiates files and other configuration actions
   16674 from templates according to the current configuration.  Unless the files
   16675 and actions are specified as TAGs, all are instantiated by default.
   16676 
   16677 Usage: $0 [OPTION]... [TAG]...
   16678 
   16679   -h, --help       print this help, then exit
   16680   -V, --version    print version number and configuration settings, then exit
   16681   -q, --quiet, --silent
   16682                    do not print progress messages
   16683   -d, --debug      don't remove temporary files
   16684       --recheck    update $as_me by reconfiguring in the same conditions
   16685       --file=FILE[:TEMPLATE]
   16686                    instantiate the configuration file FILE
   16687       --header=FILE[:TEMPLATE]
   16688                    instantiate the configuration header FILE
   16689 
   16690 Configuration files:
   16691 $config_files
   16692 
   16693 Configuration headers:
   16694 $config_headers
   16695 
   16696 Configuration links:
   16697 $config_links
   16698 
   16699 Configuration commands:
   16700 $config_commands
   16701 
   16702 Report bugs to the package provider."
   16703 
   16704 _ACEOF
   16705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16706 ac_cs_version="\\
   16707 config.status
   16708 configured by $0, generated by GNU Autoconf 2.64,
   16709   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   16710 
   16711 Copyright (C) 2009 Free Software Foundation, Inc.
   16712 This config.status script is free software; the Free Software Foundation
   16713 gives unlimited permission to copy, distribute and modify it."
   16714 
   16715 ac_pwd='$ac_pwd'
   16716 srcdir='$srcdir'
   16717 INSTALL='$INSTALL'
   16718 AWK='$AWK'
   16719 test -n "\$AWK" || AWK=awk
   16720 _ACEOF
   16721 
   16722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16723 # The default lists apply if the user does not specify any file.
   16724 ac_need_defaults=:
   16725 while test $# != 0
   16726 do
   16727   case $1 in
   16728   --*=*)
   16729     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   16730     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   16731     ac_shift=:
   16732     ;;
   16733   *)
   16734     ac_option=$1
   16735     ac_optarg=$2
   16736     ac_shift=shift
   16737     ;;
   16738   esac
   16739 
   16740   case $ac_option in
   16741   # Handling of the options.
   16742   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   16743     ac_cs_recheck=: ;;
   16744   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   16745     $as_echo "$ac_cs_version"; exit ;;
   16746   --debug | --debu | --deb | --de | --d | -d )
   16747     debug=: ;;
   16748   --file | --fil | --fi | --f )
   16749     $ac_shift
   16750     case $ac_optarg in
   16751     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   16752     esac
   16753     as_fn_append CONFIG_FILES " '$ac_optarg'"
   16754     ac_need_defaults=false;;
   16755   --header | --heade | --head | --hea )
   16756     $ac_shift
   16757     case $ac_optarg in
   16758     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   16759     esac
   16760     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   16761     ac_need_defaults=false;;
   16762   --he | --h)
   16763     # Conflict between --help and --header
   16764     as_fn_error "ambiguous option: \`$1'
   16765 Try \`$0 --help' for more information.";;
   16766   --help | --hel | -h )
   16767     $as_echo "$ac_cs_usage"; exit ;;
   16768   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   16769   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   16770     ac_cs_silent=: ;;
   16771 
   16772   # This is an error.
   16773   -*) as_fn_error "unrecognized option: \`$1'
   16774 Try \`$0 --help' for more information." ;;
   16775 
   16776   *) as_fn_append ac_config_targets " $1"
   16777      ac_need_defaults=false ;;
   16778 
   16779   esac
   16780   shift
   16781 done
   16782 
   16783 ac_configure_extra_args=
   16784 
   16785 if $ac_cs_silent; then
   16786   exec 6>/dev/null
   16787   ac_configure_extra_args="$ac_configure_extra_args --silent"
   16788 fi
   16789 
   16790 _ACEOF
   16791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16792 if \$ac_cs_recheck; then
   16793   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   16794   shift
   16795   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   16796   CONFIG_SHELL='$SHELL'
   16797   export CONFIG_SHELL
   16798   exec "\$@"
   16799 fi
   16800 
   16801 _ACEOF
   16802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16803 exec 5>>config.log
   16804 {
   16805   echo
   16806   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   16807 ## Running $as_me. ##
   16808 _ASBOX
   16809   $as_echo "$ac_log"
   16810 } >&5
   16811 
   16812 _ACEOF
   16813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16814 #
   16815 # INIT-COMMANDS
   16816 #
   16817 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
   16818 
   16819 _ACEOF
   16820 
   16821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16822 
   16823 # Handling of arguments.
   16824 for ac_config_target in $ac_config_targets
   16825 do
   16826   case $ac_config_target in
   16827     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
   16828     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
   16829     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
   16830     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
   16831     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
   16832     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   16833     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
   16834     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   16835     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
   16836     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   16837 
   16838   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   16839   esac
   16840 done
   16841 
   16842 
   16843 # If the user did not use the arguments to specify the items to instantiate,
   16844 # then the envvar interface is used.  Set only those that are not.
   16845 # We use the long form for the default assignment because of an extremely
   16846 # bizarre bug on SunOS 4.1.3.
   16847 if $ac_need_defaults; then
   16848   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   16849   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   16850   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
   16851   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   16852 fi
   16853 
   16854 # Have a temporary directory for convenience.  Make it in the build tree
   16855 # simply because there is no reason against having it here, and in addition,
   16856 # creating and moving files from /tmp can sometimes cause problems.
   16857 # Hook for its removal unless debugging.
   16858 # Note that there is a small window in which the directory will not be cleaned:
   16859 # after its creation but before its name has been assigned to `$tmp'.
   16860 $debug ||
   16861 {
   16862   tmp=
   16863   trap 'exit_status=$?
   16864   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   16865 ' 0
   16866   trap 'as_fn_exit 1' 1 2 13 15
   16867 }
   16868 # Create a (secure) tmp directory for tmp files.
   16869 
   16870 {
   16871   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   16872   test -n "$tmp" && test -d "$tmp"
   16873 }  ||
   16874 {
   16875   tmp=./conf$$-$RANDOM
   16876   (umask 077 && mkdir "$tmp")
   16877 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
   16878 
   16879 # Set up the scripts for CONFIG_FILES section.
   16880 # No need to generate them if there are no CONFIG_FILES.
   16881 # This happens for instance with `./config.status config.h'.
   16882 if test -n "$CONFIG_FILES"; then
   16883 
   16884 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   16885   ac_cs_awk_getline=:
   16886   ac_cs_awk_pipe_init=
   16887   ac_cs_awk_read_file='
   16888       while ((getline aline < (F[key])) > 0)
   16889 	print(aline)
   16890       close(F[key])'
   16891   ac_cs_awk_pipe_fini=
   16892 else
   16893   ac_cs_awk_getline=false
   16894   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   16895   ac_cs_awk_read_file='
   16896       print "|#_!!_#|"
   16897       print "cat " F[key] " &&"
   16898       '$ac_cs_awk_pipe_init
   16899   # The final `:' finishes the AND list.
   16900   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   16901 fi
   16902 ac_cr=`echo X | tr X '\015'`
   16903 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   16904 # But we know of no other shell where ac_cr would be empty at this
   16905 # point, so we can use a bashism as a fallback.
   16906 if test "x$ac_cr" = x; then
   16907   eval ac_cr=\$\'\\r\'
   16908 fi
   16909 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   16910 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   16911   ac_cs_awk_cr='\r'
   16912 else
   16913   ac_cs_awk_cr=$ac_cr
   16914 fi
   16915 
   16916 echo 'BEGIN {' >"$tmp/subs1.awk" &&
   16917 _ACEOF
   16918 
   16919 # Create commands to substitute file output variables.
   16920 {
   16921   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   16922   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
   16923   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   16924   echo "_ACAWK" &&
   16925   echo "_ACEOF"
   16926 } >conf$$files.sh &&
   16927 . ./conf$$files.sh ||
   16928   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   16929 rm -f conf$$files.sh
   16930 
   16931 {
   16932   echo "cat >conf$$subs.awk <<_ACEOF" &&
   16933   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   16934   echo "_ACEOF"
   16935 } >conf$$subs.sh ||
   16936   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   16937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
   16938 ac_delim='%!_!# '
   16939 for ac_last_try in false false false false false :; do
   16940   . ./conf$$subs.sh ||
   16941     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   16942 
   16943   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   16944   if test $ac_delim_n = $ac_delim_num; then
   16945     break
   16946   elif $ac_last_try; then
   16947     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   16948   else
   16949     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   16950   fi
   16951 done
   16952 rm -f conf$$subs.sh
   16953 
   16954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16955 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
   16956 _ACEOF
   16957 sed -n '
   16958 h
   16959 s/^/S["/; s/!.*/"]=/
   16960 p
   16961 g
   16962 s/^[^!]*!//
   16963 :repl
   16964 t repl
   16965 s/'"$ac_delim"'$//
   16966 t delim
   16967 :nl
   16968 h
   16969 s/\(.\{148\}\).*/\1/
   16970 t more1
   16971 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   16972 p
   16973 n
   16974 b repl
   16975 :more1
   16976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   16977 p
   16978 g
   16979 s/.\{148\}//
   16980 t nl
   16981 :delim
   16982 h
   16983 s/\(.\{148\}\).*/\1/
   16984 t more2
   16985 s/["\\]/\\&/g; s/^/"/; s/$/"/
   16986 p
   16987 b
   16988 :more2
   16989 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   16990 p
   16991 g
   16992 s/.\{148\}//
   16993 t delim
   16994 ' <conf$$subs.awk | sed '
   16995 /^[^""]/{
   16996   N
   16997   s/\n//
   16998 }
   16999 ' >>$CONFIG_STATUS || ac_write_fail=1
   17000 rm -f conf$$subs.awk
   17001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17002 _ACAWK
   17003 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
   17004   for (key in S) S_is_set[key] = 1
   17005   FS = ""
   17006   \$ac_cs_awk_pipe_init
   17007 }
   17008 {
   17009   line = $ 0
   17010   nfields = split(line, field, "@")
   17011   substed = 0
   17012   len = length(field[1])
   17013   for (i = 2; i < nfields; i++) {
   17014     key = field[i]
   17015     keylen = length(key)
   17016     if (S_is_set[key]) {
   17017       value = S[key]
   17018       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   17019       len += length(value) + length(field[++i])
   17020       substed = 1
   17021     } else
   17022       len += 1 + keylen
   17023   }
   17024   if (nfields == 3 && !substed) {
   17025     key = field[2]
   17026     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   17027       \$ac_cs_awk_read_file
   17028       next
   17029     }
   17030   }
   17031   print line
   17032 }
   17033 \$ac_cs_awk_pipe_fini
   17034 _ACAWK
   17035 _ACEOF
   17036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17037 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   17038   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   17039 else
   17040   cat
   17041 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
   17042   || as_fn_error "could not setup config files machinery" "$LINENO" 5
   17043 _ACEOF
   17044 
   17045 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   17046 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   17047 # trailing colons and then remove the whole line if VPATH becomes empty
   17048 # (actually we leave an empty line to preserve line numbers).
   17049 if test "x$srcdir" = x.; then
   17050   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   17051 s/:*\$(srcdir):*/:/
   17052 s/:*\${srcdir}:*/:/
   17053 s/:*@srcdir@:*/:/
   17054 s/^\([^=]*=[	 ]*\):*/\1/
   17055 s/:*$//
   17056 s/^[^=]*=[	 ]*$//
   17057 }'
   17058 fi
   17059 
   17060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17061 fi # test -n "$CONFIG_FILES"
   17062 
   17063 # Set up the scripts for CONFIG_HEADERS section.
   17064 # No need to generate them if there are no CONFIG_HEADERS.
   17065 # This happens for instance with `./config.status Makefile'.
   17066 if test -n "$CONFIG_HEADERS"; then
   17067 cat >"$tmp/defines.awk" <<\_ACAWK ||
   17068 BEGIN {
   17069 _ACEOF
   17070 
   17071 # Transform confdefs.h into an awk script `defines.awk', embedded as
   17072 # here-document in config.status, that substitutes the proper values into
   17073 # config.h.in to produce config.h.
   17074 
   17075 # Create a delimiter string that does not exist in confdefs.h, to ease
   17076 # handling of long lines.
   17077 ac_delim='%!_!# '
   17078 for ac_last_try in false false :; do
   17079   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
   17080   if test -z "$ac_t"; then
   17081     break
   17082   elif $ac_last_try; then
   17083     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
   17084   else
   17085     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   17086   fi
   17087 done
   17088 
   17089 # For the awk script, D is an array of macro values keyed by name,
   17090 # likewise P contains macro parameters if any.  Preserve backslash
   17091 # newline sequences.
   17092 
   17093 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   17094 sed -n '
   17095 s/.\{148\}/&'"$ac_delim"'/g
   17096 t rset
   17097 :rset
   17098 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   17099 t def
   17100 d
   17101 :def
   17102 s/\\$//
   17103 t bsnl
   17104 s/["\\]/\\&/g
   17105 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   17106 D["\1"]=" \3"/p
   17107 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   17108 d
   17109 :bsnl
   17110 s/["\\]/\\&/g
   17111 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   17112 D["\1"]=" \3\\\\\\n"\\/p
   17113 t cont
   17114 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   17115 t cont
   17116 d
   17117 :cont
   17118 n
   17119 s/.\{148\}/&'"$ac_delim"'/g
   17120 t clear
   17121 :clear
   17122 s/\\$//
   17123 t bsnlc
   17124 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   17125 d
   17126 :bsnlc
   17127 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   17128 b cont
   17129 ' <confdefs.h | sed '
   17130 s/'"$ac_delim"'/"\\\
   17131 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   17132 
   17133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17134   for (key in D) D_is_set[key] = 1
   17135   FS = ""
   17136 }
   17137 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   17138   line = \$ 0
   17139   split(line, arg, " ")
   17140   if (arg[1] == "#") {
   17141     defundef = arg[2]
   17142     mac1 = arg[3]
   17143   } else {
   17144     defundef = substr(arg[1], 2)
   17145     mac1 = arg[2]
   17146   }
   17147   split(mac1, mac2, "(") #)
   17148   macro = mac2[1]
   17149   prefix = substr(line, 1, index(line, defundef) - 1)
   17150   if (D_is_set[macro]) {
   17151     # Preserve the white space surrounding the "#".
   17152     print prefix "define", macro P[macro] D[macro]
   17153     next
   17154   } else {
   17155     # Replace #undef with comments.  This is necessary, for example,
   17156     # in the case of _POSIX_SOURCE, which is predefined and required
   17157     # on some systems where configure will not decide to define it.
   17158     if (defundef == "undef") {
   17159       print "/*", prefix defundef, macro, "*/"
   17160       next
   17161     }
   17162   }
   17163 }
   17164 { print }
   17165 _ACAWK
   17166 _ACEOF
   17167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17168   as_fn_error "could not setup config headers machinery" "$LINENO" 5
   17169 fi # test -n "$CONFIG_HEADERS"
   17170 
   17171 
   17172 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
   17173 shift
   17174 for ac_tag
   17175 do
   17176   case $ac_tag in
   17177   :[FHLC]) ac_mode=$ac_tag; continue;;
   17178   esac
   17179   case $ac_mode$ac_tag in
   17180   :[FHL]*:*);;
   17181   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
   17182   :[FH]-) ac_tag=-:-;;
   17183   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   17184   esac
   17185   ac_save_IFS=$IFS
   17186   IFS=:
   17187   set x $ac_tag
   17188   IFS=$ac_save_IFS
   17189   shift
   17190   ac_file=$1
   17191   shift
   17192 
   17193   case $ac_mode in
   17194   :L) ac_source=$1;;
   17195   :[FH])
   17196     ac_file_inputs=
   17197     for ac_f
   17198     do
   17199       case $ac_f in
   17200       -) ac_f="$tmp/stdin";;
   17201       *) # Look for the file first in the build tree, then in the source tree
   17202 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   17203 	 # because $ac_f cannot contain `:'.
   17204 	 test -f "$ac_f" ||
   17205 	   case $ac_f in
   17206 	   [\\/$]*) false;;
   17207 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   17208 	   esac ||
   17209 	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   17210       esac
   17211       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   17212       as_fn_append ac_file_inputs " '$ac_f'"
   17213     done
   17214 
   17215     # Let's still pretend it is `configure' which instantiates (i.e., don't
   17216     # use $as_me), people would be surprised to read:
   17217     #    /* config.h.  Generated by config.status.  */
   17218     configure_input='Generated from '`
   17219 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   17220 	`' by configure.'
   17221     if test x"$ac_file" != x-; then
   17222       configure_input="$ac_file.  $configure_input"
   17223       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   17224 $as_echo "$as_me: creating $ac_file" >&6;}
   17225     fi
   17226     # Neutralize special characters interpreted by sed in replacement strings.
   17227     case $configure_input in #(
   17228     *\&* | *\|* | *\\* )
   17229        ac_sed_conf_input=`$as_echo "$configure_input" |
   17230        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   17231     *) ac_sed_conf_input=$configure_input;;
   17232     esac
   17233 
   17234     case $ac_tag in
   17235     *:-:* | *:-) cat >"$tmp/stdin" \
   17236       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
   17237     esac
   17238     ;;
   17239   esac
   17240 
   17241   ac_dir=`$as_dirname -- "$ac_file" ||
   17242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   17243 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   17244 	 X"$ac_file" : 'X\(//\)$' \| \
   17245 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   17246 $as_echo X"$ac_file" |
   17247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   17248 	    s//\1/
   17249 	    q
   17250 	  }
   17251 	  /^X\(\/\/\)[^/].*/{
   17252 	    s//\1/
   17253 	    q
   17254 	  }
   17255 	  /^X\(\/\/\)$/{
   17256 	    s//\1/
   17257 	    q
   17258 	  }
   17259 	  /^X\(\/\).*/{
   17260 	    s//\1/
   17261 	    q
   17262 	  }
   17263 	  s/.*/./; q'`
   17264   as_dir="$ac_dir"; as_fn_mkdir_p
   17265   ac_builddir=.
   17266 
   17267 case "$ac_dir" in
   17268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   17269 *)
   17270   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   17271   # A ".." for each directory in $ac_dir_suffix.
   17272   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   17273   case $ac_top_builddir_sub in
   17274   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   17275   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   17276   esac ;;
   17277 esac
   17278 ac_abs_top_builddir=$ac_pwd
   17279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   17280 # for backward compatibility:
   17281 ac_top_builddir=$ac_top_build_prefix
   17282 
   17283 case $srcdir in
   17284   .)  # We are building in place.
   17285     ac_srcdir=.
   17286     ac_top_srcdir=$ac_top_builddir_sub
   17287     ac_abs_top_srcdir=$ac_pwd ;;
   17288   [\\/]* | ?:[\\/]* )  # Absolute name.
   17289     ac_srcdir=$srcdir$ac_dir_suffix;
   17290     ac_top_srcdir=$srcdir
   17291     ac_abs_top_srcdir=$srcdir ;;
   17292   *) # Relative name.
   17293     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   17294     ac_top_srcdir=$ac_top_build_prefix$srcdir
   17295     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   17296 esac
   17297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   17298 
   17299 
   17300   case $ac_mode in
   17301   :F)
   17302   #
   17303   # CONFIG_FILE
   17304   #
   17305 
   17306   case $INSTALL in
   17307   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   17308   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   17309   esac
   17310 _ACEOF
   17311 
   17312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17313 # If the template does not know about datarootdir, expand it.
   17314 # FIXME: This hack should be removed a few years after 2.60.
   17315 ac_datarootdir_hack=; ac_datarootdir_seen=
   17316 ac_sed_dataroot='
   17317 /datarootdir/ {
   17318   p
   17319   q
   17320 }
   17321 /@datadir@/p
   17322 /@docdir@/p
   17323 /@infodir@/p
   17324 /@localedir@/p
   17325 /@mandir@/p'
   17326 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   17327 *datarootdir*) ac_datarootdir_seen=yes;;
   17328 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   17329   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   17330 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   17331 _ACEOF
   17332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17333   ac_datarootdir_hack='
   17334   s&@datadir@&$datadir&g
   17335   s&@docdir@&$docdir&g
   17336   s&@infodir@&$infodir&g
   17337   s&@localedir@&$localedir&g
   17338   s&@mandir@&$mandir&g
   17339   s&\\\${datarootdir}&$datarootdir&g' ;;
   17340 esac
   17341 _ACEOF
   17342 
   17343 # Neutralize VPATH when `$srcdir' = `.'.
   17344 # Shell code in configure.ac might set extrasub.
   17345 # FIXME: do we really want to maintain this feature?
   17346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17347 ac_sed_extra="$ac_vpsub
   17348 $extrasub
   17349 _ACEOF
   17350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17351 :t
   17352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   17353 s|@configure_input@|$ac_sed_conf_input|;t t
   17354 s&@top_builddir@&$ac_top_builddir_sub&;t t
   17355 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   17356 s&@srcdir@&$ac_srcdir&;t t
   17357 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   17358 s&@top_srcdir@&$ac_top_srcdir&;t t
   17359 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   17360 s&@builddir@&$ac_builddir&;t t
   17361 s&@abs_builddir@&$ac_abs_builddir&;t t
   17362 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   17363 s&@INSTALL@&$ac_INSTALL&;t t
   17364 $ac_datarootdir_hack
   17365 "
   17366 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   17367 if $ac_cs_awk_getline; then
   17368   $AWK -f "$tmp/subs.awk"
   17369 else
   17370   $AWK -f "$tmp/subs.awk" | $SHELL
   17371 fi >$tmp/out \
   17372   || as_fn_error "could not create $ac_file" "$LINENO" 5
   17373 
   17374 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   17375   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   17376   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   17377   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   17378 which seems to be undefined.  Please make sure it is defined." >&5
   17379 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   17380 which seems to be undefined.  Please make sure it is defined." >&2;}
   17381 
   17382   rm -f "$tmp/stdin"
   17383   case $ac_file in
   17384   -) cat "$tmp/out" && rm -f "$tmp/out";;
   17385   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
   17386   esac \
   17387   || as_fn_error "could not create $ac_file" "$LINENO" 5
   17388  ;;
   17389   :H)
   17390   #
   17391   # CONFIG_HEADER
   17392   #
   17393   if test x"$ac_file" != x-; then
   17394     {
   17395       $as_echo "/* $configure_input  */" \
   17396       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
   17397     } >"$tmp/config.h" \
   17398       || as_fn_error "could not create $ac_file" "$LINENO" 5
   17399     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
   17400       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   17401 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   17402     else
   17403       rm -f "$ac_file"
   17404       mv "$tmp/config.h" "$ac_file" \
   17405 	|| as_fn_error "could not create $ac_file" "$LINENO" 5
   17406     fi
   17407   else
   17408     $as_echo "/* $configure_input  */" \
   17409       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
   17410       || as_fn_error "could not create -" "$LINENO" 5
   17411   fi
   17412  ;;
   17413   :L)
   17414   #
   17415   # CONFIG_LINK
   17416   #
   17417 
   17418   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
   17419     :
   17420   else
   17421     # Prefer the file from the source tree if names are identical.
   17422     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
   17423       ac_source=$srcdir/$ac_source
   17424     fi
   17425 
   17426     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
   17427 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
   17428 
   17429     if test ! -r "$ac_source"; then
   17430       as_fn_error "$ac_source: file not found" "$LINENO" 5
   17431     fi
   17432     rm -f "$ac_file"
   17433 
   17434     # Try a relative symlink, then a hard link, then a copy.
   17435     case $srcdir in
   17436     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
   17437 	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
   17438     esac
   17439     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
   17440       ln "$ac_source" "$ac_file" 2>/dev/null ||
   17441       cp -p "$ac_source" "$ac_file" ||
   17442       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
   17443   fi
   17444  ;;
   17445   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   17446 $as_echo "$as_me: executing $ac_file commands" >&6;}
   17447  ;;
   17448   esac
   17449 
   17450 
   17451   case $ac_file$ac_mode in
   17452     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
   17453     "gcore":F) chmod +x gcore ;;
   17454     "default":C)
   17455 case x$CONFIG_HEADERS in
   17456 xconfig.h:config.in)
   17457 echo > stamp-h ;;
   17458 esac
   17459  ;;
   17460 
   17461   esac
   17462 done # for ac_tag
   17463 
   17464 
   17465 as_fn_exit 0
   17466 _ACEOF
   17467 ac_clean_files=$ac_clean_files_save
   17468 
   17469 test $ac_write_fail = 0 ||
   17470   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
   17471 
   17472 
   17473 # configure is writing to config.log, and then calls config.status.
   17474 # config.status does its own redirection, appending to config.log.
   17475 # Unfortunately, on DOS this fails, as config.log is still kept open
   17476 # by configure, so config.status won't be able to write to it; its
   17477 # output is simply discarded.  So we exec the FD to /dev/null,
   17478 # effectively closing config.log, so it can be properly (re)opened and
   17479 # appended to by config.status.  When coming back to configure, we
   17480 # need to make the FD available again.
   17481 if test "$no_create" != yes; then
   17482   ac_cs_success=:
   17483   ac_config_status_args=
   17484   test "$silent" = yes &&
   17485     ac_config_status_args="$ac_config_status_args --quiet"
   17486   exec 5>/dev/null
   17487   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   17488   exec 5>>config.log
   17489   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   17490   # would make configure fail if this is the last instruction.
   17491   $ac_cs_success || as_fn_exit $?
   17492 fi
   17493 
   17494 #
   17495 # CONFIG_SUBDIRS section.
   17496 #
   17497 if test "$no_recursion" != yes; then
   17498 
   17499   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   17500   # so they do not pile up.
   17501   ac_sub_configure_args=
   17502   ac_prev=
   17503   eval "set x $ac_configure_args"
   17504   shift
   17505   for ac_arg
   17506   do
   17507     if test -n "$ac_prev"; then
   17508       ac_prev=
   17509       continue
   17510     fi
   17511     case $ac_arg in
   17512     -cache-file | --cache-file | --cache-fil | --cache-fi \
   17513     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   17514       ac_prev=cache_file ;;
   17515     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   17516     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   17517     | --c=*)
   17518       ;;
   17519     --config-cache | -C)
   17520       ;;
   17521     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   17522       ac_prev=srcdir ;;
   17523     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   17524       ;;
   17525     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   17526       ac_prev=prefix ;;
   17527     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   17528       ;;
   17529     --disable-option-checking)
   17530       ;;
   17531     *)
   17532       case $ac_arg in
   17533       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   17534       esac
   17535       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   17536     esac
   17537   done
   17538 
   17539   # Always prepend --prefix to ensure using the same prefix
   17540   # in subdir configurations.
   17541   ac_arg="--prefix=$prefix"
   17542   case $ac_arg in
   17543   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   17544   esac
   17545   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   17546 
   17547   # Pass --silent
   17548   if test "$silent" = yes; then
   17549     ac_sub_configure_args="--silent $ac_sub_configure_args"
   17550   fi
   17551 
   17552   # Always prepend --disable-option-checking to silence warnings, since
   17553   # different subdirs can have different --enable and --with options.
   17554   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   17555 
   17556   ac_popdir=`pwd`
   17557   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   17558 
   17559     # Do not complain, so a configure script can configure whichever
   17560     # parts of a large source tree are present.
   17561     test -d "$srcdir/$ac_dir" || continue
   17562 
   17563     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   17564     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   17565     $as_echo "$ac_msg" >&6
   17566     as_dir="$ac_dir"; as_fn_mkdir_p
   17567     ac_builddir=.
   17568 
   17569 case "$ac_dir" in
   17570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   17571 *)
   17572   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   17573   # A ".." for each directory in $ac_dir_suffix.
   17574   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   17575   case $ac_top_builddir_sub in
   17576   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   17577   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   17578   esac ;;
   17579 esac
   17580 ac_abs_top_builddir=$ac_pwd
   17581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   17582 # for backward compatibility:
   17583 ac_top_builddir=$ac_top_build_prefix
   17584 
   17585 case $srcdir in
   17586   .)  # We are building in place.
   17587     ac_srcdir=.
   17588     ac_top_srcdir=$ac_top_builddir_sub
   17589     ac_abs_top_srcdir=$ac_pwd ;;
   17590   [\\/]* | ?:[\\/]* )  # Absolute name.
   17591     ac_srcdir=$srcdir$ac_dir_suffix;
   17592     ac_top_srcdir=$srcdir
   17593     ac_abs_top_srcdir=$srcdir ;;
   17594   *) # Relative name.
   17595     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   17596     ac_top_srcdir=$ac_top_build_prefix$srcdir
   17597     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   17598 esac
   17599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   17600 
   17601 
   17602     cd "$ac_dir"
   17603 
   17604     # Check for guested configure; otherwise get Cygnus style configure.
   17605     if test -f "$ac_srcdir/configure.gnu"; then
   17606       ac_sub_configure=$ac_srcdir/configure.gnu
   17607     elif test -f "$ac_srcdir/configure"; then
   17608       ac_sub_configure=$ac_srcdir/configure
   17609     elif test -f "$ac_srcdir/configure.in"; then
   17610       # This should be Cygnus configure.
   17611       ac_sub_configure=$ac_aux_dir/configure
   17612     else
   17613       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
   17614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   17615       ac_sub_configure=
   17616     fi
   17617 
   17618     # The recursion is here.
   17619     if test -n "$ac_sub_configure"; then
   17620       # Make the cache file name correct relative to the subdirectory.
   17621       case $cache_file in
   17622       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   17623       *) # Relative name.
   17624 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   17625       esac
   17626 
   17627       { $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
   17628 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   17629       # The eval makes quoting arguments work.
   17630       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   17631 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   17632 	as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   17633     fi
   17634 
   17635     cd "$ac_popdir"
   17636   done
   17637 fi
   17638 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   17639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   17640 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   17641 fi
   17642 
   17643 
   17644 exit 0
   17645