Home | History | Annotate | Line # | Download | only in gdb
configure revision 1.6
      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 XSLTPROC
    597 GDB_NM_FILE
    598 LTLIBBABELTRACE
    599 LIBBABELTRACE
    600 HAVE_LIBBABELTRACE
    601 frags
    602 target_subdir
    603 CONFIG_UNINSTALL
    604 CONFIG_INSTALL
    605 CONFIG_CLEAN
    606 CONFIG_ALL
    607 CONFIG_SRCS
    608 CONFIG_DEPS
    609 CONFIG_OBS
    610 PROFILE_CFLAGS
    611 ENABLE_CFLAGS
    612 SIM_OBS
    613 SIM
    614 XMKMF
    615 GDBTK_SRC_DIR
    616 GDBTK_CFLAGS
    617 GDBTKLIBS
    618 X_LIBS
    619 X_LDFLAGS
    620 X_CFLAGS
    621 TK_XINCLUDES
    622 TK_DEPS
    623 TK_LIBRARY
    624 TK_INCLUDE
    625 TK_STUB_LIB_SPEC
    626 TK_STUB_LIB_FLAG
    627 TK_STUB_LIB_FILE
    628 TK_LIB_SPEC
    629 TK_LIB_FLAG
    630 TK_LIB_FILE
    631 TK_SRC_DIR
    632 TK_BIN_DIR
    633 TK_VERSION
    634 TCL_DEPS
    635 TCL_LIBRARY
    636 TCL_INCLUDE
    637 TCL_STUB_LIB_SPEC
    638 TCL_STUB_LIB_FLAG
    639 TCL_STUB_LIB_FILE
    640 TCL_LIB_SPEC
    641 TCL_LIB_FLAG
    642 TCL_LIB_FILE
    643 TCL_SRC_DIR
    644 TCL_BIN_DIR
    645 TCL_PATCH_LEVEL
    646 TCL_VERSION
    647 WIN32LDAPP
    648 GUI_CFLAGS_X
    649 LIBGUI
    650 LTLIBLZMA
    651 LIBLZMA
    652 HAVE_LIBLZMA
    653 WIN32LIBS
    654 SER_HARDWIRE
    655 WERROR_CFLAGS
    656 WARN_CFLAGS
    657 SYSTEM_GDBINIT
    658 TARGET_SYSTEM_ROOT
    659 CONFIG_LDFLAGS
    660 RDYNAMIC
    661 ALLOCA
    662 LTLIBIPT
    663 LIBIPT
    664 HAVE_LIBIPT
    665 HAVE_GUILE_FALSE
    666 HAVE_GUILE_TRUE
    667 GUILE_LIBS
    668 GUILE_CPPFLAGS
    669 GUILD_TARGET_FLAG
    670 GUILD
    671 pkg_config_prog_path
    672 HAVE_PYTHON_FALSE
    673 HAVE_PYTHON_TRUE
    674 PYTHON_LIBS
    675 PYTHON_CPPFLAGS
    676 PYTHON_CFLAGS
    677 python_prog_path
    678 LTLIBEXPAT
    679 LIBEXPAT
    680 HAVE_LIBEXPAT
    681 JIT_READER_DIR
    682 TARGET_PTR
    683 READLINE_TEXI_INCFLAG
    684 READLINE_CFLAGS
    685 READLINE_DEPS
    686 READLINE
    687 LTLIBICONV
    688 LIBICONV
    689 zlibinc
    690 zlibdir
    691 MIG
    692 WINDRES
    693 DLLTOOL
    694 AR
    695 YFLAGS
    696 YACC
    697 RANLIB
    698 LN_S
    699 INSTALL_DATA
    700 INSTALL_SCRIPT
    701 INSTALL_PROGRAM
    702 AWK
    703 REPORT_BUGS_TEXI
    704 REPORT_BUGS_TO
    705 PKGVERSION
    706 HAVE_NATIVE_GCORE_TARGET
    707 TARGET_OBS
    708 subdirs
    709 GDB_DATADIR
    710 DEBUGDIR
    711 MAKEINFO_EXTRA_FLAGS
    712 MAKEINFOFLAGS
    713 MAKEINFO
    714 PACKAGE
    715 GNULIB_STDINT_H
    716 CATOBJEXT
    717 GENCAT
    718 INSTOBJEXT
    719 DATADIRNAME
    720 CATALOGS
    721 POSUB
    722 GMSGFMT
    723 XGETTEXT
    724 INCINTL
    725 LIBINTL_DEP
    726 LIBINTL
    727 USE_NLS
    728 SET_MAKE
    729 GMAKE_FALSE
    730 GMAKE_TRUE
    731 MAKE
    732 CCDEPMODE
    733 DEPDIR
    734 am__leading_dot
    735 COMPILER_CFLAGS
    736 COMPILER
    737 INSTALL_STRIP_PROGRAM
    738 STRIP
    739 install_sh
    740 target_os
    741 target_vendor
    742 target_cpu
    743 target
    744 host_os
    745 host_vendor
    746 host_cpu
    747 host
    748 build_os
    749 build_vendor
    750 build_cpu
    751 build
    752 EGREP
    753 GREP
    754 CPP
    755 ac_ct_CXX
    756 CXXFLAGS
    757 CXX
    758 OBJEXT
    759 EXEEXT
    760 ac_ct_CC
    761 CPPFLAGS
    762 LDFLAGS
    763 CFLAGS
    764 CC
    765 MAINT
    766 MAINTAINER_MODE_FALSE
    767 MAINTAINER_MODE_TRUE
    768 target_alias
    769 host_alias
    770 build_alias
    771 LIBS
    772 ECHO_T
    773 ECHO_N
    774 ECHO_C
    775 DEFS
    776 mandir
    777 localedir
    778 libdir
    779 psdir
    780 pdfdir
    781 dvidir
    782 htmldir
    783 infodir
    784 docdir
    785 oldincludedir
    786 includedir
    787 localstatedir
    788 sharedstatedir
    789 sysconfdir
    790 datadir
    791 datarootdir
    792 libexecdir
    793 sbindir
    794 bindir
    795 program_transform_name
    796 prefix
    797 exec_prefix
    798 PACKAGE_URL
    799 PACKAGE_BUGREPORT
    800 PACKAGE_STRING
    801 PACKAGE_VERSION
    802 PACKAGE_TARNAME
    803 PACKAGE_NAME
    804 PATH_SEPARATOR
    805 SHELL'
    806 ac_subst_files='host_makefile_frag'
    807 ac_user_opts='
    808 enable_option_checking
    809 enable_maintainer_mode
    810 enable_plugins
    811 enable_largefile
    812 enable_build_with_cxx
    813 with_separate_debug_dir
    814 with_gdb_datadir
    815 with_relocated_sources
    816 with_auto_load_dir
    817 with_auto_load_safe_path
    818 enable_targets
    819 enable_64_bit_bfd
    820 enable_gdbcli
    821 enable_gdbmi
    822 enable_tui
    823 enable_gdbtk
    824 with_libunwind_ia64
    825 with_curses
    826 enable_profiling
    827 with_pkgversion
    828 with_bugurl
    829 with_system_zlib
    830 with_gnu_ld
    831 enable_rpath
    832 with_libiconv_prefix
    833 with_iconv_bin
    834 with_system_readline
    835 with_jit_reader_dir
    836 with_expat
    837 with_libexpat_prefix
    838 with_python
    839 with_guile
    840 enable_libmcheck
    841 with_intel_pt
    842 with_libipt_prefix
    843 with_included_regex
    844 with_sysroot
    845 with_system_gdbinit
    846 enable_werror
    847 enable_build_warnings
    848 enable_gdb_build_warnings
    849 with_lzma
    850 with_liblzma_prefix
    851 with_tcl
    852 with_tk
    853 with_x
    854 enable_sim
    855 enable_multi_ice
    856 enable_gdbserver
    857 with_babeltrace
    858 with_libbabeltrace_prefix
    859 '
    860       ac_precious_vars='build_alias
    861 host_alias
    862 target_alias
    863 CC
    864 CFLAGS
    865 LDFLAGS
    866 LIBS
    867 CPPFLAGS
    868 CXX
    869 CXXFLAGS
    870 CCC
    871 CPP
    872 MAKEINFO
    873 MAKEINFOFLAGS
    874 YACC
    875 YFLAGS
    876 XMKMF'
    877 ac_subdirs_all='testsuite
    878 gdbtk
    879 multi-ice
    880 gdbserver'
    881 
    882 # Initialize some variables set by options.
    883 ac_init_help=
    884 ac_init_version=false
    885 ac_unrecognized_opts=
    886 ac_unrecognized_sep=
    887 # The variables have the same names as the options, with
    888 # dashes changed to underlines.
    889 cache_file=/dev/null
    890 exec_prefix=NONE
    891 no_create=
    892 no_recursion=
    893 prefix=NONE
    894 program_prefix=NONE
    895 program_suffix=NONE
    896 program_transform_name=s,x,x,
    897 silent=
    898 site=
    899 srcdir=
    900 verbose=
    901 x_includes=NONE
    902 x_libraries=NONE
    903 
    904 # Installation directory options.
    905 # These are left unexpanded so users can "make install exec_prefix=/foo"
    906 # and all the variables that are supposed to be based on exec_prefix
    907 # by default will actually change.
    908 # Use braces instead of parens because sh, perl, etc. also accept them.
    909 # (The list follows the same order as the GNU Coding Standards.)
    910 bindir='${exec_prefix}/bin'
    911 sbindir='${exec_prefix}/sbin'
    912 libexecdir='${exec_prefix}/libexec'
    913 datarootdir='${prefix}/share'
    914 datadir='${datarootdir}'
    915 sysconfdir='${prefix}/etc'
    916 sharedstatedir='${prefix}/com'
    917 localstatedir='${prefix}/var'
    918 includedir='${prefix}/include'
    919 oldincludedir='/usr/include'
    920 docdir='${datarootdir}/doc/${PACKAGE}'
    921 infodir='${datarootdir}/info'
    922 htmldir='${docdir}'
    923 dvidir='${docdir}'
    924 pdfdir='${docdir}'
    925 psdir='${docdir}'
    926 libdir='${exec_prefix}/lib'
    927 localedir='${datarootdir}/locale'
    928 mandir='${datarootdir}/man'
    929 
    930 ac_prev=
    931 ac_dashdash=
    932 for ac_option
    933 do
    934   # If the previous option needs an argument, assign it.
    935   if test -n "$ac_prev"; then
    936     eval $ac_prev=\$ac_option
    937     ac_prev=
    938     continue
    939   fi
    940 
    941   case $ac_option in
    942   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    943   *)	ac_optarg=yes ;;
    944   esac
    945 
    946   # Accept the important Cygnus configure options, so we can diagnose typos.
    947 
    948   case $ac_dashdash$ac_option in
    949   --)
    950     ac_dashdash=yes ;;
    951 
    952   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    953     ac_prev=bindir ;;
    954   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    955     bindir=$ac_optarg ;;
    956 
    957   -build | --build | --buil | --bui | --bu)
    958     ac_prev=build_alias ;;
    959   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    960     build_alias=$ac_optarg ;;
    961 
    962   -cache-file | --cache-file | --cache-fil | --cache-fi \
    963   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    964     ac_prev=cache_file ;;
    965   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    966   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    967     cache_file=$ac_optarg ;;
    968 
    969   --config-cache | -C)
    970     cache_file=config.cache ;;
    971 
    972   -datadir | --datadir | --datadi | --datad)
    973     ac_prev=datadir ;;
    974   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    975     datadir=$ac_optarg ;;
    976 
    977   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    978   | --dataroo | --dataro | --datar)
    979     ac_prev=datarootdir ;;
    980   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    981   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    982     datarootdir=$ac_optarg ;;
    983 
    984   -disable-* | --disable-*)
    985     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    986     # Reject names that are not valid shell variable names.
    987     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    988       as_fn_error "invalid feature name: $ac_useropt"
    989     ac_useropt_orig=$ac_useropt
    990     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    991     case $ac_user_opts in
    992       *"
    993 "enable_$ac_useropt"
    994 "*) ;;
    995       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    996 	 ac_unrecognized_sep=', ';;
    997     esac
    998     eval enable_$ac_useropt=no ;;
    999 
   1000   -docdir | --docdir | --docdi | --doc | --do)
   1001     ac_prev=docdir ;;
   1002   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1003     docdir=$ac_optarg ;;
   1004 
   1005   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1006     ac_prev=dvidir ;;
   1007   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1008     dvidir=$ac_optarg ;;
   1009 
   1010   -enable-* | --enable-*)
   1011     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1012     # Reject names that are not valid shell variable names.
   1013     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1014       as_fn_error "invalid feature name: $ac_useropt"
   1015     ac_useropt_orig=$ac_useropt
   1016     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1017     case $ac_user_opts in
   1018       *"
   1019 "enable_$ac_useropt"
   1020 "*) ;;
   1021       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1022 	 ac_unrecognized_sep=', ';;
   1023     esac
   1024     eval enable_$ac_useropt=\$ac_optarg ;;
   1025 
   1026   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1027   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1028   | --exec | --exe | --ex)
   1029     ac_prev=exec_prefix ;;
   1030   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1031   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1032   | --exec=* | --exe=* | --ex=*)
   1033     exec_prefix=$ac_optarg ;;
   1034 
   1035   -gas | --gas | --ga | --g)
   1036     # Obsolete; use --with-gas.
   1037     with_gas=yes ;;
   1038 
   1039   -help | --help | --hel | --he | -h)
   1040     ac_init_help=long ;;
   1041   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1042     ac_init_help=recursive ;;
   1043   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1044     ac_init_help=short ;;
   1045 
   1046   -host | --host | --hos | --ho)
   1047     ac_prev=host_alias ;;
   1048   -host=* | --host=* | --hos=* | --ho=*)
   1049     host_alias=$ac_optarg ;;
   1050 
   1051   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1052     ac_prev=htmldir ;;
   1053   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1054   | --ht=*)
   1055     htmldir=$ac_optarg ;;
   1056 
   1057   -includedir | --includedir | --includedi | --included | --include \
   1058   | --includ | --inclu | --incl | --inc)
   1059     ac_prev=includedir ;;
   1060   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1061   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1062     includedir=$ac_optarg ;;
   1063 
   1064   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1065     ac_prev=infodir ;;
   1066   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1067     infodir=$ac_optarg ;;
   1068 
   1069   -libdir | --libdir | --libdi | --libd)
   1070     ac_prev=libdir ;;
   1071   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1072     libdir=$ac_optarg ;;
   1073 
   1074   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1075   | --libexe | --libex | --libe)
   1076     ac_prev=libexecdir ;;
   1077   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1078   | --libexe=* | --libex=* | --libe=*)
   1079     libexecdir=$ac_optarg ;;
   1080 
   1081   -localedir | --localedir | --localedi | --localed | --locale)
   1082     ac_prev=localedir ;;
   1083   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1084     localedir=$ac_optarg ;;
   1085 
   1086   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1087   | --localstate | --localstat | --localsta | --localst | --locals)
   1088     ac_prev=localstatedir ;;
   1089   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1090   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1091     localstatedir=$ac_optarg ;;
   1092 
   1093   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1094     ac_prev=mandir ;;
   1095   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1096     mandir=$ac_optarg ;;
   1097 
   1098   -nfp | --nfp | --nf)
   1099     # Obsolete; use --without-fp.
   1100     with_fp=no ;;
   1101 
   1102   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1103   | --no-cr | --no-c | -n)
   1104     no_create=yes ;;
   1105 
   1106   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1107   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1108     no_recursion=yes ;;
   1109 
   1110   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1111   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1112   | --oldin | --oldi | --old | --ol | --o)
   1113     ac_prev=oldincludedir ;;
   1114   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1115   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1116   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1117     oldincludedir=$ac_optarg ;;
   1118 
   1119   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1120     ac_prev=prefix ;;
   1121   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1122     prefix=$ac_optarg ;;
   1123 
   1124   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1125   | --program-pre | --program-pr | --program-p)
   1126     ac_prev=program_prefix ;;
   1127   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1128   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1129     program_prefix=$ac_optarg ;;
   1130 
   1131   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1132   | --program-suf | --program-su | --program-s)
   1133     ac_prev=program_suffix ;;
   1134   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1135   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1136     program_suffix=$ac_optarg ;;
   1137 
   1138   -program-transform-name | --program-transform-name \
   1139   | --program-transform-nam | --program-transform-na \
   1140   | --program-transform-n | --program-transform- \
   1141   | --program-transform | --program-transfor \
   1142   | --program-transfo | --program-transf \
   1143   | --program-trans | --program-tran \
   1144   | --progr-tra | --program-tr | --program-t)
   1145     ac_prev=program_transform_name ;;
   1146   -program-transform-name=* | --program-transform-name=* \
   1147   | --program-transform-nam=* | --program-transform-na=* \
   1148   | --program-transform-n=* | --program-transform-=* \
   1149   | --program-transform=* | --program-transfor=* \
   1150   | --program-transfo=* | --program-transf=* \
   1151   | --program-trans=* | --program-tran=* \
   1152   | --progr-tra=* | --program-tr=* | --program-t=*)
   1153     program_transform_name=$ac_optarg ;;
   1154 
   1155   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1156     ac_prev=pdfdir ;;
   1157   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1158     pdfdir=$ac_optarg ;;
   1159 
   1160   -psdir | --psdir | --psdi | --psd | --ps)
   1161     ac_prev=psdir ;;
   1162   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1163     psdir=$ac_optarg ;;
   1164 
   1165   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1166   | -silent | --silent | --silen | --sile | --sil)
   1167     silent=yes ;;
   1168 
   1169   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1170     ac_prev=sbindir ;;
   1171   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1172   | --sbi=* | --sb=*)
   1173     sbindir=$ac_optarg ;;
   1174 
   1175   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1176   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1177   | --sharedst | --shareds | --shared | --share | --shar \
   1178   | --sha | --sh)
   1179     ac_prev=sharedstatedir ;;
   1180   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1181   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1182   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1183   | --sha=* | --sh=*)
   1184     sharedstatedir=$ac_optarg ;;
   1185 
   1186   -site | --site | --sit)
   1187     ac_prev=site ;;
   1188   -site=* | --site=* | --sit=*)
   1189     site=$ac_optarg ;;
   1190 
   1191   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1192     ac_prev=srcdir ;;
   1193   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1194     srcdir=$ac_optarg ;;
   1195 
   1196   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1197   | --syscon | --sysco | --sysc | --sys | --sy)
   1198     ac_prev=sysconfdir ;;
   1199   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1200   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1201     sysconfdir=$ac_optarg ;;
   1202 
   1203   -target | --target | --targe | --targ | --tar | --ta | --t)
   1204     ac_prev=target_alias ;;
   1205   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1206     target_alias=$ac_optarg ;;
   1207 
   1208   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1209     verbose=yes ;;
   1210 
   1211   -version | --version | --versio | --versi | --vers | -V)
   1212     ac_init_version=: ;;
   1213 
   1214   -with-* | --with-*)
   1215     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1216     # Reject names that are not valid shell variable names.
   1217     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1218       as_fn_error "invalid package name: $ac_useropt"
   1219     ac_useropt_orig=$ac_useropt
   1220     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1221     case $ac_user_opts in
   1222       *"
   1223 "with_$ac_useropt"
   1224 "*) ;;
   1225       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1226 	 ac_unrecognized_sep=', ';;
   1227     esac
   1228     eval with_$ac_useropt=\$ac_optarg ;;
   1229 
   1230   -without-* | --without-*)
   1231     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1232     # Reject names that are not valid shell variable names.
   1233     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1234       as_fn_error "invalid package name: $ac_useropt"
   1235     ac_useropt_orig=$ac_useropt
   1236     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1237     case $ac_user_opts in
   1238       *"
   1239 "with_$ac_useropt"
   1240 "*) ;;
   1241       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1242 	 ac_unrecognized_sep=', ';;
   1243     esac
   1244     eval with_$ac_useropt=no ;;
   1245 
   1246   --x)
   1247     # Obsolete; use --with-x.
   1248     with_x=yes ;;
   1249 
   1250   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1251   | --x-incl | --x-inc | --x-in | --x-i)
   1252     ac_prev=x_includes ;;
   1253   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1254   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1255     x_includes=$ac_optarg ;;
   1256 
   1257   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1258   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1259     ac_prev=x_libraries ;;
   1260   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1261   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1262     x_libraries=$ac_optarg ;;
   1263 
   1264   -*) as_fn_error "unrecognized option: \`$ac_option'
   1265 Try \`$0 --help' for more information."
   1266     ;;
   1267 
   1268   *=*)
   1269     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1270     # Reject names that are not valid shell variable names.
   1271     case $ac_envvar in #(
   1272       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1273       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
   1274     esac
   1275     eval $ac_envvar=\$ac_optarg
   1276     export $ac_envvar ;;
   1277 
   1278   *)
   1279     # FIXME: should be removed in autoconf 3.0.
   1280     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1281     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1282       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1283     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1284     ;;
   1285 
   1286   esac
   1287 done
   1288 
   1289 if test -n "$ac_prev"; then
   1290   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1291   as_fn_error "missing argument to $ac_option"
   1292 fi
   1293 
   1294 if test -n "$ac_unrecognized_opts"; then
   1295   case $enable_option_checking in
   1296     no) ;;
   1297     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
   1298     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1299   esac
   1300 fi
   1301 
   1302 # Check all directory arguments for consistency.
   1303 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1304 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1305 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1306 		libdir localedir mandir
   1307 do
   1308   eval ac_val=\$$ac_var
   1309   # Remove trailing slashes.
   1310   case $ac_val in
   1311     */ )
   1312       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1313       eval $ac_var=\$ac_val;;
   1314   esac
   1315   # Be sure to have absolute directory names.
   1316   case $ac_val in
   1317     [\\/$]* | ?:[\\/]* )  continue;;
   1318     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1319   esac
   1320   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
   1321 done
   1322 
   1323 # There might be people who depend on the old broken behavior: `$host'
   1324 # used to hold the argument of --host etc.
   1325 # FIXME: To remove some day.
   1326 build=$build_alias
   1327 host=$host_alias
   1328 target=$target_alias
   1329 
   1330 # FIXME: To remove some day.
   1331 if test "x$host_alias" != x; then
   1332   if test "x$build_alias" = x; then
   1333     cross_compiling=maybe
   1334     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1335     If a cross compiler is detected then cross compile mode will be used." >&2
   1336   elif test "x$build_alias" != "x$host_alias"; then
   1337     cross_compiling=yes
   1338   fi
   1339 fi
   1340 
   1341 ac_tool_prefix=
   1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1343 
   1344 test "$silent" = yes && exec 6>/dev/null
   1345 
   1346 
   1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1348 ac_ls_di=`ls -di .` &&
   1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1350   as_fn_error "working directory cannot be determined"
   1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1352   as_fn_error "pwd does not report name of working directory"
   1353 
   1354 
   1355 # Find the source files, if location was not specified.
   1356 if test -z "$srcdir"; then
   1357   ac_srcdir_defaulted=yes
   1358   # Try the directory containing this script, then the parent directory.
   1359   ac_confdir=`$as_dirname -- "$as_myself" ||
   1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1361 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1362 	 X"$as_myself" : 'X\(//\)$' \| \
   1363 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1364 $as_echo X"$as_myself" |
   1365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1366 	    s//\1/
   1367 	    q
   1368 	  }
   1369 	  /^X\(\/\/\)[^/].*/{
   1370 	    s//\1/
   1371 	    q
   1372 	  }
   1373 	  /^X\(\/\/\)$/{
   1374 	    s//\1/
   1375 	    q
   1376 	  }
   1377 	  /^X\(\/\).*/{
   1378 	    s//\1/
   1379 	    q
   1380 	  }
   1381 	  s/.*/./; q'`
   1382   srcdir=$ac_confdir
   1383   if test ! -r "$srcdir/$ac_unique_file"; then
   1384     srcdir=..
   1385   fi
   1386 else
   1387   ac_srcdir_defaulted=no
   1388 fi
   1389 if test ! -r "$srcdir/$ac_unique_file"; then
   1390   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1391   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
   1392 fi
   1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1394 ac_abs_confdir=`(
   1395 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
   1396 	pwd)`
   1397 # When building in place, set srcdir=.
   1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1399   srcdir=.
   1400 fi
   1401 # Remove unnecessary trailing slashes from srcdir.
   1402 # Double slashes in file names in object file debugging info
   1403 # mess up M-x gdb in Emacs.
   1404 case $srcdir in
   1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1406 esac
   1407 for ac_var in $ac_precious_vars; do
   1408   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1409   eval ac_env_${ac_var}_value=\$${ac_var}
   1410   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1411   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1412 done
   1413 
   1414 #
   1415 # Report the --help message.
   1416 #
   1417 if test "$ac_init_help" = "long"; then
   1418   # Omit some internal or obsolete options to make the list less imposing.
   1419   # This message is too long to be a string in the A/UX 3.1 sh.
   1420   cat <<_ACEOF
   1421 \`configure' configures this package to adapt to many kinds of systems.
   1422 
   1423 Usage: $0 [OPTION]... [VAR=VALUE]...
   1424 
   1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1426 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1427 
   1428 Defaults for the options are specified in brackets.
   1429 
   1430 Configuration:
   1431   -h, --help              display this help and exit
   1432       --help=short        display options specific to this package
   1433       --help=recursive    display the short help of all the included packages
   1434   -V, --version           display version information and exit
   1435   -q, --quiet, --silent   do not print \`checking...' messages
   1436       --cache-file=FILE   cache test results in FILE [disabled]
   1437   -C, --config-cache      alias for \`--cache-file=config.cache'
   1438   -n, --no-create         do not create output files
   1439       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1440 
   1441 Installation directories:
   1442   --prefix=PREFIX         install architecture-independent files in PREFIX
   1443                           [$ac_default_prefix]
   1444   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1445                           [PREFIX]
   1446 
   1447 By default, \`make install' will install all the files in
   1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1450 for instance \`--prefix=\$HOME'.
   1451 
   1452 For better control, use the options below.
   1453 
   1454 Fine tuning of the installation directories:
   1455   --bindir=DIR            user executables [EPREFIX/bin]
   1456   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1457   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1458   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1459   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1460   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1461   --libdir=DIR            object code libraries [EPREFIX/lib]
   1462   --includedir=DIR        C header files [PREFIX/include]
   1463   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1464   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1465   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1466   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1467   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1468   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1469   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1470   --htmldir=DIR           html documentation [DOCDIR]
   1471   --dvidir=DIR            dvi documentation [DOCDIR]
   1472   --pdfdir=DIR            pdf documentation [DOCDIR]
   1473   --psdir=DIR             ps documentation [DOCDIR]
   1474 _ACEOF
   1475 
   1476   cat <<\_ACEOF
   1477 
   1478 Program names:
   1479   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1480   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1481   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1482 
   1483 X features:
   1484   --x-includes=DIR    X include files are in DIR
   1485   --x-libraries=DIR   X library files are in DIR
   1486 
   1487 System types:
   1488   --build=BUILD     configure for building on BUILD [guessed]
   1489   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1490   --target=TARGET   configure for building compilers for TARGET [HOST]
   1491 _ACEOF
   1492 fi
   1493 
   1494 if test -n "$ac_init_help"; then
   1495 
   1496   cat <<\_ACEOF
   1497 
   1498 Optional Features:
   1499   --disable-option-checking  ignore unrecognized --enable/--with options
   1500   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1501   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1502   --enable-maintainer-mode  enable make rules and dependencies not useful
   1503 			  (and sometimes confusing) to the casual installer
   1504   --enable-plugins        Enable support for plugins
   1505   --disable-largefile     omit support for large files
   1506   --disable-build-with-cxx
   1507                           build with C compiler instead of C++ compiler
   1508   --enable-targets=TARGETS
   1509                           alternative target configurations
   1510   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
   1511   --disable-gdbcli        disable command-line interface (CLI)
   1512   --disable-gdbmi         disable machine-interface (MI)
   1513   --enable-tui            enable full-screen terminal user interface (TUI)
   1514   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
   1515   --enable-profiling      enable profiling of GDB
   1516   --disable-rpath         do not hardcode runtime library paths
   1517   --enable-libmcheck      Try linking with -lmcheck if available
   1518   --enable-werror         treat compile warnings as errors
   1519   --enable-build-warnings enable build-time compiler warnings if gcc is used
   1520   --enable-gdb-build-warnings
   1521                           enable GDB specific build-time compiler warnings if
   1522                           gcc is used
   1523   --enable-sim            link gdb with simulator
   1524   --enable-multi-ice      build the multi-ice-gdb-server
   1525   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
   1526                           is auto)
   1527 
   1528 Optional Packages:
   1529   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1530   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1531   --with-separate-debug-dir=PATH
   1532                           look for global separate debug info in this path
   1533                           [LIBDIR/debug]
   1534   --with-gdb-datadir=PATH look for global separate data files in this path
   1535                           [DATADIR/gdb]
   1536   --with-relocated-sources=PATH
   1537                           automatically relocate this path for source files
   1538   --with-auto-load-dir=PATH
   1539                           directories from which to load auto-loaded scripts
   1540                           [$debugdir:$datadir/auto-load]
   1541   --with-auto-load-safe-path=PATH
   1542                           directories safe to hold auto-loaded files
   1543                           [--with-auto-load-dir]
   1544   --without-auto-load-safe-path
   1545                           do not restrict auto-loaded files locations
   1546   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
   1547   --with-curses           use the curses library instead of the termcap
   1548                           library
   1549   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
   1550   --with-bugurl=URL       Direct users to URL to report a bug
   1551   --with-system-zlib      use installed libz
   1552   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   1553   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
   1554   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
   1555   --with-iconv-bin=PATH   specify where to find the iconv program
   1556   --with-system-readline  use installed readline library
   1557   --with-jit-reader-dir=PATH
   1558                           directory to load the JIT readers from
   1559   --with-expat            include expat support (auto/yes/no)
   1560   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
   1561   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
   1562   --with-python[=PYTHON]  include python support
   1563                           (auto/yes/no/<python-program>)
   1564   --with-guile[=GUILE]    include guile support
   1565                           (auto/yes/no/<guile-version>/<pkg-config-program>)
   1566   --with-intel-pt         include Intel Processor Trace support (auto/yes/no)
   1567   --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
   1568   --without-libipt-prefix     don't search for libipt in includedir and libdir
   1569   --without-included-regex
   1570                           don't use included regex; this is the default on
   1571                           systems with version 2 of the GNU C library (use
   1572                           with caution on other system)
   1573   --with-sysroot[=DIR]    search for usr/lib et al within DIR
   1574   --with-system-gdbinit=PATH
   1575                           automatically load a system-wide gdbinit file
   1576   --with-lzma             support lzma compression (auto/yes/no)
   1577   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
   1578   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
   1579   --with-tcl              directory containing tcl configuration (tclConfig.sh)
   1580   --with-tk               directory containing tk configuration (tkConfig.sh)
   1581   --with-x                use the X Window System
   1582   --with-babeltrace       include babeltrace support (auto/yes/no)
   1583   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
   1584   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
   1585 
   1586 Some influential environment variables:
   1587   CC          C compiler command
   1588   CFLAGS      C compiler flags
   1589   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1590               nonstandard directory <lib dir>
   1591   LIBS        libraries to pass to the linker, e.g. -l<library>
   1592   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1593               you have headers in a nonstandard directory <include dir>
   1594   CXX         C++ compiler command
   1595   CXXFLAGS    C++ compiler flags
   1596   CPP         C preprocessor
   1597   MAKEINFO    Parent configure detects if it is of sufficient version.
   1598   MAKEINFOFLAGS
   1599               Parameters for MAKEINFO.
   1600   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
   1601               the first program found out of: `bison -y', `byacc', `yacc'.
   1602   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1603               This script will default YFLAGS to the empty string to avoid a
   1604               default value of `-d' given by some make applications.
   1605   XMKMF       Path to xmkmf, Makefile generator for X Window System
   1606 
   1607 Use these variables to override the choices made by `configure' or to help
   1608 it to find libraries and programs with nonstandard names/locations.
   1609 
   1610 Report bugs to the package provider.
   1611 _ACEOF
   1612 ac_status=$?
   1613 fi
   1614 
   1615 if test "$ac_init_help" = "recursive"; then
   1616   # If there are subdirs, report their specific --help.
   1617   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1618     test -d "$ac_dir" ||
   1619       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1620       continue
   1621     ac_builddir=.
   1622 
   1623 case "$ac_dir" in
   1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1625 *)
   1626   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1627   # A ".." for each directory in $ac_dir_suffix.
   1628   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1629   case $ac_top_builddir_sub in
   1630   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1631   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1632   esac ;;
   1633 esac
   1634 ac_abs_top_builddir=$ac_pwd
   1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1636 # for backward compatibility:
   1637 ac_top_builddir=$ac_top_build_prefix
   1638 
   1639 case $srcdir in
   1640   .)  # We are building in place.
   1641     ac_srcdir=.
   1642     ac_top_srcdir=$ac_top_builddir_sub
   1643     ac_abs_top_srcdir=$ac_pwd ;;
   1644   [\\/]* | ?:[\\/]* )  # Absolute name.
   1645     ac_srcdir=$srcdir$ac_dir_suffix;
   1646     ac_top_srcdir=$srcdir
   1647     ac_abs_top_srcdir=$srcdir ;;
   1648   *) # Relative name.
   1649     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1650     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1651     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1652 esac
   1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1654 
   1655     cd "$ac_dir" || { ac_status=$?; continue; }
   1656     # Check for guested configure.
   1657     if test -f "$ac_srcdir/configure.gnu"; then
   1658       echo &&
   1659       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1660     elif test -f "$ac_srcdir/configure"; then
   1661       echo &&
   1662       $SHELL "$ac_srcdir/configure" --help=recursive
   1663     else
   1664       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1665     fi || ac_status=$?
   1666     cd "$ac_pwd" || { ac_status=$?; break; }
   1667   done
   1668 fi
   1669 
   1670 test -n "$ac_init_help" && exit $ac_status
   1671 if $ac_init_version; then
   1672   cat <<\_ACEOF
   1673 configure
   1674 generated by GNU Autoconf 2.64
   1675 
   1676 Copyright (C) 2009 Free Software Foundation, Inc.
   1677 This configure script is free software; the Free Software Foundation
   1678 gives unlimited permission to copy, distribute and modify it.
   1679 _ACEOF
   1680   exit
   1681 fi
   1682 
   1683 ## ------------------------ ##
   1684 ## Autoconf initialization. ##
   1685 ## ------------------------ ##
   1686 
   1687 # ac_fn_c_try_compile LINENO
   1688 # --------------------------
   1689 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1690 ac_fn_c_try_compile ()
   1691 {
   1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1693   rm -f conftest.$ac_objext
   1694   if { { ac_try="$ac_compile"
   1695 case "(($ac_try" in
   1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1697   *) ac_try_echo=$ac_try;;
   1698 esac
   1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1700 $as_echo "$ac_try_echo"; } >&5
   1701   (eval "$ac_compile") 2>conftest.err
   1702   ac_status=$?
   1703   if test -s conftest.err; then
   1704     grep -v '^ *+' conftest.err >conftest.er1
   1705     cat conftest.er1 >&5
   1706     mv -f conftest.er1 conftest.err
   1707   fi
   1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1709   test $ac_status = 0; } && {
   1710 	 test -z "$ac_c_werror_flag" ||
   1711 	 test ! -s conftest.err
   1712        } && test -s conftest.$ac_objext; then :
   1713   ac_retval=0
   1714 else
   1715   $as_echo "$as_me: failed program was:" >&5
   1716 sed 's/^/| /' conftest.$ac_ext >&5
   1717 
   1718 	ac_retval=1
   1719 fi
   1720   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1721   return $ac_retval
   1722 
   1723 } # ac_fn_c_try_compile
   1724 
   1725 # ac_fn_cxx_try_compile LINENO
   1726 # ----------------------------
   1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1728 ac_fn_cxx_try_compile ()
   1729 {
   1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1731   rm -f conftest.$ac_objext
   1732   if { { ac_try="$ac_compile"
   1733 case "(($ac_try" in
   1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1735   *) ac_try_echo=$ac_try;;
   1736 esac
   1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1738 $as_echo "$ac_try_echo"; } >&5
   1739   (eval "$ac_compile") 2>conftest.err
   1740   ac_status=$?
   1741   if test -s conftest.err; then
   1742     grep -v '^ *+' conftest.err >conftest.er1
   1743     cat conftest.er1 >&5
   1744     mv -f conftest.er1 conftest.err
   1745   fi
   1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1747   test $ac_status = 0; } && {
   1748 	 test -z "$ac_cxx_werror_flag" ||
   1749 	 test ! -s conftest.err
   1750        } && test -s conftest.$ac_objext; then :
   1751   ac_retval=0
   1752 else
   1753   $as_echo "$as_me: failed program was:" >&5
   1754 sed 's/^/| /' conftest.$ac_ext >&5
   1755 
   1756 	ac_retval=1
   1757 fi
   1758   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1759   return $ac_retval
   1760 
   1761 } # ac_fn_cxx_try_compile
   1762 
   1763 # ac_fn_c_try_cpp LINENO
   1764 # ----------------------
   1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1766 ac_fn_c_try_cpp ()
   1767 {
   1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1769   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1770 case "(($ac_try" in
   1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1772   *) ac_try_echo=$ac_try;;
   1773 esac
   1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1775 $as_echo "$ac_try_echo"; } >&5
   1776   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1777   ac_status=$?
   1778   if test -s conftest.err; then
   1779     grep -v '^ *+' conftest.err >conftest.er1
   1780     cat conftest.er1 >&5
   1781     mv -f conftest.er1 conftest.err
   1782   fi
   1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1784   test $ac_status = 0; } >/dev/null && {
   1785 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1786 	 test ! -s conftest.err
   1787        }; then :
   1788   ac_retval=0
   1789 else
   1790   $as_echo "$as_me: failed program was:" >&5
   1791 sed 's/^/| /' conftest.$ac_ext >&5
   1792 
   1793     ac_retval=1
   1794 fi
   1795   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1796   return $ac_retval
   1797 
   1798 } # ac_fn_c_try_cpp
   1799 
   1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1801 # -------------------------------------------------------
   1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1803 # the include files in INCLUDES and setting the cache variable VAR
   1804 # accordingly.
   1805 ac_fn_c_check_header_mongrel ()
   1806 {
   1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1808   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1810 $as_echo_n "checking for $2... " >&6; }
   1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1812   $as_echo_n "(cached) " >&6
   1813 fi
   1814 eval ac_res=\$$3
   1815 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1816 $as_echo "$ac_res" >&6; }
   1817 else
   1818   # Is the header compilable?
   1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1820 $as_echo_n "checking $2 usability... " >&6; }
   1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1822 /* end confdefs.h.  */
   1823 $4
   1824 #include <$2>
   1825 _ACEOF
   1826 if ac_fn_c_try_compile "$LINENO"; then :
   1827   ac_header_compiler=yes
   1828 else
   1829   ac_header_compiler=no
   1830 fi
   1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1833 $as_echo "$ac_header_compiler" >&6; }
   1834 
   1835 # Is the header present?
   1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1837 $as_echo_n "checking $2 presence... " >&6; }
   1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1839 /* end confdefs.h.  */
   1840 #include <$2>
   1841 _ACEOF
   1842 if ac_fn_c_try_cpp "$LINENO"; then :
   1843   ac_header_preproc=yes
   1844 else
   1845   ac_header_preproc=no
   1846 fi
   1847 rm -f conftest.err conftest.$ac_ext
   1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1849 $as_echo "$ac_header_preproc" >&6; }
   1850 
   1851 # So?  What about this header?
   1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1853   yes:no: )
   1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1858     ;;
   1859   no:yes:* )
   1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1863 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1867 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1870     ;;
   1871 esac
   1872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1873 $as_echo_n "checking for $2... " >&6; }
   1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1875   $as_echo_n "(cached) " >&6
   1876 else
   1877   eval "$3=\$ac_header_compiler"
   1878 fi
   1879 eval ac_res=\$$3
   1880 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1881 $as_echo "$ac_res" >&6; }
   1882 fi
   1883   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1884 
   1885 } # ac_fn_c_check_header_mongrel
   1886 
   1887 # ac_fn_c_try_run LINENO
   1888 # ----------------------
   1889 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1890 # that executables *can* be run.
   1891 ac_fn_c_try_run ()
   1892 {
   1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1894   if { { ac_try="$ac_link"
   1895 case "(($ac_try" in
   1896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1897   *) ac_try_echo=$ac_try;;
   1898 esac
   1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1900 $as_echo "$ac_try_echo"; } >&5
   1901   (eval "$ac_link") 2>&5
   1902   ac_status=$?
   1903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1904   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1905   { { case "(($ac_try" in
   1906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1907   *) ac_try_echo=$ac_try;;
   1908 esac
   1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1910 $as_echo "$ac_try_echo"; } >&5
   1911   (eval "$ac_try") 2>&5
   1912   ac_status=$?
   1913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1914   test $ac_status = 0; }; }; then :
   1915   ac_retval=0
   1916 else
   1917   $as_echo "$as_me: program exited with status $ac_status" >&5
   1918        $as_echo "$as_me: failed program was:" >&5
   1919 sed 's/^/| /' conftest.$ac_ext >&5
   1920 
   1921        ac_retval=$ac_status
   1922 fi
   1923   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1924   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1925   return $ac_retval
   1926 
   1927 } # ac_fn_c_try_run
   1928 
   1929 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1930 # -------------------------------------------------------
   1931 # Tests whether HEADER exists and can be compiled using the include files in
   1932 # INCLUDES, setting the cache variable VAR accordingly.
   1933 ac_fn_c_check_header_compile ()
   1934 {
   1935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1937 $as_echo_n "checking for $2... " >&6; }
   1938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1939   $as_echo_n "(cached) " >&6
   1940 else
   1941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1942 /* end confdefs.h.  */
   1943 $4
   1944 #include <$2>
   1945 _ACEOF
   1946 if ac_fn_c_try_compile "$LINENO"; then :
   1947   eval "$3=yes"
   1948 else
   1949   eval "$3=no"
   1950 fi
   1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1952 fi
   1953 eval ac_res=\$$3
   1954 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1955 $as_echo "$ac_res" >&6; }
   1956   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1957 
   1958 } # ac_fn_c_check_header_compile
   1959 
   1960 # ac_fn_c_try_link LINENO
   1961 # -----------------------
   1962 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1963 ac_fn_c_try_link ()
   1964 {
   1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1966   rm -f conftest.$ac_objext conftest$ac_exeext
   1967   if { { ac_try="$ac_link"
   1968 case "(($ac_try" in
   1969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1970   *) ac_try_echo=$ac_try;;
   1971 esac
   1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1973 $as_echo "$ac_try_echo"; } >&5
   1974   (eval "$ac_link") 2>conftest.err
   1975   ac_status=$?
   1976   if test -s conftest.err; then
   1977     grep -v '^ *+' conftest.err >conftest.er1
   1978     cat conftest.er1 >&5
   1979     mv -f conftest.er1 conftest.err
   1980   fi
   1981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1982   test $ac_status = 0; } && {
   1983 	 test -z "$ac_c_werror_flag" ||
   1984 	 test ! -s conftest.err
   1985        } && test -s conftest$ac_exeext && {
   1986 	 test "$cross_compiling" = yes ||
   1987 	 $as_test_x conftest$ac_exeext
   1988        }; then :
   1989   ac_retval=0
   1990 else
   1991   $as_echo "$as_me: failed program was:" >&5
   1992 sed 's/^/| /' conftest.$ac_ext >&5
   1993 
   1994 	ac_retval=1
   1995 fi
   1996   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1997   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1998   # interfere with the next link command; also delete a directory that is
   1999   # left behind by Apple's compiler.  We do this before executing the actions.
   2000   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2001   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2002   return $ac_retval
   2003 
   2004 } # ac_fn_c_try_link
   2005 
   2006 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2007 # --------------------------------------------
   2008 # Tries to find the compile-time value of EXPR in a program that includes
   2009 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2010 # computed
   2011 ac_fn_c_compute_int ()
   2012 {
   2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2014   if test "$cross_compiling" = yes; then
   2015     # Depending upon the size, compute the lo and hi bounds.
   2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2017 /* end confdefs.h.  */
   2018 $4
   2019 int
   2020 main ()
   2021 {
   2022 static int test_array [1 - 2 * !(($2) >= 0)];
   2023 test_array [0] = 0
   2024 
   2025   ;
   2026   return 0;
   2027 }
   2028 _ACEOF
   2029 if ac_fn_c_try_compile "$LINENO"; then :
   2030   ac_lo=0 ac_mid=0
   2031   while :; do
   2032     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2033 /* end confdefs.h.  */
   2034 $4
   2035 int
   2036 main ()
   2037 {
   2038 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2039 test_array [0] = 0
   2040 
   2041   ;
   2042   return 0;
   2043 }
   2044 _ACEOF
   2045 if ac_fn_c_try_compile "$LINENO"; then :
   2046   ac_hi=$ac_mid; break
   2047 else
   2048   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2049 			if test $ac_lo -le $ac_mid; then
   2050 			  ac_lo= ac_hi=
   2051 			  break
   2052 			fi
   2053 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2054 fi
   2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2056   done
   2057 else
   2058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2059 /* end confdefs.h.  */
   2060 $4
   2061 int
   2062 main ()
   2063 {
   2064 static int test_array [1 - 2 * !(($2) < 0)];
   2065 test_array [0] = 0
   2066 
   2067   ;
   2068   return 0;
   2069 }
   2070 _ACEOF
   2071 if ac_fn_c_try_compile "$LINENO"; then :
   2072   ac_hi=-1 ac_mid=-1
   2073   while :; do
   2074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2075 /* end confdefs.h.  */
   2076 $4
   2077 int
   2078 main ()
   2079 {
   2080 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2081 test_array [0] = 0
   2082 
   2083   ;
   2084   return 0;
   2085 }
   2086 _ACEOF
   2087 if ac_fn_c_try_compile "$LINENO"; then :
   2088   ac_lo=$ac_mid; break
   2089 else
   2090   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2091 			if test $ac_mid -le $ac_hi; then
   2092 			  ac_lo= ac_hi=
   2093 			  break
   2094 			fi
   2095 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2096 fi
   2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2098   done
   2099 else
   2100   ac_lo= ac_hi=
   2101 fi
   2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2103 fi
   2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2105 # Binary search between lo and hi bounds.
   2106 while test "x$ac_lo" != "x$ac_hi"; do
   2107   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2109 /* end confdefs.h.  */
   2110 $4
   2111 int
   2112 main ()
   2113 {
   2114 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2115 test_array [0] = 0
   2116 
   2117   ;
   2118   return 0;
   2119 }
   2120 _ACEOF
   2121 if ac_fn_c_try_compile "$LINENO"; then :
   2122   ac_hi=$ac_mid
   2123 else
   2124   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2125 fi
   2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2127 done
   2128 case $ac_lo in #((
   2129 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2130 '') ac_retval=1 ;;
   2131 esac
   2132   else
   2133     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2134 /* end confdefs.h.  */
   2135 $4
   2136 static long int longval () { return $2; }
   2137 static unsigned long int ulongval () { return $2; }
   2138 #include <stdio.h>
   2139 #include <stdlib.h>
   2140 int
   2141 main ()
   2142 {
   2143 
   2144   FILE *f = fopen ("conftest.val", "w");
   2145   if (! f)
   2146     return 1;
   2147   if (($2) < 0)
   2148     {
   2149       long int i = longval ();
   2150       if (i != ($2))
   2151 	return 1;
   2152       fprintf (f, "%ld", i);
   2153     }
   2154   else
   2155     {
   2156       unsigned long int i = ulongval ();
   2157       if (i != ($2))
   2158 	return 1;
   2159       fprintf (f, "%lu", i);
   2160     }
   2161   /* Do not output a trailing newline, as this causes \r\n confusion
   2162      on some platforms.  */
   2163   return ferror (f) || fclose (f) != 0;
   2164 
   2165   ;
   2166   return 0;
   2167 }
   2168 _ACEOF
   2169 if ac_fn_c_try_run "$LINENO"; then :
   2170   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2171 else
   2172   ac_retval=1
   2173 fi
   2174 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2175   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2176 rm -f conftest.val
   2177 
   2178   fi
   2179   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2180   return $ac_retval
   2181 
   2182 } # ac_fn_c_compute_int
   2183 
   2184 # ac_fn_c_check_func LINENO FUNC VAR
   2185 # ----------------------------------
   2186 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2187 ac_fn_c_check_func ()
   2188 {
   2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2191 $as_echo_n "checking for $2... " >&6; }
   2192 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2193   $as_echo_n "(cached) " >&6
   2194 else
   2195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2196 /* end confdefs.h.  */
   2197 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2198    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2199 #define $2 innocuous_$2
   2200 
   2201 /* System header to define __stub macros and hopefully few prototypes,
   2202     which can conflict with char $2 (); below.
   2203     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2204     <limits.h> exists even on freestanding compilers.  */
   2205 
   2206 #ifdef __STDC__
   2207 # include <limits.h>
   2208 #else
   2209 # include <assert.h>
   2210 #endif
   2211 
   2212 #undef $2
   2213 
   2214 /* Override any GCC internal prototype to avoid an error.
   2215    Use char because int might match the return type of a GCC
   2216    builtin and then its argument prototype would still apply.  */
   2217 #ifdef __cplusplus
   2218 extern "C"
   2219 #endif
   2220 char $2 ();
   2221 /* The GNU C library defines this for functions which it implements
   2222     to always fail with ENOSYS.  Some functions are actually named
   2223     something starting with __ and the normal name is an alias.  */
   2224 #if defined __stub_$2 || defined __stub___$2
   2225 choke me
   2226 #endif
   2227 
   2228 int
   2229 main ()
   2230 {
   2231 return $2 ();
   2232   ;
   2233   return 0;
   2234 }
   2235 _ACEOF
   2236 if ac_fn_c_try_link "$LINENO"; then :
   2237   eval "$3=yes"
   2238 else
   2239   eval "$3=no"
   2240 fi
   2241 rm -f core conftest.err conftest.$ac_objext \
   2242     conftest$ac_exeext conftest.$ac_ext
   2243 fi
   2244 eval ac_res=\$$3
   2245 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2246 $as_echo "$ac_res" >&6; }
   2247   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2248 
   2249 } # ac_fn_c_check_func
   2250 
   2251 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2252 # -------------------------------------------
   2253 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2254 # variable VAR accordingly.
   2255 ac_fn_c_check_type ()
   2256 {
   2257   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2259 $as_echo_n "checking for $2... " >&6; }
   2260 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2261   $as_echo_n "(cached) " >&6
   2262 else
   2263   eval "$3=no"
   2264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2265 /* end confdefs.h.  */
   2266 $4
   2267 int
   2268 main ()
   2269 {
   2270 if (sizeof ($2))
   2271 	 return 0;
   2272   ;
   2273   return 0;
   2274 }
   2275 _ACEOF
   2276 if ac_fn_c_try_compile "$LINENO"; then :
   2277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2278 /* end confdefs.h.  */
   2279 $4
   2280 int
   2281 main ()
   2282 {
   2283 if (sizeof (($2)))
   2284 	    return 0;
   2285   ;
   2286   return 0;
   2287 }
   2288 _ACEOF
   2289 if ac_fn_c_try_compile "$LINENO"; then :
   2290 
   2291 else
   2292   eval "$3=yes"
   2293 fi
   2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2295 fi
   2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2297 fi
   2298 eval ac_res=\$$3
   2299 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2300 $as_echo "$ac_res" >&6; }
   2301   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2302 
   2303 } # ac_fn_c_check_type
   2304 
   2305 # ac_fn_c_check_decl LINENO SYMBOL VAR
   2306 # ------------------------------------
   2307 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
   2308 ac_fn_c_check_decl ()
   2309 {
   2310   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2311   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2312   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2313   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2314 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2315 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2316   $as_echo_n "(cached) " >&6
   2317 else
   2318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2319 /* end confdefs.h.  */
   2320 $4
   2321 int
   2322 main ()
   2323 {
   2324 #ifndef $as_decl_name
   2325 #ifdef __cplusplus
   2326   (void) $as_decl_use;
   2327 #else
   2328   (void) $as_decl_name;
   2329 #endif
   2330 #endif
   2331 
   2332   ;
   2333   return 0;
   2334 }
   2335 _ACEOF
   2336 if ac_fn_c_try_compile "$LINENO"; then :
   2337   eval "$3=yes"
   2338 else
   2339   eval "$3=no"
   2340 fi
   2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2342 fi
   2343 eval ac_res=\$$3
   2344 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2345 $as_echo "$ac_res" >&6; }
   2346   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2347 
   2348 } # ac_fn_c_check_decl
   2349 
   2350 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2351 # ----------------------------------------------------
   2352 # Tries to find if the field MEMBER exists in type AGGR, after including
   2353 # INCLUDES, setting cache variable VAR accordingly.
   2354 ac_fn_c_check_member ()
   2355 {
   2356   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2358 $as_echo_n "checking for $2.$3... " >&6; }
   2359 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
   2360   $as_echo_n "(cached) " >&6
   2361 else
   2362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2363 /* end confdefs.h.  */
   2364 $5
   2365 int
   2366 main ()
   2367 {
   2368 static $2 ac_aggr;
   2369 if (ac_aggr.$3)
   2370 return 0;
   2371   ;
   2372   return 0;
   2373 }
   2374 _ACEOF
   2375 if ac_fn_c_try_compile "$LINENO"; then :
   2376   eval "$4=yes"
   2377 else
   2378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2379 /* end confdefs.h.  */
   2380 $5
   2381 int
   2382 main ()
   2383 {
   2384 static $2 ac_aggr;
   2385 if (sizeof ac_aggr.$3)
   2386 return 0;
   2387   ;
   2388   return 0;
   2389 }
   2390 _ACEOF
   2391 if ac_fn_c_try_compile "$LINENO"; then :
   2392   eval "$4=yes"
   2393 else
   2394   eval "$4=no"
   2395 fi
   2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2397 fi
   2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2399 fi
   2400 eval ac_res=\$$4
   2401 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2402 $as_echo "$ac_res" >&6; }
   2403   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2404 
   2405 } # ac_fn_c_check_member
   2406 cat >config.log <<_ACEOF
   2407 This file contains any messages produced by compilers while
   2408 running configure, to aid debugging if configure makes a mistake.
   2409 
   2410 It was created by $as_me, which was
   2411 generated by GNU Autoconf 2.64.  Invocation command line was
   2412 
   2413   $ $0 $@
   2414 
   2415 _ACEOF
   2416 exec 5>>config.log
   2417 {
   2418 cat <<_ASUNAME
   2419 ## --------- ##
   2420 ## Platform. ##
   2421 ## --------- ##
   2422 
   2423 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2424 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2425 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2426 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2427 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2428 
   2429 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2430 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2431 
   2432 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2433 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2434 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2435 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2436 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2437 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2438 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2439 
   2440 _ASUNAME
   2441 
   2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2443 for as_dir in $PATH
   2444 do
   2445   IFS=$as_save_IFS
   2446   test -z "$as_dir" && as_dir=.
   2447     $as_echo "PATH: $as_dir"
   2448   done
   2449 IFS=$as_save_IFS
   2450 
   2451 } >&5
   2452 
   2453 cat >&5 <<_ACEOF
   2454 
   2455 
   2456 ## ----------- ##
   2457 ## Core tests. ##
   2458 ## ----------- ##
   2459 
   2460 _ACEOF
   2461 
   2462 
   2463 # Keep a trace of the command line.
   2464 # Strip out --no-create and --no-recursion so they do not pile up.
   2465 # Strip out --silent because we don't want to record it for future runs.
   2466 # Also quote any args containing shell meta-characters.
   2467 # Make two passes to allow for proper duplicate-argument suppression.
   2468 ac_configure_args=
   2469 ac_configure_args0=
   2470 ac_configure_args1=
   2471 ac_must_keep_next=false
   2472 for ac_pass in 1 2
   2473 do
   2474   for ac_arg
   2475   do
   2476     case $ac_arg in
   2477     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2478     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2479     | -silent | --silent | --silen | --sile | --sil)
   2480       continue ;;
   2481     *\'*)
   2482       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2483     esac
   2484     case $ac_pass in
   2485     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2486     2)
   2487       as_fn_append ac_configure_args1 " '$ac_arg'"
   2488       if test $ac_must_keep_next = true; then
   2489 	ac_must_keep_next=false # Got value, back to normal.
   2490       else
   2491 	case $ac_arg in
   2492 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2493 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2494 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2495 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2496 	    case "$ac_configure_args0 " in
   2497 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2498 	    esac
   2499 	    ;;
   2500 	  -* ) ac_must_keep_next=true ;;
   2501 	esac
   2502       fi
   2503       as_fn_append ac_configure_args " '$ac_arg'"
   2504       ;;
   2505     esac
   2506   done
   2507 done
   2508 { ac_configure_args0=; unset ac_configure_args0;}
   2509 { ac_configure_args1=; unset ac_configure_args1;}
   2510 
   2511 # When interrupted or exit'd, cleanup temporary files, and complete
   2512 # config.log.  We remove comments because anyway the quotes in there
   2513 # would cause problems or look ugly.
   2514 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2515 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2516 trap 'exit_status=$?
   2517   # Save into config.log some information that might help in debugging.
   2518   {
   2519     echo
   2520 
   2521     cat <<\_ASBOX
   2522 ## ---------------- ##
   2523 ## Cache variables. ##
   2524 ## ---------------- ##
   2525 _ASBOX
   2526     echo
   2527     # The following way of writing the cache mishandles newlines in values,
   2528 (
   2529   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2530     eval ac_val=\$$ac_var
   2531     case $ac_val in #(
   2532     *${as_nl}*)
   2533       case $ac_var in #(
   2534       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2536       esac
   2537       case $ac_var in #(
   2538       _ | IFS | as_nl) ;; #(
   2539       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2540       *) { eval $ac_var=; unset $ac_var;} ;;
   2541       esac ;;
   2542     esac
   2543   done
   2544   (set) 2>&1 |
   2545     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2546     *${as_nl}ac_space=\ *)
   2547       sed -n \
   2548 	"s/'\''/'\''\\\\'\'''\''/g;
   2549 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2550       ;; #(
   2551     *)
   2552       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2553       ;;
   2554     esac |
   2555     sort
   2556 )
   2557     echo
   2558 
   2559     cat <<\_ASBOX
   2560 ## ----------------- ##
   2561 ## Output variables. ##
   2562 ## ----------------- ##
   2563 _ASBOX
   2564     echo
   2565     for ac_var in $ac_subst_vars
   2566     do
   2567       eval ac_val=\$$ac_var
   2568       case $ac_val in
   2569       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2570       esac
   2571       $as_echo "$ac_var='\''$ac_val'\''"
   2572     done | sort
   2573     echo
   2574 
   2575     if test -n "$ac_subst_files"; then
   2576       cat <<\_ASBOX
   2577 ## ------------------- ##
   2578 ## File substitutions. ##
   2579 ## ------------------- ##
   2580 _ASBOX
   2581       echo
   2582       for ac_var in $ac_subst_files
   2583       do
   2584 	eval ac_val=\$$ac_var
   2585 	case $ac_val in
   2586 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2587 	esac
   2588 	$as_echo "$ac_var='\''$ac_val'\''"
   2589       done | sort
   2590       echo
   2591     fi
   2592 
   2593     if test -s confdefs.h; then
   2594       cat <<\_ASBOX
   2595 ## ----------- ##
   2596 ## confdefs.h. ##
   2597 ## ----------- ##
   2598 _ASBOX
   2599       echo
   2600       cat confdefs.h
   2601       echo
   2602     fi
   2603     test "$ac_signal" != 0 &&
   2604       $as_echo "$as_me: caught signal $ac_signal"
   2605     $as_echo "$as_me: exit $exit_status"
   2606   } >&5
   2607   rm -f core *.core core.conftest.* &&
   2608     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2609     exit $exit_status
   2610 ' 0
   2611 for ac_signal in 1 2 13 15; do
   2612   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2613 done
   2614 ac_signal=0
   2615 
   2616 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2617 rm -f -r conftest* confdefs.h
   2618 
   2619 $as_echo "/* confdefs.h */" > confdefs.h
   2620 
   2621 # Predefined preprocessor variables.
   2622 
   2623 cat >>confdefs.h <<_ACEOF
   2624 #define PACKAGE_NAME "$PACKAGE_NAME"
   2625 _ACEOF
   2626 
   2627 cat >>confdefs.h <<_ACEOF
   2628 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2629 _ACEOF
   2630 
   2631 cat >>confdefs.h <<_ACEOF
   2632 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2633 _ACEOF
   2634 
   2635 cat >>confdefs.h <<_ACEOF
   2636 #define PACKAGE_STRING "$PACKAGE_STRING"
   2637 _ACEOF
   2638 
   2639 cat >>confdefs.h <<_ACEOF
   2640 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2641 _ACEOF
   2642 
   2643 cat >>confdefs.h <<_ACEOF
   2644 #define PACKAGE_URL "$PACKAGE_URL"
   2645 _ACEOF
   2646 
   2647 
   2648 # Let the site file select an alternate cache file if it wants to.
   2649 # Prefer an explicitly selected file to automatically selected ones.
   2650 ac_site_file1=NONE
   2651 ac_site_file2=NONE
   2652 if test -n "$CONFIG_SITE"; then
   2653   ac_site_file1=$CONFIG_SITE
   2654 elif test "x$prefix" != xNONE; then
   2655   ac_site_file1=$prefix/share/config.site
   2656   ac_site_file2=$prefix/etc/config.site
   2657 else
   2658   ac_site_file1=$ac_default_prefix/share/config.site
   2659   ac_site_file2=$ac_default_prefix/etc/config.site
   2660 fi
   2661 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2662 do
   2663   test "x$ac_site_file" = xNONE && continue
   2664   if test -r "$ac_site_file"; then
   2665     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2666 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2667     sed 's/^/| /' "$ac_site_file" >&5
   2668     . "$ac_site_file"
   2669   fi
   2670 done
   2671 
   2672 if test -r "$cache_file"; then
   2673   # Some versions of bash will fail to source /dev/null (special
   2674   # files actually), so we avoid doing that.
   2675   if test -f "$cache_file"; then
   2676     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2677 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2678     case $cache_file in
   2679       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2680       *)                      . "./$cache_file";;
   2681     esac
   2682   fi
   2683 else
   2684   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2685 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2686   >$cache_file
   2687 fi
   2688 
   2689 # Check that the precious variables saved in the cache have kept the same
   2690 # value.
   2691 ac_cache_corrupted=false
   2692 for ac_var in $ac_precious_vars; do
   2693   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2694   eval ac_new_set=\$ac_env_${ac_var}_set
   2695   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2696   eval ac_new_val=\$ac_env_${ac_var}_value
   2697   case $ac_old_set,$ac_new_set in
   2698     set,)
   2699       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2700 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2701       ac_cache_corrupted=: ;;
   2702     ,set)
   2703       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2704 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2705       ac_cache_corrupted=: ;;
   2706     ,);;
   2707     *)
   2708       if test "x$ac_old_val" != "x$ac_new_val"; then
   2709 	# differences in whitespace do not lead to failure.
   2710 	ac_old_val_w=`echo x $ac_old_val`
   2711 	ac_new_val_w=`echo x $ac_new_val`
   2712 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2713 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2714 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2715 	  ac_cache_corrupted=:
   2716 	else
   2717 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2718 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2719 	  eval $ac_var=\$ac_old_val
   2720 	fi
   2721 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2722 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2723 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2724 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2725       fi;;
   2726   esac
   2727   # Pass precious variables to config.status.
   2728   if test "$ac_new_set" = set; then
   2729     case $ac_new_val in
   2730     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2731     *) ac_arg=$ac_var=$ac_new_val ;;
   2732     esac
   2733     case " $ac_configure_args " in
   2734       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2735       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2736     esac
   2737   fi
   2738 done
   2739 if $ac_cache_corrupted; then
   2740   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2742   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2743 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2744   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2745 fi
   2746 ## -------------------- ##
   2747 ## Main body of script. ##
   2748 ## -------------------- ##
   2749 
   2750 ac_ext=c
   2751 ac_cpp='$CPP $CPPFLAGS'
   2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2755 
   2756 
   2757 
   2758 
   2759 
   2760 ac_config_headers="$ac_config_headers config.h:config.in"
   2761 
   2762 
   2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2764 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2765     # Check whether --enable-maintainer-mode was given.
   2766 if test "${enable_maintainer_mode+set}" = set; then :
   2767   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2768 else
   2769   USE_MAINTAINER_MODE=no
   2770 fi
   2771 
   2772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2773 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2774    if test $USE_MAINTAINER_MODE = yes; then
   2775   MAINTAINER_MODE_TRUE=
   2776   MAINTAINER_MODE_FALSE='#'
   2777 else
   2778   MAINTAINER_MODE_TRUE='#'
   2779   MAINTAINER_MODE_FALSE=
   2780 fi
   2781 
   2782   MAINT=$MAINTAINER_MODE_TRUE
   2783 
   2784 
   2785 
   2786 # Set the 'development' global.
   2787 . $srcdir/../bfd/development.sh
   2788 
   2789 ac_ext=c
   2790 ac_cpp='$CPP $CPPFLAGS'
   2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2794 if test -n "$ac_tool_prefix"; then
   2795   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2798 $as_echo_n "checking for $ac_word... " >&6; }
   2799 if test "${ac_cv_prog_CC+set}" = set; then :
   2800   $as_echo_n "(cached) " >&6
   2801 else
   2802   if test -n "$CC"; then
   2803   ac_cv_prog_CC="$CC" # Let the user override the test.
   2804 else
   2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2806 for as_dir in $PATH
   2807 do
   2808   IFS=$as_save_IFS
   2809   test -z "$as_dir" && as_dir=.
   2810     for ac_exec_ext in '' $ac_executable_extensions; do
   2811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2812     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2814     break 2
   2815   fi
   2816 done
   2817   done
   2818 IFS=$as_save_IFS
   2819 
   2820 fi
   2821 fi
   2822 CC=$ac_cv_prog_CC
   2823 if test -n "$CC"; then
   2824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2825 $as_echo "$CC" >&6; }
   2826 else
   2827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2828 $as_echo "no" >&6; }
   2829 fi
   2830 
   2831 
   2832 fi
   2833 if test -z "$ac_cv_prog_CC"; then
   2834   ac_ct_CC=$CC
   2835   # Extract the first word of "gcc", so it can be a program name with args.
   2836 set dummy gcc; ac_word=$2
   2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2838 $as_echo_n "checking for $ac_word... " >&6; }
   2839 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   2840   $as_echo_n "(cached) " >&6
   2841 else
   2842   if test -n "$ac_ct_CC"; then
   2843   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2844 else
   2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2846 for as_dir in $PATH
   2847 do
   2848   IFS=$as_save_IFS
   2849   test -z "$as_dir" && as_dir=.
   2850     for ac_exec_ext in '' $ac_executable_extensions; do
   2851   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2852     ac_cv_prog_ac_ct_CC="gcc"
   2853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2854     break 2
   2855   fi
   2856 done
   2857   done
   2858 IFS=$as_save_IFS
   2859 
   2860 fi
   2861 fi
   2862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2863 if test -n "$ac_ct_CC"; then
   2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2865 $as_echo "$ac_ct_CC" >&6; }
   2866 else
   2867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2868 $as_echo "no" >&6; }
   2869 fi
   2870 
   2871   if test "x$ac_ct_CC" = x; then
   2872     CC=""
   2873   else
   2874     case $cross_compiling:$ac_tool_warned in
   2875 yes:)
   2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2878 ac_tool_warned=yes ;;
   2879 esac
   2880     CC=$ac_ct_CC
   2881   fi
   2882 else
   2883   CC="$ac_cv_prog_CC"
   2884 fi
   2885 
   2886 if test -z "$CC"; then
   2887           if test -n "$ac_tool_prefix"; then
   2888     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2889 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2891 $as_echo_n "checking for $ac_word... " >&6; }
   2892 if test "${ac_cv_prog_CC+set}" = set; then :
   2893   $as_echo_n "(cached) " >&6
   2894 else
   2895   if test -n "$CC"; then
   2896   ac_cv_prog_CC="$CC" # Let the user override the test.
   2897 else
   2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2899 for as_dir in $PATH
   2900 do
   2901   IFS=$as_save_IFS
   2902   test -z "$as_dir" && as_dir=.
   2903     for ac_exec_ext in '' $ac_executable_extensions; do
   2904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2905     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2907     break 2
   2908   fi
   2909 done
   2910   done
   2911 IFS=$as_save_IFS
   2912 
   2913 fi
   2914 fi
   2915 CC=$ac_cv_prog_CC
   2916 if test -n "$CC"; then
   2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2918 $as_echo "$CC" >&6; }
   2919 else
   2920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2921 $as_echo "no" >&6; }
   2922 fi
   2923 
   2924 
   2925   fi
   2926 fi
   2927 if test -z "$CC"; then
   2928   # Extract the first word of "cc", so it can be a program name with args.
   2929 set dummy cc; ac_word=$2
   2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2931 $as_echo_n "checking for $ac_word... " >&6; }
   2932 if test "${ac_cv_prog_CC+set}" = set; then :
   2933   $as_echo_n "(cached) " >&6
   2934 else
   2935   if test -n "$CC"; then
   2936   ac_cv_prog_CC="$CC" # Let the user override the test.
   2937 else
   2938   ac_prog_rejected=no
   2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2940 for as_dir in $PATH
   2941 do
   2942   IFS=$as_save_IFS
   2943   test -z "$as_dir" && as_dir=.
   2944     for ac_exec_ext in '' $ac_executable_extensions; do
   2945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2946     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2947        ac_prog_rejected=yes
   2948        continue
   2949      fi
   2950     ac_cv_prog_CC="cc"
   2951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2952     break 2
   2953   fi
   2954 done
   2955   done
   2956 IFS=$as_save_IFS
   2957 
   2958 if test $ac_prog_rejected = yes; then
   2959   # We found a bogon in the path, so make sure we never use it.
   2960   set dummy $ac_cv_prog_CC
   2961   shift
   2962   if test $# != 0; then
   2963     # We chose a different compiler from the bogus one.
   2964     # However, it has the same basename, so the bogon will be chosen
   2965     # first if we set CC to just the basename; use the full file name.
   2966     shift
   2967     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2968   fi
   2969 fi
   2970 fi
   2971 fi
   2972 CC=$ac_cv_prog_CC
   2973 if test -n "$CC"; then
   2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2975 $as_echo "$CC" >&6; }
   2976 else
   2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2978 $as_echo "no" >&6; }
   2979 fi
   2980 
   2981 
   2982 fi
   2983 if test -z "$CC"; then
   2984   if test -n "$ac_tool_prefix"; then
   2985   for ac_prog in cl.exe
   2986   do
   2987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2990 $as_echo_n "checking for $ac_word... " >&6; }
   2991 if test "${ac_cv_prog_CC+set}" = set; then :
   2992   $as_echo_n "(cached) " >&6
   2993 else
   2994   if test -n "$CC"; then
   2995   ac_cv_prog_CC="$CC" # Let the user override the test.
   2996 else
   2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2998 for as_dir in $PATH
   2999 do
   3000   IFS=$as_save_IFS
   3001   test -z "$as_dir" && as_dir=.
   3002     for ac_exec_ext in '' $ac_executable_extensions; do
   3003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3004     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3006     break 2
   3007   fi
   3008 done
   3009   done
   3010 IFS=$as_save_IFS
   3011 
   3012 fi
   3013 fi
   3014 CC=$ac_cv_prog_CC
   3015 if test -n "$CC"; then
   3016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3017 $as_echo "$CC" >&6; }
   3018 else
   3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3020 $as_echo "no" >&6; }
   3021 fi
   3022 
   3023 
   3024     test -n "$CC" && break
   3025   done
   3026 fi
   3027 if test -z "$CC"; then
   3028   ac_ct_CC=$CC
   3029   for ac_prog in cl.exe
   3030 do
   3031   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3032 set dummy $ac_prog; ac_word=$2
   3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3034 $as_echo_n "checking for $ac_word... " >&6; }
   3035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   3036   $as_echo_n "(cached) " >&6
   3037 else
   3038   if test -n "$ac_ct_CC"; then
   3039   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3040 else
   3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3042 for as_dir in $PATH
   3043 do
   3044   IFS=$as_save_IFS
   3045   test -z "$as_dir" && as_dir=.
   3046     for ac_exec_ext in '' $ac_executable_extensions; do
   3047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3048     ac_cv_prog_ac_ct_CC="$ac_prog"
   3049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3050     break 2
   3051   fi
   3052 done
   3053   done
   3054 IFS=$as_save_IFS
   3055 
   3056 fi
   3057 fi
   3058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3059 if test -n "$ac_ct_CC"; then
   3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3061 $as_echo "$ac_ct_CC" >&6; }
   3062 else
   3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3064 $as_echo "no" >&6; }
   3065 fi
   3066 
   3067 
   3068   test -n "$ac_ct_CC" && break
   3069 done
   3070 
   3071   if test "x$ac_ct_CC" = x; then
   3072     CC=""
   3073   else
   3074     case $cross_compiling:$ac_tool_warned in
   3075 yes:)
   3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3078 ac_tool_warned=yes ;;
   3079 esac
   3080     CC=$ac_ct_CC
   3081   fi
   3082 fi
   3083 
   3084 fi
   3085 
   3086 
   3087 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3089 as_fn_error "no acceptable C compiler found in \$PATH
   3090 See \`config.log' for more details." "$LINENO" 5; }
   3091 
   3092 # Provide some information about the compiler.
   3093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3094 set X $ac_compile
   3095 ac_compiler=$2
   3096 for ac_option in --version -v -V -qversion; do
   3097   { { ac_try="$ac_compiler $ac_option >&5"
   3098 case "(($ac_try" in
   3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3100   *) ac_try_echo=$ac_try;;
   3101 esac
   3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3103 $as_echo "$ac_try_echo"; } >&5
   3104   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3105   ac_status=$?
   3106   if test -s conftest.err; then
   3107     sed '10a\
   3108 ... rest of stderr output deleted ...
   3109          10q' conftest.err >conftest.er1
   3110     cat conftest.er1 >&5
   3111     rm -f conftest.er1 conftest.err
   3112   fi
   3113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3114   test $ac_status = 0; }
   3115 done
   3116 
   3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3118 /* end confdefs.h.  */
   3119 
   3120 int
   3121 main ()
   3122 {
   3123 
   3124   ;
   3125   return 0;
   3126 }
   3127 _ACEOF
   3128 ac_clean_files_save=$ac_clean_files
   3129 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
   3130 # Try to create an executable without -o first, disregard a.out.
   3131 # It will help us diagnose broken compilers, and finding out an intuition
   3132 # of exeext.
   3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3134 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3135 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3136 
   3137 # The possible output files:
   3138 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3139 
   3140 ac_rmfiles=
   3141 for ac_file in $ac_files
   3142 do
   3143   case $ac_file in
   3144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3145     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3146   esac
   3147 done
   3148 rm -f $ac_rmfiles
   3149 
   3150 if { { ac_try="$ac_link_default"
   3151 case "(($ac_try" in
   3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3153   *) ac_try_echo=$ac_try;;
   3154 esac
   3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3156 $as_echo "$ac_try_echo"; } >&5
   3157   (eval "$ac_link_default") 2>&5
   3158   ac_status=$?
   3159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3160   test $ac_status = 0; }; then :
   3161   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3163 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3164 # so that the user can short-circuit this test for compilers unknown to
   3165 # Autoconf.
   3166 for ac_file in $ac_files ''
   3167 do
   3168   test -f "$ac_file" || continue
   3169   case $ac_file in
   3170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3171 	;;
   3172     [ab].out )
   3173 	# We found the default executable, but exeext='' is most
   3174 	# certainly right.
   3175 	break;;
   3176     *.* )
   3177 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3178 	then :; else
   3179 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3180 	fi
   3181 	# We set ac_cv_exeext here because the later test for it is not
   3182 	# safe: cross compilers may not add the suffix if given an `-o'
   3183 	# argument, so we may need to know it at that point already.
   3184 	# Even if this section looks crufty: it has the advantage of
   3185 	# actually working.
   3186 	break;;
   3187     * )
   3188 	break;;
   3189   esac
   3190 done
   3191 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3192 
   3193 else
   3194   ac_file=''
   3195 fi
   3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3197 $as_echo "$ac_file" >&6; }
   3198 if test -z "$ac_file"; then :
   3199   $as_echo "$as_me: failed program was:" >&5
   3200 sed 's/^/| /' conftest.$ac_ext >&5
   3201 
   3202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3204 { as_fn_set_status 77
   3205 as_fn_error "C compiler cannot create executables
   3206 See \`config.log' for more details." "$LINENO" 5; }; }
   3207 fi
   3208 ac_exeext=$ac_cv_exeext
   3209 
   3210 # Check that the compiler produces executables we can run.  If not, either
   3211 # the compiler is broken, or we cross compile.
   3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3213 $as_echo_n "checking whether the C compiler works... " >&6; }
   3214 # If not cross compiling, check that we can run a simple program.
   3215 if test "$cross_compiling" != yes; then
   3216   if { ac_try='./$ac_file'
   3217   { { case "(($ac_try" in
   3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3219   *) ac_try_echo=$ac_try;;
   3220 esac
   3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3222 $as_echo "$ac_try_echo"; } >&5
   3223   (eval "$ac_try") 2>&5
   3224   ac_status=$?
   3225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3226   test $ac_status = 0; }; }; then
   3227     cross_compiling=no
   3228   else
   3229     if test "$cross_compiling" = maybe; then
   3230 	cross_compiling=yes
   3231     else
   3232 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3234 as_fn_error "cannot run C compiled programs.
   3235 If you meant to cross compile, use \`--host'.
   3236 See \`config.log' for more details." "$LINENO" 5; }
   3237     fi
   3238   fi
   3239 fi
   3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3241 $as_echo "yes" >&6; }
   3242 
   3243 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
   3244 ac_clean_files=$ac_clean_files_save
   3245 # Check that the compiler produces executables we can run.  If not, either
   3246 # the compiler is broken, or we cross compile.
   3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3248 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3250 $as_echo "$cross_compiling" >&6; }
   3251 
   3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3253 $as_echo_n "checking for suffix of executables... " >&6; }
   3254 if { { ac_try="$ac_link"
   3255 case "(($ac_try" in
   3256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3257   *) ac_try_echo=$ac_try;;
   3258 esac
   3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3260 $as_echo "$ac_try_echo"; } >&5
   3261   (eval "$ac_link") 2>&5
   3262   ac_status=$?
   3263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3264   test $ac_status = 0; }; then :
   3265   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3266 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3267 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3268 # `rm'.
   3269 for ac_file in conftest.exe conftest conftest.*; do
   3270   test -f "$ac_file" || continue
   3271   case $ac_file in
   3272     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3273     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3274 	  break;;
   3275     * ) break;;
   3276   esac
   3277 done
   3278 else
   3279   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3281 as_fn_error "cannot compute suffix of executables: cannot compile and link
   3282 See \`config.log' for more details." "$LINENO" 5; }
   3283 fi
   3284 rm -f conftest$ac_cv_exeext
   3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3286 $as_echo "$ac_cv_exeext" >&6; }
   3287 
   3288 rm -f conftest.$ac_ext
   3289 EXEEXT=$ac_cv_exeext
   3290 ac_exeext=$EXEEXT
   3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3292 $as_echo_n "checking for suffix of object files... " >&6; }
   3293 if test "${ac_cv_objext+set}" = set; then :
   3294   $as_echo_n "(cached) " >&6
   3295 else
   3296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3297 /* end confdefs.h.  */
   3298 
   3299 int
   3300 main ()
   3301 {
   3302 
   3303   ;
   3304   return 0;
   3305 }
   3306 _ACEOF
   3307 rm -f conftest.o conftest.obj
   3308 if { { ac_try="$ac_compile"
   3309 case "(($ac_try" in
   3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3311   *) ac_try_echo=$ac_try;;
   3312 esac
   3313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3314 $as_echo "$ac_try_echo"; } >&5
   3315   (eval "$ac_compile") 2>&5
   3316   ac_status=$?
   3317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3318   test $ac_status = 0; }; then :
   3319   for ac_file in conftest.o conftest.obj conftest.*; do
   3320   test -f "$ac_file" || continue;
   3321   case $ac_file in
   3322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3323     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3324        break;;
   3325   esac
   3326 done
   3327 else
   3328   $as_echo "$as_me: failed program was:" >&5
   3329 sed 's/^/| /' conftest.$ac_ext >&5
   3330 
   3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3333 as_fn_error "cannot compute suffix of object files: cannot compile
   3334 See \`config.log' for more details." "$LINENO" 5; }
   3335 fi
   3336 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3337 fi
   3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3339 $as_echo "$ac_cv_objext" >&6; }
   3340 OBJEXT=$ac_cv_objext
   3341 ac_objext=$OBJEXT
   3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3343 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3344 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
   3345   $as_echo_n "(cached) " >&6
   3346 else
   3347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3348 /* end confdefs.h.  */
   3349 
   3350 int
   3351 main ()
   3352 {
   3353 #ifndef __GNUC__
   3354        choke me
   3355 #endif
   3356 
   3357   ;
   3358   return 0;
   3359 }
   3360 _ACEOF
   3361 if ac_fn_c_try_compile "$LINENO"; then :
   3362   ac_compiler_gnu=yes
   3363 else
   3364   ac_compiler_gnu=no
   3365 fi
   3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3368 
   3369 fi
   3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3371 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3372 if test $ac_compiler_gnu = yes; then
   3373   GCC=yes
   3374 else
   3375   GCC=
   3376 fi
   3377 ac_test_CFLAGS=${CFLAGS+set}
   3378 ac_save_CFLAGS=$CFLAGS
   3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3380 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3381 if test "${ac_cv_prog_cc_g+set}" = set; then :
   3382   $as_echo_n "(cached) " >&6
   3383 else
   3384   ac_save_c_werror_flag=$ac_c_werror_flag
   3385    ac_c_werror_flag=yes
   3386    ac_cv_prog_cc_g=no
   3387    CFLAGS="-g"
   3388    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3389 /* end confdefs.h.  */
   3390 
   3391 int
   3392 main ()
   3393 {
   3394 
   3395   ;
   3396   return 0;
   3397 }
   3398 _ACEOF
   3399 if ac_fn_c_try_compile "$LINENO"; then :
   3400   ac_cv_prog_cc_g=yes
   3401 else
   3402   CFLAGS=""
   3403       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3404 /* end confdefs.h.  */
   3405 
   3406 int
   3407 main ()
   3408 {
   3409 
   3410   ;
   3411   return 0;
   3412 }
   3413 _ACEOF
   3414 if ac_fn_c_try_compile "$LINENO"; then :
   3415 
   3416 else
   3417   ac_c_werror_flag=$ac_save_c_werror_flag
   3418 	 CFLAGS="-g"
   3419 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3420 /* end confdefs.h.  */
   3421 
   3422 int
   3423 main ()
   3424 {
   3425 
   3426   ;
   3427   return 0;
   3428 }
   3429 _ACEOF
   3430 if ac_fn_c_try_compile "$LINENO"; then :
   3431   ac_cv_prog_cc_g=yes
   3432 fi
   3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3434 fi
   3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3436 fi
   3437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3438    ac_c_werror_flag=$ac_save_c_werror_flag
   3439 fi
   3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3441 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3442 if test "$ac_test_CFLAGS" = set; then
   3443   CFLAGS=$ac_save_CFLAGS
   3444 elif test $ac_cv_prog_cc_g = yes; then
   3445   if test "$GCC" = yes; then
   3446     CFLAGS="-g -O2"
   3447   else
   3448     CFLAGS="-g"
   3449   fi
   3450 else
   3451   if test "$GCC" = yes; then
   3452     CFLAGS="-O2"
   3453   else
   3454     CFLAGS=
   3455   fi
   3456 fi
   3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3458 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3459 if test "${ac_cv_prog_cc_c89+set}" = set; then :
   3460   $as_echo_n "(cached) " >&6
   3461 else
   3462   ac_cv_prog_cc_c89=no
   3463 ac_save_CC=$CC
   3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3465 /* end confdefs.h.  */
   3466 #include <stdarg.h>
   3467 #include <stdio.h>
   3468 #include <sys/types.h>
   3469 #include <sys/stat.h>
   3470 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3471 struct buf { int x; };
   3472 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3473 static char *e (p, i)
   3474      char **p;
   3475      int i;
   3476 {
   3477   return p[i];
   3478 }
   3479 static char *f (char * (*g) (char **, int), char **p, ...)
   3480 {
   3481   char *s;
   3482   va_list v;
   3483   va_start (v,p);
   3484   s = g (p, va_arg (v,int));
   3485   va_end (v);
   3486   return s;
   3487 }
   3488 
   3489 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3490    function prototypes and stuff, but not '\xHH' hex character constants.
   3491    These don't provoke an error unfortunately, instead are silently treated
   3492    as 'x'.  The following induces an error, until -std is added to get
   3493    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3494    array size at least.  It's necessary to write '\x00'==0 to get something
   3495    that's true only with -std.  */
   3496 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3497 
   3498 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3499    inside strings and character constants.  */
   3500 #define FOO(x) 'x'
   3501 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3502 
   3503 int test (int i, double x);
   3504 struct s1 {int (*f) (int a);};
   3505 struct s2 {int (*f) (double a);};
   3506 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3507 int argc;
   3508 char **argv;
   3509 int
   3510 main ()
   3511 {
   3512 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3513   ;
   3514   return 0;
   3515 }
   3516 _ACEOF
   3517 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3518 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3519 do
   3520   CC="$ac_save_CC $ac_arg"
   3521   if ac_fn_c_try_compile "$LINENO"; then :
   3522   ac_cv_prog_cc_c89=$ac_arg
   3523 fi
   3524 rm -f core conftest.err conftest.$ac_objext
   3525   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3526 done
   3527 rm -f conftest.$ac_ext
   3528 CC=$ac_save_CC
   3529 
   3530 fi
   3531 # AC_CACHE_VAL
   3532 case "x$ac_cv_prog_cc_c89" in
   3533   x)
   3534     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3535 $as_echo "none needed" >&6; } ;;
   3536   xno)
   3537     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3538 $as_echo "unsupported" >&6; } ;;
   3539   *)
   3540     CC="$CC $ac_cv_prog_cc_c89"
   3541     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3542 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3543 esac
   3544 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3545 
   3546 fi
   3547 
   3548 ac_ext=c
   3549 ac_cpp='$CPP $CPPFLAGS'
   3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3553 
   3554 ac_ext=cpp
   3555 ac_cpp='$CXXCPP $CPPFLAGS'
   3556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3559 if test -z "$CXX"; then
   3560   if test -n "$CCC"; then
   3561     CXX=$CCC
   3562   else
   3563     if test -n "$ac_tool_prefix"; then
   3564   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3565   do
   3566     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3569 $as_echo_n "checking for $ac_word... " >&6; }
   3570 if test "${ac_cv_prog_CXX+set}" = set; then :
   3571   $as_echo_n "(cached) " >&6
   3572 else
   3573   if test -n "$CXX"; then
   3574   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   3575 else
   3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3577 for as_dir in $PATH
   3578 do
   3579   IFS=$as_save_IFS
   3580   test -z "$as_dir" && as_dir=.
   3581     for ac_exec_ext in '' $ac_executable_extensions; do
   3582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3583     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   3584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3585     break 2
   3586   fi
   3587 done
   3588   done
   3589 IFS=$as_save_IFS
   3590 
   3591 fi
   3592 fi
   3593 CXX=$ac_cv_prog_CXX
   3594 if test -n "$CXX"; then
   3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   3596 $as_echo "$CXX" >&6; }
   3597 else
   3598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3599 $as_echo "no" >&6; }
   3600 fi
   3601 
   3602 
   3603     test -n "$CXX" && break
   3604   done
   3605 fi
   3606 if test -z "$CXX"; then
   3607   ac_ct_CXX=$CXX
   3608   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3609 do
   3610   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3611 set dummy $ac_prog; ac_word=$2
   3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3613 $as_echo_n "checking for $ac_word... " >&6; }
   3614 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
   3615   $as_echo_n "(cached) " >&6
   3616 else
   3617   if test -n "$ac_ct_CXX"; then
   3618   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   3619 else
   3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3621 for as_dir in $PATH
   3622 do
   3623   IFS=$as_save_IFS
   3624   test -z "$as_dir" && as_dir=.
   3625     for ac_exec_ext in '' $ac_executable_extensions; do
   3626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   3627     ac_cv_prog_ac_ct_CXX="$ac_prog"
   3628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3629     break 2
   3630   fi
   3631 done
   3632   done
   3633 IFS=$as_save_IFS
   3634 
   3635 fi
   3636 fi
   3637 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   3638 if test -n "$ac_ct_CXX"; then
   3639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   3640 $as_echo "$ac_ct_CXX" >&6; }
   3641 else
   3642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3643 $as_echo "no" >&6; }
   3644 fi
   3645 
   3646 
   3647   test -n "$ac_ct_CXX" && break
   3648 done
   3649 
   3650   if test "x$ac_ct_CXX" = x; then
   3651     CXX="g++"
   3652   else
   3653     case $cross_compiling:$ac_tool_warned in
   3654 yes:)
   3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3657 ac_tool_warned=yes ;;
   3658 esac
   3659     CXX=$ac_ct_CXX
   3660   fi
   3661 fi
   3662 
   3663   fi
   3664 fi
   3665 # Provide some information about the compiler.
   3666 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   3667 set X $ac_compile
   3668 ac_compiler=$2
   3669 for ac_option in --version -v -V -qversion; do
   3670   { { ac_try="$ac_compiler $ac_option >&5"
   3671 case "(($ac_try" in
   3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3673   *) ac_try_echo=$ac_try;;
   3674 esac
   3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3676 $as_echo "$ac_try_echo"; } >&5
   3677   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3678   ac_status=$?
   3679   if test -s conftest.err; then
   3680     sed '10a\
   3681 ... rest of stderr output deleted ...
   3682          10q' conftest.err >conftest.er1
   3683     cat conftest.er1 >&5
   3684     rm -f conftest.er1 conftest.err
   3685   fi
   3686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3687   test $ac_status = 0; }
   3688 done
   3689 
   3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   3691 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   3692 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
   3693   $as_echo_n "(cached) " >&6
   3694 else
   3695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3696 /* end confdefs.h.  */
   3697 
   3698 int
   3699 main ()
   3700 {
   3701 #ifndef __GNUC__
   3702        choke me
   3703 #endif
   3704 
   3705   ;
   3706   return 0;
   3707 }
   3708 _ACEOF
   3709 if ac_fn_cxx_try_compile "$LINENO"; then :
   3710   ac_compiler_gnu=yes
   3711 else
   3712   ac_compiler_gnu=no
   3713 fi
   3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3715 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   3716 
   3717 fi
   3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   3719 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   3720 if test $ac_compiler_gnu = yes; then
   3721   GXX=yes
   3722 else
   3723   GXX=
   3724 fi
   3725 ac_test_CXXFLAGS=${CXXFLAGS+set}
   3726 ac_save_CXXFLAGS=$CXXFLAGS
   3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   3728 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   3729 if test "${ac_cv_prog_cxx_g+set}" = set; then :
   3730   $as_echo_n "(cached) " >&6
   3731 else
   3732   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   3733    ac_cxx_werror_flag=yes
   3734    ac_cv_prog_cxx_g=no
   3735    CXXFLAGS="-g"
   3736    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3737 /* end confdefs.h.  */
   3738 
   3739 int
   3740 main ()
   3741 {
   3742 
   3743   ;
   3744   return 0;
   3745 }
   3746 _ACEOF
   3747 if ac_fn_cxx_try_compile "$LINENO"; then :
   3748   ac_cv_prog_cxx_g=yes
   3749 else
   3750   CXXFLAGS=""
   3751       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3752 /* end confdefs.h.  */
   3753 
   3754 int
   3755 main ()
   3756 {
   3757 
   3758   ;
   3759   return 0;
   3760 }
   3761 _ACEOF
   3762 if ac_fn_cxx_try_compile "$LINENO"; then :
   3763 
   3764 else
   3765   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3766 	 CXXFLAGS="-g"
   3767 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3768 /* end confdefs.h.  */
   3769 
   3770 int
   3771 main ()
   3772 {
   3773 
   3774   ;
   3775   return 0;
   3776 }
   3777 _ACEOF
   3778 if ac_fn_cxx_try_compile "$LINENO"; then :
   3779   ac_cv_prog_cxx_g=yes
   3780 fi
   3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3782 fi
   3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3784 fi
   3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3786    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   3787 fi
   3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   3789 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   3790 if test "$ac_test_CXXFLAGS" = set; then
   3791   CXXFLAGS=$ac_save_CXXFLAGS
   3792 elif test $ac_cv_prog_cxx_g = yes; then
   3793   if test "$GXX" = yes; then
   3794     CXXFLAGS="-g -O2"
   3795   else
   3796     CXXFLAGS="-g"
   3797   fi
   3798 else
   3799   if test "$GXX" = yes; then
   3800     CXXFLAGS="-O2"
   3801   else
   3802     CXXFLAGS=
   3803   fi
   3804 fi
   3805 ac_ext=c
   3806 ac_cpp='$CPP $CPPFLAGS'
   3807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3810 
   3811 
   3812 
   3813 ac_ext=c
   3814 ac_cpp='$CPP $CPPFLAGS'
   3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3820 # On Suns, sometimes $CPP names a directory.
   3821 if test -n "$CPP" && test -d "$CPP"; then
   3822   CPP=
   3823 fi
   3824 if test -z "$CPP"; then
   3825   if test "${ac_cv_prog_CPP+set}" = set; then :
   3826   $as_echo_n "(cached) " >&6
   3827 else
   3828       # Double quotes because CPP needs to be expanded
   3829     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3830     do
   3831       ac_preproc_ok=false
   3832 for ac_c_preproc_warn_flag in '' yes
   3833 do
   3834   # Use a header file that comes with gcc, so configuring glibc
   3835   # with a fresh cross-compiler works.
   3836   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3837   # <limits.h> exists even on freestanding compilers.
   3838   # On the NeXT, cc -E runs the code through the compiler's parser,
   3839   # not just through cpp. "Syntax error" is here to catch this case.
   3840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3841 /* end confdefs.h.  */
   3842 #ifdef __STDC__
   3843 # include <limits.h>
   3844 #else
   3845 # include <assert.h>
   3846 #endif
   3847 		     Syntax error
   3848 _ACEOF
   3849 if ac_fn_c_try_cpp "$LINENO"; then :
   3850 
   3851 else
   3852   # Broken: fails on valid input.
   3853 continue
   3854 fi
   3855 rm -f conftest.err conftest.$ac_ext
   3856 
   3857   # OK, works on sane cases.  Now check whether nonexistent headers
   3858   # can be detected and how.
   3859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3860 /* end confdefs.h.  */
   3861 #include <ac_nonexistent.h>
   3862 _ACEOF
   3863 if ac_fn_c_try_cpp "$LINENO"; then :
   3864   # Broken: success on invalid input.
   3865 continue
   3866 else
   3867   # Passes both tests.
   3868 ac_preproc_ok=:
   3869 break
   3870 fi
   3871 rm -f conftest.err conftest.$ac_ext
   3872 
   3873 done
   3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3875 rm -f conftest.err conftest.$ac_ext
   3876 if $ac_preproc_ok; then :
   3877   break
   3878 fi
   3879 
   3880     done
   3881     ac_cv_prog_CPP=$CPP
   3882 
   3883 fi
   3884   CPP=$ac_cv_prog_CPP
   3885 else
   3886   ac_cv_prog_CPP=$CPP
   3887 fi
   3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3889 $as_echo "$CPP" >&6; }
   3890 ac_preproc_ok=false
   3891 for ac_c_preproc_warn_flag in '' yes
   3892 do
   3893   # Use a header file that comes with gcc, so configuring glibc
   3894   # with a fresh cross-compiler works.
   3895   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3896   # <limits.h> exists even on freestanding compilers.
   3897   # On the NeXT, cc -E runs the code through the compiler's parser,
   3898   # not just through cpp. "Syntax error" is here to catch this case.
   3899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3900 /* end confdefs.h.  */
   3901 #ifdef __STDC__
   3902 # include <limits.h>
   3903 #else
   3904 # include <assert.h>
   3905 #endif
   3906 		     Syntax error
   3907 _ACEOF
   3908 if ac_fn_c_try_cpp "$LINENO"; then :
   3909 
   3910 else
   3911   # Broken: fails on valid input.
   3912 continue
   3913 fi
   3914 rm -f conftest.err conftest.$ac_ext
   3915 
   3916   # OK, works on sane cases.  Now check whether nonexistent headers
   3917   # can be detected and how.
   3918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3919 /* end confdefs.h.  */
   3920 #include <ac_nonexistent.h>
   3921 _ACEOF
   3922 if ac_fn_c_try_cpp "$LINENO"; then :
   3923   # Broken: success on invalid input.
   3924 continue
   3925 else
   3926   # Passes both tests.
   3927 ac_preproc_ok=:
   3928 break
   3929 fi
   3930 rm -f conftest.err conftest.$ac_ext
   3931 
   3932 done
   3933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3934 rm -f conftest.err conftest.$ac_ext
   3935 if $ac_preproc_ok; then :
   3936 
   3937 else
   3938   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3940 as_fn_error "C preprocessor \"$CPP\" fails sanity check
   3941 See \`config.log' for more details." "$LINENO" 5; }
   3942 fi
   3943 
   3944 ac_ext=c
   3945 ac_cpp='$CPP $CPPFLAGS'
   3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3949 
   3950 
   3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3952 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3953 if test "${ac_cv_path_GREP+set}" = set; then :
   3954   $as_echo_n "(cached) " >&6
   3955 else
   3956   if test -z "$GREP"; then
   3957   ac_path_GREP_found=false
   3958   # Loop through the user's path and test for each of PROGNAME-LIST
   3959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3960 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3961 do
   3962   IFS=$as_save_IFS
   3963   test -z "$as_dir" && as_dir=.
   3964     for ac_prog in grep ggrep; do
   3965     for ac_exec_ext in '' $ac_executable_extensions; do
   3966       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3967       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3968 # Check for GNU ac_path_GREP and select it if it is found.
   3969   # Check for GNU $ac_path_GREP
   3970 case `"$ac_path_GREP" --version 2>&1` in
   3971 *GNU*)
   3972   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3973 *)
   3974   ac_count=0
   3975   $as_echo_n 0123456789 >"conftest.in"
   3976   while :
   3977   do
   3978     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3979     mv "conftest.tmp" "conftest.in"
   3980     cp "conftest.in" "conftest.nl"
   3981     $as_echo 'GREP' >> "conftest.nl"
   3982     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3983     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3984     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3985     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3986       # Best one so far, save it but keep looking for a better one
   3987       ac_cv_path_GREP="$ac_path_GREP"
   3988       ac_path_GREP_max=$ac_count
   3989     fi
   3990     # 10*(2^10) chars as input seems more than enough
   3991     test $ac_count -gt 10 && break
   3992   done
   3993   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3994 esac
   3995 
   3996       $ac_path_GREP_found && break 3
   3997     done
   3998   done
   3999   done
   4000 IFS=$as_save_IFS
   4001   if test -z "$ac_cv_path_GREP"; then
   4002     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4003   fi
   4004 else
   4005   ac_cv_path_GREP=$GREP
   4006 fi
   4007 
   4008 fi
   4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4010 $as_echo "$ac_cv_path_GREP" >&6; }
   4011  GREP="$ac_cv_path_GREP"
   4012 
   4013 
   4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4015 $as_echo_n "checking for egrep... " >&6; }
   4016 if test "${ac_cv_path_EGREP+set}" = set; then :
   4017   $as_echo_n "(cached) " >&6
   4018 else
   4019   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4020    then ac_cv_path_EGREP="$GREP -E"
   4021    else
   4022      if test -z "$EGREP"; then
   4023   ac_path_EGREP_found=false
   4024   # Loop through the user's path and test for each of PROGNAME-LIST
   4025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4027 do
   4028   IFS=$as_save_IFS
   4029   test -z "$as_dir" && as_dir=.
   4030     for ac_prog in egrep; do
   4031     for ac_exec_ext in '' $ac_executable_extensions; do
   4032       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4033       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   4034 # Check for GNU ac_path_EGREP and select it if it is found.
   4035   # Check for GNU $ac_path_EGREP
   4036 case `"$ac_path_EGREP" --version 2>&1` in
   4037 *GNU*)
   4038   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4039 *)
   4040   ac_count=0
   4041   $as_echo_n 0123456789 >"conftest.in"
   4042   while :
   4043   do
   4044     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4045     mv "conftest.tmp" "conftest.in"
   4046     cp "conftest.in" "conftest.nl"
   4047     $as_echo 'EGREP' >> "conftest.nl"
   4048     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4049     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4050     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4051     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4052       # Best one so far, save it but keep looking for a better one
   4053       ac_cv_path_EGREP="$ac_path_EGREP"
   4054       ac_path_EGREP_max=$ac_count
   4055     fi
   4056     # 10*(2^10) chars as input seems more than enough
   4057     test $ac_count -gt 10 && break
   4058   done
   4059   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4060 esac
   4061 
   4062       $ac_path_EGREP_found && break 3
   4063     done
   4064   done
   4065   done
   4066 IFS=$as_save_IFS
   4067   if test -z "$ac_cv_path_EGREP"; then
   4068     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4069   fi
   4070 else
   4071   ac_cv_path_EGREP=$EGREP
   4072 fi
   4073 
   4074    fi
   4075 fi
   4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4077 $as_echo "$ac_cv_path_EGREP" >&6; }
   4078  EGREP="$ac_cv_path_EGREP"
   4079 
   4080 
   4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4082 $as_echo_n "checking for ANSI C header files... " >&6; }
   4083 if test "${ac_cv_header_stdc+set}" = set; then :
   4084   $as_echo_n "(cached) " >&6
   4085 else
   4086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4087 /* end confdefs.h.  */
   4088 #include <stdlib.h>
   4089 #include <stdarg.h>
   4090 #include <string.h>
   4091 #include <float.h>
   4092 
   4093 int
   4094 main ()
   4095 {
   4096 
   4097   ;
   4098   return 0;
   4099 }
   4100 _ACEOF
   4101 if ac_fn_c_try_compile "$LINENO"; then :
   4102   ac_cv_header_stdc=yes
   4103 else
   4104   ac_cv_header_stdc=no
   4105 fi
   4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4107 
   4108 if test $ac_cv_header_stdc = yes; then
   4109   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4111 /* end confdefs.h.  */
   4112 #include <string.h>
   4113 
   4114 _ACEOF
   4115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4116   $EGREP "memchr" >/dev/null 2>&1; then :
   4117 
   4118 else
   4119   ac_cv_header_stdc=no
   4120 fi
   4121 rm -f conftest*
   4122 
   4123 fi
   4124 
   4125 if test $ac_cv_header_stdc = yes; then
   4126   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4128 /* end confdefs.h.  */
   4129 #include <stdlib.h>
   4130 
   4131 _ACEOF
   4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4133   $EGREP "free" >/dev/null 2>&1; then :
   4134 
   4135 else
   4136   ac_cv_header_stdc=no
   4137 fi
   4138 rm -f conftest*
   4139 
   4140 fi
   4141 
   4142 if test $ac_cv_header_stdc = yes; then
   4143   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4144   if test "$cross_compiling" = yes; then :
   4145   :
   4146 else
   4147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4148 /* end confdefs.h.  */
   4149 #include <ctype.h>
   4150 #include <stdlib.h>
   4151 #if ((' ' & 0x0FF) == 0x020)
   4152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4154 #else
   4155 # define ISLOWER(c) \
   4156 		   (('a' <= (c) && (c) <= 'i') \
   4157 		     || ('j' <= (c) && (c) <= 'r') \
   4158 		     || ('s' <= (c) && (c) <= 'z'))
   4159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4160 #endif
   4161 
   4162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4163 int
   4164 main ()
   4165 {
   4166   int i;
   4167   for (i = 0; i < 256; i++)
   4168     if (XOR (islower (i), ISLOWER (i))
   4169 	|| toupper (i) != TOUPPER (i))
   4170       return 2;
   4171   return 0;
   4172 }
   4173 _ACEOF
   4174 if ac_fn_c_try_run "$LINENO"; then :
   4175 
   4176 else
   4177   ac_cv_header_stdc=no
   4178 fi
   4179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4180   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4181 fi
   4182 
   4183 fi
   4184 fi
   4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4186 $as_echo "$ac_cv_header_stdc" >&6; }
   4187 if test $ac_cv_header_stdc = yes; then
   4188 
   4189 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4190 
   4191 fi
   4192 
   4193 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4194 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4195 		  inttypes.h stdint.h unistd.h
   4196 do :
   4197   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4198 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4199 "
   4200 eval as_val=\$$as_ac_Header
   4201    if test "x$as_val" = x""yes; then :
   4202   cat >>confdefs.h <<_ACEOF
   4203 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4204 _ACEOF
   4205 
   4206 fi
   4207 
   4208 done
   4209 
   4210 
   4211 
   4212   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4213 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
   4214   MINIX=yes
   4215 else
   4216   MINIX=
   4217 fi
   4218 
   4219 
   4220   if test "$MINIX" = yes; then
   4221 
   4222 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4223 
   4224 
   4225 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4226 
   4227 
   4228 $as_echo "#define _MINIX 1" >>confdefs.h
   4229 
   4230   fi
   4231 
   4232 
   4233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4234 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4235 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
   4236   $as_echo_n "(cached) " >&6
   4237 else
   4238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4239 /* end confdefs.h.  */
   4240 
   4241 #	  define __EXTENSIONS__ 1
   4242 	  $ac_includes_default
   4243 int
   4244 main ()
   4245 {
   4246 
   4247   ;
   4248   return 0;
   4249 }
   4250 _ACEOF
   4251 if ac_fn_c_try_compile "$LINENO"; then :
   4252   ac_cv_safe_to_define___extensions__=yes
   4253 else
   4254   ac_cv_safe_to_define___extensions__=no
   4255 fi
   4256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4257 fi
   4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4259 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4260   test $ac_cv_safe_to_define___extensions__ = yes &&
   4261     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4262 
   4263   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4264 
   4265   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4266 
   4267   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4268 
   4269   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4270 
   4271 
   4272 ac_aux_dir=
   4273 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   4274   for ac_t in install-sh install.sh shtool; do
   4275     if test -f "$ac_dir/$ac_t"; then
   4276       ac_aux_dir=$ac_dir
   4277       ac_install_sh="$ac_aux_dir/$ac_t -c"
   4278       break 2
   4279     fi
   4280   done
   4281 done
   4282 if test -z "$ac_aux_dir"; then
   4283   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   4284 fi
   4285 
   4286 # These three variables are undocumented and unsupported,
   4287 # and are intended to be withdrawn in a future Autoconf release.
   4288 # They can cause serious problems if a builder's source tree is in a directory
   4289 # whose full name contains unusual characters.
   4290 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   4291 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   4292 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   4293 
   4294 
   4295 # Make sure we can run config.sub.
   4296 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   4297   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   4298 
   4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   4300 $as_echo_n "checking build system type... " >&6; }
   4301 if test "${ac_cv_build+set}" = set; then :
   4302   $as_echo_n "(cached) " >&6
   4303 else
   4304   ac_build_alias=$build_alias
   4305 test "x$ac_build_alias" = x &&
   4306   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   4307 test "x$ac_build_alias" = x &&
   4308   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
   4309 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   4310   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   4311 
   4312 fi
   4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   4314 $as_echo "$ac_cv_build" >&6; }
   4315 case $ac_cv_build in
   4316 *-*-*) ;;
   4317 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
   4318 esac
   4319 build=$ac_cv_build
   4320 ac_save_IFS=$IFS; IFS='-'
   4321 set x $ac_cv_build
   4322 shift
   4323 build_cpu=$1
   4324 build_vendor=$2
   4325 shift; shift
   4326 # Remember, the first character of IFS is used to create $*,
   4327 # except with old shells:
   4328 build_os=$*
   4329 IFS=$ac_save_IFS
   4330 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4331 
   4332 
   4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4334 $as_echo_n "checking host system type... " >&6; }
   4335 if test "${ac_cv_host+set}" = set; then :
   4336   $as_echo_n "(cached) " >&6
   4337 else
   4338   if test "x$host_alias" = x; then
   4339   ac_cv_host=$ac_cv_build
   4340 else
   4341   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   4342     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   4343 fi
   4344 
   4345 fi
   4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4347 $as_echo "$ac_cv_host" >&6; }
   4348 case $ac_cv_host in
   4349 *-*-*) ;;
   4350 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
   4351 esac
   4352 host=$ac_cv_host
   4353 ac_save_IFS=$IFS; IFS='-'
   4354 set x $ac_cv_host
   4355 shift
   4356 host_cpu=$1
   4357 host_vendor=$2
   4358 shift; shift
   4359 # Remember, the first character of IFS is used to create $*,
   4360 # except with old shells:
   4361 host_os=$*
   4362 IFS=$ac_save_IFS
   4363 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4364 
   4365 
   4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   4367 $as_echo_n "checking target system type... " >&6; }
   4368 if test "${ac_cv_target+set}" = set; then :
   4369   $as_echo_n "(cached) " >&6
   4370 else
   4371   if test "x$target_alias" = x; then
   4372   ac_cv_target=$ac_cv_host
   4373 else
   4374   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   4375     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   4376 fi
   4377 
   4378 fi
   4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   4380 $as_echo "$ac_cv_target" >&6; }
   4381 case $ac_cv_target in
   4382 *-*-*) ;;
   4383 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
   4384 esac
   4385 target=$ac_cv_target
   4386 ac_save_IFS=$IFS; IFS='-'
   4387 set x $ac_cv_target
   4388 shift
   4389 target_cpu=$1
   4390 target_vendor=$2
   4391 shift; shift
   4392 # Remember, the first character of IFS is used to create $*,
   4393 # except with old shells:
   4394 target_os=$*
   4395 IFS=$ac_save_IFS
   4396 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   4397 
   4398 
   4399 # The aliases save the names the user supplied, while $host etc.
   4400 # will get canonicalized.
   4401 test -n "$target_alias" &&
   4402   test "$program_prefix$program_suffix$program_transform_name" = \
   4403     NONENONEs,x,x, &&
   4404   program_prefix=${target_alias}-
   4405 
   4406 # The tests for host and target for $enable_largefile require
   4407 # canonical names.
   4408 
   4409 
   4410 
   4411 # As the $enable_largefile decision depends on --enable-plugins we must set it
   4412 # even in directories otherwise not depending on the $plugins option.
   4413 
   4414 
   4415   maybe_plugins=no
   4416   for ac_header in dlfcn.h
   4417 do :
   4418   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   4419 "
   4420 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
   4421   cat >>confdefs.h <<_ACEOF
   4422 #define HAVE_DLFCN_H 1
   4423 _ACEOF
   4424  maybe_plugins=yes
   4425 fi
   4426 
   4427 done
   4428 
   4429   for ac_header in windows.h
   4430 do :
   4431   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
   4432 "
   4433 if test "x$ac_cv_header_windows_h" = x""yes; then :
   4434   cat >>confdefs.h <<_ACEOF
   4435 #define HAVE_WINDOWS_H 1
   4436 _ACEOF
   4437  maybe_plugins=yes
   4438 fi
   4439 
   4440 done
   4441 
   4442 
   4443   # Check whether --enable-plugins was given.
   4444 if test "${enable_plugins+set}" = set; then :
   4445   enableval=$enable_plugins; case "${enableval}" in
   4446       no) plugins=no ;;
   4447       *) plugins=yes
   4448          if test "$maybe_plugins" != "yes" ; then
   4449 	   as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
   4450 	 fi ;;
   4451      esac
   4452 else
   4453   plugins=$maybe_plugins
   4454 
   4455 fi
   4456 
   4457   if test "$plugins" = "yes"; then
   4458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   4459 $as_echo_n "checking for library containing dlopen... " >&6; }
   4460 if test "${ac_cv_search_dlopen+set}" = set; then :
   4461   $as_echo_n "(cached) " >&6
   4462 else
   4463   ac_func_search_save_LIBS=$LIBS
   4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4465 /* end confdefs.h.  */
   4466 
   4467 /* Override any GCC internal prototype to avoid an error.
   4468    Use char because int might match the return type of a GCC
   4469    builtin and then its argument prototype would still apply.  */
   4470 #ifdef __cplusplus
   4471 extern "C"
   4472 #endif
   4473 char dlopen ();
   4474 int
   4475 main ()
   4476 {
   4477 return dlopen ();
   4478   ;
   4479   return 0;
   4480 }
   4481 _ACEOF
   4482 for ac_lib in '' dl; do
   4483   if test -z "$ac_lib"; then
   4484     ac_res="none required"
   4485   else
   4486     ac_res=-l$ac_lib
   4487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4488   fi
   4489   if ac_fn_c_try_link "$LINENO"; then :
   4490   ac_cv_search_dlopen=$ac_res
   4491 fi
   4492 rm -f core conftest.err conftest.$ac_objext \
   4493     conftest$ac_exeext
   4494   if test "${ac_cv_search_dlopen+set}" = set; then :
   4495   break
   4496 fi
   4497 done
   4498 if test "${ac_cv_search_dlopen+set}" = set; then :
   4499 
   4500 else
   4501   ac_cv_search_dlopen=no
   4502 fi
   4503 rm conftest.$ac_ext
   4504 LIBS=$ac_func_search_save_LIBS
   4505 fi
   4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   4507 $as_echo "$ac_cv_search_dlopen" >&6; }
   4508 ac_res=$ac_cv_search_dlopen
   4509 if test "$ac_res" != no; then :
   4510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4511 
   4512 fi
   4513 
   4514   fi
   4515 
   4516 
   4517 case "${host}" in
   4518   sparc-*-solaris*|i[3-7]86-*-solaris*)
   4519     # On native 32bit sparc and ia32 solaris, large-file and procfs support
   4520     # are mutually exclusive; and without procfs support, the bfd/ elf module
   4521     # cannot provide certain routines such as elfcore_write_prpsinfo
   4522     # or elfcore_write_prstatus.  So unless the user explicitly requested
   4523     # large-file support through the --enable-largefile switch, disable
   4524     # large-file support in favor of procfs support.
   4525     test "${target}" = "${host}" -a "x$plugins" = xno \
   4526       && : ${enable_largefile="no"}
   4527     ;;
   4528 esac
   4529 
   4530 # Check whether --enable-largefile was given.
   4531 if test "${enable_largefile+set}" = set; then :
   4532   enableval=$enable_largefile;
   4533 fi
   4534 
   4535 if test "$enable_largefile" != no; then
   4536 
   4537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   4538 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4539 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
   4540   $as_echo_n "(cached) " >&6
   4541 else
   4542   ac_cv_sys_largefile_CC=no
   4543      if test "$GCC" != yes; then
   4544        ac_save_CC=$CC
   4545        while :; do
   4546 	 # IRIX 6.2 and later do not support large files by default,
   4547 	 # so use the C compiler's -n32 option if that helps.
   4548 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4549 /* end confdefs.h.  */
   4550 #include <sys/types.h>
   4551  /* Check that off_t can represent 2**63 - 1 correctly.
   4552     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4553     since some C++ compilers masquerading as C compilers
   4554     incorrectly reject 9223372036854775807.  */
   4555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4556   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4557 		       && LARGE_OFF_T % 2147483647 == 1)
   4558 		      ? 1 : -1];
   4559 int
   4560 main ()
   4561 {
   4562 
   4563   ;
   4564   return 0;
   4565 }
   4566 _ACEOF
   4567 	 if ac_fn_c_try_compile "$LINENO"; then :
   4568   break
   4569 fi
   4570 rm -f core conftest.err conftest.$ac_objext
   4571 	 CC="$CC -n32"
   4572 	 if ac_fn_c_try_compile "$LINENO"; then :
   4573   ac_cv_sys_largefile_CC=' -n32'; break
   4574 fi
   4575 rm -f core conftest.err conftest.$ac_objext
   4576 	 break
   4577        done
   4578        CC=$ac_save_CC
   4579        rm -f conftest.$ac_ext
   4580     fi
   4581 fi
   4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4583 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4584   if test "$ac_cv_sys_largefile_CC" != no; then
   4585     CC=$CC$ac_cv_sys_largefile_CC
   4586   fi
   4587 
   4588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4589 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4590 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
   4591   $as_echo_n "(cached) " >&6
   4592 else
   4593   while :; do
   4594   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4595 /* end confdefs.h.  */
   4596 #include <sys/types.h>
   4597  /* Check that off_t can represent 2**63 - 1 correctly.
   4598     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4599     since some C++ compilers masquerading as C compilers
   4600     incorrectly reject 9223372036854775807.  */
   4601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4602   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4603 		       && LARGE_OFF_T % 2147483647 == 1)
   4604 		      ? 1 : -1];
   4605 int
   4606 main ()
   4607 {
   4608 
   4609   ;
   4610   return 0;
   4611 }
   4612 _ACEOF
   4613 if ac_fn_c_try_compile "$LINENO"; then :
   4614   ac_cv_sys_file_offset_bits=no; break
   4615 fi
   4616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4618 /* end confdefs.h.  */
   4619 #define _FILE_OFFSET_BITS 64
   4620 #include <sys/types.h>
   4621  /* Check that off_t can represent 2**63 - 1 correctly.
   4622     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4623     since some C++ compilers masquerading as C compilers
   4624     incorrectly reject 9223372036854775807.  */
   4625 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4626   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4627 		       && LARGE_OFF_T % 2147483647 == 1)
   4628 		      ? 1 : -1];
   4629 int
   4630 main ()
   4631 {
   4632 
   4633   ;
   4634   return 0;
   4635 }
   4636 _ACEOF
   4637 if ac_fn_c_try_compile "$LINENO"; then :
   4638   ac_cv_sys_file_offset_bits=64; break
   4639 fi
   4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4641   ac_cv_sys_file_offset_bits=unknown
   4642   break
   4643 done
   4644 fi
   4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4646 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4647 case $ac_cv_sys_file_offset_bits in #(
   4648   no | unknown) ;;
   4649   *)
   4650 cat >>confdefs.h <<_ACEOF
   4651 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4652 _ACEOF
   4653 ;;
   4654 esac
   4655 rm -rf conftest*
   4656   if test $ac_cv_sys_file_offset_bits = unknown; then
   4657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4658 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4659 if test "${ac_cv_sys_large_files+set}" = set; then :
   4660   $as_echo_n "(cached) " >&6
   4661 else
   4662   while :; do
   4663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4664 /* end confdefs.h.  */
   4665 #include <sys/types.h>
   4666  /* Check that off_t can represent 2**63 - 1 correctly.
   4667     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4668     since some C++ compilers masquerading as C compilers
   4669     incorrectly reject 9223372036854775807.  */
   4670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4671   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4672 		       && LARGE_OFF_T % 2147483647 == 1)
   4673 		      ? 1 : -1];
   4674 int
   4675 main ()
   4676 {
   4677 
   4678   ;
   4679   return 0;
   4680 }
   4681 _ACEOF
   4682 if ac_fn_c_try_compile "$LINENO"; then :
   4683   ac_cv_sys_large_files=no; break
   4684 fi
   4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4687 /* end confdefs.h.  */
   4688 #define _LARGE_FILES 1
   4689 #include <sys/types.h>
   4690  /* Check that off_t can represent 2**63 - 1 correctly.
   4691     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4692     since some C++ compilers masquerading as C compilers
   4693     incorrectly reject 9223372036854775807.  */
   4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4695   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4696 		       && LARGE_OFF_T % 2147483647 == 1)
   4697 		      ? 1 : -1];
   4698 int
   4699 main ()
   4700 {
   4701 
   4702   ;
   4703   return 0;
   4704 }
   4705 _ACEOF
   4706 if ac_fn_c_try_compile "$LINENO"; then :
   4707   ac_cv_sys_large_files=1; break
   4708 fi
   4709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4710   ac_cv_sys_large_files=unknown
   4711   break
   4712 done
   4713 fi
   4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   4715 $as_echo "$ac_cv_sys_large_files" >&6; }
   4716 case $ac_cv_sys_large_files in #(
   4717   no | unknown) ;;
   4718   *)
   4719 cat >>confdefs.h <<_ACEOF
   4720 #define _LARGE_FILES $ac_cv_sys_large_files
   4721 _ACEOF
   4722 ;;
   4723 esac
   4724 rm -rf conftest*
   4725   fi
   4726 fi
   4727 
   4728 
   4729 
   4730 
   4731 
   4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
   4733 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
   4734 if test "${am_cv_prog_cc_stdc+set}" = set; then :
   4735   $as_echo_n "(cached) " >&6
   4736 else
   4737   am_cv_prog_cc_stdc=no
   4738 ac_save_CC="$CC"
   4739 # Don't try gcc -ansi; that turns off useful extensions and
   4740 # breaks some systems' header files.
   4741 # AIX			-qlanglvl=ansi
   4742 # Ultrix and OSF/1	-std1
   4743 # HP-UX 10.20 and later	-Ae
   4744 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   4745 # SVR4			-Xc -D__EXTENSIONS__
   4746 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4747 do
   4748   CC="$ac_save_CC $ac_arg"
   4749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4750 /* end confdefs.h.  */
   4751 #include <stdarg.h>
   4752 #include <stdio.h>
   4753 #include <sys/types.h>
   4754 #include <sys/stat.h>
   4755 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4756 struct buf { int x; };
   4757 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4758 static char *e (p, i)
   4759      char **p;
   4760      int i;
   4761 {
   4762   return p[i];
   4763 }
   4764 static char *f (char * (*g) (char **, int), char **p, ...)
   4765 {
   4766   char *s;
   4767   va_list v;
   4768   va_start (v,p);
   4769   s = g (p, va_arg (v,int));
   4770   va_end (v);
   4771   return s;
   4772 }
   4773 int test (int i, double x);
   4774 struct s1 {int (*f) (int a);};
   4775 struct s2 {int (*f) (double a);};
   4776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4777 int argc;
   4778 char **argv;
   4779 
   4780 int
   4781 main ()
   4782 {
   4783 
   4784 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4785 
   4786   ;
   4787   return 0;
   4788 }
   4789 _ACEOF
   4790 if ac_fn_c_try_compile "$LINENO"; then :
   4791   am_cv_prog_cc_stdc="$ac_arg"; break
   4792 fi
   4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4794 done
   4795 CC="$ac_save_CC"
   4796 
   4797 fi
   4798 
   4799 if test -z "$am_cv_prog_cc_stdc"; then
   4800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4801 $as_echo "none needed" >&6; }
   4802 else
   4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
   4804 $as_echo "$am_cv_prog_cc_stdc" >&6; }
   4805 fi
   4806 case "x$am_cv_prog_cc_stdc" in
   4807   x|xno) ;;
   4808   *) CC="$CC $am_cv_prog_cc_stdc" ;;
   4809 esac
   4810 
   4811 # expand $ac_aux_dir to an absolute path
   4812 am_aux_dir=`cd $ac_aux_dir && pwd`
   4813 
   4814 if test x"${install_sh}" != xset; then
   4815   case $am_aux_dir in
   4816   *\ * | *\	*)
   4817     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   4818   *)
   4819     install_sh="\${SHELL} $am_aux_dir/install-sh"
   4820   esac
   4821 fi
   4822 
   4823 # Installed binaries are usually stripped using `strip' when the user
   4824 # run `make install-strip'.  However `strip' might not be the right
   4825 # tool to use in cross-compilation environments, therefore Automake
   4826 # will honor the `STRIP' environment variable to overrule this program.
   4827 if test "$cross_compiling" != no; then
   4828   if test -n "$ac_tool_prefix"; then
   4829   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   4830 set dummy ${ac_tool_prefix}strip; ac_word=$2
   4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4832 $as_echo_n "checking for $ac_word... " >&6; }
   4833 if test "${ac_cv_prog_STRIP+set}" = set; then :
   4834   $as_echo_n "(cached) " >&6
   4835 else
   4836   if test -n "$STRIP"; then
   4837   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   4838 else
   4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4840 for as_dir in $PATH
   4841 do
   4842   IFS=$as_save_IFS
   4843   test -z "$as_dir" && as_dir=.
   4844     for ac_exec_ext in '' $ac_executable_extensions; do
   4845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4846     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   4847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4848     break 2
   4849   fi
   4850 done
   4851   done
   4852 IFS=$as_save_IFS
   4853 
   4854 fi
   4855 fi
   4856 STRIP=$ac_cv_prog_STRIP
   4857 if test -n "$STRIP"; then
   4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   4859 $as_echo "$STRIP" >&6; }
   4860 else
   4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4862 $as_echo "no" >&6; }
   4863 fi
   4864 
   4865 
   4866 fi
   4867 if test -z "$ac_cv_prog_STRIP"; then
   4868   ac_ct_STRIP=$STRIP
   4869   # Extract the first word of "strip", so it can be a program name with args.
   4870 set dummy strip; ac_word=$2
   4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4872 $as_echo_n "checking for $ac_word... " >&6; }
   4873 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
   4874   $as_echo_n "(cached) " >&6
   4875 else
   4876   if test -n "$ac_ct_STRIP"; then
   4877   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   4878 else
   4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4880 for as_dir in $PATH
   4881 do
   4882   IFS=$as_save_IFS
   4883   test -z "$as_dir" && as_dir=.
   4884     for ac_exec_ext in '' $ac_executable_extensions; do
   4885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4886     ac_cv_prog_ac_ct_STRIP="strip"
   4887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4888     break 2
   4889   fi
   4890 done
   4891   done
   4892 IFS=$as_save_IFS
   4893 
   4894 fi
   4895 fi
   4896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   4897 if test -n "$ac_ct_STRIP"; then
   4898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   4899 $as_echo "$ac_ct_STRIP" >&6; }
   4900 else
   4901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4902 $as_echo "no" >&6; }
   4903 fi
   4904 
   4905   if test "x$ac_ct_STRIP" = x; then
   4906     STRIP=":"
   4907   else
   4908     case $cross_compiling:$ac_tool_warned in
   4909 yes:)
   4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4912 ac_tool_warned=yes ;;
   4913 esac
   4914     STRIP=$ac_ct_STRIP
   4915   fi
   4916 else
   4917   STRIP="$ac_cv_prog_STRIP"
   4918 fi
   4919 
   4920 fi
   4921 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   4922 
   4923 
   4924 ac_aux_dir=
   4925 for ac_dir in .. "$srcdir"/..; do
   4926   for ac_t in install-sh install.sh shtool; do
   4927     if test -f "$ac_dir/$ac_t"; then
   4928       ac_aux_dir=$ac_dir
   4929       ac_install_sh="$ac_aux_dir/$ac_t -c"
   4930       break 2
   4931     fi
   4932   done
   4933 done
   4934 if test -z "$ac_aux_dir"; then
   4935   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
   4936 fi
   4937 
   4938 # These three variables are undocumented and unsupported,
   4939 # and are intended to be withdrawn in a future Autoconf release.
   4940 # They can cause serious problems if a builder's source tree is in a directory
   4941 # whose full name contains unusual characters.
   4942 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   4943 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   4944 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   4945 
   4946 
   4947 
   4948 test "$program_prefix" != NONE &&
   4949   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   4950 # Use a double $ so make ignores it.
   4951 test "$program_suffix" != NONE &&
   4952   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   4953 # Double any \ or $.
   4954 # By default was `s,x,x', remove it if useless.
   4955 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   4956 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   4957 
   4958 
   4959 # See if we are building with C++, and substitute COMPILER.
   4960 
   4961   # Check whether --enable-build-with-cxx was given.
   4962 if test "${enable_build_with_cxx+set}" = set; then :
   4963   enableval=$enable_build_with_cxx; case $enableval in
   4964       yes | no)
   4965 	  ;;
   4966       *)
   4967 	  as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
   4968     esac
   4969 else
   4970   enable_build_with_cxx=yes
   4971 fi
   4972 
   4973 
   4974   if test "$enable_build_with_cxx" = "yes"; then
   4975     COMPILER='$(CXX)'
   4976     COMPILER_CFLAGS='$(CXXFLAGS)'
   4977    else
   4978     COMPILER='$(CC)'
   4979     COMPILER_CFLAGS='$(CFLAGS)'
   4980   fi
   4981 
   4982 
   4983 
   4984 
   4985 # Dependency checking.
   4986 rm -rf .tst 2>/dev/null
   4987 mkdir .tst 2>/dev/null
   4988 if test -d .tst; then
   4989   am__leading_dot=.
   4990 else
   4991   am__leading_dot=_
   4992 fi
   4993 rmdir .tst 2>/dev/null
   4994 
   4995 DEPDIR="${am__leading_dot}deps"
   4996 
   4997 ac_config_commands="$ac_config_commands depdir"
   4998 
   4999 
   5000 depcc="$CC"   am_compiler_list=
   5001 
   5002 am_depcomp=$ac_aux_dir/depcomp
   5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   5004 $as_echo_n "checking dependency style of $depcc... " >&6; }
   5005 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
   5006   $as_echo_n "(cached) " >&6
   5007 else
   5008   if test -f "$am_depcomp"; then
   5009   # We make a subdir and do the tests there.  Otherwise we can end up
   5010   # making bogus files that we don't know about and never remove.  For
   5011   # instance it was reported that on HP-UX the gcc test will end up
   5012   # making a dummy file named `D' -- because `-MD' means `put the output
   5013   # in D'.
   5014   mkdir conftest.dir
   5015   # Copy depcomp to subdir because otherwise we won't find it if we're
   5016   # using a relative directory.
   5017   cp "$am_depcomp" conftest.dir
   5018   cd conftest.dir
   5019   # We will build objects and dependencies in a subdirectory because
   5020   # it helps to detect inapplicable dependency modes.  For instance
   5021   # both Tru64's cc and ICC support -MD to output dependencies as a
   5022   # side effect of compilation, but ICC will put the dependencies in
   5023   # the current directory while Tru64 will put them in the object
   5024   # directory.
   5025   mkdir sub
   5026 
   5027   am_cv_CC_dependencies_compiler_type=none
   5028   if test "$am_compiler_list" = ""; then
   5029      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   5030   fi
   5031   for depmode in $am_compiler_list; do
   5032     if test $depmode = none; then break; fi
   5033 
   5034     $as_echo "$as_me:$LINENO: trying $depmode" >&5
   5035     # Setup a source with many dependencies, because some compilers
   5036     # like to wrap large dependency lists on column 80 (with \), and
   5037     # we should not choose a depcomp mode which is confused by this.
   5038     #
   5039     # We need to recreate these files for each test, as the compiler may
   5040     # overwrite some of them when testing with obscure command lines.
   5041     # This happens at least with the AIX C compiler.
   5042     : > sub/conftest.c
   5043     for i in 1 2 3 4 5 6; do
   5044       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   5045       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   5046       # Solaris 8's {/usr,}/bin/sh.
   5047       touch sub/conftst$i.h
   5048     done
   5049     echo "include sub/conftest.Po" > confmf
   5050 
   5051     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   5052     # mode.  It turns out that the SunPro C++ compiler does not properly
   5053     # handle `-M -o', and we need to detect this.
   5054     depcmd="depmode=$depmode \
   5055        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   5056        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   5057        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
   5058     echo "| $depcmd" | sed -e 's/  */ /g' >&5
   5059     if env $depcmd > conftest.err 2>&1 &&
   5060        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
   5061        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
   5062        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
   5063       # icc doesn't choke on unknown options, it will just issue warnings
   5064       # or remarks (even with -Werror).  So we grep stderr for any message
   5065       # that says an option was ignored or not supported.
   5066       # When given -MP, icc 7.0 and 7.1 complain thusly:
   5067       #   icc: Command line warning: ignoring option '-M'; no argument required
   5068       # The diagnosis changed in icc 8.0:
   5069       #   icc: Command line remark: option '-MP' not supported
   5070       if (grep 'ignoring option' conftest.err ||
   5071           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   5072         am_cv_CC_dependencies_compiler_type=$depmode
   5073 	$as_echo "$as_me:$LINENO: success" >&5
   5074         break
   5075       fi
   5076     fi
   5077     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
   5078     sed -e 's/^/| /' < conftest.err >&5
   5079   done
   5080 
   5081   cd ..
   5082   rm -rf conftest.dir
   5083 else
   5084   am_cv_CC_dependencies_compiler_type=none
   5085 fi
   5086 
   5087 fi
   5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   5089 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   5090 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
   5091 then as_fn_error "no usable dependency style found" "$LINENO" 5
   5092 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   5093 
   5094 fi
   5095 
   5096 
   5097 # Check for the 'make' the user wants to use.
   5098 for ac_prog in make
   5099 do
   5100   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5101 set dummy $ac_prog; ac_word=$2
   5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5103 $as_echo_n "checking for $ac_word... " >&6; }
   5104 if test "${ac_cv_prog_MAKE+set}" = set; then :
   5105   $as_echo_n "(cached) " >&6
   5106 else
   5107   if test -n "$MAKE"; then
   5108   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
   5109 else
   5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5111 for as_dir in $PATH
   5112 do
   5113   IFS=$as_save_IFS
   5114   test -z "$as_dir" && as_dir=.
   5115     for ac_exec_ext in '' $ac_executable_extensions; do
   5116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5117     ac_cv_prog_MAKE="$ac_prog"
   5118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5119     break 2
   5120   fi
   5121 done
   5122   done
   5123 IFS=$as_save_IFS
   5124 
   5125 fi
   5126 fi
   5127 MAKE=$ac_cv_prog_MAKE
   5128 if test -n "$MAKE"; then
   5129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
   5130 $as_echo "$MAKE" >&6; }
   5131 else
   5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5133 $as_echo "no" >&6; }
   5134 fi
   5135 
   5136 
   5137   test -n "$MAKE" && break
   5138 done
   5139 
   5140 MAKE_IS_GNU=
   5141 case "`$MAKE --version 2>&1 | sed 1q`" in
   5142   *GNU*)
   5143     MAKE_IS_GNU=yes
   5144     ;;
   5145 esac
   5146  if test "$MAKE_IS_GNU" = yes; then
   5147   GMAKE_TRUE=
   5148   GMAKE_FALSE='#'
   5149 else
   5150   GMAKE_TRUE='#'
   5151   GMAKE_FALSE=
   5152 fi
   5153 
   5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   5155 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   5156 set x ${MAKE-make}
   5157 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   5158 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
   5159   $as_echo_n "(cached) " >&6
   5160 else
   5161   cat >conftest.make <<\_ACEOF
   5162 SHELL = /bin/sh
   5163 all:
   5164 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   5165 _ACEOF
   5166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   5167 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   5168   *@@@%%%=?*=@@@%%%*)
   5169     eval ac_cv_prog_make_${ac_make}_set=yes;;
   5170   *)
   5171     eval ac_cv_prog_make_${ac_make}_set=no;;
   5172 esac
   5173 rm -f conftest.make
   5174 fi
   5175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5177 $as_echo "yes" >&6; }
   5178   SET_MAKE=
   5179 else
   5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5181 $as_echo "no" >&6; }
   5182   SET_MAKE="MAKE=${MAKE-make}"
   5183 fi
   5184 
   5185 
   5186 gnulib_extra_configure_args=
   5187 # If large-file support is disabled, make sure gnulib does the same.
   5188 if test "$enable_largefile" = no; then
   5189 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
   5190 fi
   5191 
   5192 # Configure gnulib.  We need to build gnulib under some other
   5193 # directory not "gnulib", to avoid the problem of both GDB and
   5194 # GDBserver wanting to build it in the same directory, when building
   5195 # in the source dir.
   5196 
   5197   in_src="gnulib"
   5198   in_build="build-gnulib"
   5199   in_extra_args="$gnulib_extra_configure_args"
   5200 
   5201   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   5202   # so they do not pile up.
   5203   ac_sub_configure_args=
   5204   ac_prev=
   5205   eval "set x $ac_configure_args"
   5206   shift
   5207   for ac_arg
   5208   do
   5209     if test -n "$ac_prev"; then
   5210       ac_prev=
   5211       continue
   5212     fi
   5213     case $ac_arg in
   5214     -cache-file | --cache-file | --cache-fil | --cache-fi \
   5215     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   5216       ac_prev=cache_file ;;
   5217     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   5218     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   5219     | --c=*)
   5220       ;;
   5221     --config-cache | -C)
   5222       ;;
   5223     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   5224       ac_prev=srcdir ;;
   5225     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   5226       ;;
   5227     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   5228       ac_prev=prefix ;;
   5229     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   5230       ;;
   5231     --disable-option-checking)
   5232       ;;
   5233     *)
   5234       case $ac_arg in
   5235       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   5236       esac
   5237       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   5238     esac
   5239   done
   5240 
   5241   # Always prepend --prefix to ensure using the same prefix
   5242   # in subdir configurations.
   5243   ac_arg="--prefix=$prefix"
   5244   case $ac_arg in
   5245   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   5246   esac
   5247   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   5248 
   5249   # Pass --silent
   5250   if test "$silent" = yes; then
   5251     ac_sub_configure_args="--silent $ac_sub_configure_args"
   5252   fi
   5253 
   5254   # Always prepend --disable-option-checking to silence warnings, since
   5255   # different subdirs can have different --enable and --with options.
   5256   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   5257 
   5258   ac_popdir=`pwd`
   5259   ac_dir=$in_build
   5260 
   5261   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   5262   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   5263   $as_echo "$ac_msg" >&6
   5264   as_dir="$ac_dir"; as_fn_mkdir_p
   5265 
   5266   case $srcdir in
   5267   [\\/]* | ?:[\\/]* )
   5268     ac_srcdir=$srcdir/$in_src ;;
   5269   *) # Relative name.
   5270     ac_srcdir=../$srcdir/$in_src ;;
   5271   esac
   5272 
   5273   cd "$ac_dir"
   5274 
   5275   ac_sub_configure=$ac_srcdir/configure
   5276 
   5277   # Make the cache file name correct relative to the subdirectory.
   5278   case $cache_file in
   5279   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   5280   *) # Relative name.
   5281     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   5282   esac
   5283 
   5284   if test -n "$in_extra_args"; then
   5285     # Add the extra args at the end.
   5286     ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
   5287   fi
   5288 
   5289   { $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
   5290 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   5291   # The eval makes quoting arguments work.
   5292   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   5293        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   5294     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   5295 
   5296   cd "$ac_popdir"
   5297 
   5298 
   5299 
   5300 CONFIG_OBS=
   5301 CONFIG_DEPS=
   5302 CONFIG_SRCS=
   5303 ENABLE_CFLAGS=
   5304 
   5305 CONFIG_ALL=
   5306 CONFIG_CLEAN=
   5307 CONFIG_INSTALL=
   5308 CONFIG_UNINSTALL=
   5309 
   5310 # If we haven't got the data from the intl directory,
   5311 # assume NLS is disabled.
   5312 USE_NLS=no
   5313 LIBINTL=
   5314 LIBINTL_DEP=
   5315 INCINTL=
   5316 XGETTEXT=
   5317 GMSGFMT=
   5318 POSUB=
   5319 
   5320 if test -f  ../intl/config.intl; then
   5321   .  ../intl/config.intl
   5322 fi
   5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   5324 $as_echo_n "checking whether NLS is requested... " >&6; }
   5325 if test x"$USE_NLS" != xyes; then
   5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5327 $as_echo "no" >&6; }
   5328 else
   5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5330 $as_echo "yes" >&6; }
   5331 
   5332 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   5333 
   5334 
   5335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
   5336 $as_echo_n "checking for catalogs to be installed... " >&6; }
   5337   # Look for .po and .gmo files in the source directory.
   5338   CATALOGS=
   5339   XLINGUAS=
   5340   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
   5341     # If there aren't any .gmo files the shell will give us the
   5342     # literal string "../path/to/srcdir/po/*.gmo" which has to be
   5343     # weeded out.
   5344     case "$cat" in *\**)
   5345       continue;;
   5346     esac
   5347     # The quadruple backslash is collapsed to a double backslash
   5348     # by the backticks, then collapsed again by the double quotes,
   5349     # leaving us with one backslash in the sed expression (right
   5350     # before the dot that mustn't act as a wildcard).
   5351     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
   5352     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
   5353     # The user is allowed to set LINGUAS to a list of languages to
   5354     # install catalogs for.  If it's empty that means "all of them."
   5355     if test "x$LINGUAS" = x; then
   5356       CATALOGS="$CATALOGS $cat"
   5357       XLINGUAS="$XLINGUAS $lang"
   5358     else
   5359       case "$LINGUAS" in *$lang*)
   5360         CATALOGS="$CATALOGS $cat"
   5361         XLINGUAS="$XLINGUAS $lang"
   5362         ;;
   5363       esac
   5364     fi
   5365   done
   5366   LINGUAS="$XLINGUAS"
   5367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
   5368 $as_echo "$LINGUAS" >&6; }
   5369 
   5370 
   5371     DATADIRNAME=share
   5372 
   5373   INSTOBJEXT=.mo
   5374 
   5375   GENCAT=gencat
   5376 
   5377   CATOBJEXT=.gmo
   5378 
   5379 fi
   5380 
   5381 localedir='${datadir}/locale'
   5382 
   5383 
   5384 if test x"$USE_NLS" = xyes; then
   5385    CONFIG_ALL="$CONFIG_ALL all-po"
   5386    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
   5387    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
   5388    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
   5389 fi
   5390 
   5391 GNULIB=build-gnulib/import
   5392 
   5393 # For Makefile dependencies.
   5394 GNULIB_STDINT_H=
   5395 if test x"$STDINT_H" != x; then
   5396   GNULIB_STDINT_H=$GNULIB/$STDINT_H
   5397 fi
   5398 
   5399 
   5400 PACKAGE=gdb
   5401 
   5402 cat >>confdefs.h <<_ACEOF
   5403 #define PACKAGE "$PACKAGE"
   5404 _ACEOF
   5405 
   5406 
   5407 
   5408 # We never need to detect it in this sub-configure.
   5409 # But preserve it for config.status --recheck.
   5410 
   5411 
   5412 
   5413 MAKEINFO_EXTRA_FLAGS=""
   5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
   5415 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
   5416 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
   5417   $as_echo_n "(cached) " >&6
   5418 else
   5419   echo '@clicksequence{a @click{} b}' >conftest.texinfo
   5420   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
   5421     gdb_cv_have_makeinfo_click=yes
   5422   else
   5423     gdb_cv_have_makeinfo_click=no
   5424   fi
   5425 fi
   5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
   5427 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
   5428 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
   5429   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
   5430 fi
   5431 
   5432 
   5433 
   5434 
   5435 # Check whether --with-separate-debug-dir was given.
   5436 if test "${with_separate_debug_dir+set}" = set; then :
   5437   withval=$with_separate_debug_dir;
   5438     DEBUGDIR=$withval
   5439 else
   5440   DEBUGDIR=${libdir}/debug
   5441 fi
   5442 
   5443 
   5444   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5445   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5446   ac_define_dir=`eval echo $DEBUGDIR`
   5447   ac_define_dir=`eval echo $ac_define_dir`
   5448 
   5449 cat >>confdefs.h <<_ACEOF
   5450 #define DEBUGDIR "$ac_define_dir"
   5451 _ACEOF
   5452 
   5453 
   5454 
   5455 
   5456   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   5457      if test "x$prefix" = xNONE; then
   5458      	test_prefix=/usr/local
   5459      else
   5460 	test_prefix=$prefix
   5461      fi
   5462   else
   5463      test_prefix=$exec_prefix
   5464   fi
   5465   value=0
   5466   case ${ac_define_dir} in
   5467      "${test_prefix}"|"${test_prefix}/"*|\
   5468 	'${exec_prefix}'|'${exec_prefix}/'*)
   5469      value=1
   5470      ;;
   5471   esac
   5472 
   5473 cat >>confdefs.h <<_ACEOF
   5474 #define DEBUGDIR_RELOCATABLE $value
   5475 _ACEOF
   5476 
   5477 
   5478 
   5479 
   5480 # We can't pass paths as command line arguments.
   5481 # Mingw32 tries to be clever and will convert the paths for us.
   5482 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
   5483 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
   5484 # This breaks GDB's relocatable path conversions since paths passed in
   5485 # config.h would not get so translated, the path prefixes no longer match.
   5486 
   5487   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5488   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5489   ac_define_dir=`eval echo $bindir`
   5490   ac_define_dir=`eval echo $ac_define_dir`
   5491 
   5492 cat >>confdefs.h <<_ACEOF
   5493 #define BINDIR "$ac_define_dir"
   5494 _ACEOF
   5495 
   5496 
   5497 
   5498 # GDB's datadir relocation
   5499 
   5500 
   5501 
   5502 # Check whether --with-gdb-datadir was given.
   5503 if test "${with_gdb_datadir+set}" = set; then :
   5504   withval=$with_gdb_datadir;
   5505     GDB_DATADIR=$withval
   5506 else
   5507   GDB_DATADIR=${datadir}/gdb
   5508 fi
   5509 
   5510 
   5511   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5512   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5513   ac_define_dir=`eval echo $GDB_DATADIR`
   5514   ac_define_dir=`eval echo $ac_define_dir`
   5515 
   5516 cat >>confdefs.h <<_ACEOF
   5517 #define GDB_DATADIR "$ac_define_dir"
   5518 _ACEOF
   5519 
   5520 
   5521 
   5522 
   5523   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   5524      if test "x$prefix" = xNONE; then
   5525      	test_prefix=/usr/local
   5526      else
   5527 	test_prefix=$prefix
   5528      fi
   5529   else
   5530      test_prefix=$exec_prefix
   5531   fi
   5532   value=0
   5533   case ${ac_define_dir} in
   5534      "${test_prefix}"|"${test_prefix}/"*|\
   5535 	'${exec_prefix}'|'${exec_prefix}/'*)
   5536      value=1
   5537      ;;
   5538   esac
   5539 
   5540 cat >>confdefs.h <<_ACEOF
   5541 #define GDB_DATADIR_RELOCATABLE $value
   5542 _ACEOF
   5543 
   5544 
   5545 
   5546 
   5547 
   5548 # Check whether --with-relocated-sources was given.
   5549 if test "${with_relocated_sources+set}" = set; then :
   5550   withval=$with_relocated_sources; reloc_srcdir="${withval}"
   5551 
   5552   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5553   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5554   ac_define_dir=`eval echo $reloc_srcdir`
   5555   ac_define_dir=`eval echo $ac_define_dir`
   5556 
   5557 cat >>confdefs.h <<_ACEOF
   5558 #define RELOC_SRCDIR "$ac_define_dir"
   5559 _ACEOF
   5560 
   5561 
   5562 
   5563 fi
   5564 
   5565 
   5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
   5567 $as_echo_n "checking for default auto-load directory... " >&6; }
   5568 
   5569 # Check whether --with-auto-load-dir was given.
   5570 if test "${with_auto_load_dir+set}" = set; then :
   5571   withval=$with_auto_load_dir;
   5572 else
   5573   with_auto_load_dir='$debugdir:$datadir/auto-load'
   5574 fi
   5575 
   5576 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
   5577 
   5578   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5579   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5580   ac_define_dir=`eval echo $escape_dir`
   5581   ac_define_dir=`eval echo $ac_define_dir`
   5582 
   5583 cat >>confdefs.h <<_ACEOF
   5584 #define AUTO_LOAD_DIR "$ac_define_dir"
   5585 _ACEOF
   5586 
   5587 
   5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
   5589 $as_echo "$with_auto_load_dir" >&6; }
   5590 
   5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
   5592 $as_echo_n "checking for default auto-load safe-path... " >&6; }
   5593 
   5594 # Check whether --with-auto-load-safe-path was given.
   5595 if test "${with_auto_load_safe_path+set}" = set; then :
   5596   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
   5597      with_auto_load_safe_path="/"
   5598      fi
   5599 else
   5600   with_auto_load_safe_path="$with_auto_load_dir"
   5601 fi
   5602 
   5603 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
   5604 
   5605   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5606   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5607   ac_define_dir=`eval echo $escape_dir`
   5608   ac_define_dir=`eval echo $ac_define_dir`
   5609 
   5610 cat >>confdefs.h <<_ACEOF
   5611 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
   5612 _ACEOF
   5613 
   5614 
   5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
   5616 $as_echo "$with_auto_load_safe_path" >&6; }
   5617 
   5618 
   5619 
   5620 subdirs="$subdirs testsuite"
   5621 
   5622 
   5623 # Check whether to support alternative target configurations
   5624 # Check whether --enable-targets was given.
   5625 if test "${enable_targets+set}" = set; then :
   5626   enableval=$enable_targets; case "${enableval}" in
   5627   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
   5628             ;;
   5629   no)       enable_targets= ;;
   5630   *)        enable_targets=$enableval ;;
   5631 esac
   5632 fi
   5633 
   5634 
   5635 # Check whether to enable 64-bit support on 32-bit hosts
   5636 # Check whether --enable-64-bit-bfd was given.
   5637 if test "${enable_64_bit_bfd+set}" = set; then :
   5638   enableval=$enable_64_bit_bfd; case "${enableval}" in
   5639   yes)  want64=true  ;;
   5640   no)   want64=false ;;
   5641   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
   5642 esac
   5643 else
   5644   want64=false
   5645 fi
   5646 
   5647 # Provide defaults for some variables set by the per-host and per-target
   5648 # configuration.
   5649 gdb_host_obs=posix-hdep.o
   5650 
   5651 if test "${target}" = "${host}"; then
   5652   gdb_native=yes
   5653 else
   5654   gdb_native=no
   5655 fi
   5656 
   5657 . $srcdir/configure.host
   5658 
   5659 # Add in the common host objects.
   5660 . $srcdir/common/common.host
   5661 gdb_host_obs="$gdb_host_obs $common_host_obs"
   5662 
   5663 # Accumulate some settings from configure.tgt over all enabled targets
   5664 
   5665 TARGET_OBS=
   5666 all_targets=
   5667 HAVE_NATIVE_GCORE_TARGET=
   5668 
   5669 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
   5670 do
   5671   if test "$targ_alias" = "all"; then
   5672     all_targets=true
   5673   else
   5674     # Canonicalize the secondary target names.
   5675     result=`$ac_config_sub $targ_alias 2>/dev/null`
   5676     if test -n "$result"; then
   5677         targ=$result
   5678     else
   5679         targ=$targ_alias
   5680     fi
   5681 
   5682     . ${srcdir}/configure.tgt
   5683 
   5684     if test -z "${gdb_target_obs}"; then :
   5685   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
   5686 fi
   5687 
   5688     # Target-specific object files
   5689     for i in ${gdb_target_obs}; do
   5690         case " $TARGET_OBS " in
   5691         *" ${i} "*) ;;
   5692         *)
   5693           TARGET_OBS="$TARGET_OBS ${i}"
   5694           ;;
   5695         esac
   5696     done
   5697 
   5698     # Check whether this target needs 64-bit CORE_ADDR
   5699     if test x${want64} = xfalse; then
   5700       . ${srcdir}/../bfd/config.bfd
   5701     fi
   5702 
   5703     # Check whether this target is native and supports gcore.
   5704     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
   5705        && $gdb_have_gcore; then
   5706       HAVE_NATIVE_GCORE_TARGET=1
   5707     fi
   5708   fi
   5709 done
   5710 
   5711 if test x${all_targets} = xtrue; then
   5712 
   5713   # We want all 64-bit targets if we either:
   5714   #  - run on a 64-bit host  or
   5715   #  - already require 64-bit support for some other target  or
   5716   #  - the --enable-64-bit-bfd option was supplied
   5717   # Otherwise we only support all 32-bit targets.
   5718   #
   5719   # NOTE: This test must be in sync with the corresponding
   5720   #       tests in BFD!
   5721 
   5722   if test x${want64} = xfalse; then
   5723     # The cast to long int works around a bug in the HP C Compiler
   5724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5726 # This bug is HP SR number 8606223364.
   5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   5728 $as_echo_n "checking size of long... " >&6; }
   5729 if test "${ac_cv_sizeof_long+set}" = set; then :
   5730   $as_echo_n "(cached) " >&6
   5731 else
   5732   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   5733 
   5734 else
   5735   if test "$ac_cv_type_long" = yes; then
   5736      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5738 { as_fn_set_status 77
   5739 as_fn_error "cannot compute sizeof (long)
   5740 See \`config.log' for more details." "$LINENO" 5; }; }
   5741    else
   5742      ac_cv_sizeof_long=0
   5743    fi
   5744 fi
   5745 
   5746 fi
   5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   5748 $as_echo "$ac_cv_sizeof_long" >&6; }
   5749 
   5750 
   5751 
   5752 cat >>confdefs.h <<_ACEOF
   5753 #define SIZEOF_LONG $ac_cv_sizeof_long
   5754 _ACEOF
   5755 
   5756 
   5757     if test "x${ac_cv_sizeof_long}" = "x8"; then
   5758       want64=true
   5759     fi
   5760   fi
   5761   if test x${want64} = xtrue; then
   5762     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
   5763   else
   5764     TARGET_OBS='$(ALL_TARGET_OBS)'
   5765   fi
   5766 fi
   5767 
   5768 
   5769 
   5770 
   5771 # For other settings, only the main target counts.
   5772 gdb_sim=
   5773 gdb_osabi=
   5774 build_gdbserver=
   5775 targ=$target; . ${srcdir}/configure.tgt
   5776 
   5777 # Fetch the default architecture and default target vector from BFD.
   5778 targ=$target; . $srcdir/../bfd/config.bfd
   5779 
   5780 # We only want the first architecture, so strip off the others if
   5781 # there is more than one.
   5782 targ_archs=`echo $targ_archs | sed 's/ .*//'`
   5783 
   5784 if test "x$targ_archs" != x; then
   5785 
   5786 cat >>confdefs.h <<_ACEOF
   5787 #define DEFAULT_BFD_ARCH $targ_archs
   5788 _ACEOF
   5789 
   5790 fi
   5791 if test "x$targ_defvec" != x; then
   5792 
   5793 cat >>confdefs.h <<_ACEOF
   5794 #define DEFAULT_BFD_VEC $targ_defvec
   5795 _ACEOF
   5796 
   5797 fi
   5798 
   5799 # The CLI cannot be disabled yet, but may be in the future.
   5800 
   5801 # Enable CLI.
   5802 # Check whether --enable-gdbcli was given.
   5803 if test "${enable_gdbcli+set}" = set; then :
   5804   enableval=$enable_gdbcli; case $enableval in
   5805     yes)
   5806       ;;
   5807     no)
   5808       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
   5809     *)
   5810       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
   5811   esac
   5812 else
   5813   enable_gdbcli=yes
   5814 fi
   5815 
   5816 if test x"$enable_gdbcli" = xyes; then
   5817   if test -d $srcdir/cli; then
   5818     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
   5819     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
   5820     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
   5821     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
   5822   fi
   5823 fi
   5824 
   5825 # Enable MI.
   5826 # Check whether --enable-gdbmi was given.
   5827 if test "${enable_gdbmi+set}" = set; then :
   5828   enableval=$enable_gdbmi; case $enableval in
   5829     yes | no)
   5830       ;;
   5831     *)
   5832       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
   5833   esac
   5834 else
   5835   enable_gdbmi=yes
   5836 fi
   5837 
   5838 if test x"$enable_gdbmi" = xyes; then
   5839   if test -d $srcdir/mi; then
   5840     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
   5841     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
   5842     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
   5843     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
   5844   fi
   5845 fi
   5846 
   5847 # Enable TUI.
   5848 # Check whether --enable-tui was given.
   5849 if test "${enable_tui+set}" = set; then :
   5850   enableval=$enable_tui; case $enableval in
   5851     yes | no | auto)
   5852       ;;
   5853     *)
   5854       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
   5855   esac
   5856 else
   5857   enable_tui=auto
   5858 fi
   5859 
   5860 
   5861 # Enable gdbtk.
   5862 # Check whether --enable-gdbtk was given.
   5863 if test "${enable_gdbtk+set}" = set; then :
   5864   enableval=$enable_gdbtk; case $enableval in
   5865     yes | no)
   5866       ;;
   5867     *)
   5868       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
   5869   esac
   5870 else
   5871   if test -d $srcdir/gdbtk; then
   5872     enable_gdbtk=yes
   5873   else
   5874     enable_gdbtk=no
   5875   fi
   5876 fi
   5877 
   5878 # We unconditionally disable gdbtk tests on selected platforms.
   5879 case $host_os in
   5880   go32* | windows*)
   5881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
   5882 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
   5883     enable_gdbtk=no ;;
   5884 esac
   5885 
   5886 # Libunwind support for ia64.
   5887 
   5888 
   5889 # Check whether --with-libunwind-ia64 was given.
   5890 if test "${with_libunwind_ia64+set}" = set; then :
   5891   withval=$with_libunwind_ia64;
   5892 else
   5893   with_libunwind_ia64=auto
   5894 fi
   5895 
   5896 
   5897 # Backward compatibility option.
   5898 if test "${with_libunwind+set}" = set; then
   5899   if test x"$with_libunwind_ia64" != xauto; then
   5900     as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
   5901   fi
   5902   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
   5903 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
   5904   with_libunwind_ia64="$with_libunwind"
   5905 fi
   5906 
   5907 case "$with_libunwind_ia64" in
   5908   yes | no)
   5909     ;;
   5910   auto)
   5911     for ac_header in libunwind-ia64.h
   5912 do :
   5913   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   5914 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
   5915   cat >>confdefs.h <<_ACEOF
   5916 #define HAVE_LIBUNWIND_IA64_H 1
   5917 _ACEOF
   5918 
   5919 fi
   5920 
   5921 done
   5922 
   5923     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
   5924     ;;
   5925   *)
   5926     as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
   5927     ;;
   5928 esac
   5929 
   5930 if test x"$with_libunwind_ia64" = xyes; then
   5931   for ac_header in libunwind-ia64.h
   5932 do :
   5933   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   5934 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
   5935   cat >>confdefs.h <<_ACEOF
   5936 #define HAVE_LIBUNWIND_IA64_H 1
   5937 _ACEOF
   5938 
   5939 fi
   5940 
   5941 done
   5942 
   5943   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
   5944     as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
   5945   fi
   5946   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
   5947   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
   5948   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
   5949 fi
   5950 
   5951 opt_curses=no
   5952 
   5953 # Check whether --with-curses was given.
   5954 if test "${with_curses+set}" = set; then :
   5955   withval=$with_curses; opt_curses=$withval
   5956 fi
   5957 
   5958 
   5959 prefer_curses=no
   5960 if test "$opt_curses" = "yes"; then
   5961   prefer_curses=yes
   5962 fi
   5963 
   5964 # Profiling support.
   5965 # Check whether --enable-profiling was given.
   5966 if test "${enable_profiling+set}" = set; then :
   5967   enableval=$enable_profiling; case $enableval in
   5968     yes | no)
   5969       ;;
   5970     *)
   5971       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
   5972   esac
   5973 else
   5974   enable_profiling=no
   5975 fi
   5976 
   5977 
   5978 for ac_func in monstartup _mcleanup
   5979 do :
   5980   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5981 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   5982 eval as_val=\$$as_ac_var
   5983    if test "x$as_val" = x""yes; then :
   5984   cat >>confdefs.h <<_ACEOF
   5985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5986 _ACEOF
   5987 
   5988 fi
   5989 done
   5990 
   5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
   5992 $as_echo_n "checking for _etext... " >&6; }
   5993 if test "${ac_cv_var__etext+set}" = set; then :
   5994   $as_echo_n "(cached) " >&6
   5995 else
   5996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5997 /* end confdefs.h.  */
   5998 #include <stdlib.h>
   5999 extern char _etext;
   6000 
   6001 int
   6002 main ()
   6003 {
   6004 free (&_etext);
   6005   ;
   6006   return 0;
   6007 }
   6008 _ACEOF
   6009 if ac_fn_c_try_link "$LINENO"; then :
   6010   ac_cv_var__etext=yes
   6011 else
   6012   ac_cv_var__etext=no
   6013 fi
   6014 rm -f core conftest.err conftest.$ac_objext \
   6015     conftest$ac_exeext conftest.$ac_ext
   6016 fi
   6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
   6018 $as_echo "$ac_cv_var__etext" >&6; }
   6019 if test $ac_cv_var__etext = yes; then
   6020 
   6021 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
   6022 
   6023 fi
   6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
   6025 $as_echo_n "checking for etext... " >&6; }
   6026 if test "${ac_cv_var_etext+set}" = set; then :
   6027   $as_echo_n "(cached) " >&6
   6028 else
   6029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6030 /* end confdefs.h.  */
   6031 #include <stdlib.h>
   6032 extern char etext;
   6033 
   6034 int
   6035 main ()
   6036 {
   6037 free (&etext);
   6038   ;
   6039   return 0;
   6040 }
   6041 _ACEOF
   6042 if ac_fn_c_try_link "$LINENO"; then :
   6043   ac_cv_var_etext=yes
   6044 else
   6045   ac_cv_var_etext=no
   6046 fi
   6047 rm -f core conftest.err conftest.$ac_objext \
   6048     conftest$ac_exeext conftest.$ac_ext
   6049 fi
   6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
   6051 $as_echo "$ac_cv_var_etext" >&6; }
   6052 if test $ac_cv_var_etext = yes; then
   6053 
   6054 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
   6055 
   6056 fi
   6057 if test "$enable_profiling" = yes ; then
   6058   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
   6059     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
   6060   fi
   6061   PROFILE_CFLAGS=-pg
   6062   OLD_CFLAGS="$CFLAGS"
   6063   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
   6064 
   6065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
   6066 $as_echo_n "checking whether $CC supports -pg... " >&6; }
   6067 if test "${ac_cv_cc_supports_pg+set}" = set; then :
   6068   $as_echo_n "(cached) " >&6
   6069 else
   6070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6071 /* end confdefs.h.  */
   6072 
   6073 int
   6074 main ()
   6075 {
   6076 int x;
   6077   ;
   6078   return 0;
   6079 }
   6080 _ACEOF
   6081 if ac_fn_c_try_compile "$LINENO"; then :
   6082   ac_cv_cc_supports_pg=yes
   6083 else
   6084   ac_cv_cc_supports_pg=no
   6085 fi
   6086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6087 fi
   6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
   6089 $as_echo "$ac_cv_cc_supports_pg" >&6; }
   6090 
   6091   if test $ac_cv_cc_supports_pg = no; then
   6092     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
   6093   fi
   6094 
   6095   CFLAGS="$OLD_CFLAGS"
   6096 fi
   6097 
   6098 
   6099 
   6100 # Check whether --with-pkgversion was given.
   6101 if test "${with_pkgversion+set}" = set; then :
   6102   withval=$with_pkgversion; case "$withval" in
   6103       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
   6104       no)  PKGVERSION= ;;
   6105       *)   PKGVERSION="($withval) " ;;
   6106      esac
   6107 else
   6108   PKGVERSION="(GDB) "
   6109 
   6110 fi
   6111 
   6112 
   6113 
   6114 
   6115 
   6116 # Check whether --with-bugurl was given.
   6117 if test "${with_bugurl+set}" = set; then :
   6118   withval=$with_bugurl; case "$withval" in
   6119       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
   6120       no)  BUGURL=
   6121 	   ;;
   6122       *)   BUGURL="$withval"
   6123 	   ;;
   6124      esac
   6125 else
   6126   BUGURL="http://www.gnu.org/software/gdb/bugs/"
   6127 
   6128 fi
   6129 
   6130   case ${BUGURL} in
   6131   "")
   6132     REPORT_BUGS_TO=
   6133     REPORT_BUGS_TEXI=
   6134     ;;
   6135   *)
   6136     REPORT_BUGS_TO="<$BUGURL>"
   6137     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
   6138     ;;
   6139   esac;
   6140 
   6141 
   6142 
   6143 
   6144 cat >>confdefs.h <<_ACEOF
   6145 #define PKGVERSION "$PKGVERSION"
   6146 _ACEOF
   6147 
   6148 
   6149 cat >>confdefs.h <<_ACEOF
   6150 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
   6151 _ACEOF
   6152 
   6153 
   6154 # --------------------- #
   6155 # Checks for programs.  #
   6156 # --------------------- #
   6157 
   6158 for ac_prog in gawk mawk nawk awk
   6159 do
   6160   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6161 set dummy $ac_prog; ac_word=$2
   6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6163 $as_echo_n "checking for $ac_word... " >&6; }
   6164 if test "${ac_cv_prog_AWK+set}" = set; then :
   6165   $as_echo_n "(cached) " >&6
   6166 else
   6167   if test -n "$AWK"; then
   6168   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   6169 else
   6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6171 for as_dir in $PATH
   6172 do
   6173   IFS=$as_save_IFS
   6174   test -z "$as_dir" && as_dir=.
   6175     for ac_exec_ext in '' $ac_executable_extensions; do
   6176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6177     ac_cv_prog_AWK="$ac_prog"
   6178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6179     break 2
   6180   fi
   6181 done
   6182   done
   6183 IFS=$as_save_IFS
   6184 
   6185 fi
   6186 fi
   6187 AWK=$ac_cv_prog_AWK
   6188 if test -n "$AWK"; then
   6189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   6190 $as_echo "$AWK" >&6; }
   6191 else
   6192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6193 $as_echo "no" >&6; }
   6194 fi
   6195 
   6196 
   6197   test -n "$AWK" && break
   6198 done
   6199 
   6200 # Find a good install program.  We prefer a C program (faster),
   6201 # so one script is as good as another.  But avoid the broken or
   6202 # incompatible versions:
   6203 # SysV /etc/install, /usr/sbin/install
   6204 # SunOS /usr/etc/install
   6205 # IRIX /sbin/install
   6206 # AIX /bin/install
   6207 # AmigaOS /C/install, which installs bootblocks on floppy discs
   6208 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   6209 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   6210 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   6211 # OS/2's system install, which has a completely different semantic
   6212 # ./install, which can be erroneously created by make from ./install.sh.
   6213 # Reject install programs that cannot install multiple files.
   6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   6215 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   6216 if test -z "$INSTALL"; then
   6217 if test "${ac_cv_path_install+set}" = set; then :
   6218   $as_echo_n "(cached) " >&6
   6219 else
   6220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6221 for as_dir in $PATH
   6222 do
   6223   IFS=$as_save_IFS
   6224   test -z "$as_dir" && as_dir=.
   6225     # Account for people who put trailing slashes in PATH elements.
   6226 case $as_dir/ in #((
   6227   ./ | .// | /[cC]/* | \
   6228   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   6229   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   6230   /usr/ucb/* ) ;;
   6231   *)
   6232     # OSF1 and SCO ODT 3.0 have their own names for install.
   6233     # Don't use installbsd from OSF since it installs stuff as root
   6234     # by default.
   6235     for ac_prog in ginstall scoinst install; do
   6236       for ac_exec_ext in '' $ac_executable_extensions; do
   6237 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   6238 	  if test $ac_prog = install &&
   6239 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6240 	    # AIX install.  It has an incompatible calling convention.
   6241 	    :
   6242 	  elif test $ac_prog = install &&
   6243 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   6244 	    # program-specific install script used by HP pwplus--don't use.
   6245 	    :
   6246 	  else
   6247 	    rm -rf conftest.one conftest.two conftest.dir
   6248 	    echo one > conftest.one
   6249 	    echo two > conftest.two
   6250 	    mkdir conftest.dir
   6251 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   6252 	      test -s conftest.one && test -s conftest.two &&
   6253 	      test -s conftest.dir/conftest.one &&
   6254 	      test -s conftest.dir/conftest.two
   6255 	    then
   6256 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   6257 	      break 3
   6258 	    fi
   6259 	  fi
   6260 	fi
   6261       done
   6262     done
   6263     ;;
   6264 esac
   6265 
   6266   done
   6267 IFS=$as_save_IFS
   6268 
   6269 rm -rf conftest.one conftest.two conftest.dir
   6270 
   6271 fi
   6272   if test "${ac_cv_path_install+set}" = set; then
   6273     INSTALL=$ac_cv_path_install
   6274   else
   6275     # As a last resort, use the slow shell script.  Don't cache a
   6276     # value for INSTALL within a source directory, because that will
   6277     # break other packages using the cache if that directory is
   6278     # removed, or if the value is a relative name.
   6279     INSTALL=$ac_install_sh
   6280   fi
   6281 fi
   6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   6283 $as_echo "$INSTALL" >&6; }
   6284 
   6285 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   6286 # It thinks the first close brace ends the variable substitution.
   6287 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   6288 
   6289 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   6290 
   6291 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   6292 
   6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   6294 $as_echo_n "checking whether ln -s works... " >&6; }
   6295 LN_S=$as_ln_s
   6296 if test "$LN_S" = "ln -s"; then
   6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6298 $as_echo "yes" >&6; }
   6299 else
   6300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   6301 $as_echo "no, using $LN_S" >&6; }
   6302 fi
   6303 
   6304 if test -n "$ac_tool_prefix"; then
   6305   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   6306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6308 $as_echo_n "checking for $ac_word... " >&6; }
   6309 if test "${ac_cv_prog_RANLIB+set}" = set; then :
   6310   $as_echo_n "(cached) " >&6
   6311 else
   6312   if test -n "$RANLIB"; then
   6313   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   6314 else
   6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6316 for as_dir in $PATH
   6317 do
   6318   IFS=$as_save_IFS
   6319   test -z "$as_dir" && as_dir=.
   6320     for ac_exec_ext in '' $ac_executable_extensions; do
   6321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6322     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   6323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6324     break 2
   6325   fi
   6326 done
   6327   done
   6328 IFS=$as_save_IFS
   6329 
   6330 fi
   6331 fi
   6332 RANLIB=$ac_cv_prog_RANLIB
   6333 if test -n "$RANLIB"; then
   6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   6335 $as_echo "$RANLIB" >&6; }
   6336 else
   6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6338 $as_echo "no" >&6; }
   6339 fi
   6340 
   6341 
   6342 fi
   6343 if test -z "$ac_cv_prog_RANLIB"; then
   6344   ac_ct_RANLIB=$RANLIB
   6345   # Extract the first word of "ranlib", so it can be a program name with args.
   6346 set dummy ranlib; ac_word=$2
   6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6348 $as_echo_n "checking for $ac_word... " >&6; }
   6349 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
   6350   $as_echo_n "(cached) " >&6
   6351 else
   6352   if test -n "$ac_ct_RANLIB"; then
   6353   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   6354 else
   6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6356 for as_dir in $PATH
   6357 do
   6358   IFS=$as_save_IFS
   6359   test -z "$as_dir" && as_dir=.
   6360     for ac_exec_ext in '' $ac_executable_extensions; do
   6361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6362     ac_cv_prog_ac_ct_RANLIB="ranlib"
   6363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6364     break 2
   6365   fi
   6366 done
   6367   done
   6368 IFS=$as_save_IFS
   6369 
   6370 fi
   6371 fi
   6372 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   6373 if test -n "$ac_ct_RANLIB"; then
   6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   6375 $as_echo "$ac_ct_RANLIB" >&6; }
   6376 else
   6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6378 $as_echo "no" >&6; }
   6379 fi
   6380 
   6381   if test "x$ac_ct_RANLIB" = x; then
   6382     RANLIB=":"
   6383   else
   6384     case $cross_compiling:$ac_tool_warned in
   6385 yes:)
   6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6388 ac_tool_warned=yes ;;
   6389 esac
   6390     RANLIB=$ac_ct_RANLIB
   6391   fi
   6392 else
   6393   RANLIB="$ac_cv_prog_RANLIB"
   6394 fi
   6395 
   6396 for ac_prog in 'bison -y' byacc
   6397 do
   6398   # Extract the first word of "$ac_prog", so it can be a program name with args.
   6399 set dummy $ac_prog; ac_word=$2
   6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6401 $as_echo_n "checking for $ac_word... " >&6; }
   6402 if test "${ac_cv_prog_YACC+set}" = set; then :
   6403   $as_echo_n "(cached) " >&6
   6404 else
   6405   if test -n "$YACC"; then
   6406   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   6407 else
   6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6409 for as_dir in $PATH
   6410 do
   6411   IFS=$as_save_IFS
   6412   test -z "$as_dir" && as_dir=.
   6413     for ac_exec_ext in '' $ac_executable_extensions; do
   6414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6415     ac_cv_prog_YACC="$ac_prog"
   6416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6417     break 2
   6418   fi
   6419 done
   6420   done
   6421 IFS=$as_save_IFS
   6422 
   6423 fi
   6424 fi
   6425 YACC=$ac_cv_prog_YACC
   6426 if test -n "$YACC"; then
   6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   6428 $as_echo "$YACC" >&6; }
   6429 else
   6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6431 $as_echo "no" >&6; }
   6432 fi
   6433 
   6434 
   6435   test -n "$YACC" && break
   6436 done
   6437 test -n "$YACC" || YACC="yacc"
   6438 
   6439 
   6440 if test -n "$ac_tool_prefix"; then
   6441   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   6442 set dummy ${ac_tool_prefix}ar; ac_word=$2
   6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6444 $as_echo_n "checking for $ac_word... " >&6; }
   6445 if test "${ac_cv_prog_AR+set}" = set; then :
   6446   $as_echo_n "(cached) " >&6
   6447 else
   6448   if test -n "$AR"; then
   6449   ac_cv_prog_AR="$AR" # Let the user override the test.
   6450 else
   6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6452 for as_dir in $PATH
   6453 do
   6454   IFS=$as_save_IFS
   6455   test -z "$as_dir" && as_dir=.
   6456     for ac_exec_ext in '' $ac_executable_extensions; do
   6457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6458     ac_cv_prog_AR="${ac_tool_prefix}ar"
   6459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6460     break 2
   6461   fi
   6462 done
   6463   done
   6464 IFS=$as_save_IFS
   6465 
   6466 fi
   6467 fi
   6468 AR=$ac_cv_prog_AR
   6469 if test -n "$AR"; then
   6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6471 $as_echo "$AR" >&6; }
   6472 else
   6473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6474 $as_echo "no" >&6; }
   6475 fi
   6476 
   6477 
   6478 fi
   6479 if test -z "$ac_cv_prog_AR"; then
   6480   ac_ct_AR=$AR
   6481   # Extract the first word of "ar", so it can be a program name with args.
   6482 set dummy ar; ac_word=$2
   6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6484 $as_echo_n "checking for $ac_word... " >&6; }
   6485 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
   6486   $as_echo_n "(cached) " >&6
   6487 else
   6488   if test -n "$ac_ct_AR"; then
   6489   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6490 else
   6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6492 for as_dir in $PATH
   6493 do
   6494   IFS=$as_save_IFS
   6495   test -z "$as_dir" && as_dir=.
   6496     for ac_exec_ext in '' $ac_executable_extensions; do
   6497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6498     ac_cv_prog_ac_ct_AR="ar"
   6499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6500     break 2
   6501   fi
   6502 done
   6503   done
   6504 IFS=$as_save_IFS
   6505 
   6506 fi
   6507 fi
   6508 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6509 if test -n "$ac_ct_AR"; then
   6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   6511 $as_echo "$ac_ct_AR" >&6; }
   6512 else
   6513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6514 $as_echo "no" >&6; }
   6515 fi
   6516 
   6517   if test "x$ac_ct_AR" = x; then
   6518     AR=""
   6519   else
   6520     case $cross_compiling:$ac_tool_warned in
   6521 yes:)
   6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6524 ac_tool_warned=yes ;;
   6525 esac
   6526     AR=$ac_ct_AR
   6527   fi
   6528 else
   6529   AR="$ac_cv_prog_AR"
   6530 fi
   6531 
   6532 if test -n "$ac_tool_prefix"; then
   6533   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   6534 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6536 $as_echo_n "checking for $ac_word... " >&6; }
   6537 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
   6538   $as_echo_n "(cached) " >&6
   6539 else
   6540   if test -n "$DLLTOOL"; then
   6541   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   6542 else
   6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6544 for as_dir in $PATH
   6545 do
   6546   IFS=$as_save_IFS
   6547   test -z "$as_dir" && as_dir=.
   6548     for ac_exec_ext in '' $ac_executable_extensions; do
   6549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6550     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   6551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6552     break 2
   6553   fi
   6554 done
   6555   done
   6556 IFS=$as_save_IFS
   6557 
   6558 fi
   6559 fi
   6560 DLLTOOL=$ac_cv_prog_DLLTOOL
   6561 if test -n "$DLLTOOL"; then
   6562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   6563 $as_echo "$DLLTOOL" >&6; }
   6564 else
   6565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6566 $as_echo "no" >&6; }
   6567 fi
   6568 
   6569 
   6570 fi
   6571 if test -z "$ac_cv_prog_DLLTOOL"; then
   6572   ac_ct_DLLTOOL=$DLLTOOL
   6573   # Extract the first word of "dlltool", so it can be a program name with args.
   6574 set dummy dlltool; ac_word=$2
   6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6576 $as_echo_n "checking for $ac_word... " >&6; }
   6577 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
   6578   $as_echo_n "(cached) " >&6
   6579 else
   6580   if test -n "$ac_ct_DLLTOOL"; then
   6581   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   6582 else
   6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6584 for as_dir in $PATH
   6585 do
   6586   IFS=$as_save_IFS
   6587   test -z "$as_dir" && as_dir=.
   6588     for ac_exec_ext in '' $ac_executable_extensions; do
   6589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6590     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   6591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6592     break 2
   6593   fi
   6594 done
   6595   done
   6596 IFS=$as_save_IFS
   6597 
   6598 fi
   6599 fi
   6600 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   6601 if test -n "$ac_ct_DLLTOOL"; then
   6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   6603 $as_echo "$ac_ct_DLLTOOL" >&6; }
   6604 else
   6605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6606 $as_echo "no" >&6; }
   6607 fi
   6608 
   6609   if test "x$ac_ct_DLLTOOL" = x; then
   6610     DLLTOOL=""
   6611   else
   6612     case $cross_compiling:$ac_tool_warned in
   6613 yes:)
   6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6616 ac_tool_warned=yes ;;
   6617 esac
   6618     DLLTOOL=$ac_ct_DLLTOOL
   6619   fi
   6620 else
   6621   DLLTOOL="$ac_cv_prog_DLLTOOL"
   6622 fi
   6623 
   6624 if test -n "$ac_tool_prefix"; then
   6625   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   6626 set dummy ${ac_tool_prefix}windres; ac_word=$2
   6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6628 $as_echo_n "checking for $ac_word... " >&6; }
   6629 if test "${ac_cv_prog_WINDRES+set}" = set; then :
   6630   $as_echo_n "(cached) " >&6
   6631 else
   6632   if test -n "$WINDRES"; then
   6633   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   6634 else
   6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6636 for as_dir in $PATH
   6637 do
   6638   IFS=$as_save_IFS
   6639   test -z "$as_dir" && as_dir=.
   6640     for ac_exec_ext in '' $ac_executable_extensions; do
   6641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6642     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
   6643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6644     break 2
   6645   fi
   6646 done
   6647   done
   6648 IFS=$as_save_IFS
   6649 
   6650 fi
   6651 fi
   6652 WINDRES=$ac_cv_prog_WINDRES
   6653 if test -n "$WINDRES"; then
   6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   6655 $as_echo "$WINDRES" >&6; }
   6656 else
   6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6658 $as_echo "no" >&6; }
   6659 fi
   6660 
   6661 
   6662 fi
   6663 if test -z "$ac_cv_prog_WINDRES"; then
   6664   ac_ct_WINDRES=$WINDRES
   6665   # Extract the first word of "windres", so it can be a program name with args.
   6666 set dummy windres; ac_word=$2
   6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6668 $as_echo_n "checking for $ac_word... " >&6; }
   6669 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
   6670   $as_echo_n "(cached) " >&6
   6671 else
   6672   if test -n "$ac_ct_WINDRES"; then
   6673   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
   6674 else
   6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6676 for as_dir in $PATH
   6677 do
   6678   IFS=$as_save_IFS
   6679   test -z "$as_dir" && as_dir=.
   6680     for ac_exec_ext in '' $ac_executable_extensions; do
   6681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6682     ac_cv_prog_ac_ct_WINDRES="windres"
   6683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6684     break 2
   6685   fi
   6686 done
   6687   done
   6688 IFS=$as_save_IFS
   6689 
   6690 fi
   6691 fi
   6692 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
   6693 if test -n "$ac_ct_WINDRES"; then
   6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
   6695 $as_echo "$ac_ct_WINDRES" >&6; }
   6696 else
   6697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6698 $as_echo "no" >&6; }
   6699 fi
   6700 
   6701   if test "x$ac_ct_WINDRES" = x; then
   6702     WINDRES=""
   6703   else
   6704     case $cross_compiling:$ac_tool_warned in
   6705 yes:)
   6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6708 ac_tool_warned=yes ;;
   6709 esac
   6710     WINDRES=$ac_ct_WINDRES
   6711   fi
   6712 else
   6713   WINDRES="$ac_cv_prog_WINDRES"
   6714 fi
   6715 
   6716 
   6717 case $host_os in
   6718   gnu*)
   6719     # Needed for GNU Hurd hosts.
   6720     if test -n "$ac_tool_prefix"; then
   6721   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
   6722 set dummy ${ac_tool_prefix}mig; ac_word=$2
   6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6724 $as_echo_n "checking for $ac_word... " >&6; }
   6725 if test "${ac_cv_prog_MIG+set}" = set; then :
   6726   $as_echo_n "(cached) " >&6
   6727 else
   6728   if test -n "$MIG"; then
   6729   ac_cv_prog_MIG="$MIG" # Let the user override the test.
   6730 else
   6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6732 for as_dir in $PATH
   6733 do
   6734   IFS=$as_save_IFS
   6735   test -z "$as_dir" && as_dir=.
   6736     for ac_exec_ext in '' $ac_executable_extensions; do
   6737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6738     ac_cv_prog_MIG="${ac_tool_prefix}mig"
   6739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6740     break 2
   6741   fi
   6742 done
   6743   done
   6744 IFS=$as_save_IFS
   6745 
   6746 fi
   6747 fi
   6748 MIG=$ac_cv_prog_MIG
   6749 if test -n "$MIG"; then
   6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
   6751 $as_echo "$MIG" >&6; }
   6752 else
   6753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6754 $as_echo "no" >&6; }
   6755 fi
   6756 
   6757 
   6758 fi
   6759 if test -z "$ac_cv_prog_MIG"; then
   6760   ac_ct_MIG=$MIG
   6761   # Extract the first word of "mig", so it can be a program name with args.
   6762 set dummy mig; ac_word=$2
   6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6764 $as_echo_n "checking for $ac_word... " >&6; }
   6765 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
   6766   $as_echo_n "(cached) " >&6
   6767 else
   6768   if test -n "$ac_ct_MIG"; then
   6769   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
   6770 else
   6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6772 for as_dir in $PATH
   6773 do
   6774   IFS=$as_save_IFS
   6775   test -z "$as_dir" && as_dir=.
   6776     for ac_exec_ext in '' $ac_executable_extensions; do
   6777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6778     ac_cv_prog_ac_ct_MIG="mig"
   6779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6780     break 2
   6781   fi
   6782 done
   6783   done
   6784 IFS=$as_save_IFS
   6785 
   6786 fi
   6787 fi
   6788 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
   6789 if test -n "$ac_ct_MIG"; then
   6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
   6791 $as_echo "$ac_ct_MIG" >&6; }
   6792 else
   6793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6794 $as_echo "no" >&6; }
   6795 fi
   6796 
   6797   if test "x$ac_ct_MIG" = x; then
   6798     MIG=""
   6799   else
   6800     case $cross_compiling:$ac_tool_warned in
   6801 yes:)
   6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6804 ac_tool_warned=yes ;;
   6805 esac
   6806     MIG=$ac_ct_MIG
   6807   fi
   6808 else
   6809   MIG="$ac_cv_prog_MIG"
   6810 fi
   6811 
   6812     if test x"$MIG" = x; then
   6813       as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
   6814     fi
   6815     ;;
   6816 esac
   6817 
   6818 # ---------------------- #
   6819 # Checks for libraries.  #
   6820 # ---------------------- #
   6821 
   6822 # We might need to link with -lm; most simulators need it.
   6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
   6824 $as_echo_n "checking for main in -lm... " >&6; }
   6825 if test "${ac_cv_lib_m_main+set}" = set; then :
   6826   $as_echo_n "(cached) " >&6
   6827 else
   6828   ac_check_lib_save_LIBS=$LIBS
   6829 LIBS="-lm  $LIBS"
   6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6831 /* end confdefs.h.  */
   6832 
   6833 
   6834 int
   6835 main ()
   6836 {
   6837 return main ();
   6838   ;
   6839   return 0;
   6840 }
   6841 _ACEOF
   6842 if ac_fn_c_try_link "$LINENO"; then :
   6843   ac_cv_lib_m_main=yes
   6844 else
   6845   ac_cv_lib_m_main=no
   6846 fi
   6847 rm -f core conftest.err conftest.$ac_objext \
   6848     conftest$ac_exeext conftest.$ac_ext
   6849 LIBS=$ac_check_lib_save_LIBS
   6850 fi
   6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
   6852 $as_echo "$ac_cv_lib_m_main" >&6; }
   6853 if test "x$ac_cv_lib_m_main" = x""yes; then :
   6854   cat >>confdefs.h <<_ACEOF
   6855 #define HAVE_LIBM 1
   6856 _ACEOF
   6857 
   6858   LIBS="-lm $LIBS"
   6859 
   6860 fi
   6861 
   6862 
   6863 # We need to link with -lw to get `wctype' on Solaris before Solaris
   6864 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
   6865 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
   6866 # is known to have this problem).  Therefore we avoid libw if we can.
   6867 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
   6868 if test "x$ac_cv_func_wctype" = x""yes; then :
   6869 
   6870 else
   6871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
   6872 $as_echo_n "checking for wctype in -lw... " >&6; }
   6873 if test "${ac_cv_lib_w_wctype+set}" = set; then :
   6874   $as_echo_n "(cached) " >&6
   6875 else
   6876   ac_check_lib_save_LIBS=$LIBS
   6877 LIBS="-lw  $LIBS"
   6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6879 /* end confdefs.h.  */
   6880 
   6881 /* Override any GCC internal prototype to avoid an error.
   6882    Use char because int might match the return type of a GCC
   6883    builtin and then its argument prototype would still apply.  */
   6884 #ifdef __cplusplus
   6885 extern "C"
   6886 #endif
   6887 char wctype ();
   6888 int
   6889 main ()
   6890 {
   6891 return wctype ();
   6892   ;
   6893   return 0;
   6894 }
   6895 _ACEOF
   6896 if ac_fn_c_try_link "$LINENO"; then :
   6897   ac_cv_lib_w_wctype=yes
   6898 else
   6899   ac_cv_lib_w_wctype=no
   6900 fi
   6901 rm -f core conftest.err conftest.$ac_objext \
   6902     conftest$ac_exeext conftest.$ac_ext
   6903 LIBS=$ac_check_lib_save_LIBS
   6904 fi
   6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
   6906 $as_echo "$ac_cv_lib_w_wctype" >&6; }
   6907 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
   6908   cat >>confdefs.h <<_ACEOF
   6909 #define HAVE_LIBW 1
   6910 _ACEOF
   6911 
   6912   LIBS="-lw $LIBS"
   6913 
   6914 fi
   6915 
   6916 fi
   6917 
   6918 
   6919 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
   6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
   6921 $as_echo_n "checking for library containing gethostbyname... " >&6; }
   6922 if test "${ac_cv_search_gethostbyname+set}" = set; then :
   6923   $as_echo_n "(cached) " >&6
   6924 else
   6925   ac_func_search_save_LIBS=$LIBS
   6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6927 /* end confdefs.h.  */
   6928 
   6929 /* Override any GCC internal prototype to avoid an error.
   6930    Use char because int might match the return type of a GCC
   6931    builtin and then its argument prototype would still apply.  */
   6932 #ifdef __cplusplus
   6933 extern "C"
   6934 #endif
   6935 char gethostbyname ();
   6936 int
   6937 main ()
   6938 {
   6939 return gethostbyname ();
   6940   ;
   6941   return 0;
   6942 }
   6943 _ACEOF
   6944 for ac_lib in '' nsl; do
   6945   if test -z "$ac_lib"; then
   6946     ac_res="none required"
   6947   else
   6948     ac_res=-l$ac_lib
   6949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6950   fi
   6951   if ac_fn_c_try_link "$LINENO"; then :
   6952   ac_cv_search_gethostbyname=$ac_res
   6953 fi
   6954 rm -f core conftest.err conftest.$ac_objext \
   6955     conftest$ac_exeext
   6956   if test "${ac_cv_search_gethostbyname+set}" = set; then :
   6957   break
   6958 fi
   6959 done
   6960 if test "${ac_cv_search_gethostbyname+set}" = set; then :
   6961 
   6962 else
   6963   ac_cv_search_gethostbyname=no
   6964 fi
   6965 rm conftest.$ac_ext
   6966 LIBS=$ac_func_search_save_LIBS
   6967 fi
   6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
   6969 $as_echo "$ac_cv_search_gethostbyname" >&6; }
   6970 ac_res=$ac_cv_search_gethostbyname
   6971 if test "$ac_res" != no; then :
   6972   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6973 
   6974 fi
   6975 
   6976 
   6977 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
   6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
   6979 $as_echo_n "checking for library containing socketpair... " >&6; }
   6980 if test "${ac_cv_search_socketpair+set}" = set; then :
   6981   $as_echo_n "(cached) " >&6
   6982 else
   6983   ac_func_search_save_LIBS=$LIBS
   6984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6985 /* end confdefs.h.  */
   6986 
   6987 /* Override any GCC internal prototype to avoid an error.
   6988    Use char because int might match the return type of a GCC
   6989    builtin and then its argument prototype would still apply.  */
   6990 #ifdef __cplusplus
   6991 extern "C"
   6992 #endif
   6993 char socketpair ();
   6994 int
   6995 main ()
   6996 {
   6997 return socketpair ();
   6998   ;
   6999   return 0;
   7000 }
   7001 _ACEOF
   7002 for ac_lib in '' socket; do
   7003   if test -z "$ac_lib"; then
   7004     ac_res="none required"
   7005   else
   7006     ac_res=-l$ac_lib
   7007     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7008   fi
   7009   if ac_fn_c_try_link "$LINENO"; then :
   7010   ac_cv_search_socketpair=$ac_res
   7011 fi
   7012 rm -f core conftest.err conftest.$ac_objext \
   7013     conftest$ac_exeext
   7014   if test "${ac_cv_search_socketpair+set}" = set; then :
   7015   break
   7016 fi
   7017 done
   7018 if test "${ac_cv_search_socketpair+set}" = set; then :
   7019 
   7020 else
   7021   ac_cv_search_socketpair=no
   7022 fi
   7023 rm conftest.$ac_ext
   7024 LIBS=$ac_func_search_save_LIBS
   7025 fi
   7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
   7027 $as_echo "$ac_cv_search_socketpair" >&6; }
   7028 ac_res=$ac_cv_search_socketpair
   7029 if test "$ac_res" != no; then :
   7030   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7031 
   7032 fi
   7033 
   7034 
   7035 # Link in zlib if we can.  This allows us to read compressed debug sections.
   7036 
   7037   # Use the system's zlib library.
   7038   zlibdir="-L\$(top_builddir)/../zlib"
   7039   zlibinc="-I\$(top_srcdir)/../zlib"
   7040 
   7041 # Check whether --with-system-zlib was given.
   7042 if test "${with_system_zlib+set}" = set; then :
   7043   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
   7044     zlibdir=
   7045     zlibinc=
   7046   fi
   7047 
   7048 fi
   7049 
   7050 
   7051 
   7052 
   7053 
   7054 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
   7055 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
   7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
   7057 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
   7058 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
   7059   $as_echo_n "(cached) " >&6
   7060 else
   7061   ac_func_search_save_LIBS=$LIBS
   7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7063 /* end confdefs.h.  */
   7064 
   7065 /* Override any GCC internal prototype to avoid an error.
   7066    Use char because int might match the return type of a GCC
   7067    builtin and then its argument prototype would still apply.  */
   7068 #ifdef __cplusplus
   7069 extern "C"
   7070 #endif
   7071 char kinfo_getvmmap ();
   7072 int
   7073 main ()
   7074 {
   7075 return kinfo_getvmmap ();
   7076   ;
   7077   return 0;
   7078 }
   7079 _ACEOF
   7080 for ac_lib in '' util util-freebsd; do
   7081   if test -z "$ac_lib"; then
   7082     ac_res="none required"
   7083   else
   7084     ac_res=-l$ac_lib
   7085     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7086   fi
   7087   if ac_fn_c_try_link "$LINENO"; then :
   7088   ac_cv_search_kinfo_getvmmap=$ac_res
   7089 fi
   7090 rm -f core conftest.err conftest.$ac_objext \
   7091     conftest$ac_exeext
   7092   if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
   7093   break
   7094 fi
   7095 done
   7096 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
   7097 
   7098 else
   7099   ac_cv_search_kinfo_getvmmap=no
   7100 fi
   7101 rm conftest.$ac_ext
   7102 LIBS=$ac_func_search_save_LIBS
   7103 fi
   7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
   7105 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
   7106 ac_res=$ac_cv_search_kinfo_getvmmap
   7107 if test "$ac_res" != no; then :
   7108   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7109 
   7110 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
   7111 
   7112 fi
   7113 
   7114 
   7115 
   7116       if test "X$prefix" = "XNONE"; then
   7117     acl_final_prefix="$ac_default_prefix"
   7118   else
   7119     acl_final_prefix="$prefix"
   7120   fi
   7121   if test "X$exec_prefix" = "XNONE"; then
   7122     acl_final_exec_prefix='${prefix}'
   7123   else
   7124     acl_final_exec_prefix="$exec_prefix"
   7125   fi
   7126   acl_save_prefix="$prefix"
   7127   prefix="$acl_final_prefix"
   7128   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   7129   prefix="$acl_save_prefix"
   7130 
   7131 
   7132 # Check whether --with-gnu-ld was given.
   7133 if test "${with_gnu_ld+set}" = set; then :
   7134   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   7135 else
   7136   with_gnu_ld=no
   7137 fi
   7138 
   7139 # Prepare PATH_SEPARATOR.
   7140 # The user is always right.
   7141 if test "${PATH_SEPARATOR+set}" != set; then
   7142   echo "#! /bin/sh" >conf$$.sh
   7143   echo  "exit 0"   >>conf$$.sh
   7144   chmod +x conf$$.sh
   7145   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   7146     PATH_SEPARATOR=';'
   7147   else
   7148     PATH_SEPARATOR=:
   7149   fi
   7150   rm -f conf$$.sh
   7151 fi
   7152 ac_prog=ld
   7153 if test "$GCC" = yes; then
   7154   # Check if gcc -print-prog-name=ld gives a path.
   7155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
   7156 $as_echo_n "checking for ld used by GCC... " >&6; }
   7157   case $host in
   7158   *-*-mingw*)
   7159     # gcc leaves a trailing carriage return which upsets mingw
   7160     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   7161   *)
   7162     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   7163   esac
   7164   case $ac_prog in
   7165     # Accept absolute paths.
   7166     [\\/]* | [A-Za-z]:[\\/]*)
   7167       re_direlt='/[^/][^/]*/\.\./'
   7168       # Canonicalize the path of ld
   7169       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   7170       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   7171 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   7172       done
   7173       test -z "$LD" && LD="$ac_prog"
   7174       ;;
   7175   "")
   7176     # If it fails, then pretend we aren't using GCC.
   7177     ac_prog=ld
   7178     ;;
   7179   *)
   7180     # If it is relative, then search for the first ld in PATH.
   7181     with_gnu_ld=unknown
   7182     ;;
   7183   esac
   7184 elif test "$with_gnu_ld" = yes; then
   7185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   7186 $as_echo_n "checking for GNU ld... " >&6; }
   7187 else
   7188   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   7189 $as_echo_n "checking for non-GNU ld... " >&6; }
   7190 fi
   7191 if test "${acl_cv_path_LD+set}" = set; then :
   7192   $as_echo_n "(cached) " >&6
   7193 else
   7194   if test -z "$LD"; then
   7195   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   7196   for ac_dir in $PATH; do
   7197     test -z "$ac_dir" && ac_dir=.
   7198     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   7199       acl_cv_path_LD="$ac_dir/$ac_prog"
   7200       # Check to see if the program is GNU ld.  I'd rather use --version,
   7201       # but apparently some GNU ld's only accept -v.
   7202       # Break only if it was the GNU/non-GNU ld that we prefer.
   7203       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
   7204 	test "$with_gnu_ld" != no && break
   7205       else
   7206 	test "$with_gnu_ld" != yes && break
   7207       fi
   7208     fi
   7209   done
   7210   IFS="$ac_save_ifs"
   7211 else
   7212   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   7213 fi
   7214 fi
   7215 
   7216 LD="$acl_cv_path_LD"
   7217 if test -n "$LD"; then
   7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   7219 $as_echo "$LD" >&6; }
   7220 else
   7221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7222 $as_echo "no" >&6; }
   7223 fi
   7224 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
   7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   7226 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   7227 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
   7228   $as_echo_n "(cached) " >&6
   7229 else
   7230   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   7231 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   7232   acl_cv_prog_gnu_ld=yes
   7233 else
   7234   acl_cv_prog_gnu_ld=no
   7235 fi
   7236 fi
   7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
   7238 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   7239 with_gnu_ld=$acl_cv_prog_gnu_ld
   7240 
   7241 
   7242 
   7243                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
   7244 $as_echo_n "checking for shared library run path origin... " >&6; }
   7245 if test "${acl_cv_rpath+set}" = set; then :
   7246   $as_echo_n "(cached) " >&6
   7247 else
   7248 
   7249     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   7250     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   7251     . ./conftest.sh
   7252     rm -f ./conftest.sh
   7253     acl_cv_rpath=done
   7254 
   7255 fi
   7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
   7257 $as_echo "$acl_cv_rpath" >&6; }
   7258   wl="$acl_cv_wl"
   7259   libext="$acl_cv_libext"
   7260   shlibext="$acl_cv_shlibext"
   7261   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   7262   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   7263   hardcode_direct="$acl_cv_hardcode_direct"
   7264   hardcode_minus_L="$acl_cv_hardcode_minus_L"
   7265     # Check whether --enable-rpath was given.
   7266 if test "${enable_rpath+set}" = set; then :
   7267   enableval=$enable_rpath; :
   7268 else
   7269   enable_rpath=yes
   7270 fi
   7271 
   7272 
   7273 
   7274 
   7275 
   7276 
   7277 
   7278 
   7279     use_additional=yes
   7280 
   7281   acl_save_prefix="$prefix"
   7282   prefix="$acl_final_prefix"
   7283   acl_save_exec_prefix="$exec_prefix"
   7284   exec_prefix="$acl_final_exec_prefix"
   7285 
   7286     eval additional_includedir=\"$includedir\"
   7287     eval additional_libdir=\"$libdir\"
   7288 
   7289   exec_prefix="$acl_save_exec_prefix"
   7290   prefix="$acl_save_prefix"
   7291 
   7292 
   7293 # Check whether --with-libiconv-prefix was given.
   7294 if test "${with_libiconv_prefix+set}" = set; then :
   7295   withval=$with_libiconv_prefix;
   7296     if test "X$withval" = "Xno"; then
   7297       use_additional=no
   7298     else
   7299       if test "X$withval" = "X"; then
   7300 
   7301   acl_save_prefix="$prefix"
   7302   prefix="$acl_final_prefix"
   7303   acl_save_exec_prefix="$exec_prefix"
   7304   exec_prefix="$acl_final_exec_prefix"
   7305 
   7306           eval additional_includedir=\"$includedir\"
   7307           eval additional_libdir=\"$libdir\"
   7308 
   7309   exec_prefix="$acl_save_exec_prefix"
   7310   prefix="$acl_save_prefix"
   7311 
   7312       else
   7313         additional_includedir="$withval/include"
   7314         additional_libdir="$withval/lib"
   7315       fi
   7316     fi
   7317 
   7318 fi
   7319 
   7320       LIBICONV=
   7321   LTLIBICONV=
   7322   INCICONV=
   7323   rpathdirs=
   7324   ltrpathdirs=
   7325   names_already_handled=
   7326   names_next_round='iconv '
   7327   while test -n "$names_next_round"; do
   7328     names_this_round="$names_next_round"
   7329     names_next_round=
   7330     for name in $names_this_round; do
   7331       already_handled=
   7332       for n in $names_already_handled; do
   7333         if test "$n" = "$name"; then
   7334           already_handled=yes
   7335           break
   7336         fi
   7337       done
   7338       if test -z "$already_handled"; then
   7339         names_already_handled="$names_already_handled $name"
   7340                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   7341         eval value=\"\$HAVE_LIB$uppername\"
   7342         if test -n "$value"; then
   7343           if test "$value" = yes; then
   7344             eval value=\"\$LIB$uppername\"
   7345             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
   7346             eval value=\"\$LTLIB$uppername\"
   7347             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
   7348           else
   7349                                     :
   7350           fi
   7351         else
   7352                               found_dir=
   7353           found_la=
   7354           found_so=
   7355           found_a=
   7356           if test $use_additional = yes; then
   7357             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   7358               found_dir="$additional_libdir"
   7359               found_so="$additional_libdir/lib$name.$shlibext"
   7360               if test -f "$additional_libdir/lib$name.la"; then
   7361                 found_la="$additional_libdir/lib$name.la"
   7362               fi
   7363             else
   7364               if test -f "$additional_libdir/lib$name.$libext"; then
   7365                 found_dir="$additional_libdir"
   7366                 found_a="$additional_libdir/lib$name.$libext"
   7367                 if test -f "$additional_libdir/lib$name.la"; then
   7368                   found_la="$additional_libdir/lib$name.la"
   7369                 fi
   7370               fi
   7371             fi
   7372           fi
   7373           if test "X$found_dir" = "X"; then
   7374             for x in $LDFLAGS $LTLIBICONV; do
   7375 
   7376   acl_save_prefix="$prefix"
   7377   prefix="$acl_final_prefix"
   7378   acl_save_exec_prefix="$exec_prefix"
   7379   exec_prefix="$acl_final_exec_prefix"
   7380   eval x=\"$x\"
   7381   exec_prefix="$acl_save_exec_prefix"
   7382   prefix="$acl_save_prefix"
   7383 
   7384               case "$x" in
   7385                 -L*)
   7386                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   7387                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   7388                     found_dir="$dir"
   7389                     found_so="$dir/lib$name.$shlibext"
   7390                     if test -f "$dir/lib$name.la"; then
   7391                       found_la="$dir/lib$name.la"
   7392                     fi
   7393                   else
   7394                     if test -f "$dir/lib$name.$libext"; then
   7395                       found_dir="$dir"
   7396                       found_a="$dir/lib$name.$libext"
   7397                       if test -f "$dir/lib$name.la"; then
   7398                         found_la="$dir/lib$name.la"
   7399                       fi
   7400                     fi
   7401                   fi
   7402                   ;;
   7403               esac
   7404               if test "X$found_dir" != "X"; then
   7405                 break
   7406               fi
   7407             done
   7408           fi
   7409           if test "X$found_dir" != "X"; then
   7410                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
   7411             if test "X$found_so" != "X"; then
   7412                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   7413                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   7414               else
   7415                                                                                 haveit=
   7416                 for x in $ltrpathdirs; do
   7417                   if test "X$x" = "X$found_dir"; then
   7418                     haveit=yes
   7419                     break
   7420                   fi
   7421                 done
   7422                 if test -z "$haveit"; then
   7423                   ltrpathdirs="$ltrpathdirs $found_dir"
   7424                 fi
   7425                                 if test "$hardcode_direct" = yes; then
   7426                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   7427                 else
   7428                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   7429                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   7430                                                             haveit=
   7431                     for x in $rpathdirs; do
   7432                       if test "X$x" = "X$found_dir"; then
   7433                         haveit=yes
   7434                         break
   7435                       fi
   7436                     done
   7437                     if test -z "$haveit"; then
   7438                       rpathdirs="$rpathdirs $found_dir"
   7439                     fi
   7440                   else
   7441                                                                                 haveit=
   7442                     for x in $LDFLAGS $LIBICONV; do
   7443 
   7444   acl_save_prefix="$prefix"
   7445   prefix="$acl_final_prefix"
   7446   acl_save_exec_prefix="$exec_prefix"
   7447   exec_prefix="$acl_final_exec_prefix"
   7448   eval x=\"$x\"
   7449   exec_prefix="$acl_save_exec_prefix"
   7450   prefix="$acl_save_prefix"
   7451 
   7452                       if test "X$x" = "X-L$found_dir"; then
   7453                         haveit=yes
   7454                         break
   7455                       fi
   7456                     done
   7457                     if test -z "$haveit"; then
   7458                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
   7459                     fi
   7460                     if test "$hardcode_minus_L" != no; then
   7461                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   7462                     else
   7463                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   7464                     fi
   7465                   fi
   7466                 fi
   7467               fi
   7468             else
   7469               if test "X$found_a" != "X"; then
   7470                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
   7471               else
   7472                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
   7473               fi
   7474             fi
   7475                         additional_includedir=
   7476             case "$found_dir" in
   7477               */lib | */lib/)
   7478                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   7479                 additional_includedir="$basedir/include"
   7480                 ;;
   7481             esac
   7482             if test "X$additional_includedir" != "X"; then
   7483                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   7484                 haveit=
   7485                 if test "X$additional_includedir" = "X/usr/local/include"; then
   7486                   if test -n "$GCC"; then
   7487                     case $host_os in
   7488                       linux*) haveit=yes;;
   7489                     esac
   7490                   fi
   7491                 fi
   7492                 if test -z "$haveit"; then
   7493                   for x in $CPPFLAGS $INCICONV; do
   7494 
   7495   acl_save_prefix="$prefix"
   7496   prefix="$acl_final_prefix"
   7497   acl_save_exec_prefix="$exec_prefix"
   7498   exec_prefix="$acl_final_exec_prefix"
   7499   eval x=\"$x\"
   7500   exec_prefix="$acl_save_exec_prefix"
   7501   prefix="$acl_save_prefix"
   7502 
   7503                     if test "X$x" = "X-I$additional_includedir"; then
   7504                       haveit=yes
   7505                       break
   7506                     fi
   7507                   done
   7508                   if test -z "$haveit"; then
   7509                     if test -d "$additional_includedir"; then
   7510                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
   7511                     fi
   7512                   fi
   7513                 fi
   7514               fi
   7515             fi
   7516                         if test -n "$found_la"; then
   7517                                                         save_libdir="$libdir"
   7518               case "$found_la" in
   7519                 */* | *\\*) . "$found_la" ;;
   7520                 *) . "./$found_la" ;;
   7521               esac
   7522               libdir="$save_libdir"
   7523                             for dep in $dependency_libs; do
   7524                 case "$dep" in
   7525                   -L*)
   7526                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   7527                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   7528                       haveit=
   7529                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   7530                         if test -n "$GCC"; then
   7531                           case $host_os in
   7532                             linux*) haveit=yes;;
   7533                           esac
   7534                         fi
   7535                       fi
   7536                       if test -z "$haveit"; then
   7537                         haveit=
   7538                         for x in $LDFLAGS $LIBICONV; do
   7539 
   7540   acl_save_prefix="$prefix"
   7541   prefix="$acl_final_prefix"
   7542   acl_save_exec_prefix="$exec_prefix"
   7543   exec_prefix="$acl_final_exec_prefix"
   7544   eval x=\"$x\"
   7545   exec_prefix="$acl_save_exec_prefix"
   7546   prefix="$acl_save_prefix"
   7547 
   7548                           if test "X$x" = "X-L$additional_libdir"; then
   7549                             haveit=yes
   7550                             break
   7551                           fi
   7552                         done
   7553                         if test -z "$haveit"; then
   7554                           if test -d "$additional_libdir"; then
   7555                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
   7556                           fi
   7557                         fi
   7558                         haveit=
   7559                         for x in $LDFLAGS $LTLIBICONV; do
   7560 
   7561   acl_save_prefix="$prefix"
   7562   prefix="$acl_final_prefix"
   7563   acl_save_exec_prefix="$exec_prefix"
   7564   exec_prefix="$acl_final_exec_prefix"
   7565   eval x=\"$x\"
   7566   exec_prefix="$acl_save_exec_prefix"
   7567   prefix="$acl_save_prefix"
   7568 
   7569                           if test "X$x" = "X-L$additional_libdir"; then
   7570                             haveit=yes
   7571                             break
   7572                           fi
   7573                         done
   7574                         if test -z "$haveit"; then
   7575                           if test -d "$additional_libdir"; then
   7576                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
   7577                           fi
   7578                         fi
   7579                       fi
   7580                     fi
   7581                     ;;
   7582                   -R*)
   7583                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   7584                     if test "$enable_rpath" != no; then
   7585                                                                   haveit=
   7586                       for x in $rpathdirs; do
   7587                         if test "X$x" = "X$dir"; then
   7588                           haveit=yes
   7589                           break
   7590                         fi
   7591                       done
   7592                       if test -z "$haveit"; then
   7593                         rpathdirs="$rpathdirs $dir"
   7594                       fi
   7595                                                                   haveit=
   7596                       for x in $ltrpathdirs; do
   7597                         if test "X$x" = "X$dir"; then
   7598                           haveit=yes
   7599                           break
   7600                         fi
   7601                       done
   7602                       if test -z "$haveit"; then
   7603                         ltrpathdirs="$ltrpathdirs $dir"
   7604                       fi
   7605                     fi
   7606                     ;;
   7607                   -l*)
   7608                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   7609                     ;;
   7610                   *.la)
   7611                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   7612                     ;;
   7613                   *)
   7614                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
   7615                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
   7616                     ;;
   7617                 esac
   7618               done
   7619             fi
   7620           else
   7621                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   7622             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
   7623           fi
   7624         fi
   7625       fi
   7626     done
   7627   done
   7628   if test "X$rpathdirs" != "X"; then
   7629     if test -n "$hardcode_libdir_separator"; then
   7630                         alldirs=
   7631       for found_dir in $rpathdirs; do
   7632         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   7633       done
   7634             acl_save_libdir="$libdir"
   7635       libdir="$alldirs"
   7636       eval flag=\"$hardcode_libdir_flag_spec\"
   7637       libdir="$acl_save_libdir"
   7638       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   7639     else
   7640             for found_dir in $rpathdirs; do
   7641         acl_save_libdir="$libdir"
   7642         libdir="$found_dir"
   7643         eval flag=\"$hardcode_libdir_flag_spec\"
   7644         libdir="$acl_save_libdir"
   7645         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   7646       done
   7647     fi
   7648   fi
   7649   if test "X$ltrpathdirs" != "X"; then
   7650             for found_dir in $ltrpathdirs; do
   7651       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
   7652     done
   7653   fi
   7654 
   7655 
   7656 
   7657 
   7658 
   7659 
   7660 
   7661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
   7662 $as_echo_n "checking for iconv... " >&6; }
   7663 if test "${am_cv_func_iconv+set}" = set; then :
   7664   $as_echo_n "(cached) " >&6
   7665 else
   7666 
   7667     am_cv_func_iconv="no, consider installing GNU libiconv"
   7668     am_cv_lib_iconv=no
   7669                     am_save_CPPFLAGS="$CPPFLAGS"
   7670     CPPFLAGS="$CPPFLAGS $INCICONV"
   7671     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7672 /* end confdefs.h.  */
   7673 #include <stdlib.h>
   7674 #include <iconv.h>
   7675 int
   7676 main ()
   7677 {
   7678 iconv_t cd = iconv_open("","");
   7679        iconv(cd,NULL,NULL,NULL,NULL);
   7680        iconv_close(cd);
   7681   ;
   7682   return 0;
   7683 }
   7684 _ACEOF
   7685 if ac_fn_c_try_link "$LINENO"; then :
   7686   am_cv_func_iconv=yes
   7687 fi
   7688 rm -f core conftest.err conftest.$ac_objext \
   7689     conftest$ac_exeext conftest.$ac_ext
   7690     CPPFLAGS="$am_save_CPPFLAGS"
   7691 
   7692     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
   7693       for _libs in .libs _libs; do
   7694         am_save_CPPFLAGS="$CPPFLAGS"
   7695         am_save_LIBS="$LIBS"
   7696         CPPFLAGS="$CPPFLAGS -I../libiconv/include"
   7697         LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
   7698         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7699 /* end confdefs.h.  */
   7700 #include <stdlib.h>
   7701 #include <iconv.h>
   7702 int
   7703 main ()
   7704 {
   7705 iconv_t cd = iconv_open("","");
   7706            iconv(cd,NULL,NULL,NULL,NULL);
   7707            iconv_close(cd);
   7708   ;
   7709   return 0;
   7710 }
   7711 _ACEOF
   7712 if ac_fn_c_try_link "$LINENO"; then :
   7713   INCICONV="-I../libiconv/include"
   7714           LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
   7715           LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
   7716           am_cv_lib_iconv=yes
   7717           am_cv_func_iconv=yes
   7718 fi
   7719 rm -f core conftest.err conftest.$ac_objext \
   7720     conftest$ac_exeext conftest.$ac_ext
   7721         CPPFLAGS="$am_save_CPPFLAGS"
   7722         LIBS="$am_save_LIBS"
   7723         if test "$am_cv_func_iconv" = "yes"; then
   7724           break
   7725         fi
   7726       done
   7727     fi
   7728 
   7729     if test "$am_cv_func_iconv" != yes; then
   7730       am_save_CPPFLAGS="$CPPFLAGS"
   7731       am_save_LIBS="$LIBS"
   7732       CPPFLAGS="$LIBS $INCICONV"
   7733       LIBS="$LIBS $LIBICONV"
   7734       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7735 /* end confdefs.h.  */
   7736 #include <stdlib.h>
   7737 #include <iconv.h>
   7738 int
   7739 main ()
   7740 {
   7741 iconv_t cd = iconv_open("","");
   7742          iconv(cd,NULL,NULL,NULL,NULL);
   7743          iconv_close(cd);
   7744   ;
   7745   return 0;
   7746 }
   7747 _ACEOF
   7748 if ac_fn_c_try_link "$LINENO"; then :
   7749   am_cv_lib_iconv=yes
   7750         am_cv_func_iconv=yes
   7751 fi
   7752 rm -f core conftest.err conftest.$ac_objext \
   7753     conftest$ac_exeext conftest.$ac_ext
   7754       CPPFLAGS="$am_save_CPPFLAGS"
   7755       LIBS="$am_save_LIBS"
   7756     fi
   7757 
   7758 fi
   7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
   7760 $as_echo "$am_cv_func_iconv" >&6; }
   7761   if test "$am_cv_func_iconv" = yes; then
   7762 
   7763 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
   7764 
   7765   fi
   7766   if test "$am_cv_lib_iconv" = yes; then
   7767 
   7768   for element in $INCICONV; do
   7769     haveit=
   7770     for x in $CPPFLAGS; do
   7771 
   7772   acl_save_prefix="$prefix"
   7773   prefix="$acl_final_prefix"
   7774   acl_save_exec_prefix="$exec_prefix"
   7775   exec_prefix="$acl_final_exec_prefix"
   7776   eval x=\"$x\"
   7777   exec_prefix="$acl_save_exec_prefix"
   7778   prefix="$acl_save_prefix"
   7779 
   7780       if test "X$x" = "X$element"; then
   7781         haveit=yes
   7782         break
   7783       fi
   7784     done
   7785     if test -z "$haveit"; then
   7786       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   7787     fi
   7788   done
   7789 
   7790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
   7791 $as_echo_n "checking how to link with libiconv... " >&6; }
   7792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
   7793 $as_echo "$LIBICONV" >&6; }
   7794   else
   7795     LIBICONV=
   7796     LTLIBICONV=
   7797   fi
   7798 
   7799 
   7800 
   7801   if test "$am_cv_func_iconv" = yes; then
   7802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
   7803 $as_echo_n "checking for iconv declaration... " >&6; }
   7804     if test "${am_cv_proto_iconv+set}" = set; then :
   7805   $as_echo_n "(cached) " >&6
   7806 else
   7807 
   7808       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7809 /* end confdefs.h.  */
   7810 
   7811 #include <stdlib.h>
   7812 #include <iconv.h>
   7813 extern
   7814 #ifdef __cplusplus
   7815 "C"
   7816 #endif
   7817 #if defined(__STDC__) || defined(__cplusplus)
   7818 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
   7819 #else
   7820 size_t iconv();
   7821 #endif
   7822 
   7823 int
   7824 main ()
   7825 {
   7826 
   7827   ;
   7828   return 0;
   7829 }
   7830 _ACEOF
   7831 if ac_fn_c_try_compile "$LINENO"; then :
   7832   am_cv_proto_iconv_arg1=""
   7833 else
   7834   am_cv_proto_iconv_arg1="const"
   7835 fi
   7836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7837       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);"
   7838 fi
   7839 
   7840     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
   7841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
   7842          }$am_cv_proto_iconv" >&5
   7843 $as_echo "${ac_t:-
   7844          }$am_cv_proto_iconv" >&6; }
   7845 
   7846 cat >>confdefs.h <<_ACEOF
   7847 #define ICONV_CONST $am_cv_proto_iconv_arg1
   7848 _ACEOF
   7849 
   7850   fi
   7851 
   7852 
   7853 # GDB may fork/exec the iconv program to get the list of supported character
   7854 # sets.  Allow the user to specify where to find it.
   7855 # There are several factors affecting the choice of option name:
   7856 # - There is already --with-libiconv-prefix but we can't use it, it specifies
   7857 #   the build-time location of libiconv files.
   7858 # - The program we need to find is iconv, which comes with glibc.  The user
   7859 #   doesn't necessarily have libiconv installed.  Therefore naming this
   7860 #   --with-libiconv-foo feels wrong.
   7861 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
   7862 #   defined to work on directories not files (though it really doesn't know
   7863 #   the difference).
   7864 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
   7865 #   with --with-libiconv-prefix.
   7866 # Putting these together is why the option name is --with-iconv-bin.
   7867 
   7868 
   7869 # Check whether --with-iconv-bin was given.
   7870 if test "${with_iconv_bin+set}" = set; then :
   7871   withval=$with_iconv_bin; iconv_bin="${withval}"
   7872 
   7873 cat >>confdefs.h <<_ACEOF
   7874 #define ICONV_BIN "${iconv_bin}"
   7875 _ACEOF
   7876 
   7877 
   7878   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   7879      if test "x$prefix" = xNONE; then
   7880      	test_prefix=/usr/local
   7881      else
   7882 	test_prefix=$prefix
   7883      fi
   7884   else
   7885      test_prefix=$exec_prefix
   7886   fi
   7887   value=0
   7888   case ${iconv_bin} in
   7889      "${test_prefix}"|"${test_prefix}/"*|\
   7890 	'${exec_prefix}'|'${exec_prefix}/'*)
   7891      value=1
   7892      ;;
   7893   esac
   7894 
   7895 cat >>confdefs.h <<_ACEOF
   7896 #define ICONV_BIN_RELOCATABLE $value
   7897 _ACEOF
   7898 
   7899 
   7900 
   7901 fi
   7902 
   7903 
   7904 # For the TUI, we need enhanced curses functionality.
   7905 if test x"$enable_tui" != xno; then
   7906   prefer_curses=yes
   7907 fi
   7908 
   7909 curses_found=no
   7910 if test x"$prefer_curses" = xyes; then
   7911   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
   7912   # curses library because the latter might not provide all the
   7913   # functionality we need.  However, this leads to problems on systems
   7914   # where the linker searches /usr/local/lib, but the compiler doesn't
   7915   # search /usr/local/include, if ncurses is installed in /usr/local.  A
   7916   # default installation of ncurses on alpha*-dec-osf* will lead to such
   7917   # a situation.
   7918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
   7919 $as_echo_n "checking for library containing waddstr... " >&6; }
   7920 if test "${ac_cv_search_waddstr+set}" = set; then :
   7921   $as_echo_n "(cached) " >&6
   7922 else
   7923   ac_func_search_save_LIBS=$LIBS
   7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7925 /* end confdefs.h.  */
   7926 
   7927 /* Override any GCC internal prototype to avoid an error.
   7928    Use char because int might match the return type of a GCC
   7929    builtin and then its argument prototype would still apply.  */
   7930 #ifdef __cplusplus
   7931 extern "C"
   7932 #endif
   7933 char waddstr ();
   7934 int
   7935 main ()
   7936 {
   7937 return waddstr ();
   7938   ;
   7939   return 0;
   7940 }
   7941 _ACEOF
   7942 for ac_lib in '' ncurses cursesX curses; do
   7943   if test -z "$ac_lib"; then
   7944     ac_res="none required"
   7945   else
   7946     ac_res=-l$ac_lib
   7947     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7948   fi
   7949   if ac_fn_c_try_link "$LINENO"; then :
   7950   ac_cv_search_waddstr=$ac_res
   7951 fi
   7952 rm -f core conftest.err conftest.$ac_objext \
   7953     conftest$ac_exeext
   7954   if test "${ac_cv_search_waddstr+set}" = set; then :
   7955   break
   7956 fi
   7957 done
   7958 if test "${ac_cv_search_waddstr+set}" = set; then :
   7959 
   7960 else
   7961   ac_cv_search_waddstr=no
   7962 fi
   7963 rm conftest.$ac_ext
   7964 LIBS=$ac_func_search_save_LIBS
   7965 fi
   7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
   7967 $as_echo "$ac_cv_search_waddstr" >&6; }
   7968 ac_res=$ac_cv_search_waddstr
   7969 if test "$ac_res" != no; then :
   7970   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7971 
   7972 fi
   7973 
   7974 
   7975   if test "$ac_cv_search_waddstr" != no; then
   7976     curses_found=yes
   7977   fi
   7978 fi
   7979 
   7980 # Check whether we should enable the TUI, but only do so if we really
   7981 # can.
   7982 if test x"$enable_tui" != xno; then
   7983   if test -d $srcdir/tui; then
   7984     if test "$curses_found" != no; then
   7985       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
   7986       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
   7987       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
   7988       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
   7989     else
   7990       if test x"$enable_tui" = xyes; then
   7991 	as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
   7992       else
   7993 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
   7994 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
   7995       fi
   7996     fi
   7997   fi
   7998 fi
   7999 
   8000 # Since GDB uses Readline, we need termcap functionality.  In many
   8001 # cases this will be provided by the curses library, but some systems
   8002 # have a seperate termcap library, or no curses library at all.
   8003 
   8004 case $host_os in
   8005   cygwin*)
   8006     if test -d $srcdir/libtermcap; then
   8007       LIBS="../libtermcap/libtermcap.a $LIBS"
   8008       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
   8009     fi ;;
   8010   go32* | *djgpp*)
   8011     ac_cv_search_tgetent="none required"
   8012     ;;
   8013 esac
   8014 
   8015 # These are the libraries checked by Readline.
   8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
   8017 $as_echo_n "checking for library containing tgetent... " >&6; }
   8018 if test "${ac_cv_search_tgetent+set}" = set; then :
   8019   $as_echo_n "(cached) " >&6
   8020 else
   8021   ac_func_search_save_LIBS=$LIBS
   8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8023 /* end confdefs.h.  */
   8024 
   8025 /* Override any GCC internal prototype to avoid an error.
   8026    Use char because int might match the return type of a GCC
   8027    builtin and then its argument prototype would still apply.  */
   8028 #ifdef __cplusplus
   8029 extern "C"
   8030 #endif
   8031 char tgetent ();
   8032 int
   8033 main ()
   8034 {
   8035 return tgetent ();
   8036   ;
   8037   return 0;
   8038 }
   8039 _ACEOF
   8040 for ac_lib in '' termcap tinfo curses ncurses; do
   8041   if test -z "$ac_lib"; then
   8042     ac_res="none required"
   8043   else
   8044     ac_res=-l$ac_lib
   8045     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8046   fi
   8047   if ac_fn_c_try_link "$LINENO"; then :
   8048   ac_cv_search_tgetent=$ac_res
   8049 fi
   8050 rm -f core conftest.err conftest.$ac_objext \
   8051     conftest$ac_exeext
   8052   if test "${ac_cv_search_tgetent+set}" = set; then :
   8053   break
   8054 fi
   8055 done
   8056 if test "${ac_cv_search_tgetent+set}" = set; then :
   8057 
   8058 else
   8059   ac_cv_search_tgetent=no
   8060 fi
   8061 rm conftest.$ac_ext
   8062 LIBS=$ac_func_search_save_LIBS
   8063 fi
   8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
   8065 $as_echo "$ac_cv_search_tgetent" >&6; }
   8066 ac_res=$ac_cv_search_tgetent
   8067 if test "$ac_res" != no; then :
   8068   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8069 
   8070 fi
   8071 
   8072 
   8073 if test "$ac_cv_search_tgetent" = no; then
   8074   CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
   8075 fi
   8076 
   8077 
   8078 # Check whether --with-system-readline was given.
   8079 if test "${with_system_readline+set}" = set; then :
   8080   withval=$with_system_readline;
   8081 fi
   8082 
   8083 
   8084 if test "$with_system_readline" = yes; then
   8085   READLINE=-lreadline
   8086   READLINE_DEPS=
   8087   READLINE_CFLAGS=
   8088   READLINE_TEXI_INCFLAG=
   8089 else
   8090   READLINE='$(READLINE_DIR)/libreadline.a'
   8091   READLINE_DEPS='$(READLINE)'
   8092   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
   8093   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
   8094 fi
   8095 
   8096 
   8097 
   8098 
   8099 
   8100 # Generate jit-reader.h
   8101 
   8102 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
   8103 TARGET_PTR=
   8104 
   8105 # The cast to long int works around a bug in the HP C Compiler
   8106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8108 # This bug is HP SR number 8606223364.
   8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
   8110 $as_echo_n "checking size of unsigned long long... " >&6; }
   8111 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
   8112   $as_echo_n "(cached) " >&6
   8113 else
   8114   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
   8115 
   8116 else
   8117   if test "$ac_cv_type_unsigned_long_long" = yes; then
   8118      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8120 { as_fn_set_status 77
   8121 as_fn_error "cannot compute sizeof (unsigned long long)
   8122 See \`config.log' for more details." "$LINENO" 5; }; }
   8123    else
   8124      ac_cv_sizeof_unsigned_long_long=0
   8125    fi
   8126 fi
   8127 
   8128 fi
   8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
   8130 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
   8131 
   8132 
   8133 
   8134 cat >>confdefs.h <<_ACEOF
   8135 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
   8136 _ACEOF
   8137 
   8138 
   8139 # The cast to long int works around a bug in the HP C Compiler
   8140 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8141 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8142 # This bug is HP SR number 8606223364.
   8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
   8144 $as_echo_n "checking size of unsigned long... " >&6; }
   8145 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
   8146   $as_echo_n "(cached) " >&6
   8147 else
   8148   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
   8149 
   8150 else
   8151   if test "$ac_cv_type_unsigned_long" = yes; then
   8152      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8154 { as_fn_set_status 77
   8155 as_fn_error "cannot compute sizeof (unsigned long)
   8156 See \`config.log' for more details." "$LINENO" 5; }; }
   8157    else
   8158      ac_cv_sizeof_unsigned_long=0
   8159    fi
   8160 fi
   8161 
   8162 fi
   8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
   8164 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
   8165 
   8166 
   8167 
   8168 cat >>confdefs.h <<_ACEOF
   8169 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
   8170 _ACEOF
   8171 
   8172 
   8173 # The cast to long int works around a bug in the HP C Compiler
   8174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   8175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   8176 # This bug is HP SR number 8606223364.
   8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
   8178 $as_echo_n "checking size of unsigned __int128... " >&6; }
   8179 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
   8180   $as_echo_n "(cached) " >&6
   8181 else
   8182   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
   8183 
   8184 else
   8185   if test "$ac_cv_type_unsigned___int128" = yes; then
   8186      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   8187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   8188 { as_fn_set_status 77
   8189 as_fn_error "cannot compute sizeof (unsigned __int128)
   8190 See \`config.log' for more details." "$LINENO" 5; }; }
   8191    else
   8192      ac_cv_sizeof_unsigned___int128=0
   8193    fi
   8194 fi
   8195 
   8196 fi
   8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
   8198 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
   8199 
   8200 
   8201 
   8202 cat >>confdefs.h <<_ACEOF
   8203 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
   8204 _ACEOF
   8205 
   8206 
   8207 
   8208 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
   8209   TARGET_PTR="unsigned long"
   8210 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
   8211   TARGET_PTR="unsigned long long"
   8212 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
   8213   TARGET_PTR="unsigned __int128"
   8214 else
   8215   TARGET_PTR="unsigned long"
   8216 fi
   8217 
   8218 
   8219 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
   8220 
   8221 
   8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   8223 $as_echo_n "checking for library containing dlopen... " >&6; }
   8224 if test "${ac_cv_search_dlopen+set}" = set; then :
   8225   $as_echo_n "(cached) " >&6
   8226 else
   8227   ac_func_search_save_LIBS=$LIBS
   8228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8229 /* end confdefs.h.  */
   8230 
   8231 /* Override any GCC internal prototype to avoid an error.
   8232    Use char because int might match the return type of a GCC
   8233    builtin and then its argument prototype would still apply.  */
   8234 #ifdef __cplusplus
   8235 extern "C"
   8236 #endif
   8237 char dlopen ();
   8238 int
   8239 main ()
   8240 {
   8241 return dlopen ();
   8242   ;
   8243   return 0;
   8244 }
   8245 _ACEOF
   8246 for ac_lib in '' dl; do
   8247   if test -z "$ac_lib"; then
   8248     ac_res="none required"
   8249   else
   8250     ac_res=-l$ac_lib
   8251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8252   fi
   8253   if ac_fn_c_try_link "$LINENO"; then :
   8254   ac_cv_search_dlopen=$ac_res
   8255 fi
   8256 rm -f core conftest.err conftest.$ac_objext \
   8257     conftest$ac_exeext
   8258   if test "${ac_cv_search_dlopen+set}" = set; then :
   8259   break
   8260 fi
   8261 done
   8262 if test "${ac_cv_search_dlopen+set}" = set; then :
   8263 
   8264 else
   8265   ac_cv_search_dlopen=no
   8266 fi
   8267 rm conftest.$ac_ext
   8268 LIBS=$ac_func_search_save_LIBS
   8269 fi
   8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   8271 $as_echo "$ac_cv_search_dlopen" >&6; }
   8272 ac_res=$ac_cv_search_dlopen
   8273 if test "$ac_res" != no; then :
   8274   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8275 
   8276 fi
   8277 
   8278 
   8279 
   8280 
   8281 # Check whether --with-jit-reader-dir was given.
   8282 if test "${with_jit_reader_dir+set}" = set; then :
   8283   withval=$with_jit_reader_dir;
   8284     JIT_READER_DIR=$withval
   8285 else
   8286   JIT_READER_DIR=${libdir}/gdb
   8287 fi
   8288 
   8289 
   8290   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   8291   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   8292   ac_define_dir=`eval echo $JIT_READER_DIR`
   8293   ac_define_dir=`eval echo $ac_define_dir`
   8294 
   8295 cat >>confdefs.h <<_ACEOF
   8296 #define JIT_READER_DIR "$ac_define_dir"
   8297 _ACEOF
   8298 
   8299 
   8300 
   8301 
   8302   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   8303      if test "x$prefix" = xNONE; then
   8304      	test_prefix=/usr/local
   8305      else
   8306 	test_prefix=$prefix
   8307      fi
   8308   else
   8309      test_prefix=$exec_prefix
   8310   fi
   8311   value=0
   8312   case ${ac_define_dir} in
   8313      "${test_prefix}"|"${test_prefix}/"*|\
   8314 	'${exec_prefix}'|'${exec_prefix}/'*)
   8315      value=1
   8316      ;;
   8317   esac
   8318 
   8319 cat >>confdefs.h <<_ACEOF
   8320 #define JIT_READER_DIR_RELOCATABLE $value
   8321 _ACEOF
   8322 
   8323 
   8324 
   8325 
   8326 
   8327 # Check whether --with-expat was given.
   8328 if test "${with_expat+set}" = set; then :
   8329   withval=$with_expat;
   8330 else
   8331   with_expat=auto
   8332 fi
   8333 
   8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
   8335 $as_echo_n "checking whether to use expat... " >&6; }
   8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
   8337 $as_echo "$with_expat" >&6; }
   8338 
   8339 if test "${with_expat}" = no; then
   8340   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
   8341 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
   8342   HAVE_LIBEXPAT=no
   8343 else
   8344 
   8345 
   8346 
   8347 
   8348 
   8349 
   8350 
   8351 
   8352     use_additional=yes
   8353 
   8354   acl_save_prefix="$prefix"
   8355   prefix="$acl_final_prefix"
   8356   acl_save_exec_prefix="$exec_prefix"
   8357   exec_prefix="$acl_final_exec_prefix"
   8358 
   8359     eval additional_includedir=\"$includedir\"
   8360     eval additional_libdir=\"$libdir\"
   8361 
   8362   exec_prefix="$acl_save_exec_prefix"
   8363   prefix="$acl_save_prefix"
   8364 
   8365 
   8366 # Check whether --with-libexpat-prefix was given.
   8367 if test "${with_libexpat_prefix+set}" = set; then :
   8368   withval=$with_libexpat_prefix;
   8369     if test "X$withval" = "Xno"; then
   8370       use_additional=no
   8371     else
   8372       if test "X$withval" = "X"; then
   8373 
   8374   acl_save_prefix="$prefix"
   8375   prefix="$acl_final_prefix"
   8376   acl_save_exec_prefix="$exec_prefix"
   8377   exec_prefix="$acl_final_exec_prefix"
   8378 
   8379           eval additional_includedir=\"$includedir\"
   8380           eval additional_libdir=\"$libdir\"
   8381 
   8382   exec_prefix="$acl_save_exec_prefix"
   8383   prefix="$acl_save_prefix"
   8384 
   8385       else
   8386         additional_includedir="$withval/include"
   8387         additional_libdir="$withval/lib"
   8388       fi
   8389     fi
   8390 
   8391 fi
   8392 
   8393       LIBEXPAT=
   8394   LTLIBEXPAT=
   8395   INCEXPAT=
   8396   rpathdirs=
   8397   ltrpathdirs=
   8398   names_already_handled=
   8399   names_next_round='expat '
   8400   while test -n "$names_next_round"; do
   8401     names_this_round="$names_next_round"
   8402     names_next_round=
   8403     for name in $names_this_round; do
   8404       already_handled=
   8405       for n in $names_already_handled; do
   8406         if test "$n" = "$name"; then
   8407           already_handled=yes
   8408           break
   8409         fi
   8410       done
   8411       if test -z "$already_handled"; then
   8412         names_already_handled="$names_already_handled $name"
   8413                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   8414         eval value=\"\$HAVE_LIB$uppername\"
   8415         if test -n "$value"; then
   8416           if test "$value" = yes; then
   8417             eval value=\"\$LIB$uppername\"
   8418             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
   8419             eval value=\"\$LTLIB$uppername\"
   8420             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
   8421           else
   8422                                     :
   8423           fi
   8424         else
   8425                               found_dir=
   8426           found_la=
   8427           found_so=
   8428           found_a=
   8429           if test $use_additional = yes; then
   8430             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   8431               found_dir="$additional_libdir"
   8432               found_so="$additional_libdir/lib$name.$shlibext"
   8433               if test -f "$additional_libdir/lib$name.la"; then
   8434                 found_la="$additional_libdir/lib$name.la"
   8435               fi
   8436             else
   8437               if test -f "$additional_libdir/lib$name.$libext"; then
   8438                 found_dir="$additional_libdir"
   8439                 found_a="$additional_libdir/lib$name.$libext"
   8440                 if test -f "$additional_libdir/lib$name.la"; then
   8441                   found_la="$additional_libdir/lib$name.la"
   8442                 fi
   8443               fi
   8444             fi
   8445           fi
   8446           if test "X$found_dir" = "X"; then
   8447             for x in $LDFLAGS $LTLIBEXPAT; do
   8448 
   8449   acl_save_prefix="$prefix"
   8450   prefix="$acl_final_prefix"
   8451   acl_save_exec_prefix="$exec_prefix"
   8452   exec_prefix="$acl_final_exec_prefix"
   8453   eval x=\"$x\"
   8454   exec_prefix="$acl_save_exec_prefix"
   8455   prefix="$acl_save_prefix"
   8456 
   8457               case "$x" in
   8458                 -L*)
   8459                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   8460                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   8461                     found_dir="$dir"
   8462                     found_so="$dir/lib$name.$shlibext"
   8463                     if test -f "$dir/lib$name.la"; then
   8464                       found_la="$dir/lib$name.la"
   8465                     fi
   8466                   else
   8467                     if test -f "$dir/lib$name.$libext"; then
   8468                       found_dir="$dir"
   8469                       found_a="$dir/lib$name.$libext"
   8470                       if test -f "$dir/lib$name.la"; then
   8471                         found_la="$dir/lib$name.la"
   8472                       fi
   8473                     fi
   8474                   fi
   8475                   ;;
   8476               esac
   8477               if test "X$found_dir" != "X"; then
   8478                 break
   8479               fi
   8480             done
   8481           fi
   8482           if test "X$found_dir" != "X"; then
   8483                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
   8484             if test "X$found_so" != "X"; then
   8485                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   8486                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   8487               else
   8488                                                                                 haveit=
   8489                 for x in $ltrpathdirs; do
   8490                   if test "X$x" = "X$found_dir"; then
   8491                     haveit=yes
   8492                     break
   8493                   fi
   8494                 done
   8495                 if test -z "$haveit"; then
   8496                   ltrpathdirs="$ltrpathdirs $found_dir"
   8497                 fi
   8498                                 if test "$hardcode_direct" = yes; then
   8499                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   8500                 else
   8501                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   8502                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   8503                                                             haveit=
   8504                     for x in $rpathdirs; do
   8505                       if test "X$x" = "X$found_dir"; then
   8506                         haveit=yes
   8507                         break
   8508                       fi
   8509                     done
   8510                     if test -z "$haveit"; then
   8511                       rpathdirs="$rpathdirs $found_dir"
   8512                     fi
   8513                   else
   8514                                                                                 haveit=
   8515                     for x in $LDFLAGS $LIBEXPAT; do
   8516 
   8517   acl_save_prefix="$prefix"
   8518   prefix="$acl_final_prefix"
   8519   acl_save_exec_prefix="$exec_prefix"
   8520   exec_prefix="$acl_final_exec_prefix"
   8521   eval x=\"$x\"
   8522   exec_prefix="$acl_save_exec_prefix"
   8523   prefix="$acl_save_prefix"
   8524 
   8525                       if test "X$x" = "X-L$found_dir"; then
   8526                         haveit=yes
   8527                         break
   8528                       fi
   8529                     done
   8530                     if test -z "$haveit"; then
   8531                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
   8532                     fi
   8533                     if test "$hardcode_minus_L" != no; then
   8534                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   8535                     else
   8536                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   8537                     fi
   8538                   fi
   8539                 fi
   8540               fi
   8541             else
   8542               if test "X$found_a" != "X"; then
   8543                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
   8544               else
   8545                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
   8546               fi
   8547             fi
   8548                         additional_includedir=
   8549             case "$found_dir" in
   8550               */lib | */lib/)
   8551                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   8552                 additional_includedir="$basedir/include"
   8553                 ;;
   8554             esac
   8555             if test "X$additional_includedir" != "X"; then
   8556                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   8557                 haveit=
   8558                 if test "X$additional_includedir" = "X/usr/local/include"; then
   8559                   if test -n "$GCC"; then
   8560                     case $host_os in
   8561                       linux*) haveit=yes;;
   8562                     esac
   8563                   fi
   8564                 fi
   8565                 if test -z "$haveit"; then
   8566                   for x in $CPPFLAGS $INCEXPAT; do
   8567 
   8568   acl_save_prefix="$prefix"
   8569   prefix="$acl_final_prefix"
   8570   acl_save_exec_prefix="$exec_prefix"
   8571   exec_prefix="$acl_final_exec_prefix"
   8572   eval x=\"$x\"
   8573   exec_prefix="$acl_save_exec_prefix"
   8574   prefix="$acl_save_prefix"
   8575 
   8576                     if test "X$x" = "X-I$additional_includedir"; then
   8577                       haveit=yes
   8578                       break
   8579                     fi
   8580                   done
   8581                   if test -z "$haveit"; then
   8582                     if test -d "$additional_includedir"; then
   8583                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
   8584                     fi
   8585                   fi
   8586                 fi
   8587               fi
   8588             fi
   8589                         if test -n "$found_la"; then
   8590                                                         save_libdir="$libdir"
   8591               case "$found_la" in
   8592                 */* | *\\*) . "$found_la" ;;
   8593                 *) . "./$found_la" ;;
   8594               esac
   8595               libdir="$save_libdir"
   8596                             for dep in $dependency_libs; do
   8597                 case "$dep" in
   8598                   -L*)
   8599                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   8600                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   8601                       haveit=
   8602                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   8603                         if test -n "$GCC"; then
   8604                           case $host_os in
   8605                             linux*) haveit=yes;;
   8606                           esac
   8607                         fi
   8608                       fi
   8609                       if test -z "$haveit"; then
   8610                         haveit=
   8611                         for x in $LDFLAGS $LIBEXPAT; do
   8612 
   8613   acl_save_prefix="$prefix"
   8614   prefix="$acl_final_prefix"
   8615   acl_save_exec_prefix="$exec_prefix"
   8616   exec_prefix="$acl_final_exec_prefix"
   8617   eval x=\"$x\"
   8618   exec_prefix="$acl_save_exec_prefix"
   8619   prefix="$acl_save_prefix"
   8620 
   8621                           if test "X$x" = "X-L$additional_libdir"; then
   8622                             haveit=yes
   8623                             break
   8624                           fi
   8625                         done
   8626                         if test -z "$haveit"; then
   8627                           if test -d "$additional_libdir"; then
   8628                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
   8629                           fi
   8630                         fi
   8631                         haveit=
   8632                         for x in $LDFLAGS $LTLIBEXPAT; do
   8633 
   8634   acl_save_prefix="$prefix"
   8635   prefix="$acl_final_prefix"
   8636   acl_save_exec_prefix="$exec_prefix"
   8637   exec_prefix="$acl_final_exec_prefix"
   8638   eval x=\"$x\"
   8639   exec_prefix="$acl_save_exec_prefix"
   8640   prefix="$acl_save_prefix"
   8641 
   8642                           if test "X$x" = "X-L$additional_libdir"; then
   8643                             haveit=yes
   8644                             break
   8645                           fi
   8646                         done
   8647                         if test -z "$haveit"; then
   8648                           if test -d "$additional_libdir"; then
   8649                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
   8650                           fi
   8651                         fi
   8652                       fi
   8653                     fi
   8654                     ;;
   8655                   -R*)
   8656                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   8657                     if test "$enable_rpath" != no; then
   8658                                                                   haveit=
   8659                       for x in $rpathdirs; do
   8660                         if test "X$x" = "X$dir"; then
   8661                           haveit=yes
   8662                           break
   8663                         fi
   8664                       done
   8665                       if test -z "$haveit"; then
   8666                         rpathdirs="$rpathdirs $dir"
   8667                       fi
   8668                                                                   haveit=
   8669                       for x in $ltrpathdirs; do
   8670                         if test "X$x" = "X$dir"; then
   8671                           haveit=yes
   8672                           break
   8673                         fi
   8674                       done
   8675                       if test -z "$haveit"; then
   8676                         ltrpathdirs="$ltrpathdirs $dir"
   8677                       fi
   8678                     fi
   8679                     ;;
   8680                   -l*)
   8681                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   8682                     ;;
   8683                   *.la)
   8684                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   8685                     ;;
   8686                   *)
   8687                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
   8688                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
   8689                     ;;
   8690                 esac
   8691               done
   8692             fi
   8693           else
   8694                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   8695             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
   8696           fi
   8697         fi
   8698       fi
   8699     done
   8700   done
   8701   if test "X$rpathdirs" != "X"; then
   8702     if test -n "$hardcode_libdir_separator"; then
   8703                         alldirs=
   8704       for found_dir in $rpathdirs; do
   8705         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   8706       done
   8707             acl_save_libdir="$libdir"
   8708       libdir="$alldirs"
   8709       eval flag=\"$hardcode_libdir_flag_spec\"
   8710       libdir="$acl_save_libdir"
   8711       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   8712     else
   8713             for found_dir in $rpathdirs; do
   8714         acl_save_libdir="$libdir"
   8715         libdir="$found_dir"
   8716         eval flag=\"$hardcode_libdir_flag_spec\"
   8717         libdir="$acl_save_libdir"
   8718         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   8719       done
   8720     fi
   8721   fi
   8722   if test "X$ltrpathdirs" != "X"; then
   8723             for found_dir in $ltrpathdirs; do
   8724       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
   8725     done
   8726   fi
   8727 
   8728 
   8729         ac_save_CPPFLAGS="$CPPFLAGS"
   8730 
   8731   for element in $INCEXPAT; do
   8732     haveit=
   8733     for x in $CPPFLAGS; do
   8734 
   8735   acl_save_prefix="$prefix"
   8736   prefix="$acl_final_prefix"
   8737   acl_save_exec_prefix="$exec_prefix"
   8738   exec_prefix="$acl_final_exec_prefix"
   8739   eval x=\"$x\"
   8740   exec_prefix="$acl_save_exec_prefix"
   8741   prefix="$acl_save_prefix"
   8742 
   8743       if test "X$x" = "X$element"; then
   8744         haveit=yes
   8745         break
   8746       fi
   8747     done
   8748     if test -z "$haveit"; then
   8749       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   8750     fi
   8751   done
   8752 
   8753 
   8754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
   8755 $as_echo_n "checking for libexpat... " >&6; }
   8756 if test "${ac_cv_libexpat+set}" = set; then :
   8757   $as_echo_n "(cached) " >&6
   8758 else
   8759 
   8760     ac_save_LIBS="$LIBS"
   8761     LIBS="$LIBS $LIBEXPAT"
   8762     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8763 /* end confdefs.h.  */
   8764 #include "expat.h"
   8765 int
   8766 main ()
   8767 {
   8768 XML_Parser p = XML_ParserCreate (0);
   8769   ;
   8770   return 0;
   8771 }
   8772 _ACEOF
   8773 if ac_fn_c_try_link "$LINENO"; then :
   8774   ac_cv_libexpat=yes
   8775 else
   8776   ac_cv_libexpat=no
   8777 fi
   8778 rm -f core conftest.err conftest.$ac_objext \
   8779     conftest$ac_exeext conftest.$ac_ext
   8780     LIBS="$ac_save_LIBS"
   8781 
   8782 fi
   8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
   8784 $as_echo "$ac_cv_libexpat" >&6; }
   8785   if test "$ac_cv_libexpat" = yes; then
   8786     HAVE_LIBEXPAT=yes
   8787 
   8788 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
   8789 
   8790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
   8791 $as_echo_n "checking how to link with libexpat... " >&6; }
   8792     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
   8793 $as_echo "$LIBEXPAT" >&6; }
   8794   else
   8795     HAVE_LIBEXPAT=no
   8796             CPPFLAGS="$ac_save_CPPFLAGS"
   8797     LIBEXPAT=
   8798     LTLIBEXPAT=
   8799   fi
   8800 
   8801 
   8802 
   8803 
   8804 
   8805 
   8806   if test "$HAVE_LIBEXPAT" != yes; then
   8807     if test "$with_expat" = yes; then
   8808       as_fn_error "expat is missing or unusable" "$LINENO" 5
   8809     else
   8810       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
   8811 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
   8812     fi
   8813   else
   8814     save_LIBS=$LIBS
   8815     LIBS="$LIBS $LIBEXPAT"
   8816     for ac_func in XML_StopParser
   8817 do :
   8818   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
   8819 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
   8820   cat >>confdefs.h <<_ACEOF
   8821 #define HAVE_XML_STOPPARSER 1
   8822 _ACEOF
   8823 
   8824 fi
   8825 done
   8826 
   8827     LIBS=$save_LIBS
   8828   fi
   8829 fi
   8830 
   8831 # --------------------- #
   8832 # Check for libpython.  #
   8833 # --------------------- #
   8834 
   8835 
   8836 
   8837 
   8838 
   8839 
   8840 # Check whether --with-python was given.
   8841 if test "${with_python+set}" = set; then :
   8842   withval=$with_python;
   8843 else
   8844   with_python=auto
   8845 fi
   8846 
   8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
   8848 $as_echo_n "checking whether to use python... " >&6; }
   8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
   8850 $as_echo "$with_python" >&6; }
   8851 
   8852 if test "${with_python}" = no; then
   8853   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
   8854 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
   8855   have_libpython=no
   8856 else
   8857   case "${with_python}" in
   8858   [\\/]* | ?:[\\/]*)
   8859     if test -d ${with_python}; then
   8860       # Assume the python binary is ${with_python}/bin/python.
   8861       python_prog="${with_python}/bin/python"
   8862       python_prefix=
   8863       # If python does not exit ${with_python}/bin, then try in
   8864       # ${with_python}.  On Windows/MinGW, this is where the Python
   8865       # executable is.
   8866       if test ! -x "${python_prog}"; then
   8867         python_prog="${with_python}/python"
   8868         python_prefix=
   8869       fi
   8870       if test ! -x "${python_prog}"; then
   8871         # Fall back to gdb 7.0/7.1 behaviour.
   8872         python_prog=missing
   8873         python_prefix=${with_python}
   8874       fi
   8875     elif test -x "${with_python}"; then
   8876       # While we can't run python compiled for $host (unless host == build),
   8877       # the user could write a script that provides the needed information,
   8878       # so we support that.
   8879       python_prog=${with_python}
   8880       python_prefix=
   8881     else
   8882       as_fn_error "invalid value for --with-python" "$LINENO" 5
   8883     fi
   8884     ;;
   8885   */*)
   8886     # Disallow --with-python=foo/bar.
   8887     as_fn_error "invalid value for --with-python" "$LINENO" 5
   8888     ;;
   8889   *)
   8890     # The user has either specified auto, yes, or the name of the python
   8891     # program assumed to be in $PATH.
   8892     python_prefix=
   8893     case "${with_python}" in
   8894     yes | auto)
   8895       if test ${build} = ${host}; then
   8896         # Extract the first word of "python", so it can be a program name with args.
   8897 set dummy python; ac_word=$2
   8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8899 $as_echo_n "checking for $ac_word... " >&6; }
   8900 if test "${ac_cv_path_python_prog_path+set}" = set; then :
   8901   $as_echo_n "(cached) " >&6
   8902 else
   8903   case $python_prog_path in
   8904   [\\/]* | ?:[\\/]*)
   8905   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   8906   ;;
   8907   *)
   8908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8909 for as_dir in $PATH
   8910 do
   8911   IFS=$as_save_IFS
   8912   test -z "$as_dir" && as_dir=.
   8913     for ac_exec_ext in '' $ac_executable_extensions; do
   8914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8915     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   8916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8917     break 2
   8918   fi
   8919 done
   8920   done
   8921 IFS=$as_save_IFS
   8922 
   8923   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   8924   ;;
   8925 esac
   8926 fi
   8927 python_prog_path=$ac_cv_path_python_prog_path
   8928 if test -n "$python_prog_path"; then
   8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   8930 $as_echo "$python_prog_path" >&6; }
   8931 else
   8932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8933 $as_echo "no" >&6; }
   8934 fi
   8935 
   8936 
   8937         if test "${python_prog_path}" = missing; then
   8938           python_prog=missing
   8939         else
   8940           python_prog=${python_prog_path}
   8941         fi
   8942       else
   8943         # Not much we can do except assume the cross-compiler will find the
   8944         # right files.
   8945         python_prog=missing
   8946       fi
   8947       ;;
   8948     *)
   8949       # While we can't run python compiled for $host (unless host == build),
   8950       # the user could write a script that provides the needed information,
   8951       # so we support that.
   8952       python_prog="${with_python}"
   8953       # Extract the first word of "${python_prog}", so it can be a program name with args.
   8954 set dummy ${python_prog}; ac_word=$2
   8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8956 $as_echo_n "checking for $ac_word... " >&6; }
   8957 if test "${ac_cv_path_python_prog_path+set}" = set; then :
   8958   $as_echo_n "(cached) " >&6
   8959 else
   8960   case $python_prog_path in
   8961   [\\/]* | ?:[\\/]*)
   8962   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   8963   ;;
   8964   *)
   8965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8966 for as_dir in $PATH
   8967 do
   8968   IFS=$as_save_IFS
   8969   test -z "$as_dir" && as_dir=.
   8970     for ac_exec_ext in '' $ac_executable_extensions; do
   8971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8972     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   8973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8974     break 2
   8975   fi
   8976 done
   8977   done
   8978 IFS=$as_save_IFS
   8979 
   8980   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   8981   ;;
   8982 esac
   8983 fi
   8984 python_prog_path=$ac_cv_path_python_prog_path
   8985 if test -n "$python_prog_path"; then
   8986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   8987 $as_echo "$python_prog_path" >&6; }
   8988 else
   8989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8990 $as_echo "no" >&6; }
   8991 fi
   8992 
   8993 
   8994       if test "${python_prog_path}" = missing; then
   8995         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
   8996       fi
   8997       ;;
   8998     esac
   8999   esac
   9000 
   9001   if test "${python_prog}" != missing; then
   9002     # We have a python program to use, but it may be too old.
   9003     # Don't flag an error for --with-python=auto (the default).
   9004     have_python_config=yes
   9005     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
   9006     if test $? != 0; then
   9007       have_python_config=failed
   9008       if test "${with_python}" != auto; then
   9009         as_fn_error "failure running python-config --includes" "$LINENO" 5
   9010       fi
   9011     fi
   9012     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
   9013     if test $? != 0; then
   9014       have_python_config=failed
   9015       if test "${with_python}" != auto; then
   9016         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
   9017       fi
   9018     fi
   9019     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
   9020     if test $? != 0; then
   9021       have_python_config=failed
   9022       if test "${with_python}" != auto; then
   9023         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
   9024       fi
   9025     fi
   9026   else
   9027     # We do not have a python executable we can use to determine where
   9028     # to find the Python headers and libs.  We cannot guess the include
   9029     # path from the python_prefix either, because that include path
   9030     # depends on the Python version.  So, there is nothing much we can
   9031     # do except assume that the compiler will be able to find those files.
   9032     python_includes=
   9033     python_libs=
   9034     have_python_config=no
   9035   fi
   9036 
   9037   # If we have python-config, only try the configuration it provides.
   9038   # Otherwise fallback on the old way of trying different versions of
   9039   # python in turn.
   9040 
   9041   have_libpython=no
   9042   if test "${have_python_config}" = yes; then
   9043     # Determine the Python version by extracting "-lpython<version>"
   9044     # part of the python_libs. <version> is usually X.Y with X and Y
   9045     # being decimal numbers, but can also be XY (seen on Windows).
   9046     #
   9047     # The extraction is performed using sed with a regular expression.
   9048     # Initially, the regexp used was using the '?' quantifier to make
   9049     # the dot in the version number optional.  Unfortunately, this
   9050     # does not work with non-GNU versions of sed because, because of
   9051     # what looks like a limitation (the '?' quantifier does not work
   9052     # with back-references).  We work around this limitation by using
   9053     # the '*' quantifier instead.  It means that, in theory, we might
   9054     # match unexpected version strings such as "-lpython2..7", but
   9055     # this seems unlikely in practice.  And even if that happens,
   9056     # an error will be triggered later on, when checking that version
   9057     # number.
   9058     python_version=`echo " ${python_libs} " \
   9059                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
   9060     case "${python_version}" in
   9061     python*)
   9062 
   9063   version=${python_version}
   9064 
   9065   new_CPPFLAGS=${python_includes}
   9066   new_LIBS=${python_libs}
   9067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   9068 $as_echo_n "checking for ${version}... " >&6; }
   9069   save_CPPFLAGS=$CPPFLAGS
   9070   save_LIBS=$LIBS
   9071   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9072   LIBS="$LIBS $new_LIBS"
   9073   found_usable_python=no
   9074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9075 /* end confdefs.h.  */
   9076 #include "Python.h"
   9077 int
   9078 main ()
   9079 {
   9080 Py_Initialize ();
   9081   ;
   9082   return 0;
   9083 }
   9084 _ACEOF
   9085 if ac_fn_c_try_link "$LINENO"; then :
   9086   have_libpython=${version}
   9087                   found_usable_python=yes
   9088                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   9089                   PYTHON_LIBS=$new_LIBS
   9090 fi
   9091 rm -f core conftest.err conftest.$ac_objext \
   9092     conftest$ac_exeext conftest.$ac_ext
   9093   CPPFLAGS=$save_CPPFLAGS
   9094   LIBS=$save_LIBS
   9095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   9096 $as_echo "${found_usable_python}" >&6; }
   9097 
   9098       ;;
   9099     *)
   9100       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
   9101       ;;
   9102     esac
   9103   elif test "${have_python_config}" != failed; then
   9104     if test "${have_libpython}" = no; then
   9105 
   9106   version=python2.7
   9107 
   9108   new_CPPFLAGS=${python_includes}
   9109   new_LIBS="${python_libs} -lpython2.7"
   9110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   9111 $as_echo_n "checking for ${version}... " >&6; }
   9112   save_CPPFLAGS=$CPPFLAGS
   9113   save_LIBS=$LIBS
   9114   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9115   LIBS="$LIBS $new_LIBS"
   9116   found_usable_python=no
   9117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9118 /* end confdefs.h.  */
   9119 #include "Python.h"
   9120 int
   9121 main ()
   9122 {
   9123 Py_Initialize ();
   9124   ;
   9125   return 0;
   9126 }
   9127 _ACEOF
   9128 if ac_fn_c_try_link "$LINENO"; then :
   9129   have_libpython=${version}
   9130                   found_usable_python=yes
   9131                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   9132                   PYTHON_LIBS=$new_LIBS
   9133 fi
   9134 rm -f core conftest.err conftest.$ac_objext \
   9135     conftest$ac_exeext conftest.$ac_ext
   9136   CPPFLAGS=$save_CPPFLAGS
   9137   LIBS=$save_LIBS
   9138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   9139 $as_echo "${found_usable_python}" >&6; }
   9140 
   9141     fi
   9142     if test "${have_libpython}" = no; then
   9143 
   9144   version=python2.6
   9145 
   9146   new_CPPFLAGS=${python_includes}
   9147   new_LIBS="${python_libs} -lpython2.6"
   9148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   9149 $as_echo_n "checking for ${version}... " >&6; }
   9150   save_CPPFLAGS=$CPPFLAGS
   9151   save_LIBS=$LIBS
   9152   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9153   LIBS="$LIBS $new_LIBS"
   9154   found_usable_python=no
   9155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9156 /* end confdefs.h.  */
   9157 #include "Python.h"
   9158 int
   9159 main ()
   9160 {
   9161 Py_Initialize ();
   9162   ;
   9163   return 0;
   9164 }
   9165 _ACEOF
   9166 if ac_fn_c_try_link "$LINENO"; then :
   9167   have_libpython=${version}
   9168                   found_usable_python=yes
   9169                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   9170                   PYTHON_LIBS=$new_LIBS
   9171 fi
   9172 rm -f core conftest.err conftest.$ac_objext \
   9173     conftest$ac_exeext conftest.$ac_ext
   9174   CPPFLAGS=$save_CPPFLAGS
   9175   LIBS=$save_LIBS
   9176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   9177 $as_echo "${found_usable_python}" >&6; }
   9178 
   9179     fi
   9180     if test ${have_libpython} = no; then
   9181 
   9182   version=python2.5
   9183 
   9184   new_CPPFLAGS=${python_includes}
   9185   new_LIBS="${python_libs} -lpython2.5"
   9186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   9187 $as_echo_n "checking for ${version}... " >&6; }
   9188   save_CPPFLAGS=$CPPFLAGS
   9189   save_LIBS=$LIBS
   9190   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9191   LIBS="$LIBS $new_LIBS"
   9192   found_usable_python=no
   9193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9194 /* end confdefs.h.  */
   9195 #include "Python.h"
   9196 int
   9197 main ()
   9198 {
   9199 Py_Initialize ();
   9200   ;
   9201   return 0;
   9202 }
   9203 _ACEOF
   9204 if ac_fn_c_try_link "$LINENO"; then :
   9205   have_libpython=${version}
   9206                   found_usable_python=yes
   9207                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   9208                   PYTHON_LIBS=$new_LIBS
   9209 fi
   9210 rm -f core conftest.err conftest.$ac_objext \
   9211     conftest$ac_exeext conftest.$ac_ext
   9212   CPPFLAGS=$save_CPPFLAGS
   9213   LIBS=$save_LIBS
   9214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   9215 $as_echo "${found_usable_python}" >&6; }
   9216 
   9217     fi
   9218     if test ${have_libpython} = no; then
   9219 
   9220   version=python2.4
   9221 
   9222   new_CPPFLAGS=${python_includes}
   9223   new_LIBS="${python_libs} -lpython2.4"
   9224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   9225 $as_echo_n "checking for ${version}... " >&6; }
   9226   save_CPPFLAGS=$CPPFLAGS
   9227   save_LIBS=$LIBS
   9228   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9229   LIBS="$LIBS $new_LIBS"
   9230   found_usable_python=no
   9231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9232 /* end confdefs.h.  */
   9233 #include "Python.h"
   9234 int
   9235 main ()
   9236 {
   9237 Py_Initialize ();
   9238   ;
   9239   return 0;
   9240 }
   9241 _ACEOF
   9242 if ac_fn_c_try_link "$LINENO"; then :
   9243   have_libpython=${version}
   9244                   found_usable_python=yes
   9245                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   9246                   PYTHON_LIBS=$new_LIBS
   9247 fi
   9248 rm -f core conftest.err conftest.$ac_objext \
   9249     conftest$ac_exeext conftest.$ac_ext
   9250   CPPFLAGS=$save_CPPFLAGS
   9251   LIBS=$save_LIBS
   9252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   9253 $as_echo "${found_usable_python}" >&6; }
   9254 
   9255     fi
   9256   fi
   9257   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
   9258 
   9259 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
   9260 
   9261   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
   9262 
   9263 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
   9264 
   9265   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
   9266 
   9267 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
   9268 
   9269   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
   9270 
   9271 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
   9272 
   9273   fi
   9274 
   9275   if test "${have_libpython}" = no; then
   9276     case "${with_python}" in
   9277     yes)
   9278       as_fn_error "python is missing or unusable" "$LINENO" 5
   9279       ;;
   9280     auto)
   9281       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
   9282 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
   9283       ;;
   9284     *)
   9285       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
   9286       ;;
   9287     esac
   9288   else
   9289     if test -n "${python_prefix}"; then
   9290 
   9291 cat >>confdefs.h <<_ACEOF
   9292 #define WITH_PYTHON_PATH "${python_prefix}"
   9293 _ACEOF
   9294 
   9295 
   9296   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   9297      if test "x$prefix" = xNONE; then
   9298      	test_prefix=/usr/local
   9299      else
   9300 	test_prefix=$prefix
   9301      fi
   9302   else
   9303      test_prefix=$exec_prefix
   9304   fi
   9305   value=0
   9306   case ${python_prefix} in
   9307      "${test_prefix}"|"${test_prefix}/"*|\
   9308 	'${exec_prefix}'|'${exec_prefix}/'*)
   9309      value=1
   9310      ;;
   9311   esac
   9312 
   9313 cat >>confdefs.h <<_ACEOF
   9314 #define PYTHON_PATH_RELOCATABLE $value
   9315 _ACEOF
   9316 
   9317 
   9318     fi
   9319   fi
   9320 fi
   9321 
   9322 if test "${have_libpython}" != no; then
   9323 
   9324 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
   9325 
   9326   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
   9327   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
   9328   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
   9329   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
   9330   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
   9331 
   9332   # Flags needed to compile Python code (taken from python-config --cflags).
   9333   # We cannot call python-config directly because it will output whatever was
   9334   # used when compiling the Python interpreter itself, including flags which
   9335   # would make the python-related objects be compiled differently from the
   9336   # rest of GDB (e.g., -O2 and -fPIC).
   9337   if test "${GCC}" = yes; then
   9338     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
   9339   fi
   9340 
   9341   if test "x${tentative_python_cflags}" != x; then
   9342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
   9343 $as_echo_n "checking compiler flags for python code... " >&6; }
   9344     for flag in ${tentative_python_cflags}; do
   9345       # Check that the compiler accepts it
   9346       saved_CFLAGS="$CFLAGS"
   9347       CFLAGS="$CFLAGS $flag"
   9348       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9349 /* end confdefs.h.  */
   9350 
   9351 int
   9352 main ()
   9353 {
   9354 
   9355   ;
   9356   return 0;
   9357 }
   9358 _ACEOF
   9359 if ac_fn_c_try_compile "$LINENO"; then :
   9360   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
   9361 fi
   9362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9363       CFLAGS="$saved_CFLAGS"
   9364     done
   9365     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
   9366 $as_echo "${PYTHON_CFLAGS}" >&6; }
   9367   fi
   9368 
   9369   # On x64 Windows, Python's include headers, and pyconfig.h in
   9370   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
   9371   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
   9372   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
   9373   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
   9374   # The issue was reported to the Python community, but still isn't
   9375   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
   9376 
   9377   case "$gdb_host" in
   9378     mingw64)
   9379            if test "${GCC}" = yes; then
   9380              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
   9381            fi
   9382            ;;
   9383   esac
   9384 
   9385   # Note that "python -m threading" cannot be used to check for
   9386   # threading support due to a bug in Python 2.7.3
   9387   # (http://bugs.python.org/issue15567).
   9388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
   9389 $as_echo_n "checking whether python supports threads... " >&6; }
   9390   saved_CPPFLAGS="${CPPFLAGS}"
   9391   CPPFLAGS="${PYTHON_CPPFLAGS}"
   9392   # Note that the test is reversed so that python_has_threads=yes on
   9393   # unexpected failures.
   9394   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9395 /* end confdefs.h.  */
   9396 
   9397 #include <Python.h>
   9398 #ifdef WITH_THREAD
   9399 # error
   9400 #endif
   9401 
   9402 _ACEOF
   9403 if ac_fn_c_try_cpp "$LINENO"; then :
   9404   python_has_threads=no
   9405 else
   9406   python_has_threads=yes
   9407 fi
   9408 rm -f conftest.err conftest.$ac_ext
   9409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
   9410 $as_echo "${python_has_threads}" >&6; }
   9411   CPPFLAGS="${saved_CPPFLAGS}"
   9412 else
   9413   # Even if Python support is not compiled in, we need to have this file
   9414   # included so that the "python" command, et.al., still exists.
   9415   CONFIG_OBS="$CONFIG_OBS python.o"
   9416   CONFIG_SRCS="$CONFIG_SRCS python/python.c"
   9417 fi
   9418 
   9419 # Work around Python http://bugs.python.org/issue10112.  See also
   9420 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
   9421 # no effect.  Note that the only test after this that uses Python is
   9422 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
   9423 # run without -export-dynamic too.
   9424 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
   9425 
   9426 
   9427 
   9428 
   9429  if test "${have_libpython}" != no; then
   9430   HAVE_PYTHON_TRUE=
   9431   HAVE_PYTHON_FALSE='#'
   9432 else
   9433   HAVE_PYTHON_TRUE='#'
   9434   HAVE_PYTHON_FALSE=
   9435 fi
   9436 
   9437 
   9438 # -------------------- #
   9439 # Check for libguile.  #
   9440 # -------------------- #
   9441 
   9442 
   9443 
   9444 
   9445 
   9446 
   9447 # Check whether --with-guile was given.
   9448 if test "${with_guile+set}" = set; then :
   9449   withval=$with_guile;
   9450 else
   9451   with_guile=auto
   9452 fi
   9453 
   9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
   9455 $as_echo_n "checking whether to use guile... " >&6; }
   9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
   9457 $as_echo "$with_guile" >&6; }
   9458 
   9459 # Extract the first word of "pkg-config", so it can be a program name with args.
   9460 set dummy pkg-config; ac_word=$2
   9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   9462 $as_echo_n "checking for $ac_word... " >&6; }
   9463 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
   9464   $as_echo_n "(cached) " >&6
   9465 else
   9466   case $pkg_config_prog_path in
   9467   [\\/]* | ?:[\\/]*)
   9468   ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
   9469   ;;
   9470   *)
   9471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   9472 for as_dir in $PATH
   9473 do
   9474   IFS=$as_save_IFS
   9475   test -z "$as_dir" && as_dir=.
   9476     for ac_exec_ext in '' $ac_executable_extensions; do
   9477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   9478     ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
   9479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   9480     break 2
   9481   fi
   9482 done
   9483   done
   9484 IFS=$as_save_IFS
   9485 
   9486   test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
   9487   ;;
   9488 esac
   9489 fi
   9490 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
   9491 if test -n "$pkg_config_prog_path"; then
   9492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
   9493 $as_echo "$pkg_config_prog_path" >&6; }
   9494 else
   9495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   9496 $as_echo "no" >&6; }
   9497 fi
   9498 
   9499 
   9500 
   9501 try_guile_versions="guile-2.2 guile-2.0"
   9502 have_libguile=no
   9503 case "${with_guile}" in
   9504 no)
   9505   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
   9506 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
   9507   ;;
   9508 auto)
   9509   if test "${pkg_config_prog_path}" = "missing"; then
   9510     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
   9511 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
   9512   else
   9513 
   9514   pkg_config=${pkg_config_prog_path}
   9515   guile_version_list=${try_guile_versions}
   9516   flag_errors=no
   9517 
   9518   found_usable_guile=checking
   9519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   9520 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   9521   for guile_version in ${guile_version_list}; do
   9522     ${pkg_config} --exists ${guile_version} 2>/dev/null
   9523     if test $? != 0; then
   9524       continue
   9525     fi
   9526             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   9527     if test $? != 0; then
   9528       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   9529     fi
   9530     new_LIBS=`${pkg_config} --libs ${guile_version}`
   9531     if test $? != 0; then
   9532       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   9533     fi
   9534         found_usable_guile=${guile_version}
   9535     break
   9536   done
   9537   if test "${found_usable_guile}" = "checking"; then
   9538     if test "${flag_errors}" = "yes"; then
   9539       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   9540     else
   9541       found_usable_guile=no
   9542     fi
   9543   fi
   9544       if test "${found_usable_guile}" != no; then
   9545     save_CPPFLAGS=$CPPFLAGS
   9546     save_LIBS=$LIBS
   9547     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9548     LIBS="$LIBS $new_LIBS"
   9549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9550 /* end confdefs.h.  */
   9551 #include "libguile.h"
   9552 int
   9553 main ()
   9554 {
   9555 scm_init_guile ();
   9556   ;
   9557   return 0;
   9558 }
   9559 _ACEOF
   9560 if ac_fn_c_try_link "$LINENO"; then :
   9561   have_libguile=yes
   9562                     GUILE_CPPFLAGS=$new_CPPFLAGS
   9563                     GUILE_LIBS=$new_LIBS
   9564 else
   9565   found_usable_guile=no
   9566 fi
   9567 rm -f core conftest.err conftest.$ac_objext \
   9568     conftest$ac_exeext conftest.$ac_ext
   9569         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   9570 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
   9571 
   9572 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   9573 
   9574 
   9575 fi
   9576 
   9577     CPPFLAGS=$save_CPPFLAGS
   9578     LIBS=$save_LIBS
   9579     if test "${found_usable_guile}" = no; then
   9580       if test "${flag_errors}" = yes; then
   9581         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9583 as_fn_error "linking guile version ${guile_version} test program failed
   9584 See \`config.log' for more details." "$LINENO" 5; }
   9585       fi
   9586     fi
   9587   fi
   9588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   9589 $as_echo "${found_usable_guile}" >&6; }
   9590 
   9591   fi
   9592   ;;
   9593 yes)
   9594   if test "${pkg_config_prog_path}" = "missing"; then
   9595     as_fn_error "pkg-config not found" "$LINENO" 5
   9596   fi
   9597 
   9598   pkg_config=${pkg_config_prog_path}
   9599   guile_version_list=${try_guile_versions}
   9600   flag_errors=yes
   9601 
   9602   found_usable_guile=checking
   9603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   9604 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   9605   for guile_version in ${guile_version_list}; do
   9606     ${pkg_config} --exists ${guile_version} 2>/dev/null
   9607     if test $? != 0; then
   9608       continue
   9609     fi
   9610             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   9611     if test $? != 0; then
   9612       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   9613     fi
   9614     new_LIBS=`${pkg_config} --libs ${guile_version}`
   9615     if test $? != 0; then
   9616       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   9617     fi
   9618         found_usable_guile=${guile_version}
   9619     break
   9620   done
   9621   if test "${found_usable_guile}" = "checking"; then
   9622     if test "${flag_errors}" = "yes"; then
   9623       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   9624     else
   9625       found_usable_guile=no
   9626     fi
   9627   fi
   9628       if test "${found_usable_guile}" != no; then
   9629     save_CPPFLAGS=$CPPFLAGS
   9630     save_LIBS=$LIBS
   9631     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9632     LIBS="$LIBS $new_LIBS"
   9633     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9634 /* end confdefs.h.  */
   9635 #include "libguile.h"
   9636 int
   9637 main ()
   9638 {
   9639 scm_init_guile ();
   9640   ;
   9641   return 0;
   9642 }
   9643 _ACEOF
   9644 if ac_fn_c_try_link "$LINENO"; then :
   9645   have_libguile=yes
   9646                     GUILE_CPPFLAGS=$new_CPPFLAGS
   9647                     GUILE_LIBS=$new_LIBS
   9648 else
   9649   found_usable_guile=no
   9650 fi
   9651 rm -f core conftest.err conftest.$ac_objext \
   9652     conftest$ac_exeext conftest.$ac_ext
   9653         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   9654 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
   9655 
   9656 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   9657 
   9658 
   9659 fi
   9660 
   9661     CPPFLAGS=$save_CPPFLAGS
   9662     LIBS=$save_LIBS
   9663     if test "${found_usable_guile}" = no; then
   9664       if test "${flag_errors}" = yes; then
   9665         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9667 as_fn_error "linking guile version ${guile_version} test program failed
   9668 See \`config.log' for more details." "$LINENO" 5; }
   9669       fi
   9670     fi
   9671   fi
   9672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   9673 $as_echo "${found_usable_guile}" >&6; }
   9674 
   9675   ;;
   9676 [\\/]* | ?:[\\/]*)
   9677   if test -x "${with_guile}"; then
   9678 
   9679   pkg_config=${with_guile}
   9680   guile_version_list=${try_guile_versions}
   9681   flag_errors=yes
   9682 
   9683   found_usable_guile=checking
   9684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   9685 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   9686   for guile_version in ${guile_version_list}; do
   9687     ${pkg_config} --exists ${guile_version} 2>/dev/null
   9688     if test $? != 0; then
   9689       continue
   9690     fi
   9691             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   9692     if test $? != 0; then
   9693       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   9694     fi
   9695     new_LIBS=`${pkg_config} --libs ${guile_version}`
   9696     if test $? != 0; then
   9697       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   9698     fi
   9699         found_usable_guile=${guile_version}
   9700     break
   9701   done
   9702   if test "${found_usable_guile}" = "checking"; then
   9703     if test "${flag_errors}" = "yes"; then
   9704       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   9705     else
   9706       found_usable_guile=no
   9707     fi
   9708   fi
   9709       if test "${found_usable_guile}" != no; then
   9710     save_CPPFLAGS=$CPPFLAGS
   9711     save_LIBS=$LIBS
   9712     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9713     LIBS="$LIBS $new_LIBS"
   9714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9715 /* end confdefs.h.  */
   9716 #include "libguile.h"
   9717 int
   9718 main ()
   9719 {
   9720 scm_init_guile ();
   9721   ;
   9722   return 0;
   9723 }
   9724 _ACEOF
   9725 if ac_fn_c_try_link "$LINENO"; then :
   9726   have_libguile=yes
   9727                     GUILE_CPPFLAGS=$new_CPPFLAGS
   9728                     GUILE_LIBS=$new_LIBS
   9729 else
   9730   found_usable_guile=no
   9731 fi
   9732 rm -f core conftest.err conftest.$ac_objext \
   9733     conftest$ac_exeext conftest.$ac_ext
   9734         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   9735 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
   9736 
   9737 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   9738 
   9739 
   9740 fi
   9741 
   9742     CPPFLAGS=$save_CPPFLAGS
   9743     LIBS=$save_LIBS
   9744     if test "${found_usable_guile}" = no; then
   9745       if test "${flag_errors}" = yes; then
   9746         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9748 as_fn_error "linking guile version ${guile_version} test program failed
   9749 See \`config.log' for more details." "$LINENO" 5; }
   9750       fi
   9751     fi
   9752   fi
   9753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   9754 $as_echo "${found_usable_guile}" >&6; }
   9755 
   9756   else
   9757     as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
   9758   fi
   9759   ;;
   9760 "" | */*)
   9761   # Disallow --with=guile="" and --with-guile=foo/bar.
   9762   as_fn_error "invalid value for --with-guile" "$LINENO" 5
   9763   ;;
   9764 *)
   9765   # A space separate list of guile versions to try, in order.
   9766   if test "${pkg_config_prog_path}" = "missing"; then
   9767     as_fn_error "pkg-config not found" "$LINENO" 5
   9768   fi
   9769 
   9770   pkg_config=${pkg_config_prog_path}
   9771   guile_version_list=${with_guile}
   9772   flag_errors=yes
   9773 
   9774   found_usable_guile=checking
   9775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   9776 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   9777   for guile_version in ${guile_version_list}; do
   9778     ${pkg_config} --exists ${guile_version} 2>/dev/null
   9779     if test $? != 0; then
   9780       continue
   9781     fi
   9782             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   9783     if test $? != 0; then
   9784       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   9785     fi
   9786     new_LIBS=`${pkg_config} --libs ${guile_version}`
   9787     if test $? != 0; then
   9788       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   9789     fi
   9790         found_usable_guile=${guile_version}
   9791     break
   9792   done
   9793   if test "${found_usable_guile}" = "checking"; then
   9794     if test "${flag_errors}" = "yes"; then
   9795       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   9796     else
   9797       found_usable_guile=no
   9798     fi
   9799   fi
   9800       if test "${found_usable_guile}" != no; then
   9801     save_CPPFLAGS=$CPPFLAGS
   9802     save_LIBS=$LIBS
   9803     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   9804     LIBS="$LIBS $new_LIBS"
   9805     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9806 /* end confdefs.h.  */
   9807 #include "libguile.h"
   9808 int
   9809 main ()
   9810 {
   9811 scm_init_guile ();
   9812   ;
   9813   return 0;
   9814 }
   9815 _ACEOF
   9816 if ac_fn_c_try_link "$LINENO"; then :
   9817   have_libguile=yes
   9818                     GUILE_CPPFLAGS=$new_CPPFLAGS
   9819                     GUILE_LIBS=$new_LIBS
   9820 else
   9821   found_usable_guile=no
   9822 fi
   9823 rm -f core conftest.err conftest.$ac_objext \
   9824     conftest$ac_exeext conftest.$ac_ext
   9825         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   9826 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
   9827 
   9828 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   9829 
   9830 
   9831 fi
   9832 
   9833     CPPFLAGS=$save_CPPFLAGS
   9834     LIBS=$save_LIBS
   9835     if test "${found_usable_guile}" = no; then
   9836       if test "${flag_errors}" = yes; then
   9837         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9839 as_fn_error "linking guile version ${guile_version} test program failed
   9840 See \`config.log' for more details." "$LINENO" 5; }
   9841       fi
   9842     fi
   9843   fi
   9844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   9845 $as_echo "${found_usable_guile}" >&6; }
   9846 
   9847   ;;
   9848 esac
   9849 
   9850 if test "${have_libguile}" != no; then
   9851     case "${with_guile}" in
   9852   [\\/]* | ?:[\\/]*)
   9853 
   9854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
   9855 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
   9856 if test "${ac_cv_guild_program_name+set}" = set; then :
   9857   $as_echo_n "(cached) " >&6
   9858 else
   9859   ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
   9860 
   9861      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
   9862      # the 'guild' and 'bindir' variables.  In that case, try to guess
   9863      # what the program name is, at the risk of getting it wrong if
   9864      # Guile was configured with '--program-suffix' or similar.
   9865      if test "x$ac_cv_guild_program_name" = "x"; then
   9866        guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
   9867        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
   9868      fi
   9869 
   9870 fi
   9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
   9872 $as_echo "$ac_cv_guild_program_name" >&6; }
   9873 
   9874   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
   9875     as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
   9876   fi
   9877 
   9878   GUILD="$ac_cv_guild_program_name"
   9879 
   9880 
   9881     ;;
   9882   *)
   9883 
   9884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
   9885 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
   9886 if test "${ac_cv_guild_program_name+set}" = set; then :
   9887   $as_echo_n "(cached) " >&6
   9888 else
   9889   ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
   9890 
   9891      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
   9892      # the 'guild' and 'bindir' variables.  In that case, try to guess
   9893      # what the program name is, at the risk of getting it wrong if
   9894      # Guile was configured with '--program-suffix' or similar.
   9895      if test "x$ac_cv_guild_program_name" = "x"; then
   9896        guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
   9897        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
   9898      fi
   9899 
   9900 fi
   9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
   9902 $as_echo "$ac_cv_guild_program_name" >&6; }
   9903 
   9904   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
   9905     as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
   9906   fi
   9907 
   9908   GUILD="$ac_cv_guild_program_name"
   9909 
   9910 
   9911     ;;
   9912   esac
   9913 
   9914 
   9915   if test "$cross_compiling" = no; then
   9916     GUILD_TARGET_FLAG=
   9917   else
   9918     GUILD_TARGET_FLAG="--target=$host"
   9919   fi
   9920 
   9921 
   9922 
   9923 
   9924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
   9925 $as_echo_n "checking whether guild supports this host... " >&6; }
   9926 if test "${ac_cv_guild_ok+set}" = set; then :
   9927   $as_echo_n "(cached) " >&6
   9928 else
   9929   echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
   9930      if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
   9931        ac_cv_guild_ok=yes
   9932      else
   9933        ac_cv_guild_ok=no
   9934      fi
   9935 fi
   9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
   9937 $as_echo "$ac_cv_guild_ok" >&6; }
   9938 
   9939     if test "$ac_cv_guild_ok" = no; then
   9940     have_libguile=no
   9941     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
   9942 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
   9943   fi
   9944 fi
   9945 
   9946 if test "${have_libguile}" != no; then
   9947 
   9948 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
   9949 
   9950   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
   9951   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
   9952   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
   9953   CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
   9954   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
   9955 
   9956     save_LIBS="$LIBS"
   9957   save_CPPFLAGS="$CPPFLAGS"
   9958   LIBS="$GUILE_LIBS"
   9959   CPPFLAGS="$GUILE_CPPFLAGS"
   9960   for ac_func in scm_new_smob
   9961 do :
   9962   ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
   9963 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
   9964   cat >>confdefs.h <<_ACEOF
   9965 #define HAVE_SCM_NEW_SMOB 1
   9966 _ACEOF
   9967 
   9968 fi
   9969 done
   9970 
   9971   LIBS="$save_LIBS"
   9972   CPPFLAGS="$save_CPPFLAGS"
   9973 else
   9974   # Even if Guile support is not compiled in, we need to have these files
   9975   # included.
   9976   CONFIG_OBS="$CONFIG_OBS guile.o"
   9977   CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
   9978 fi
   9979 
   9980 
   9981  if test "${have_libguile}" != no; then
   9982   HAVE_GUILE_TRUE=
   9983   HAVE_GUILE_FALSE='#'
   9984 else
   9985   HAVE_GUILE_TRUE='#'
   9986   HAVE_GUILE_FALSE=
   9987 fi
   9988 
   9989 
   9990 # --------------------- #
   9991 # Check for libmcheck.  #
   9992 # --------------------- #
   9993 
   9994 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
   9995 # but turn it off if Python is enabled with threads, since -lmcheck is
   9996 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
   9997 # and for releases.
   9998 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
   9999    && $development; then
   10000   libmcheck_default=yes
   10001 else
   10002   libmcheck_default=no
   10003 fi
   10004 
   10005   # Check whether --enable-libmcheck was given.
   10006 if test "${enable_libmcheck+set}" = set; then :
   10007   enableval=$enable_libmcheck; case "${enableval}" in
   10008       yes | y) ENABLE_LIBMCHECK="yes" ;;
   10009       no | n)  ENABLE_LIBMCHECK="no" ;;
   10010       *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
   10011     esac
   10012 fi
   10013 
   10014 
   10015   if test -z "${ENABLE_LIBMCHECK}"; then
   10016     ENABLE_LIBMCHECK=${libmcheck_default}
   10017   fi
   10018 
   10019   if test "$ENABLE_LIBMCHECK" = "yes" ; then
   10020     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
   10021 $as_echo_n "checking for main in -lmcheck... " >&6; }
   10022 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
   10023   $as_echo_n "(cached) " >&6
   10024 else
   10025   ac_check_lib_save_LIBS=$LIBS
   10026 LIBS="-lmcheck  $LIBS"
   10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10028 /* end confdefs.h.  */
   10029 
   10030 
   10031 int
   10032 main ()
   10033 {
   10034 return main ();
   10035   ;
   10036   return 0;
   10037 }
   10038 _ACEOF
   10039 if ac_fn_c_try_link "$LINENO"; then :
   10040   ac_cv_lib_mcheck_main=yes
   10041 else
   10042   ac_cv_lib_mcheck_main=no
   10043 fi
   10044 rm -f core conftest.err conftest.$ac_objext \
   10045     conftest$ac_exeext conftest.$ac_ext
   10046 LIBS=$ac_check_lib_save_LIBS
   10047 fi
   10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
   10049 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
   10050 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
   10051   cat >>confdefs.h <<_ACEOF
   10052 #define HAVE_LIBMCHECK 1
   10053 _ACEOF
   10054 
   10055   LIBS="-lmcheck $LIBS"
   10056 
   10057 fi
   10058 
   10059   fi
   10060 
   10061 
   10062 if test "$ENABLE_LIBMCHECK" = "yes" \
   10063 	-a "${have_libpython}" != "no" \
   10064 	-a "${python_has_threads}" = "yes" ; then
   10065   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
   10066 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
   10067 fi
   10068 
   10069 
   10070 # Check whether --with-intel_pt was given.
   10071 if test "${with_intel_pt+set}" = set; then :
   10072   withval=$with_intel_pt;
   10073 else
   10074   with_intel_pt=auto
   10075 fi
   10076 
   10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
   10078 $as_echo_n "checking whether to use intel pt... " >&6; }
   10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
   10080 $as_echo "$with_intel_pt" >&6; }
   10081 
   10082 if test "${with_intel_pt}" = no; then
   10083   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
   10084 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
   10085   HAVE_LIBIPT=no
   10086 else
   10087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10088 /* end confdefs.h.  */
   10089 
   10090 #include <linux/perf_event.h>
   10091 #ifndef PERF_ATTR_SIZE_VER5
   10092 # error
   10093 #endif
   10094 
   10095 _ACEOF
   10096 if ac_fn_c_try_cpp "$LINENO"; then :
   10097   perf_event=yes
   10098 else
   10099   perf_event=no
   10100 fi
   10101 rm -f conftest.err conftest.$ac_ext
   10102   if test "$perf_event" != yes; then
   10103     if test "$with_intel_pt" = yes; then
   10104       as_fn_error "linux/perf_event.h missing or too old" "$LINENO" 5
   10105     else
   10106       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
   10107 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
   10108     fi
   10109   fi
   10110 
   10111 
   10112 
   10113 
   10114 
   10115 
   10116 
   10117 
   10118 
   10119     use_additional=yes
   10120 
   10121   acl_save_prefix="$prefix"
   10122   prefix="$acl_final_prefix"
   10123   acl_save_exec_prefix="$exec_prefix"
   10124   exec_prefix="$acl_final_exec_prefix"
   10125 
   10126     eval additional_includedir=\"$includedir\"
   10127     eval additional_libdir=\"$libdir\"
   10128 
   10129   exec_prefix="$acl_save_exec_prefix"
   10130   prefix="$acl_save_prefix"
   10131 
   10132 
   10133 # Check whether --with-libipt-prefix was given.
   10134 if test "${with_libipt_prefix+set}" = set; then :
   10135   withval=$with_libipt_prefix;
   10136     if test "X$withval" = "Xno"; then
   10137       use_additional=no
   10138     else
   10139       if test "X$withval" = "X"; then
   10140 
   10141   acl_save_prefix="$prefix"
   10142   prefix="$acl_final_prefix"
   10143   acl_save_exec_prefix="$exec_prefix"
   10144   exec_prefix="$acl_final_exec_prefix"
   10145 
   10146           eval additional_includedir=\"$includedir\"
   10147           eval additional_libdir=\"$libdir\"
   10148 
   10149   exec_prefix="$acl_save_exec_prefix"
   10150   prefix="$acl_save_prefix"
   10151 
   10152       else
   10153         additional_includedir="$withval/include"
   10154         additional_libdir="$withval/lib"
   10155       fi
   10156     fi
   10157 
   10158 fi
   10159 
   10160       LIBIPT=
   10161   LTLIBIPT=
   10162   INCIPT=
   10163   rpathdirs=
   10164   ltrpathdirs=
   10165   names_already_handled=
   10166   names_next_round='ipt '
   10167   while test -n "$names_next_round"; do
   10168     names_this_round="$names_next_round"
   10169     names_next_round=
   10170     for name in $names_this_round; do
   10171       already_handled=
   10172       for n in $names_already_handled; do
   10173         if test "$n" = "$name"; then
   10174           already_handled=yes
   10175           break
   10176         fi
   10177       done
   10178       if test -z "$already_handled"; then
   10179         names_already_handled="$names_already_handled $name"
   10180                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   10181         eval value=\"\$HAVE_LIB$uppername\"
   10182         if test -n "$value"; then
   10183           if test "$value" = yes; then
   10184             eval value=\"\$LIB$uppername\"
   10185             test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
   10186             eval value=\"\$LTLIB$uppername\"
   10187             test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
   10188           else
   10189                                     :
   10190           fi
   10191         else
   10192                               found_dir=
   10193           found_la=
   10194           found_so=
   10195           found_a=
   10196           if test $use_additional = yes; then
   10197             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   10198               found_dir="$additional_libdir"
   10199               found_so="$additional_libdir/lib$name.$shlibext"
   10200               if test -f "$additional_libdir/lib$name.la"; then
   10201                 found_la="$additional_libdir/lib$name.la"
   10202               fi
   10203             else
   10204               if test -f "$additional_libdir/lib$name.$libext"; then
   10205                 found_dir="$additional_libdir"
   10206                 found_a="$additional_libdir/lib$name.$libext"
   10207                 if test -f "$additional_libdir/lib$name.la"; then
   10208                   found_la="$additional_libdir/lib$name.la"
   10209                 fi
   10210               fi
   10211             fi
   10212           fi
   10213           if test "X$found_dir" = "X"; then
   10214             for x in $LDFLAGS $LTLIBIPT; do
   10215 
   10216   acl_save_prefix="$prefix"
   10217   prefix="$acl_final_prefix"
   10218   acl_save_exec_prefix="$exec_prefix"
   10219   exec_prefix="$acl_final_exec_prefix"
   10220   eval x=\"$x\"
   10221   exec_prefix="$acl_save_exec_prefix"
   10222   prefix="$acl_save_prefix"
   10223 
   10224               case "$x" in
   10225                 -L*)
   10226                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   10227                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   10228                     found_dir="$dir"
   10229                     found_so="$dir/lib$name.$shlibext"
   10230                     if test -f "$dir/lib$name.la"; then
   10231                       found_la="$dir/lib$name.la"
   10232                     fi
   10233                   else
   10234                     if test -f "$dir/lib$name.$libext"; then
   10235                       found_dir="$dir"
   10236                       found_a="$dir/lib$name.$libext"
   10237                       if test -f "$dir/lib$name.la"; then
   10238                         found_la="$dir/lib$name.la"
   10239                       fi
   10240                     fi
   10241                   fi
   10242                   ;;
   10243               esac
   10244               if test "X$found_dir" != "X"; then
   10245                 break
   10246               fi
   10247             done
   10248           fi
   10249           if test "X$found_dir" != "X"; then
   10250                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
   10251             if test "X$found_so" != "X"; then
   10252                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   10253                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   10254               else
   10255                                                                                 haveit=
   10256                 for x in $ltrpathdirs; do
   10257                   if test "X$x" = "X$found_dir"; then
   10258                     haveit=yes
   10259                     break
   10260                   fi
   10261                 done
   10262                 if test -z "$haveit"; then
   10263                   ltrpathdirs="$ltrpathdirs $found_dir"
   10264                 fi
   10265                                 if test "$hardcode_direct" = yes; then
   10266                                                       LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   10267                 else
   10268                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   10269                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   10270                                                             haveit=
   10271                     for x in $rpathdirs; do
   10272                       if test "X$x" = "X$found_dir"; then
   10273                         haveit=yes
   10274                         break
   10275                       fi
   10276                     done
   10277                     if test -z "$haveit"; then
   10278                       rpathdirs="$rpathdirs $found_dir"
   10279                     fi
   10280                   else
   10281                                                                                 haveit=
   10282                     for x in $LDFLAGS $LIBIPT; do
   10283 
   10284   acl_save_prefix="$prefix"
   10285   prefix="$acl_final_prefix"
   10286   acl_save_exec_prefix="$exec_prefix"
   10287   exec_prefix="$acl_final_exec_prefix"
   10288   eval x=\"$x\"
   10289   exec_prefix="$acl_save_exec_prefix"
   10290   prefix="$acl_save_prefix"
   10291 
   10292                       if test "X$x" = "X-L$found_dir"; then
   10293                         haveit=yes
   10294                         break
   10295                       fi
   10296                     done
   10297                     if test -z "$haveit"; then
   10298                       LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
   10299                     fi
   10300                     if test "$hardcode_minus_L" != no; then
   10301                                                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   10302                     else
   10303                                                                                                                                                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   10304                     fi
   10305                   fi
   10306                 fi
   10307               fi
   10308             else
   10309               if test "X$found_a" != "X"; then
   10310                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
   10311               else
   10312                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
   10313               fi
   10314             fi
   10315                         additional_includedir=
   10316             case "$found_dir" in
   10317               */lib | */lib/)
   10318                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   10319                 additional_includedir="$basedir/include"
   10320                 ;;
   10321             esac
   10322             if test "X$additional_includedir" != "X"; then
   10323                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   10324                 haveit=
   10325                 if test "X$additional_includedir" = "X/usr/local/include"; then
   10326                   if test -n "$GCC"; then
   10327                     case $host_os in
   10328                       linux*) haveit=yes;;
   10329                     esac
   10330                   fi
   10331                 fi
   10332                 if test -z "$haveit"; then
   10333                   for x in $CPPFLAGS $INCIPT; do
   10334 
   10335   acl_save_prefix="$prefix"
   10336   prefix="$acl_final_prefix"
   10337   acl_save_exec_prefix="$exec_prefix"
   10338   exec_prefix="$acl_final_exec_prefix"
   10339   eval x=\"$x\"
   10340   exec_prefix="$acl_save_exec_prefix"
   10341   prefix="$acl_save_prefix"
   10342 
   10343                     if test "X$x" = "X-I$additional_includedir"; then
   10344                       haveit=yes
   10345                       break
   10346                     fi
   10347                   done
   10348                   if test -z "$haveit"; then
   10349                     if test -d "$additional_includedir"; then
   10350                                             INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
   10351                     fi
   10352                   fi
   10353                 fi
   10354               fi
   10355             fi
   10356                         if test -n "$found_la"; then
   10357                                                         save_libdir="$libdir"
   10358               case "$found_la" in
   10359                 */* | *\\*) . "$found_la" ;;
   10360                 *) . "./$found_la" ;;
   10361               esac
   10362               libdir="$save_libdir"
   10363                             for dep in $dependency_libs; do
   10364                 case "$dep" in
   10365                   -L*)
   10366                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   10367                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   10368                       haveit=
   10369                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   10370                         if test -n "$GCC"; then
   10371                           case $host_os in
   10372                             linux*) haveit=yes;;
   10373                           esac
   10374                         fi
   10375                       fi
   10376                       if test -z "$haveit"; then
   10377                         haveit=
   10378                         for x in $LDFLAGS $LIBIPT; do
   10379 
   10380   acl_save_prefix="$prefix"
   10381   prefix="$acl_final_prefix"
   10382   acl_save_exec_prefix="$exec_prefix"
   10383   exec_prefix="$acl_final_exec_prefix"
   10384   eval x=\"$x\"
   10385   exec_prefix="$acl_save_exec_prefix"
   10386   prefix="$acl_save_prefix"
   10387 
   10388                           if test "X$x" = "X-L$additional_libdir"; then
   10389                             haveit=yes
   10390                             break
   10391                           fi
   10392                         done
   10393                         if test -z "$haveit"; then
   10394                           if test -d "$additional_libdir"; then
   10395                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
   10396                           fi
   10397                         fi
   10398                         haveit=
   10399                         for x in $LDFLAGS $LTLIBIPT; do
   10400 
   10401   acl_save_prefix="$prefix"
   10402   prefix="$acl_final_prefix"
   10403   acl_save_exec_prefix="$exec_prefix"
   10404   exec_prefix="$acl_final_exec_prefix"
   10405   eval x=\"$x\"
   10406   exec_prefix="$acl_save_exec_prefix"
   10407   prefix="$acl_save_prefix"
   10408 
   10409                           if test "X$x" = "X-L$additional_libdir"; then
   10410                             haveit=yes
   10411                             break
   10412                           fi
   10413                         done
   10414                         if test -z "$haveit"; then
   10415                           if test -d "$additional_libdir"; then
   10416                                                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
   10417                           fi
   10418                         fi
   10419                       fi
   10420                     fi
   10421                     ;;
   10422                   -R*)
   10423                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   10424                     if test "$enable_rpath" != no; then
   10425                                                                   haveit=
   10426                       for x in $rpathdirs; do
   10427                         if test "X$x" = "X$dir"; then
   10428                           haveit=yes
   10429                           break
   10430                         fi
   10431                       done
   10432                       if test -z "$haveit"; then
   10433                         rpathdirs="$rpathdirs $dir"
   10434                       fi
   10435                                                                   haveit=
   10436                       for x in $ltrpathdirs; do
   10437                         if test "X$x" = "X$dir"; then
   10438                           haveit=yes
   10439                           break
   10440                         fi
   10441                       done
   10442                       if test -z "$haveit"; then
   10443                         ltrpathdirs="$ltrpathdirs $dir"
   10444                       fi
   10445                     fi
   10446                     ;;
   10447                   -l*)
   10448                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   10449                     ;;
   10450                   *.la)
   10451                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   10452                     ;;
   10453                   *)
   10454                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
   10455                     LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
   10456                     ;;
   10457                 esac
   10458               done
   10459             fi
   10460           else
   10461                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   10462             LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
   10463           fi
   10464         fi
   10465       fi
   10466     done
   10467   done
   10468   if test "X$rpathdirs" != "X"; then
   10469     if test -n "$hardcode_libdir_separator"; then
   10470                         alldirs=
   10471       for found_dir in $rpathdirs; do
   10472         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   10473       done
   10474             acl_save_libdir="$libdir"
   10475       libdir="$alldirs"
   10476       eval flag=\"$hardcode_libdir_flag_spec\"
   10477       libdir="$acl_save_libdir"
   10478       LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   10479     else
   10480             for found_dir in $rpathdirs; do
   10481         acl_save_libdir="$libdir"
   10482         libdir="$found_dir"
   10483         eval flag=\"$hardcode_libdir_flag_spec\"
   10484         libdir="$acl_save_libdir"
   10485         LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   10486       done
   10487     fi
   10488   fi
   10489   if test "X$ltrpathdirs" != "X"; then
   10490             for found_dir in $ltrpathdirs; do
   10491       LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
   10492     done
   10493   fi
   10494 
   10495 
   10496         ac_save_CPPFLAGS="$CPPFLAGS"
   10497 
   10498   for element in $INCIPT; do
   10499     haveit=
   10500     for x in $CPPFLAGS; do
   10501 
   10502   acl_save_prefix="$prefix"
   10503   prefix="$acl_final_prefix"
   10504   acl_save_exec_prefix="$exec_prefix"
   10505   exec_prefix="$acl_final_exec_prefix"
   10506   eval x=\"$x\"
   10507   exec_prefix="$acl_save_exec_prefix"
   10508   prefix="$acl_save_prefix"
   10509 
   10510       if test "X$x" = "X$element"; then
   10511         haveit=yes
   10512         break
   10513       fi
   10514     done
   10515     if test -z "$haveit"; then
   10516       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   10517     fi
   10518   done
   10519 
   10520 
   10521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
   10522 $as_echo_n "checking for libipt... " >&6; }
   10523 if test "${ac_cv_libipt+set}" = set; then :
   10524   $as_echo_n "(cached) " >&6
   10525 else
   10526 
   10527     ac_save_LIBS="$LIBS"
   10528     LIBS="$LIBS $LIBIPT"
   10529     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10530 /* end confdefs.h.  */
   10531 #include "intel-pt.h"
   10532 int
   10533 main ()
   10534 {
   10535 pt_insn_alloc_decoder (0);
   10536   ;
   10537   return 0;
   10538 }
   10539 _ACEOF
   10540 if ac_fn_c_try_link "$LINENO"; then :
   10541   ac_cv_libipt=yes
   10542 else
   10543   ac_cv_libipt=no
   10544 fi
   10545 rm -f core conftest.err conftest.$ac_objext \
   10546     conftest$ac_exeext conftest.$ac_ext
   10547     LIBS="$ac_save_LIBS"
   10548 
   10549 fi
   10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
   10551 $as_echo "$ac_cv_libipt" >&6; }
   10552   if test "$ac_cv_libipt" = yes; then
   10553     HAVE_LIBIPT=yes
   10554 
   10555 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
   10556 
   10557     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
   10558 $as_echo_n "checking how to link with libipt... " >&6; }
   10559     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
   10560 $as_echo "$LIBIPT" >&6; }
   10561   else
   10562     HAVE_LIBIPT=no
   10563             CPPFLAGS="$ac_save_CPPFLAGS"
   10564     LIBIPT=
   10565     LTLIBIPT=
   10566   fi
   10567 
   10568 
   10569 
   10570 
   10571 
   10572 
   10573   if test "$HAVE_LIBIPT" != yes; then
   10574     if test "$with_intel_pt" = yes; then
   10575       as_fn_error "libipt is missing or unusable" "$LINENO" 5
   10576     else
   10577       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
   10578 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
   10579     fi
   10580   fi
   10581 fi
   10582 
   10583 # ------------------------- #
   10584 # Checks for header files.  #
   10585 # ------------------------- #
   10586 
   10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   10588 $as_echo_n "checking for ANSI C header files... " >&6; }
   10589 if test "${ac_cv_header_stdc+set}" = set; then :
   10590   $as_echo_n "(cached) " >&6
   10591 else
   10592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10593 /* end confdefs.h.  */
   10594 #include <stdlib.h>
   10595 #include <stdarg.h>
   10596 #include <string.h>
   10597 #include <float.h>
   10598 
   10599 int
   10600 main ()
   10601 {
   10602 
   10603   ;
   10604   return 0;
   10605 }
   10606 _ACEOF
   10607 if ac_fn_c_try_compile "$LINENO"; then :
   10608   ac_cv_header_stdc=yes
   10609 else
   10610   ac_cv_header_stdc=no
   10611 fi
   10612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10613 
   10614 if test $ac_cv_header_stdc = yes; then
   10615   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   10616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10617 /* end confdefs.h.  */
   10618 #include <string.h>
   10619 
   10620 _ACEOF
   10621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10622   $EGREP "memchr" >/dev/null 2>&1; then :
   10623 
   10624 else
   10625   ac_cv_header_stdc=no
   10626 fi
   10627 rm -f conftest*
   10628 
   10629 fi
   10630 
   10631 if test $ac_cv_header_stdc = yes; then
   10632   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   10633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10634 /* end confdefs.h.  */
   10635 #include <stdlib.h>
   10636 
   10637 _ACEOF
   10638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10639   $EGREP "free" >/dev/null 2>&1; then :
   10640 
   10641 else
   10642   ac_cv_header_stdc=no
   10643 fi
   10644 rm -f conftest*
   10645 
   10646 fi
   10647 
   10648 if test $ac_cv_header_stdc = yes; then
   10649   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   10650   if test "$cross_compiling" = yes; then :
   10651   :
   10652 else
   10653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10654 /* end confdefs.h.  */
   10655 #include <ctype.h>
   10656 #include <stdlib.h>
   10657 #if ((' ' & 0x0FF) == 0x020)
   10658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   10659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   10660 #else
   10661 # define ISLOWER(c) \
   10662 		   (('a' <= (c) && (c) <= 'i') \
   10663 		     || ('j' <= (c) && (c) <= 'r') \
   10664 		     || ('s' <= (c) && (c) <= 'z'))
   10665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   10666 #endif
   10667 
   10668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   10669 int
   10670 main ()
   10671 {
   10672   int i;
   10673   for (i = 0; i < 256; i++)
   10674     if (XOR (islower (i), ISLOWER (i))
   10675 	|| toupper (i) != TOUPPER (i))
   10676       return 2;
   10677   return 0;
   10678 }
   10679 _ACEOF
   10680 if ac_fn_c_try_run "$LINENO"; then :
   10681 
   10682 else
   10683   ac_cv_header_stdc=no
   10684 fi
   10685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10686   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10687 fi
   10688 
   10689 fi
   10690 fi
   10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   10692 $as_echo "$ac_cv_header_stdc" >&6; }
   10693 if test $ac_cv_header_stdc = yes; then
   10694 
   10695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   10696 
   10697 fi
   10698 
   10699 # elf_hp.h is for HP/UX 64-bit shared library support.
   10700 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
   10701                   thread_db.h \
   10702 		  sys/fault.h \
   10703 		  sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
   10704 		  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
   10705 		  sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
   10706 		  termios.h termio.h \
   10707 		  sgtty.h elf_hp.h \
   10708 		  dlfcn.h
   10709 do :
   10710   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10711 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   10712 eval as_val=\$$as_ac_Header
   10713    if test "x$as_val" = x""yes; then :
   10714   cat >>confdefs.h <<_ACEOF
   10715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10716 _ACEOF
   10717 
   10718 fi
   10719 
   10720 done
   10721 
   10722 for ac_header in sys/proc.h
   10723 do :
   10724   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
   10725 # include <sys/param.h>
   10726 #endif
   10727 
   10728 "
   10729 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
   10730   cat >>confdefs.h <<_ACEOF
   10731 #define HAVE_SYS_PROC_H 1
   10732 _ACEOF
   10733 
   10734 fi
   10735 
   10736 done
   10737 
   10738 for ac_header in sys/user.h
   10739 do :
   10740   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
   10741 # include <sys/param.h>
   10742 #endif
   10743 
   10744 "
   10745 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
   10746   cat >>confdefs.h <<_ACEOF
   10747 #define HAVE_SYS_USER_H 1
   10748 _ACEOF
   10749 
   10750 fi
   10751 
   10752 done
   10753 
   10754 
   10755 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
   10756 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
   10757 # think that we don't have <curses.h> if we're using GCC.
   10758 case $host_os in
   10759   solaris2.[789])
   10760     if test "$GCC" = yes; then
   10761 
   10762 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
   10763 
   10764     fi ;;
   10765 esac
   10766 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
   10767 do :
   10768   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10769 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   10770 eval as_val=\$$as_ac_Header
   10771    if test "x$as_val" = x""yes; then :
   10772   cat >>confdefs.h <<_ACEOF
   10773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10774 _ACEOF
   10775 
   10776 fi
   10777 
   10778 done
   10779 
   10780 for ac_header in term.h
   10781 do :
   10782   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
   10783 # include <curses.h>
   10784 #endif
   10785 
   10786 "
   10787 if test "x$ac_cv_header_term_h" = x""yes; then :
   10788   cat >>confdefs.h <<_ACEOF
   10789 #define HAVE_TERM_H 1
   10790 _ACEOF
   10791 
   10792 fi
   10793 
   10794 done
   10795 
   10796 
   10797 # ------------------------- #
   10798 # Checks for declarations.  #
   10799 # ------------------------- #
   10800 
   10801 
   10802   # Check for presence and size of long long.
   10803   ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   10804 if test "x$ac_cv_type_long_long" = x""yes; then :
   10805 
   10806 cat >>confdefs.h <<_ACEOF
   10807 #define HAVE_LONG_LONG 1
   10808 _ACEOF
   10809 
   10810 # The cast to long int works around a bug in the HP C Compiler
   10811 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   10812 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   10813 # This bug is HP SR number 8606223364.
   10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   10815 $as_echo_n "checking size of long long... " >&6; }
   10816 if test "${ac_cv_sizeof_long_long+set}" = set; then :
   10817   $as_echo_n "(cached) " >&6
   10818 else
   10819   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   10820 
   10821 else
   10822   if test "$ac_cv_type_long_long" = yes; then
   10823      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   10824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   10825 { as_fn_set_status 77
   10826 as_fn_error "cannot compute sizeof (long long)
   10827 See \`config.log' for more details." "$LINENO" 5; }; }
   10828    else
   10829      ac_cv_sizeof_long_long=0
   10830    fi
   10831 fi
   10832 
   10833 fi
   10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   10835 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   10836 
   10837 
   10838 
   10839 cat >>confdefs.h <<_ACEOF
   10840 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   10841 _ACEOF
   10842 
   10843 
   10844 fi
   10845 
   10846 
   10847   ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
   10848 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
   10849   ac_have_decl=1
   10850 else
   10851   ac_have_decl=0
   10852 fi
   10853 
   10854 cat >>confdefs.h <<_ACEOF
   10855 #define HAVE_DECL_BASENAME $ac_have_decl
   10856 _ACEOF
   10857 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
   10858 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
   10859   ac_have_decl=1
   10860 else
   10861   ac_have_decl=0
   10862 fi
   10863 
   10864 cat >>confdefs.h <<_ACEOF
   10865 #define HAVE_DECL_FFS $ac_have_decl
   10866 _ACEOF
   10867 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
   10868 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
   10869   ac_have_decl=1
   10870 else
   10871   ac_have_decl=0
   10872 fi
   10873 
   10874 cat >>confdefs.h <<_ACEOF
   10875 #define HAVE_DECL_ASPRINTF $ac_have_decl
   10876 _ACEOF
   10877 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
   10878 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
   10879   ac_have_decl=1
   10880 else
   10881   ac_have_decl=0
   10882 fi
   10883 
   10884 cat >>confdefs.h <<_ACEOF
   10885 #define HAVE_DECL_VASPRINTF $ac_have_decl
   10886 _ACEOF
   10887 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   10888 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
   10889   ac_have_decl=1
   10890 else
   10891   ac_have_decl=0
   10892 fi
   10893 
   10894 cat >>confdefs.h <<_ACEOF
   10895 #define HAVE_DECL_SNPRINTF $ac_have_decl
   10896 _ACEOF
   10897 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
   10898 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
   10899   ac_have_decl=1
   10900 else
   10901   ac_have_decl=0
   10902 fi
   10903 
   10904 cat >>confdefs.h <<_ACEOF
   10905 #define HAVE_DECL_VSNPRINTF $ac_have_decl
   10906 _ACEOF
   10907 
   10908   ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
   10909 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
   10910   ac_have_decl=1
   10911 else
   10912   ac_have_decl=0
   10913 fi
   10914 
   10915 cat >>confdefs.h <<_ACEOF
   10916 #define HAVE_DECL_STRTOL $ac_have_decl
   10917 _ACEOF
   10918 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
   10919 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
   10920   ac_have_decl=1
   10921 else
   10922   ac_have_decl=0
   10923 fi
   10924 
   10925 cat >>confdefs.h <<_ACEOF
   10926 #define HAVE_DECL_STRTOUL $ac_have_decl
   10927 _ACEOF
   10928 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
   10929 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
   10930   ac_have_decl=1
   10931 else
   10932   ac_have_decl=0
   10933 fi
   10934 
   10935 cat >>confdefs.h <<_ACEOF
   10936 #define HAVE_DECL_STRTOLL $ac_have_decl
   10937 _ACEOF
   10938 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
   10939 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
   10940   ac_have_decl=1
   10941 else
   10942   ac_have_decl=0
   10943 fi
   10944 
   10945 cat >>confdefs.h <<_ACEOF
   10946 #define HAVE_DECL_STRTOULL $ac_have_decl
   10947 _ACEOF
   10948 
   10949   ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
   10950 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
   10951   ac_have_decl=1
   10952 else
   10953   ac_have_decl=0
   10954 fi
   10955 
   10956 cat >>confdefs.h <<_ACEOF
   10957 #define HAVE_DECL_STRVERSCMP $ac_have_decl
   10958 _ACEOF
   10959 
   10960 
   10961 
   10962 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
   10963 if test "x$ac_cv_have_decl_free" = x""yes; then :
   10964   ac_have_decl=1
   10965 else
   10966   ac_have_decl=0
   10967 fi
   10968 
   10969 cat >>confdefs.h <<_ACEOF
   10970 #define HAVE_DECL_FREE $ac_have_decl
   10971 _ACEOF
   10972 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
   10973 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
   10974   ac_have_decl=1
   10975 else
   10976   ac_have_decl=0
   10977 fi
   10978 
   10979 cat >>confdefs.h <<_ACEOF
   10980 #define HAVE_DECL_MALLOC $ac_have_decl
   10981 _ACEOF
   10982 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
   10983 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
   10984   ac_have_decl=1
   10985 else
   10986   ac_have_decl=0
   10987 fi
   10988 
   10989 cat >>confdefs.h <<_ACEOF
   10990 #define HAVE_DECL_REALLOC $ac_have_decl
   10991 _ACEOF
   10992 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   10993 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
   10994   ac_have_decl=1
   10995 else
   10996   ac_have_decl=0
   10997 fi
   10998 
   10999 cat >>confdefs.h <<_ACEOF
   11000 #define HAVE_DECL_SNPRINTF $ac_have_decl
   11001 _ACEOF
   11002 
   11003 
   11004   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
   11005 $as_echo_n "checking for LC_MESSAGES... " >&6; }
   11006 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
   11007   $as_echo_n "(cached) " >&6
   11008 else
   11009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11010 /* end confdefs.h.  */
   11011 #include <locale.h>
   11012 int
   11013 main ()
   11014 {
   11015 return LC_MESSAGES
   11016   ;
   11017   return 0;
   11018 }
   11019 _ACEOF
   11020 if ac_fn_c_try_link "$LINENO"; then :
   11021   am_cv_val_LC_MESSAGES=yes
   11022 else
   11023   am_cv_val_LC_MESSAGES=no
   11024 fi
   11025 rm -f core conftest.err conftest.$ac_objext \
   11026     conftest$ac_exeext conftest.$ac_ext
   11027 fi
   11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
   11029 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
   11030   if test $am_cv_val_LC_MESSAGES = yes; then
   11031 
   11032 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
   11033 
   11034   fi
   11035 
   11036 
   11037 # ----------------------- #
   11038 # Checks for structures.  #
   11039 # ----------------------- #
   11040 
   11041 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
   11042 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
   11043 
   11044 cat >>confdefs.h <<_ACEOF
   11045 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
   11046 _ACEOF
   11047 
   11048 
   11049 fi
   11050 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   11051 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
   11052 
   11053 cat >>confdefs.h <<_ACEOF
   11054 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   11055 _ACEOF
   11056 
   11057 
   11058 fi
   11059 
   11060 
   11061 # ------------------ #
   11062 # Checks for types.  #
   11063 # ------------------ #
   11064 
   11065 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
   11066 #include <sys/socket.h>
   11067 
   11068 "
   11069 if test "x$ac_cv_type_socklen_t" = x""yes; then :
   11070 
   11071 cat >>confdefs.h <<_ACEOF
   11072 #define HAVE_SOCKLEN_T 1
   11073 _ACEOF
   11074 
   11075 
   11076 fi
   11077 
   11078 
   11079 # ------------------------------------- #
   11080 # Checks for compiler characteristics.  #
   11081 # ------------------------------------- #
   11082 
   11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   11084 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   11085 if test "${ac_cv_c_const+set}" = set; then :
   11086   $as_echo_n "(cached) " >&6
   11087 else
   11088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11089 /* end confdefs.h.  */
   11090 
   11091 int
   11092 main ()
   11093 {
   11094 /* FIXME: Include the comments suggested by Paul. */
   11095 #ifndef __cplusplus
   11096   /* Ultrix mips cc rejects this.  */
   11097   typedef int charset[2];
   11098   const charset cs;
   11099   /* SunOS 4.1.1 cc rejects this.  */
   11100   char const *const *pcpcc;
   11101   char **ppc;
   11102   /* NEC SVR4.0.2 mips cc rejects this.  */
   11103   struct point {int x, y;};
   11104   static struct point const zero = {0,0};
   11105   /* AIX XL C 1.02.0.0 rejects this.
   11106      It does not let you subtract one const X* pointer from another in
   11107      an arm of an if-expression whose if-part is not a constant
   11108      expression */
   11109   const char *g = "string";
   11110   pcpcc = &g + (g ? g-g : 0);
   11111   /* HPUX 7.0 cc rejects these. */
   11112   ++pcpcc;
   11113   ppc = (char**) pcpcc;
   11114   pcpcc = (char const *const *) ppc;
   11115   { /* SCO 3.2v4 cc rejects this.  */
   11116     char *t;
   11117     char const *s = 0 ? (char *) 0 : (char const *) 0;
   11118 
   11119     *t++ = 0;
   11120     if (s) return 0;
   11121   }
   11122   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   11123     int x[] = {25, 17};
   11124     const int *foo = &x[0];
   11125     ++foo;
   11126   }
   11127   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   11128     typedef const int *iptr;
   11129     iptr p = 0;
   11130     ++p;
   11131   }
   11132   { /* AIX XL C 1.02.0.0 rejects this saying
   11133        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   11134     struct s { int j; const int *ap[3]; };
   11135     struct s *b; b->j = 5;
   11136   }
   11137   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   11138     const int foo = 10;
   11139     if (!foo) return 0;
   11140   }
   11141   return !cs[0] && !zero.x;
   11142 #endif
   11143 
   11144   ;
   11145   return 0;
   11146 }
   11147 _ACEOF
   11148 if ac_fn_c_try_compile "$LINENO"; then :
   11149   ac_cv_c_const=yes
   11150 else
   11151   ac_cv_c_const=no
   11152 fi
   11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11154 fi
   11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   11156 $as_echo "$ac_cv_c_const" >&6; }
   11157 if test $ac_cv_c_const = no; then
   11158 
   11159 $as_echo "#define const /**/" >>confdefs.h
   11160 
   11161 fi
   11162 
   11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   11164 $as_echo_n "checking for inline... " >&6; }
   11165 if test "${ac_cv_c_inline+set}" = set; then :
   11166   $as_echo_n "(cached) " >&6
   11167 else
   11168   ac_cv_c_inline=no
   11169 for ac_kw in inline __inline__ __inline; do
   11170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11171 /* end confdefs.h.  */
   11172 #ifndef __cplusplus
   11173 typedef int foo_t;
   11174 static $ac_kw foo_t static_foo () {return 0; }
   11175 $ac_kw foo_t foo () {return 0; }
   11176 #endif
   11177 
   11178 _ACEOF
   11179 if ac_fn_c_try_compile "$LINENO"; then :
   11180   ac_cv_c_inline=$ac_kw
   11181 fi
   11182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11183   test "$ac_cv_c_inline" != no && break
   11184 done
   11185 
   11186 fi
   11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   11188 $as_echo "$ac_cv_c_inline" >&6; }
   11189 
   11190 case $ac_cv_c_inline in
   11191   inline | yes) ;;
   11192   *)
   11193     case $ac_cv_c_inline in
   11194       no) ac_val=;;
   11195       *) ac_val=$ac_cv_c_inline;;
   11196     esac
   11197     cat >>confdefs.h <<_ACEOF
   11198 #ifndef __cplusplus
   11199 #define inline $ac_val
   11200 #endif
   11201 _ACEOF
   11202     ;;
   11203 esac
   11204 
   11205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   11206 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   11207 if test "${ac_cv_c_bigendian+set}" = set; then :
   11208   $as_echo_n "(cached) " >&6
   11209 else
   11210   ac_cv_c_bigendian=unknown
   11211     # See if we're dealing with a universal compiler.
   11212     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11213 /* end confdefs.h.  */
   11214 #ifndef __APPLE_CC__
   11215 	       not a universal capable compiler
   11216 	     #endif
   11217 	     typedef int dummy;
   11218 
   11219 _ACEOF
   11220 if ac_fn_c_try_compile "$LINENO"; then :
   11221 
   11222 	# Check for potential -arch flags.  It is not universal unless
   11223 	# there are at least two -arch flags with different values.
   11224 	ac_arch=
   11225 	ac_prev=
   11226 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   11227 	 if test -n "$ac_prev"; then
   11228 	   case $ac_word in
   11229 	     i?86 | x86_64 | ppc | ppc64)
   11230 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   11231 		 ac_arch=$ac_word
   11232 	       else
   11233 		 ac_cv_c_bigendian=universal
   11234 		 break
   11235 	       fi
   11236 	       ;;
   11237 	   esac
   11238 	   ac_prev=
   11239 	 elif test "x$ac_word" = "x-arch"; then
   11240 	   ac_prev=arch
   11241 	 fi
   11242        done
   11243 fi
   11244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11245     if test $ac_cv_c_bigendian = unknown; then
   11246       # See if sys/param.h defines the BYTE_ORDER macro.
   11247       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11248 /* end confdefs.h.  */
   11249 #include <sys/types.h>
   11250 	     #include <sys/param.h>
   11251 
   11252 int
   11253 main ()
   11254 {
   11255 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   11256 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   11257 		     && LITTLE_ENDIAN)
   11258 	      bogus endian macros
   11259 	     #endif
   11260 
   11261   ;
   11262   return 0;
   11263 }
   11264 _ACEOF
   11265 if ac_fn_c_try_compile "$LINENO"; then :
   11266   # It does; now see whether it defined to BIG_ENDIAN or not.
   11267 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11268 /* end confdefs.h.  */
   11269 #include <sys/types.h>
   11270 		#include <sys/param.h>
   11271 
   11272 int
   11273 main ()
   11274 {
   11275 #if BYTE_ORDER != BIG_ENDIAN
   11276 		 not big endian
   11277 		#endif
   11278 
   11279   ;
   11280   return 0;
   11281 }
   11282 _ACEOF
   11283 if ac_fn_c_try_compile "$LINENO"; then :
   11284   ac_cv_c_bigendian=yes
   11285 else
   11286   ac_cv_c_bigendian=no
   11287 fi
   11288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11289 fi
   11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11291     fi
   11292     if test $ac_cv_c_bigendian = unknown; then
   11293       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   11294       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11295 /* end confdefs.h.  */
   11296 #include <limits.h>
   11297 
   11298 int
   11299 main ()
   11300 {
   11301 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   11302 	      bogus endian macros
   11303 	     #endif
   11304 
   11305   ;
   11306   return 0;
   11307 }
   11308 _ACEOF
   11309 if ac_fn_c_try_compile "$LINENO"; then :
   11310   # It does; now see whether it defined to _BIG_ENDIAN or not.
   11311 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11312 /* end confdefs.h.  */
   11313 #include <limits.h>
   11314 
   11315 int
   11316 main ()
   11317 {
   11318 #ifndef _BIG_ENDIAN
   11319 		 not big endian
   11320 		#endif
   11321 
   11322   ;
   11323   return 0;
   11324 }
   11325 _ACEOF
   11326 if ac_fn_c_try_compile "$LINENO"; then :
   11327   ac_cv_c_bigendian=yes
   11328 else
   11329   ac_cv_c_bigendian=no
   11330 fi
   11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11332 fi
   11333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11334     fi
   11335     if test $ac_cv_c_bigendian = unknown; then
   11336       # Compile a test program.
   11337       if test "$cross_compiling" = yes; then :
   11338   # Try to guess by grepping values from an object file.
   11339 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11340 /* end confdefs.h.  */
   11341 short int ascii_mm[] =
   11342 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   11343 		short int ascii_ii[] =
   11344 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   11345 		int use_ascii (int i) {
   11346 		  return ascii_mm[i] + ascii_ii[i];
   11347 		}
   11348 		short int ebcdic_ii[] =
   11349 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   11350 		short int ebcdic_mm[] =
   11351 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   11352 		int use_ebcdic (int i) {
   11353 		  return ebcdic_mm[i] + ebcdic_ii[i];
   11354 		}
   11355 		extern int foo;
   11356 
   11357 int
   11358 main ()
   11359 {
   11360 return use_ascii (foo) == use_ebcdic (foo);
   11361   ;
   11362   return 0;
   11363 }
   11364 _ACEOF
   11365 if ac_fn_c_try_compile "$LINENO"; then :
   11366   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   11367 	      ac_cv_c_bigendian=yes
   11368 	    fi
   11369 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   11370 	      if test "$ac_cv_c_bigendian" = unknown; then
   11371 		ac_cv_c_bigendian=no
   11372 	      else
   11373 		# finding both strings is unlikely to happen, but who knows?
   11374 		ac_cv_c_bigendian=unknown
   11375 	      fi
   11376 	    fi
   11377 fi
   11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11379 else
   11380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11381 /* end confdefs.h.  */
   11382 $ac_includes_default
   11383 int
   11384 main ()
   11385 {
   11386 
   11387 	     /* Are we little or big endian?  From Harbison&Steele.  */
   11388 	     union
   11389 	     {
   11390 	       long int l;
   11391 	       char c[sizeof (long int)];
   11392 	     } u;
   11393 	     u.l = 1;
   11394 	     return u.c[sizeof (long int) - 1] == 1;
   11395 
   11396   ;
   11397   return 0;
   11398 }
   11399 _ACEOF
   11400 if ac_fn_c_try_run "$LINENO"; then :
   11401   ac_cv_c_bigendian=no
   11402 else
   11403   ac_cv_c_bigendian=yes
   11404 fi
   11405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11406   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11407 fi
   11408 
   11409     fi
   11410 fi
   11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   11412 $as_echo "$ac_cv_c_bigendian" >&6; }
   11413  case $ac_cv_c_bigendian in #(
   11414    yes)
   11415      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   11416 ;; #(
   11417    no)
   11418       ;; #(
   11419    universal)
   11420 
   11421 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   11422 
   11423      ;; #(
   11424    *)
   11425      as_fn_error "unknown endianness
   11426  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   11427  esac
   11428 
   11429 
   11430 # ------------------------------ #
   11431 # Checks for library functions.  #
   11432 # ------------------------------ #
   11433 
   11434 for ac_header in stdlib.h unistd.h
   11435 do :
   11436   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11437 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   11438 eval as_val=\$$as_ac_Header
   11439    if test "x$as_val" = x""yes; then :
   11440   cat >>confdefs.h <<_ACEOF
   11441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11442 _ACEOF
   11443 
   11444 fi
   11445 
   11446 done
   11447 
   11448 for ac_func in getpagesize
   11449 do :
   11450   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   11451 if test "x$ac_cv_func_getpagesize" = x""yes; then :
   11452   cat >>confdefs.h <<_ACEOF
   11453 #define HAVE_GETPAGESIZE 1
   11454 _ACEOF
   11455 
   11456 fi
   11457 done
   11458 
   11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
   11460 $as_echo_n "checking for working mmap... " >&6; }
   11461 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
   11462   $as_echo_n "(cached) " >&6
   11463 else
   11464   if test "$cross_compiling" = yes; then :
   11465   ac_cv_func_mmap_fixed_mapped=no
   11466 else
   11467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11468 /* end confdefs.h.  */
   11469 $ac_includes_default
   11470 /* malloc might have been renamed as rpl_malloc. */
   11471 #undef malloc
   11472 
   11473 /* Thanks to Mike Haertel and Jim Avera for this test.
   11474    Here is a matrix of mmap possibilities:
   11475 	mmap private not fixed
   11476 	mmap private fixed at somewhere currently unmapped
   11477 	mmap private fixed at somewhere already mapped
   11478 	mmap shared not fixed
   11479 	mmap shared fixed at somewhere currently unmapped
   11480 	mmap shared fixed at somewhere already mapped
   11481    For private mappings, we should verify that changes cannot be read()
   11482    back from the file, nor mmap's back from the file at a different
   11483    address.  (There have been systems where private was not correctly
   11484    implemented like the infamous i386 svr4.0, and systems where the
   11485    VM page cache was not coherent with the file system buffer cache
   11486    like early versions of FreeBSD and possibly contemporary NetBSD.)
   11487    For shared mappings, we should conversely verify that changes get
   11488    propagated back to all the places they're supposed to be.
   11489 
   11490    Grep wants private fixed already mapped.
   11491    The main things grep needs to know about mmap are:
   11492    * does it exist and is it safe to write into the mmap'd area
   11493    * how to use it (BSD variants)  */
   11494 
   11495 #include <fcntl.h>
   11496 #include <sys/mman.h>
   11497 
   11498 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
   11499 char *malloc ();
   11500 #endif
   11501 
   11502 /* This mess was copied from the GNU getpagesize.h.  */
   11503 #ifndef HAVE_GETPAGESIZE
   11504 /* Assume that all systems that can run configure have sys/param.h.  */
   11505 # ifndef HAVE_SYS_PARAM_H
   11506 #  define HAVE_SYS_PARAM_H 1
   11507 # endif
   11508 
   11509 # ifdef _SC_PAGESIZE
   11510 #  define getpagesize() sysconf(_SC_PAGESIZE)
   11511 # else /* no _SC_PAGESIZE */
   11512 #  ifdef HAVE_SYS_PARAM_H
   11513 #   include <sys/param.h>
   11514 #   ifdef EXEC_PAGESIZE
   11515 #    define getpagesize() EXEC_PAGESIZE
   11516 #   else /* no EXEC_PAGESIZE */
   11517 #    ifdef NBPG
   11518 #     define getpagesize() NBPG * CLSIZE
   11519 #     ifndef CLSIZE
   11520 #      define CLSIZE 1
   11521 #     endif /* no CLSIZE */
   11522 #    else /* no NBPG */
   11523 #     ifdef NBPC
   11524 #      define getpagesize() NBPC
   11525 #     else /* no NBPC */
   11526 #      ifdef PAGESIZE
   11527 #       define getpagesize() PAGESIZE
   11528 #      endif /* PAGESIZE */
   11529 #     endif /* no NBPC */
   11530 #    endif /* no NBPG */
   11531 #   endif /* no EXEC_PAGESIZE */
   11532 #  else /* no HAVE_SYS_PARAM_H */
   11533 #   define getpagesize() 8192	/* punt totally */
   11534 #  endif /* no HAVE_SYS_PARAM_H */
   11535 # endif /* no _SC_PAGESIZE */
   11536 
   11537 #endif /* no HAVE_GETPAGESIZE */
   11538 
   11539 int
   11540 main ()
   11541 {
   11542   char *data, *data2, *data3;
   11543   int i, pagesize;
   11544   int fd;
   11545 
   11546   pagesize = getpagesize ();
   11547 
   11548   /* First, make a file with some known garbage in it. */
   11549   data = (char *) malloc (pagesize);
   11550   if (!data)
   11551     return 1;
   11552   for (i = 0; i < pagesize; ++i)
   11553     *(data + i) = rand ();
   11554   umask (0);
   11555   fd = creat ("conftest.mmap", 0600);
   11556   if (fd < 0)
   11557     return 1;
   11558   if (write (fd, data, pagesize) != pagesize)
   11559     return 1;
   11560   close (fd);
   11561 
   11562   /* Next, try to mmap the file at a fixed address which already has
   11563      something else allocated at it.  If we can, also make sure that
   11564      we see the same garbage.  */
   11565   fd = open ("conftest.mmap", O_RDWR);
   11566   if (fd < 0)
   11567     return 1;
   11568   data2 = (char *) malloc (2 * pagesize);
   11569   if (!data2)
   11570     return 1;
   11571   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   11572   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   11573 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   11574     return 1;
   11575   for (i = 0; i < pagesize; ++i)
   11576     if (*(data + i) != *(data2 + i))
   11577       return 1;
   11578 
   11579   /* Finally, make sure that changes to the mapped area do not
   11580      percolate back to the file as seen by read().  (This is a bug on
   11581      some variants of i386 svr4.0.)  */
   11582   for (i = 0; i < pagesize; ++i)
   11583     *(data2 + i) = *(data2 + i) + 1;
   11584   data3 = (char *) malloc (pagesize);
   11585   if (!data3)
   11586     return 1;
   11587   if (read (fd, data3, pagesize) != pagesize)
   11588     return 1;
   11589   for (i = 0; i < pagesize; ++i)
   11590     if (*(data + i) != *(data3 + i))
   11591       return 1;
   11592   close (fd);
   11593   return 0;
   11594 }
   11595 _ACEOF
   11596 if ac_fn_c_try_run "$LINENO"; then :
   11597   ac_cv_func_mmap_fixed_mapped=yes
   11598 else
   11599   ac_cv_func_mmap_fixed_mapped=no
   11600 fi
   11601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11602   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11603 fi
   11604 
   11605 fi
   11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
   11607 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
   11608 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   11609 
   11610 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
   11611 
   11612 fi
   11613 rm -f conftest.mmap
   11614 
   11615 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   11616 if test "x$ac_cv_type_pid_t" = x""yes; then :
   11617 
   11618 else
   11619 
   11620 cat >>confdefs.h <<_ACEOF
   11621 #define pid_t int
   11622 _ACEOF
   11623 
   11624 fi
   11625 
   11626 for ac_header in vfork.h
   11627 do :
   11628   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
   11629 if test "x$ac_cv_header_vfork_h" = x""yes; then :
   11630   cat >>confdefs.h <<_ACEOF
   11631 #define HAVE_VFORK_H 1
   11632 _ACEOF
   11633 
   11634 fi
   11635 
   11636 done
   11637 
   11638 for ac_func in fork vfork
   11639 do :
   11640   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11641 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11642 eval as_val=\$$as_ac_var
   11643    if test "x$as_val" = x""yes; then :
   11644   cat >>confdefs.h <<_ACEOF
   11645 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11646 _ACEOF
   11647 
   11648 fi
   11649 done
   11650 
   11651 if test "x$ac_cv_func_fork" = xyes; then
   11652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   11653 $as_echo_n "checking for working fork... " >&6; }
   11654 if test "${ac_cv_func_fork_works+set}" = set; then :
   11655   $as_echo_n "(cached) " >&6
   11656 else
   11657   if test "$cross_compiling" = yes; then :
   11658   ac_cv_func_fork_works=cross
   11659 else
   11660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11661 /* end confdefs.h.  */
   11662 $ac_includes_default
   11663 int
   11664 main ()
   11665 {
   11666 
   11667 	  /* By Ruediger Kuhlmann. */
   11668 	  return fork () < 0;
   11669 
   11670   ;
   11671   return 0;
   11672 }
   11673 _ACEOF
   11674 if ac_fn_c_try_run "$LINENO"; then :
   11675   ac_cv_func_fork_works=yes
   11676 else
   11677   ac_cv_func_fork_works=no
   11678 fi
   11679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11680   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11681 fi
   11682 
   11683 fi
   11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   11685 $as_echo "$ac_cv_func_fork_works" >&6; }
   11686 
   11687 else
   11688   ac_cv_func_fork_works=$ac_cv_func_fork
   11689 fi
   11690 if test "x$ac_cv_func_fork_works" = xcross; then
   11691   case $host in
   11692     *-*-amigaos* | *-*-msdosdjgpp*)
   11693       # Override, as these systems have only a dummy fork() stub
   11694       ac_cv_func_fork_works=no
   11695       ;;
   11696     *)
   11697       ac_cv_func_fork_works=yes
   11698       ;;
   11699   esac
   11700   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   11701 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   11702 fi
   11703 ac_cv_func_vfork_works=$ac_cv_func_vfork
   11704 if test "x$ac_cv_func_vfork" = xyes; then
   11705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   11706 $as_echo_n "checking for working vfork... " >&6; }
   11707 if test "${ac_cv_func_vfork_works+set}" = set; then :
   11708   $as_echo_n "(cached) " >&6
   11709 else
   11710   if test "$cross_compiling" = yes; then :
   11711   ac_cv_func_vfork_works=cross
   11712 else
   11713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11714 /* end confdefs.h.  */
   11715 /* Thanks to Paul Eggert for this test.  */
   11716 $ac_includes_default
   11717 #include <sys/wait.h>
   11718 #ifdef HAVE_VFORK_H
   11719 # include <vfork.h>
   11720 #endif
   11721 /* On some sparc systems, changes by the child to local and incoming
   11722    argument registers are propagated back to the parent.  The compiler
   11723    is told about this with #include <vfork.h>, but some compilers
   11724    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   11725    static variable whose address is put into a register that is
   11726    clobbered by the vfork.  */
   11727 static void
   11728 #ifdef __cplusplus
   11729 sparc_address_test (int arg)
   11730 # else
   11731 sparc_address_test (arg) int arg;
   11732 #endif
   11733 {
   11734   static pid_t child;
   11735   if (!child) {
   11736     child = vfork ();
   11737     if (child < 0) {
   11738       perror ("vfork");
   11739       _exit(2);
   11740     }
   11741     if (!child) {
   11742       arg = getpid();
   11743       write(-1, "", 0);
   11744       _exit (arg);
   11745     }
   11746   }
   11747 }
   11748 
   11749 int
   11750 main ()
   11751 {
   11752   pid_t parent = getpid ();
   11753   pid_t child;
   11754 
   11755   sparc_address_test (0);
   11756 
   11757   child = vfork ();
   11758 
   11759   if (child == 0) {
   11760     /* Here is another test for sparc vfork register problems.  This
   11761        test uses lots of local variables, at least as many local
   11762        variables as main has allocated so far including compiler
   11763        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   11764        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   11765        reuse the register of parent for one of the local variables,
   11766        since it will think that parent can't possibly be used any more
   11767        in this routine.  Assigning to the local variable will thus
   11768        munge parent in the parent process.  */
   11769     pid_t
   11770       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   11771       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   11772     /* Convince the compiler that p..p7 are live; otherwise, it might
   11773        use the same hardware register for all 8 local variables.  */
   11774     if (p != p1 || p != p2 || p != p3 || p != p4
   11775 	|| p != p5 || p != p6 || p != p7)
   11776       _exit(1);
   11777 
   11778     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   11779        from child file descriptors.  If the child closes a descriptor
   11780        before it execs or exits, this munges the parent's descriptor
   11781        as well.  Test for this by closing stdout in the child.  */
   11782     _exit(close(fileno(stdout)) != 0);
   11783   } else {
   11784     int status;
   11785     struct stat st;
   11786 
   11787     while (wait(&status) != child)
   11788       ;
   11789     return (
   11790 	 /* Was there some problem with vforking?  */
   11791 	 child < 0
   11792 
   11793 	 /* Did the child fail?  (This shouldn't happen.)  */
   11794 	 || status
   11795 
   11796 	 /* Did the vfork/compiler bug occur?  */
   11797 	 || parent != getpid()
   11798 
   11799 	 /* Did the file descriptor bug occur?  */
   11800 	 || fstat(fileno(stdout), &st) != 0
   11801 	 );
   11802   }
   11803 }
   11804 _ACEOF
   11805 if ac_fn_c_try_run "$LINENO"; then :
   11806   ac_cv_func_vfork_works=yes
   11807 else
   11808   ac_cv_func_vfork_works=no
   11809 fi
   11810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11811   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11812 fi
   11813 
   11814 fi
   11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   11816 $as_echo "$ac_cv_func_vfork_works" >&6; }
   11817 
   11818 fi;
   11819 if test "x$ac_cv_func_fork_works" = xcross; then
   11820   ac_cv_func_vfork_works=$ac_cv_func_vfork
   11821   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   11822 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   11823 fi
   11824 
   11825 if test "x$ac_cv_func_vfork_works" = xyes; then
   11826 
   11827 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   11828 
   11829 else
   11830 
   11831 $as_echo "#define vfork fork" >>confdefs.h
   11832 
   11833 fi
   11834 if test "x$ac_cv_func_fork_works" = xyes; then
   11835 
   11836 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   11837 
   11838 fi
   11839 
   11840 for ac_func in getauxval getrusage getuid getgid \
   11841 		pipe poll pread pread64 pwrite resize_term \
   11842 		sbrk setpgid setpgrp setsid \
   11843 		sigaction sigprocmask sigsetmask socketpair \
   11844 		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
   11845 		setrlimit getrlimit posix_madvise waitpid \
   11846 		ptrace64 sigaltstack mkdtemp setns
   11847 do :
   11848   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11849 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11850 eval as_val=\$$as_ac_var
   11851    if test "x$as_val" = x""yes; then :
   11852   cat >>confdefs.h <<_ACEOF
   11853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11854 _ACEOF
   11855 
   11856 fi
   11857 done
   11858 
   11859 
   11860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   11861 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   11862 if test "${am_cv_langinfo_codeset+set}" = set; then :
   11863   $as_echo_n "(cached) " >&6
   11864 else
   11865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11866 /* end confdefs.h.  */
   11867 #include <langinfo.h>
   11868 int
   11869 main ()
   11870 {
   11871 char* cs = nl_langinfo(CODESET);
   11872   ;
   11873   return 0;
   11874 }
   11875 _ACEOF
   11876 if ac_fn_c_try_link "$LINENO"; then :
   11877   am_cv_langinfo_codeset=yes
   11878 else
   11879   am_cv_langinfo_codeset=no
   11880 fi
   11881 rm -f core conftest.err conftest.$ac_objext \
   11882     conftest$ac_exeext conftest.$ac_ext
   11883 
   11884 fi
   11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   11886 $as_echo "$am_cv_langinfo_codeset" >&6; }
   11887   if test $am_cv_langinfo_codeset = yes; then
   11888 
   11889 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   11890 
   11891   fi
   11892 
   11893 
   11894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   11895 $as_echo_n "checking for ANSI C header files... " >&6; }
   11896 if test "${ac_cv_header_stdc+set}" = set; then :
   11897   $as_echo_n "(cached) " >&6
   11898 else
   11899   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11900 /* end confdefs.h.  */
   11901 #include <stdlib.h>
   11902 #include <stdarg.h>
   11903 #include <string.h>
   11904 #include <float.h>
   11905 
   11906 int
   11907 main ()
   11908 {
   11909 
   11910   ;
   11911   return 0;
   11912 }
   11913 _ACEOF
   11914 if ac_fn_c_try_compile "$LINENO"; then :
   11915   ac_cv_header_stdc=yes
   11916 else
   11917   ac_cv_header_stdc=no
   11918 fi
   11919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11920 
   11921 if test $ac_cv_header_stdc = yes; then
   11922   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   11923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11924 /* end confdefs.h.  */
   11925 #include <string.h>
   11926 
   11927 _ACEOF
   11928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11929   $EGREP "memchr" >/dev/null 2>&1; then :
   11930 
   11931 else
   11932   ac_cv_header_stdc=no
   11933 fi
   11934 rm -f conftest*
   11935 
   11936 fi
   11937 
   11938 if test $ac_cv_header_stdc = yes; then
   11939   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   11940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11941 /* end confdefs.h.  */
   11942 #include <stdlib.h>
   11943 
   11944 _ACEOF
   11945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11946   $EGREP "free" >/dev/null 2>&1; then :
   11947 
   11948 else
   11949   ac_cv_header_stdc=no
   11950 fi
   11951 rm -f conftest*
   11952 
   11953 fi
   11954 
   11955 if test $ac_cv_header_stdc = yes; then
   11956   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   11957   if test "$cross_compiling" = yes; then :
   11958   :
   11959 else
   11960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11961 /* end confdefs.h.  */
   11962 #include <ctype.h>
   11963 #include <stdlib.h>
   11964 #if ((' ' & 0x0FF) == 0x020)
   11965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   11966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   11967 #else
   11968 # define ISLOWER(c) \
   11969 		   (('a' <= (c) && (c) <= 'i') \
   11970 		     || ('j' <= (c) && (c) <= 'r') \
   11971 		     || ('s' <= (c) && (c) <= 'z'))
   11972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   11973 #endif
   11974 
   11975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   11976 int
   11977 main ()
   11978 {
   11979   int i;
   11980   for (i = 0; i < 256; i++)
   11981     if (XOR (islower (i), ISLOWER (i))
   11982 	|| toupper (i) != TOUPPER (i))
   11983       return 2;
   11984   return 0;
   11985 }
   11986 _ACEOF
   11987 if ac_fn_c_try_run "$LINENO"; then :
   11988 
   11989 else
   11990   ac_cv_header_stdc=no
   11991 fi
   11992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11993   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11994 fi
   11995 
   11996 fi
   11997 fi
   11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   11999 $as_echo "$ac_cv_header_stdc" >&6; }
   12000 if test $ac_cv_header_stdc = yes; then
   12001 
   12002 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   12003 
   12004 fi
   12005 
   12006   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   12007 # for constant arguments.  Useless!
   12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   12009 $as_echo_n "checking for working alloca.h... " >&6; }
   12010 if test "${ac_cv_working_alloca_h+set}" = set; then :
   12011   $as_echo_n "(cached) " >&6
   12012 else
   12013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12014 /* end confdefs.h.  */
   12015 #include <alloca.h>
   12016 int
   12017 main ()
   12018 {
   12019 char *p = (char *) alloca (2 * sizeof (int));
   12020 			  if (p) return 0;
   12021   ;
   12022   return 0;
   12023 }
   12024 _ACEOF
   12025 if ac_fn_c_try_link "$LINENO"; then :
   12026   ac_cv_working_alloca_h=yes
   12027 else
   12028   ac_cv_working_alloca_h=no
   12029 fi
   12030 rm -f core conftest.err conftest.$ac_objext \
   12031     conftest$ac_exeext conftest.$ac_ext
   12032 fi
   12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   12034 $as_echo "$ac_cv_working_alloca_h" >&6; }
   12035 if test $ac_cv_working_alloca_h = yes; then
   12036 
   12037 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   12038 
   12039 fi
   12040 
   12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   12042 $as_echo_n "checking for alloca... " >&6; }
   12043 if test "${ac_cv_func_alloca_works+set}" = set; then :
   12044   $as_echo_n "(cached) " >&6
   12045 else
   12046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12047 /* end confdefs.h.  */
   12048 #ifdef __GNUC__
   12049 # define alloca __builtin_alloca
   12050 #else
   12051 # ifdef _MSC_VER
   12052 #  include <malloc.h>
   12053 #  define alloca _alloca
   12054 # else
   12055 #  ifdef HAVE_ALLOCA_H
   12056 #   include <alloca.h>
   12057 #  else
   12058 #   ifdef _AIX
   12059  #pragma alloca
   12060 #   else
   12061 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   12062 char *alloca ();
   12063 #    endif
   12064 #   endif
   12065 #  endif
   12066 # endif
   12067 #endif
   12068 
   12069 int
   12070 main ()
   12071 {
   12072 char *p = (char *) alloca (1);
   12073 				    if (p) return 0;
   12074   ;
   12075   return 0;
   12076 }
   12077 _ACEOF
   12078 if ac_fn_c_try_link "$LINENO"; then :
   12079   ac_cv_func_alloca_works=yes
   12080 else
   12081   ac_cv_func_alloca_works=no
   12082 fi
   12083 rm -f core conftest.err conftest.$ac_objext \
   12084     conftest$ac_exeext conftest.$ac_ext
   12085 fi
   12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   12087 $as_echo "$ac_cv_func_alloca_works" >&6; }
   12088 
   12089 if test $ac_cv_func_alloca_works = yes; then
   12090 
   12091 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   12092 
   12093 else
   12094   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   12095 # that cause trouble.  Some versions do not even contain alloca or
   12096 # contain a buggy version.  If you still want to use their alloca,
   12097 # use ar to extract alloca.o from them instead of compiling alloca.c.
   12098 
   12099 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   12100 
   12101 $as_echo "#define C_ALLOCA 1" >>confdefs.h
   12102 
   12103 
   12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
   12105 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   12106 if test "${ac_cv_os_cray+set}" = set; then :
   12107   $as_echo_n "(cached) " >&6
   12108 else
   12109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12110 /* end confdefs.h.  */
   12111 #if defined CRAY && ! defined CRAY2
   12112 webecray
   12113 #else
   12114 wenotbecray
   12115 #endif
   12116 
   12117 _ACEOF
   12118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12119   $EGREP "webecray" >/dev/null 2>&1; then :
   12120   ac_cv_os_cray=yes
   12121 else
   12122   ac_cv_os_cray=no
   12123 fi
   12124 rm -f conftest*
   12125 
   12126 fi
   12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   12128 $as_echo "$ac_cv_os_cray" >&6; }
   12129 if test $ac_cv_os_cray = yes; then
   12130   for ac_func in _getb67 GETB67 getb67; do
   12131     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12132 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   12133 eval as_val=\$$as_ac_var
   12134    if test "x$as_val" = x""yes; then :
   12135 
   12136 cat >>confdefs.h <<_ACEOF
   12137 #define CRAY_STACKSEG_END $ac_func
   12138 _ACEOF
   12139 
   12140     break
   12141 fi
   12142 
   12143   done
   12144 fi
   12145 
   12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   12147 $as_echo_n "checking stack direction for C alloca... " >&6; }
   12148 if test "${ac_cv_c_stack_direction+set}" = set; then :
   12149   $as_echo_n "(cached) " >&6
   12150 else
   12151   if test "$cross_compiling" = yes; then :
   12152   ac_cv_c_stack_direction=0
   12153 else
   12154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12155 /* end confdefs.h.  */
   12156 $ac_includes_default
   12157 int
   12158 find_stack_direction ()
   12159 {
   12160   static char *addr = 0;
   12161   auto char dummy;
   12162   if (addr == 0)
   12163     {
   12164       addr = &dummy;
   12165       return find_stack_direction ();
   12166     }
   12167   else
   12168     return (&dummy > addr) ? 1 : -1;
   12169 }
   12170 
   12171 int
   12172 main ()
   12173 {
   12174   return find_stack_direction () < 0;
   12175 }
   12176 _ACEOF
   12177 if ac_fn_c_try_run "$LINENO"; then :
   12178   ac_cv_c_stack_direction=1
   12179 else
   12180   ac_cv_c_stack_direction=-1
   12181 fi
   12182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12183   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12184 fi
   12185 
   12186 fi
   12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   12188 $as_echo "$ac_cv_c_stack_direction" >&6; }
   12189 cat >>confdefs.h <<_ACEOF
   12190 #define STACK_DIRECTION $ac_cv_c_stack_direction
   12191 _ACEOF
   12192 
   12193 
   12194 fi
   12195 
   12196 
   12197 
   12198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   12199 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   12200 if test "${am_cv_langinfo_codeset+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 <sys/param.h>
   12206 #define _KMEMUSER
   12207 #include <sys/lwp.h>
   12208 #include <langinfo.h>
   12209 int
   12210 main ()
   12211 {
   12212 char* cs = nl_langinfo(CODESET);
   12213   ;
   12214   return 0;
   12215 }
   12216 _ACEOF
   12217 if ac_fn_c_try_link "$LINENO"; then :
   12218   am_cv_langinfo_codeset=yes
   12219 else
   12220   am_cv_langinfo_codeset=no
   12221 fi
   12222 rm -f core conftest.err conftest.$ac_objext \
   12223     conftest$ac_exeext conftest.$ac_ext
   12224 
   12225 fi
   12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   12227 $as_echo "$am_cv_langinfo_codeset" >&6; }
   12228   if test $am_cv_langinfo_codeset = yes; then
   12229 
   12230 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   12231 
   12232   fi
   12233 
   12234 
   12235   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
   12236 do :
   12237   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12238 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   12239 eval as_val=\$$as_ac_Header
   12240    if test "x$as_val" = x""yes; then :
   12241   cat >>confdefs.h <<_ACEOF
   12242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12243 _ACEOF
   12244 
   12245 fi
   12246 
   12247 done
   12248 
   12249 
   12250   for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
   12251 do :
   12252   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   12254 eval as_val=\$$as_ac_var
   12255    if test "x$as_val" = x""yes; then :
   12256   cat >>confdefs.h <<_ACEOF
   12257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12258 _ACEOF
   12259 
   12260 fi
   12261 done
   12262 
   12263 
   12264   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
   12265 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
   12266   ac_have_decl=1
   12267 else
   12268   ac_have_decl=0
   12269 fi
   12270 
   12271 cat >>confdefs.h <<_ACEOF
   12272 #define HAVE_DECL_STRERROR $ac_have_decl
   12273 _ACEOF
   12274 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
   12275 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
   12276   ac_have_decl=1
   12277 else
   12278   ac_have_decl=0
   12279 fi
   12280 
   12281 cat >>confdefs.h <<_ACEOF
   12282 #define HAVE_DECL_STRSTR $ac_have_decl
   12283 _ACEOF
   12284 
   12285 
   12286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
   12287 $as_echo_n "checking for sigsetjmp... " >&6; }
   12288 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
   12289   $as_echo_n "(cached) " >&6
   12290 else
   12291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12292 /* end confdefs.h.  */
   12293 
   12294 #include <setjmp.h>
   12295 
   12296 int
   12297 main ()
   12298 {
   12299 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
   12300   ;
   12301   return 0;
   12302 }
   12303 _ACEOF
   12304 if ac_fn_c_try_compile "$LINENO"; then :
   12305   gdb_cv_func_sigsetjmp=yes
   12306 else
   12307   gdb_cv_func_sigsetjmp=no
   12308 fi
   12309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12310 fi
   12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
   12312 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
   12313 if test $gdb_cv_func_sigsetjmp = yes; then
   12314 
   12315 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
   12316 
   12317 fi
   12318 
   12319 
   12320 # Check the return and argument types of ptrace.
   12321 
   12322 
   12323 for ac_header in sys/ptrace.h ptrace.h
   12324 do :
   12325   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12326 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   12327 eval as_val=\$$as_ac_Header
   12328    if test "x$as_val" = x""yes; then :
   12329   cat >>confdefs.h <<_ACEOF
   12330 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12331 _ACEOF
   12332 
   12333 fi
   12334 
   12335 done
   12336 
   12337 
   12338 gdb_ptrace_headers='
   12339 #include <sys/types.h>
   12340 #if HAVE_SYS_PTRACE_H
   12341 # include <sys/ptrace.h>
   12342 #endif
   12343 #if HAVE_UNISTD_H
   12344 # include <unistd.h>
   12345 #endif
   12346 '
   12347 # There is no point in checking if we don't have a prototype.
   12348 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
   12349 "
   12350 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
   12351   ac_have_decl=1
   12352 else
   12353   ac_have_decl=0
   12354 fi
   12355 
   12356 cat >>confdefs.h <<_ACEOF
   12357 #define HAVE_DECL_PTRACE $ac_have_decl
   12358 _ACEOF
   12359 if test $ac_have_decl = 1; then :
   12360 
   12361 else
   12362 
   12363   : ${gdb_cv_func_ptrace_ret='int'}
   12364   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   12365 
   12366 fi
   12367 
   12368 # Check return type.  Varargs (used on GNU/Linux) conflict with the
   12369 # empty argument list, so check for that explicitly.
   12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
   12371 $as_echo_n "checking return type of ptrace... " >&6; }
   12372 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
   12373   $as_echo_n "(cached) " >&6
   12374 else
   12375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12376 /* end confdefs.h.  */
   12377 $gdb_ptrace_headers
   12378 int
   12379 main ()
   12380 {
   12381 extern long ptrace (enum __ptrace_request, ...);
   12382   ;
   12383   return 0;
   12384 }
   12385 _ACEOF
   12386 if ac_fn_c_try_compile "$LINENO"; then :
   12387   gdb_cv_func_ptrace_ret='long'
   12388 else
   12389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12390 /* end confdefs.h.  */
   12391 $gdb_ptrace_headers
   12392 int
   12393 main ()
   12394 {
   12395 extern int ptrace ();
   12396   ;
   12397   return 0;
   12398 }
   12399 _ACEOF
   12400 if ac_fn_c_try_compile "$LINENO"; then :
   12401   gdb_cv_func_ptrace_ret='int'
   12402 else
   12403   gdb_cv_func_ptrace_ret='long'
   12404 fi
   12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12406 fi
   12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12408 fi
   12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
   12410 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
   12411 
   12412 cat >>confdefs.h <<_ACEOF
   12413 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
   12414 _ACEOF
   12415 
   12416 # Check argument types.
   12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
   12418 $as_echo_n "checking types of arguments for ptrace... " >&6; }
   12419 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
   12420   $as_echo_n "(cached) " >&6
   12421 else
   12422 
   12423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12424 /* end confdefs.h.  */
   12425 $gdb_ptrace_headers
   12426 int
   12427 main ()
   12428 {
   12429 extern long ptrace (enum __ptrace_request, ...);
   12430   ;
   12431   return 0;
   12432 }
   12433 _ACEOF
   12434 if ac_fn_c_try_compile "$LINENO"; then :
   12435   gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
   12436 else
   12437 
   12438 for gdb_arg1 in 'int' 'long'; do
   12439  for gdb_arg2 in 'pid_t' 'int' 'long'; do
   12440   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
   12441    for gdb_arg4 in 'int' 'long' 'void *'; do
   12442      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12443 /* end confdefs.h.  */
   12444 $gdb_ptrace_headers
   12445 int
   12446 main ()
   12447 {
   12448 
   12449 extern $gdb_cv_func_ptrace_ret
   12450   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
   12451 
   12452   ;
   12453   return 0;
   12454 }
   12455 _ACEOF
   12456 if ac_fn_c_try_compile "$LINENO"; then :
   12457   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
   12458     break 4;
   12459 fi
   12460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12461     for gdb_arg5 in 'int *' 'int' 'long'; do
   12462      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12463 /* end confdefs.h.  */
   12464 $gdb_ptrace_headers
   12465 int
   12466 main ()
   12467 {
   12468 
   12469 extern $gdb_cv_func_ptrace_ret
   12470   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
   12471 
   12472   ;
   12473   return 0;
   12474 }
   12475 _ACEOF
   12476 if ac_fn_c_try_compile "$LINENO"; then :
   12477 
   12478 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
   12479     break 5;
   12480 fi
   12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12482     done
   12483    done
   12484   done
   12485  done
   12486 done
   12487 # Provide a safe default value.
   12488 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   12489 
   12490 fi
   12491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12492 fi
   12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
   12494 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
   12495 ac_save_IFS=$IFS; IFS=','
   12496 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
   12497 IFS=$ac_save_IFS
   12498 shift
   12499 
   12500 cat >>confdefs.h <<_ACEOF
   12501 #define PTRACE_TYPE_ARG1 $1
   12502 _ACEOF
   12503 
   12504 
   12505 cat >>confdefs.h <<_ACEOF
   12506 #define PTRACE_TYPE_ARG3 $3
   12507 _ACEOF
   12508 
   12509 
   12510 cat >>confdefs.h <<_ACEOF
   12511 #define PTRACE_TYPE_ARG4 $4
   12512 _ACEOF
   12513 
   12514 if test -n "$5"; then
   12515 
   12516 cat >>confdefs.h <<_ACEOF
   12517 #define PTRACE_TYPE_ARG5 $5
   12518 _ACEOF
   12519 
   12520 fi
   12521 
   12522 
   12523 if test "$cross_compiling" = no; then
   12524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   12525 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   12526 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
   12527   $as_echo_n "(cached) " >&6
   12528 else
   12529   if test "$cross_compiling" = yes; then :
   12530   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
   12531 else
   12532   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12533 /* end confdefs.h.  */
   12534 $ac_includes_default
   12535 int
   12536 main ()
   12537 {
   12538 /* If this system has a BSD-style setpgrp which takes arguments,
   12539   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
   12540   exit successfully. */
   12541   return setpgrp (1,1) != -1;
   12542   ;
   12543   return 0;
   12544 }
   12545 _ACEOF
   12546 if ac_fn_c_try_run "$LINENO"; then :
   12547   ac_cv_func_setpgrp_void=no
   12548 else
   12549   ac_cv_func_setpgrp_void=yes
   12550 fi
   12551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12552   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12553 fi
   12554 
   12555 fi
   12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   12557 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   12558 if test $ac_cv_func_setpgrp_void = yes; then
   12559 
   12560 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   12561 
   12562 fi
   12563 
   12564 else
   12565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   12566 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   12567 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
   12568   $as_echo_n "(cached) " >&6
   12569 else
   12570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12571 /* end confdefs.h.  */
   12572 
   12573 #include <unistd.h>
   12574 
   12575 int
   12576 main ()
   12577 {
   12578 
   12579   if (setpgrp(1,1) == -1)
   12580     exit (0);
   12581   else
   12582     exit (1);
   12583 
   12584   ;
   12585   return 0;
   12586 }
   12587 _ACEOF
   12588 if ac_fn_c_try_compile "$LINENO"; then :
   12589   ac_cv_func_setpgrp_void=no
   12590 else
   12591   ac_cv_func_setpgrp_void=yes
   12592 fi
   12593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12594 fi
   12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   12596 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   12597 if test $ac_cv_func_setpgrp_void = yes; then
   12598   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   12599 
   12600 fi
   12601 fi
   12602 
   12603 # Assume we'll default to using the included libiberty regex.
   12604 gdb_use_included_regex=yes
   12605 
   12606 # However, if the system regex is GNU regex, then default to *not*
   12607 # using the included regex.
   12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
   12609 $as_echo_n "checking for GNU regex... " >&6; }
   12610 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
   12611   $as_echo_n "(cached) " >&6
   12612 else
   12613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12614 /* end confdefs.h.  */
   12615 #include <gnu-versions.h>
   12616 int
   12617 main ()
   12618 {
   12619 #define REGEX_INTERFACE_VERSION 1
   12620 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
   12621 # error "Version mismatch"
   12622 #endif
   12623   ;
   12624   return 0;
   12625 }
   12626 _ACEOF
   12627 if ac_fn_c_try_compile "$LINENO"; then :
   12628   gdb_cv_have_gnu_regex=yes
   12629 else
   12630   gdb_cv_have_gnu_regex=no
   12631 fi
   12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12633 fi
   12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
   12635 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
   12636 if test $gdb_cv_have_gnu_regex = yes; then
   12637   gdb_use_included_regex=no
   12638 fi
   12639 
   12640 
   12641 # Check whether --with-included-regex was given.
   12642 if test "${with_included_regex+set}" = set; then :
   12643   withval=$with_included_regex; gdb_with_regex=$withval
   12644 else
   12645   gdb_with_regex=$gdb_use_included_regex
   12646 fi
   12647 
   12648 if test "$gdb_with_regex" = yes; then
   12649 
   12650 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
   12651 
   12652 fi
   12653 
   12654 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
   12655 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
   12656 #include <sys/proc.h>
   12657 
   12658 "
   12659 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
   12660 
   12661 cat >>confdefs.h <<_ACEOF
   12662 #define HAVE_STRUCT_THREAD_TD_PCB 1
   12663 _ACEOF
   12664 
   12665 
   12666 fi
   12667 
   12668 
   12669 # See if <sys/lwp.h> defines `struct lwp`.
   12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
   12671 $as_echo_n "checking for struct lwp... " >&6; }
   12672 if test "${gdb_cv_struct_lwp+set}" = set; then :
   12673   $as_echo_n "(cached) " >&6
   12674 else
   12675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12676 /* end confdefs.h.  */
   12677 #define _KMEMUSER
   12678 #include <sys/param.h>
   12679 #include <sys/lwp.h>
   12680 int
   12681 main ()
   12682 {
   12683 struct lwp l;
   12684   ;
   12685   return 0;
   12686 }
   12687 _ACEOF
   12688 if ac_fn_c_try_compile "$LINENO"; then :
   12689   gdb_cv_struct_lwp=yes
   12690 else
   12691   gdb_cv_struct_lwp=no
   12692 fi
   12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12694 fi
   12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
   12696 $as_echo "$gdb_cv_struct_lwp" >&6; }
   12697 if test $gdb_cv_struct_lwp = yes; then
   12698 
   12699 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
   12700 
   12701 fi
   12702 
   12703 # See if <machine/reg.h> degines `struct reg'.
   12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
   12705 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
   12706 if test "${gdb_cv_struct_reg+set}" = set; then :
   12707   $as_echo_n "(cached) " >&6
   12708 else
   12709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12710 /* end confdefs.h.  */
   12711 #include <sys/types.h>
   12712 #include <machine/reg.h>
   12713 int
   12714 main ()
   12715 {
   12716 struct reg r;
   12717   ;
   12718   return 0;
   12719 }
   12720 _ACEOF
   12721 if ac_fn_c_try_compile "$LINENO"; then :
   12722   gdb_cv_struct_reg=yes
   12723 else
   12724   gdb_cv_struct_reg=no
   12725 fi
   12726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12727 fi
   12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
   12729 $as_echo "$gdb_cv_struct_reg" >&6; }
   12730 if test $gdb_cv_struct_reg = yes; then
   12731 
   12732 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
   12733 
   12734 fi
   12735 
   12736 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
   12737 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
   12738 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
   12739 #include <machine/reg.h>
   12740 "
   12741 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
   12742 
   12743 cat >>confdefs.h <<_ACEOF
   12744 #define HAVE_STRUCT_REG_R_FS 1
   12745 _ACEOF
   12746 
   12747 
   12748 fi
   12749 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
   12750 #include <machine/reg.h>
   12751 "
   12752 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
   12753 
   12754 cat >>confdefs.h <<_ACEOF
   12755 #define HAVE_STRUCT_REG_R_GS 1
   12756 _ACEOF
   12757 
   12758 
   12759 fi
   12760 
   12761 
   12762 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
   12763 # Older amd64 Linux's don't have the fs_base and gs_base members of
   12764 # `struct user_regs_struct'.
   12765 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>
   12766 "
   12767 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
   12768 
   12769 cat >>confdefs.h <<_ACEOF
   12770 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
   12771 _ACEOF
   12772 
   12773 
   12774 fi
   12775 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>
   12776 "
   12777 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
   12778 
   12779 cat >>confdefs.h <<_ACEOF
   12780 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
   12781 _ACEOF
   12782 
   12783 
   12784 fi
   12785 
   12786 
   12787 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
   12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
   12789 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
   12790 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
   12791   $as_echo_n "(cached) " >&6
   12792 else
   12793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12794 /* end confdefs.h.  */
   12795 #include <sys/ptrace.h>
   12796 int
   12797 main ()
   12798 {
   12799 PTRACE_GETREGS;
   12800   ;
   12801   return 0;
   12802 }
   12803 _ACEOF
   12804 if ac_fn_c_try_compile "$LINENO"; then :
   12805   gdb_cv_have_ptrace_getregs=yes
   12806 else
   12807   gdb_cv_have_ptrace_getregs=no
   12808 fi
   12809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12810 fi
   12811 
   12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
   12813 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
   12814 if test $gdb_cv_have_ptrace_getregs = yes; then
   12815 
   12816 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
   12817 
   12818 fi
   12819 
   12820 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
   12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
   12822 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
   12823 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
   12824   $as_echo_n "(cached) " >&6
   12825 else
   12826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12827 /* end confdefs.h.  */
   12828 #include <sys/ptrace.h>
   12829 int
   12830 main ()
   12831 {
   12832 PTRACE_GETFPXREGS;
   12833   ;
   12834   return 0;
   12835 }
   12836 _ACEOF
   12837 if ac_fn_c_try_compile "$LINENO"; then :
   12838   gdb_cv_have_ptrace_getfpxregs=yes
   12839 else
   12840   gdb_cv_have_ptrace_getfpxregs=no
   12841 fi
   12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12843 fi
   12844 
   12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
   12846 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
   12847 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
   12848 
   12849 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
   12850 
   12851 fi
   12852 
   12853 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
   12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
   12855 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
   12856 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
   12857   $as_echo_n "(cached) " >&6
   12858 else
   12859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12860 /* end confdefs.h.  */
   12861 #include <sys/types.h>
   12862 #include <sys/ptrace.h>
   12863 int
   12864 main ()
   12865 {
   12866 PT_GETDBREGS;
   12867   ;
   12868   return 0;
   12869 }
   12870 _ACEOF
   12871 if ac_fn_c_try_compile "$LINENO"; then :
   12872   gdb_cv_have_pt_getdbregs=yes
   12873 else
   12874   gdb_cv_have_pt_getdbregs=no
   12875 fi
   12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12877 fi
   12878 
   12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
   12880 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
   12881 if test $gdb_cv_have_pt_getdbregs = yes; then
   12882 
   12883 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
   12884 
   12885 fi
   12886 
   12887 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
   12888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
   12889 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
   12890 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
   12891   $as_echo_n "(cached) " >&6
   12892 else
   12893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12894 /* end confdefs.h.  */
   12895 #include <sys/types.h>
   12896 #include <sys/ptrace.h>
   12897 int
   12898 main ()
   12899 {
   12900 PT_GETXMMREGS;
   12901   ;
   12902   return 0;
   12903 }
   12904 _ACEOF
   12905 if ac_fn_c_try_compile "$LINENO"; then :
   12906   gdb_cv_have_pt_getxmmregs=yes
   12907 else
   12908   gdb_cv_have_pt_getxmmregs=no
   12909 fi
   12910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12911 fi
   12912 
   12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
   12914 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
   12915 if test $gdb_cv_have_pt_getxmmregs = yes; then
   12916 
   12917 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
   12918 
   12919 fi
   12920 
   12921 # See if <sys/ptrace.h> supports LWP names on FreeBSD
   12922 # Older FreeBSD versions don't have the pl_tdname member of
   12923 # `struct ptrace_lwpinfo'.
   12924 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
   12925 "
   12926 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = x""yes; then :
   12927 
   12928 cat >>confdefs.h <<_ACEOF
   12929 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
   12930 _ACEOF
   12931 
   12932 
   12933 fi
   12934 
   12935 
   12936 # See if <sys/ptrace.h> supports syscall fields on FreeBSD.  The
   12937 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
   12938 # FreeBSD 10.3.
   12939 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
   12940 "
   12941 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = x""yes; then :
   12942 
   12943 cat >>confdefs.h <<_ACEOF
   12944 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
   12945 _ACEOF
   12946 
   12947 
   12948 fi
   12949 
   12950 
   12951 # Detect which type of /proc is in use, such as for Solaris.
   12952 
   12953 if test "${target}" = "${host}"; then
   12954   case "${host}" in
   12955   *-*-sysv4.2* | *-*-sysv5* )
   12956 
   12957 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
   12958 
   12959       ;;
   12960   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
   12961 
   12962 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
   12963 
   12964       ;;
   12965   mips-sgi-irix5*)
   12966       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
   12967 
   12968 $as_echo "#define _KMEMUSER 1" >>confdefs.h
   12969 
   12970       ;;
   12971   esac
   12972 fi
   12973 
   12974 if test "$ac_cv_header_sys_procfs_h" = yes; then
   12975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
   12976 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
   12977  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
   12978   $as_echo_n "(cached) " >&6
   12979 else
   12980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12981 /* end confdefs.h.  */
   12982 
   12983 #define _SYSCALL32
   12984 /* Needed for new procfs interface on sparc-solaris.  */
   12985 #define _STRUCTURED_PROC 1
   12986 #include <sys/procfs.h>
   12987 int
   12988 main ()
   12989 {
   12990 gregset_t avar
   12991   ;
   12992   return 0;
   12993 }
   12994 _ACEOF
   12995 if ac_fn_c_try_compile "$LINENO"; then :
   12996   bfd_cv_have_sys_procfs_type_gregset_t=yes
   12997 else
   12998   bfd_cv_have_sys_procfs_type_gregset_t=no
   12999 
   13000 fi
   13001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13002 fi
   13003 
   13004  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
   13005 
   13006 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
   13007 
   13008  fi
   13009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
   13010 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
   13011 
   13012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
   13013 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
   13014  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
   13015   $as_echo_n "(cached) " >&6
   13016 else
   13017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13018 /* end confdefs.h.  */
   13019 
   13020 #define _SYSCALL32
   13021 /* Needed for new procfs interface on sparc-solaris.  */
   13022 #define _STRUCTURED_PROC 1
   13023 #include <sys/procfs.h>
   13024 int
   13025 main ()
   13026 {
   13027 fpregset_t avar
   13028   ;
   13029   return 0;
   13030 }
   13031 _ACEOF
   13032 if ac_fn_c_try_compile "$LINENO"; then :
   13033   bfd_cv_have_sys_procfs_type_fpregset_t=yes
   13034 else
   13035   bfd_cv_have_sys_procfs_type_fpregset_t=no
   13036 
   13037 fi
   13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13039 fi
   13040 
   13041  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
   13042 
   13043 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
   13044 
   13045  fi
   13046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
   13047 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
   13048 
   13049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
   13050 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
   13051  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
   13052   $as_echo_n "(cached) " >&6
   13053 else
   13054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13055 /* end confdefs.h.  */
   13056 
   13057 #define _SYSCALL32
   13058 /* Needed for new procfs interface on sparc-solaris.  */
   13059 #define _STRUCTURED_PROC 1
   13060 #include <sys/procfs.h>
   13061 int
   13062 main ()
   13063 {
   13064 prgregset_t avar
   13065   ;
   13066   return 0;
   13067 }
   13068 _ACEOF
   13069 if ac_fn_c_try_compile "$LINENO"; then :
   13070   bfd_cv_have_sys_procfs_type_prgregset_t=yes
   13071 else
   13072   bfd_cv_have_sys_procfs_type_prgregset_t=no
   13073 
   13074 fi
   13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13076 fi
   13077 
   13078  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
   13079 
   13080 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
   13081 
   13082  fi
   13083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
   13084 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
   13085 
   13086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
   13087 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
   13088  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
   13089   $as_echo_n "(cached) " >&6
   13090 else
   13091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13092 /* end confdefs.h.  */
   13093 
   13094 #define _SYSCALL32
   13095 /* Needed for new procfs interface on sparc-solaris.  */
   13096 #define _STRUCTURED_PROC 1
   13097 #include <sys/procfs.h>
   13098 int
   13099 main ()
   13100 {
   13101 prfpregset_t avar
   13102   ;
   13103   return 0;
   13104 }
   13105 _ACEOF
   13106 if ac_fn_c_try_compile "$LINENO"; then :
   13107   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
   13108 else
   13109   bfd_cv_have_sys_procfs_type_prfpregset_t=no
   13110 
   13111 fi
   13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13113 fi
   13114 
   13115  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   13116 
   13117 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
   13118 
   13119  fi
   13120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
   13121 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
   13122 
   13123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
   13124 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
   13125  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
   13126   $as_echo_n "(cached) " >&6
   13127 else
   13128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13129 /* end confdefs.h.  */
   13130 
   13131 #define _SYSCALL32
   13132 /* Needed for new procfs interface on sparc-solaris.  */
   13133 #define _STRUCTURED_PROC 1
   13134 #include <sys/procfs.h>
   13135 int
   13136 main ()
   13137 {
   13138 prgregset32_t avar
   13139   ;
   13140   return 0;
   13141 }
   13142 _ACEOF
   13143 if ac_fn_c_try_compile "$LINENO"; then :
   13144   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
   13145 else
   13146   bfd_cv_have_sys_procfs_type_prgregset32_t=no
   13147 
   13148 fi
   13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13150 fi
   13151 
   13152  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
   13153 
   13154 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
   13155 
   13156  fi
   13157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
   13158 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
   13159 
   13160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
   13161 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
   13162  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
   13163   $as_echo_n "(cached) " >&6
   13164 else
   13165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13166 /* end confdefs.h.  */
   13167 
   13168 #define _SYSCALL32
   13169 /* Needed for new procfs interface on sparc-solaris.  */
   13170 #define _STRUCTURED_PROC 1
   13171 #include <sys/procfs.h>
   13172 int
   13173 main ()
   13174 {
   13175 lwpid_t avar
   13176   ;
   13177   return 0;
   13178 }
   13179 _ACEOF
   13180 if ac_fn_c_try_compile "$LINENO"; then :
   13181   bfd_cv_have_sys_procfs_type_lwpid_t=yes
   13182 else
   13183   bfd_cv_have_sys_procfs_type_lwpid_t=no
   13184 
   13185 fi
   13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13187 fi
   13188 
   13189  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
   13190 
   13191 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
   13192 
   13193  fi
   13194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
   13195 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
   13196 
   13197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
   13198 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
   13199  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
   13200   $as_echo_n "(cached) " >&6
   13201 else
   13202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13203 /* end confdefs.h.  */
   13204 
   13205 #define _SYSCALL32
   13206 /* Needed for new procfs interface on sparc-solaris.  */
   13207 #define _STRUCTURED_PROC 1
   13208 #include <sys/procfs.h>
   13209 int
   13210 main ()
   13211 {
   13212 psaddr_t avar
   13213   ;
   13214   return 0;
   13215 }
   13216 _ACEOF
   13217 if ac_fn_c_try_compile "$LINENO"; then :
   13218   bfd_cv_have_sys_procfs_type_psaddr_t=yes
   13219 else
   13220   bfd_cv_have_sys_procfs_type_psaddr_t=no
   13221 
   13222 fi
   13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13224 fi
   13225 
   13226  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
   13227 
   13228 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
   13229 
   13230  fi
   13231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
   13232 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
   13233 
   13234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
   13235 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
   13236  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
   13237   $as_echo_n "(cached) " >&6
   13238 else
   13239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13240 /* end confdefs.h.  */
   13241 
   13242 #define _SYSCALL32
   13243 /* Needed for new procfs interface on sparc-solaris.  */
   13244 #define _STRUCTURED_PROC 1
   13245 #include <sys/procfs.h>
   13246 int
   13247 main ()
   13248 {
   13249 prsysent_t avar
   13250   ;
   13251   return 0;
   13252 }
   13253 _ACEOF
   13254 if ac_fn_c_try_compile "$LINENO"; then :
   13255   bfd_cv_have_sys_procfs_type_prsysent_t=yes
   13256 else
   13257   bfd_cv_have_sys_procfs_type_prsysent_t=no
   13258 
   13259 fi
   13260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13261 fi
   13262 
   13263  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
   13264 
   13265 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
   13266 
   13267  fi
   13268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
   13269 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
   13270 
   13271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
   13272 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
   13273  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
   13274   $as_echo_n "(cached) " >&6
   13275 else
   13276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13277 /* end confdefs.h.  */
   13278 
   13279 #define _SYSCALL32
   13280 /* Needed for new procfs interface on sparc-solaris.  */
   13281 #define _STRUCTURED_PROC 1
   13282 #include <sys/procfs.h>
   13283 int
   13284 main ()
   13285 {
   13286 pr_sigset_t avar
   13287   ;
   13288   return 0;
   13289 }
   13290 _ACEOF
   13291 if ac_fn_c_try_compile "$LINENO"; then :
   13292   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
   13293 else
   13294   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
   13295 
   13296 fi
   13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13298 fi
   13299 
   13300  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
   13301 
   13302 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
   13303 
   13304  fi
   13305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
   13306 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
   13307 
   13308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
   13309 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
   13310  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
   13311   $as_echo_n "(cached) " >&6
   13312 else
   13313   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13314 /* end confdefs.h.  */
   13315 
   13316 #define _SYSCALL32
   13317 /* Needed for new procfs interface on sparc-solaris.  */
   13318 #define _STRUCTURED_PROC 1
   13319 #include <sys/procfs.h>
   13320 int
   13321 main ()
   13322 {
   13323 pr_sigaction64_t avar
   13324   ;
   13325   return 0;
   13326 }
   13327 _ACEOF
   13328 if ac_fn_c_try_compile "$LINENO"; then :
   13329   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
   13330 else
   13331   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
   13332 
   13333 fi
   13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13335 fi
   13336 
   13337  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
   13338 
   13339 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
   13340 
   13341  fi
   13342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
   13343 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
   13344 
   13345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
   13346 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
   13347  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
   13348   $as_echo_n "(cached) " >&6
   13349 else
   13350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13351 /* end confdefs.h.  */
   13352 
   13353 #define _SYSCALL32
   13354 /* Needed for new procfs interface on sparc-solaris.  */
   13355 #define _STRUCTURED_PROC 1
   13356 #include <sys/procfs.h>
   13357 int
   13358 main ()
   13359 {
   13360 pr_siginfo64_t avar
   13361   ;
   13362   return 0;
   13363 }
   13364 _ACEOF
   13365 if ac_fn_c_try_compile "$LINENO"; then :
   13366   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
   13367 else
   13368   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
   13369 
   13370 fi
   13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13372 fi
   13373 
   13374  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
   13375 
   13376 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
   13377 
   13378  fi
   13379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
   13380 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
   13381 
   13382 
   13383 
   13384 
   13385 
   13386   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   13387     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
   13388 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
   13389     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
   13390   $as_echo_n "(cached) " >&6
   13391 else
   13392   if test "$cross_compiling" = yes; then :
   13393   gdb_cv_prfpregset_t_broken=yes
   13394 else
   13395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13396 /* end confdefs.h.  */
   13397 #include <sys/procfs.h>
   13398        int main ()
   13399        {
   13400          if (sizeof (prfpregset_t) == sizeof (void *))
   13401            return 1;
   13402          return 0;
   13403        }
   13404 _ACEOF
   13405 if ac_fn_c_try_run "$LINENO"; then :
   13406   gdb_cv_prfpregset_t_broken=no
   13407 else
   13408   gdb_cv_prfpregset_t_broken=yes
   13409 fi
   13410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13411   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13412 fi
   13413 
   13414 fi
   13415 
   13416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
   13417 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
   13418     if test $gdb_cv_prfpregset_t_broken = yes; then
   13419 
   13420 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
   13421 
   13422     fi
   13423   fi
   13424 fi
   13425 
   13426 # Check if the compiler supports the `long long' type.
   13427 
   13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
   13429 $as_echo_n "checking for long long support in compiler... " >&6; }
   13430 if test "${gdb_cv_c_long_long+set}" = set; then :
   13431   $as_echo_n "(cached) " >&6
   13432 else
   13433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13434 /* end confdefs.h.  */
   13435 extern long long foo;
   13436 int
   13437 main ()
   13438 {
   13439 switch (foo & 2) { case 0: return 1; }
   13440   ;
   13441   return 0;
   13442 }
   13443 _ACEOF
   13444 if ac_fn_c_try_compile "$LINENO"; then :
   13445   gdb_cv_c_long_long=yes
   13446 else
   13447   gdb_cv_c_long_long=no
   13448 fi
   13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13450 fi
   13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
   13452 $as_echo "$gdb_cv_c_long_long" >&6; }
   13453 if test $gdb_cv_c_long_long != yes; then
   13454   # libdecnumber requires long long.
   13455   as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
   13456 fi
   13457 
   13458 # Check if the compiler and runtime support printing long longs.
   13459 
   13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
   13461 $as_echo_n "checking for long long support in printf... " >&6; }
   13462 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
   13463   $as_echo_n "(cached) " >&6
   13464 else
   13465   if test "$cross_compiling" = yes; then :
   13466   gdb_cv_printf_has_long_long=no
   13467 else
   13468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13469 /* end confdefs.h.  */
   13470 $ac_includes_default
   13471 int
   13472 main ()
   13473 {
   13474 char buf[32];
   13475   long long l = 0;
   13476   l = (l << 16) + 0x0123;
   13477   l = (l << 16) + 0x4567;
   13478   l = (l << 16) + 0x89ab;
   13479   l = (l << 16) + 0xcdef;
   13480   sprintf (buf, "0x%016llx", l);
   13481   return (strcmp ("0x0123456789abcdef", buf));
   13482   ;
   13483   return 0;
   13484 }
   13485 _ACEOF
   13486 if ac_fn_c_try_run "$LINENO"; then :
   13487   gdb_cv_printf_has_long_long=yes
   13488 else
   13489   gdb_cv_printf_has_long_long=no
   13490 fi
   13491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13492   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13493 fi
   13494 
   13495 fi
   13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
   13497 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
   13498 if test $gdb_cv_printf_has_long_long = yes; then
   13499 
   13500 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
   13501 
   13502 fi
   13503 
   13504 # Check if the compiler and runtime support printing decfloats.
   13505 
   13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
   13507 $as_echo_n "checking for decfloat support in printf... " >&6; }
   13508 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
   13509   $as_echo_n "(cached) " >&6
   13510 else
   13511   if test "$cross_compiling" = yes; then :
   13512   gdb_cv_printf_has_decfloat=no
   13513 else
   13514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13515 /* end confdefs.h.  */
   13516 $ac_includes_default
   13517 int
   13518 main ()
   13519 {
   13520 char buf[64];
   13521   _Decimal32 d32 = 1.2345df;
   13522   _Decimal64 d64 = 1.2345dd;
   13523   _Decimal128 d128 = 1.2345dl;
   13524   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
   13525   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
   13526   ;
   13527   return 0;
   13528 }
   13529 _ACEOF
   13530 if ac_fn_c_try_run "$LINENO"; then :
   13531   gdb_cv_printf_has_decfloat=yes
   13532 else
   13533   gdb_cv_printf_has_decfloat=no
   13534 fi
   13535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13536   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13537 fi
   13538 
   13539 fi
   13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
   13541 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
   13542 if test $gdb_cv_printf_has_decfloat = yes; then
   13543 
   13544 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
   13545 
   13546 fi
   13547 
   13548 # Check if the compiler supports the `long double' type.  We can't use
   13549 # AC_C_LONG_DOUBLE because that one does additional checks on the
   13550 # constants defined in <float.h> that fail on some systems,
   13551 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
   13552 
   13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
   13554 $as_echo_n "checking for long double support in compiler... " >&6; }
   13555 if test "${gdb_cv_c_long_double+set}" = set; then :
   13556   $as_echo_n "(cached) " >&6
   13557 else
   13558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13559 /* end confdefs.h.  */
   13560 long double foo;
   13561 _ACEOF
   13562 if ac_fn_c_try_compile "$LINENO"; then :
   13563   gdb_cv_c_long_double=yes
   13564 else
   13565   gdb_cv_c_long_double=no
   13566 fi
   13567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13568 fi
   13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
   13570 $as_echo "$gdb_cv_c_long_double" >&6; }
   13571 if test $gdb_cv_c_long_double = yes; then
   13572 
   13573 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
   13574 
   13575 fi
   13576 
   13577 # Check if the compiler and runtime support printing long doubles.
   13578 
   13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
   13580 $as_echo_n "checking for long double support in printf... " >&6; }
   13581 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
   13582   $as_echo_n "(cached) " >&6
   13583 else
   13584   if test "$cross_compiling" = yes; then :
   13585   gdb_cv_printf_has_long_double=no
   13586 else
   13587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13588 /* end confdefs.h.  */
   13589 $ac_includes_default
   13590 int
   13591 main ()
   13592 {
   13593 char buf[16];
   13594   long double f = 3.141592653;
   13595   sprintf (buf, "%Lg", f);
   13596   return (strncmp ("3.14159", buf, 7));
   13597   ;
   13598   return 0;
   13599 }
   13600 _ACEOF
   13601 if ac_fn_c_try_run "$LINENO"; then :
   13602   gdb_cv_printf_has_long_double=yes
   13603 else
   13604   gdb_cv_printf_has_long_double=no
   13605 fi
   13606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13607   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13608 fi
   13609 
   13610 fi
   13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
   13612 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
   13613 if test $gdb_cv_printf_has_long_double = yes; then
   13614 
   13615 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
   13616 
   13617 fi
   13618 
   13619 # Check if the compiler and runtime support scanning long doubles.
   13620 
   13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
   13622 $as_echo_n "checking for long double support in scanf... " >&6; }
   13623 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
   13624   $as_echo_n "(cached) " >&6
   13625 else
   13626   if test "$cross_compiling" = yes; then :
   13627   gdb_cv_scanf_has_long_double=no
   13628 else
   13629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13630 /* end confdefs.h.  */
   13631 #include <stdio.h>
   13632 int
   13633 main ()
   13634 {
   13635 char *buf = "3.141592653";
   13636   long double f = 0;
   13637   sscanf (buf, "%Lg", &f);
   13638   return !(f > 3.14159 && f < 3.14160);
   13639   ;
   13640   return 0;
   13641 }
   13642 _ACEOF
   13643 if ac_fn_c_try_run "$LINENO"; then :
   13644   gdb_cv_scanf_has_long_double=yes
   13645 else
   13646   gdb_cv_scanf_has_long_double=no
   13647 fi
   13648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13649   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13650 fi
   13651 
   13652 fi
   13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
   13654 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
   13655 if test $gdb_cv_scanf_has_long_double = yes; then
   13656 
   13657 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
   13658 
   13659 fi
   13660 
   13661 case ${host_os} in
   13662 aix*)
   13663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
   13664 $as_echo_n "checking for -bbigtoc option... " >&6; }
   13665 if test "${gdb_cv_bigtoc+set}" = set; then :
   13666   $as_echo_n "(cached) " >&6
   13667 else
   13668 
   13669     SAVE_LDFLAGS=$LDFLAGS
   13670 
   13671     case $GCC in
   13672     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
   13673     *) gdb_cv_bigtoc=-bbigtoc ;;
   13674     esac
   13675 
   13676     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
   13677     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13678 /* end confdefs.h.  */
   13679 
   13680 int
   13681 main ()
   13682 {
   13683 int i;
   13684   ;
   13685   return 0;
   13686 }
   13687 _ACEOF
   13688 if ac_fn_c_try_link "$LINENO"; then :
   13689 
   13690 else
   13691   gdb_cv_bigtoc=
   13692 fi
   13693 rm -f core conftest.err conftest.$ac_objext \
   13694     conftest$ac_exeext conftest.$ac_ext
   13695     LDFLAGS="${SAVE_LDFLAGS}"
   13696 
   13697 fi
   13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
   13699 $as_echo "$gdb_cv_bigtoc" >&6; }
   13700   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
   13701   ;;
   13702 esac
   13703 
   13704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
   13705 $as_echo_n "checking for the dynamic export flag... " >&6; }
   13706 dynamic_list=false
   13707 if test "${gdb_native}" = yes; then
   13708    # The dynamically loaded libthread_db needs access to symbols in the gdb
   13709    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
   13710    # may not be supported there.
   13711    old_LDFLAGS="$LDFLAGS"
   13712    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
   13713    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
   13714    LDFLAGS="$LDFLAGS $RDYNAMIC"
   13715    if test "${have_libpython}" = no; then
   13716      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13717 /* end confdefs.h.  */
   13718 
   13719 int
   13720 main ()
   13721 {
   13722 
   13723   ;
   13724   return 0;
   13725 }
   13726 _ACEOF
   13727 if ac_fn_c_try_link "$LINENO"; then :
   13728   dynamic_list=true
   13729 fi
   13730 rm -f core conftest.err conftest.$ac_objext \
   13731     conftest$ac_exeext conftest.$ac_ext
   13732    else
   13733      # Workaround http://bugs.python.org/issue4434 where static
   13734      # libpythonX.Y.a would get its symbols required for
   13735      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
   13736      # Problem does not happen for the recommended libpythonX.Y.so linkage.
   13737 
   13738      # Note the workaround for Python
   13739      # http://bugs.python.org/issue10112 earlier has removed
   13740      # -export-dynamic from PYTHON_LIBS.  That's exactly what we want
   13741      # here too, as otherwise it'd make this -Wl,--dynamic-list test
   13742      # always pass.
   13743      old_CFLAGS="$CFLAGS"
   13744      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
   13745      old_LIBS="$LIBS"
   13746      LIBS="$LIBS $PYTHON_LIBS"
   13747      old_CPPFLAGS="$CPPFLAGS"
   13748      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
   13749      if test "$cross_compiling" = yes; then :
   13750   true
   13751 else
   13752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13753 /* end confdefs.h.  */
   13754 #include "Python.h"
   13755 int
   13756 main ()
   13757 {
   13758 int err;
   13759           Py_Initialize ();
   13760           err = PyRun_SimpleString ("import itertools\n");
   13761           Py_Finalize ();
   13762           return err == 0 ? 0 : 1;
   13763   ;
   13764   return 0;
   13765 }
   13766 _ACEOF
   13767 if ac_fn_c_try_run "$LINENO"; then :
   13768   dynamic_list=true
   13769 fi
   13770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13771   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13772 fi
   13773 
   13774      LIBS="$old_LIBS"
   13775      CFLAGS="$old_CFLAGS"
   13776      CPPFLAGS="$old_CPPFLAGS"
   13777    fi
   13778    LDFLAGS="$old_LDFLAGS"
   13779 fi
   13780 if $dynamic_list; then
   13781   found="-Wl,--dynamic-list"
   13782   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
   13783 else
   13784   found="-rdynamic"
   13785   RDYNAMIC="-rdynamic"
   13786 fi
   13787 
   13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
   13789 $as_echo "$found" >&6; }
   13790 
   13791 
   13792 if test ${build} = ${host} -a ${host} = ${target} ; then
   13793    case ${host_os} in
   13794    solaris*)
   13795       # See if thread_db library is around for Solaris thread debugging.
   13796       # Note that we must explicitly test for version 1 of the library
   13797       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
   13798       # the same API.
   13799       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
   13800 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
   13801       if test -f /usr/lib/libthread_db.so.1 ; then
   13802          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   13803 $as_echo "yes" >&6; }
   13804 
   13805 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
   13806 
   13807          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
   13808          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
   13809          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   13810 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   13811 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
   13812   $as_echo_n "(cached) " >&6
   13813 else
   13814   ac_check_lib_save_LIBS=$LIBS
   13815 LIBS="-ldl  $LIBS"
   13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13817 /* end confdefs.h.  */
   13818 
   13819 /* Override any GCC internal prototype to avoid an error.
   13820    Use char because int might match the return type of a GCC
   13821    builtin and then its argument prototype would still apply.  */
   13822 #ifdef __cplusplus
   13823 extern "C"
   13824 #endif
   13825 char dlopen ();
   13826 int
   13827 main ()
   13828 {
   13829 return dlopen ();
   13830   ;
   13831   return 0;
   13832 }
   13833 _ACEOF
   13834 if ac_fn_c_try_link "$LINENO"; then :
   13835   ac_cv_lib_dl_dlopen=yes
   13836 else
   13837   ac_cv_lib_dl_dlopen=no
   13838 fi
   13839 rm -f core conftest.err conftest.$ac_objext \
   13840     conftest$ac_exeext conftest.$ac_ext
   13841 LIBS=$ac_check_lib_save_LIBS
   13842 fi
   13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   13844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   13845 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
   13846   cat >>confdefs.h <<_ACEOF
   13847 #define HAVE_LIBDL 1
   13848 _ACEOF
   13849 
   13850   LIBS="-ldl $LIBS"
   13851 
   13852 fi
   13853 
   13854 	 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
   13855 	 # Sun randomly tweaked the prototypes in <proc_service.h>
   13856 	 # at one point.
   13857 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
   13858 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
   13859 	 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
   13860   $as_echo_n "(cached) " >&6
   13861 else
   13862 
   13863 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13864 /* end confdefs.h.  */
   13865 
   13866 		#include <proc_service.h>
   13867 		ps_err_e ps_pdwrite
   13868 		    (struct ps_prochandle*, psaddr_t, const void*, size_t);
   13869 
   13870 int
   13871 main ()
   13872 {
   13873 
   13874   ;
   13875   return 0;
   13876 }
   13877 _ACEOF
   13878 if ac_fn_c_try_compile "$LINENO"; then :
   13879   gdb_cv_proc_service_is_old=no
   13880 else
   13881   gdb_cv_proc_service_is_old=yes
   13882 fi
   13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13884 
   13885 fi
   13886 
   13887 	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
   13888 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
   13889 	 if test $gdb_cv_proc_service_is_old = yes; then
   13890 
   13891 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
   13892 
   13893 	 fi
   13894       else
   13895          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   13896 $as_echo "no" >&6; }
   13897       fi
   13898       ;;
   13899    aix*)
   13900       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
   13901 $as_echo_n "checking for AiX thread debugging library... " >&6; }
   13902       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
   13903   $as_echo_n "(cached) " >&6
   13904 else
   13905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13906 /* end confdefs.h.  */
   13907 #include <sys/pthdebug.h>
   13908 int
   13909 main ()
   13910 {
   13911 #ifndef PTHDB_VERSION_3
   13912                                     #error
   13913                                     #endif
   13914   ;
   13915   return 0;
   13916 }
   13917 _ACEOF
   13918 if ac_fn_c_try_compile "$LINENO"; then :
   13919   gdb_cv_have_aix_thread_debug=yes
   13920 else
   13921   gdb_cv_have_aix_thread_debug=no
   13922 fi
   13923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13924 fi
   13925 
   13926       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
   13927 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
   13928       if test $gdb_cv_have_aix_thread_debug = yes; then
   13929          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
   13930          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
   13931          LIBS="$LIBS -lpthdebug"
   13932 
   13933          # Older versions of AIX do not provide the declaration for
   13934          # the getthrds function (it appears that it was introduced
   13935          # with AIX 6.x).
   13936          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
   13937 "
   13938 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
   13939   ac_have_decl=1
   13940 else
   13941   ac_have_decl=0
   13942 fi
   13943 
   13944 cat >>confdefs.h <<_ACEOF
   13945 #define HAVE_DECL_GETTHRDS $ac_have_decl
   13946 _ACEOF
   13947 
   13948       fi
   13949       ;;
   13950    esac
   13951 
   13952 fi
   13953 
   13954 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
   13955    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
   13956 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
   13957 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
   13958   $as_echo_n "(cached) " >&6
   13959 else
   13960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13961 /* end confdefs.h.  */
   13962 #include <thread_db.h>
   13963 int
   13964 main ()
   13965 {
   13966 int i = TD_NOTALLOC;
   13967   ;
   13968   return 0;
   13969 }
   13970 _ACEOF
   13971 if ac_fn_c_try_compile "$LINENO"; then :
   13972   gdb_cv_thread_db_h_has_td_notalloc=yes
   13973 else
   13974   gdb_cv_thread_db_h_has_td_notalloc=no
   13975 
   13976 fi
   13977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13978 
   13979 fi
   13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
   13981 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
   13982    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
   13983 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
   13984 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
   13985   $as_echo_n "(cached) " >&6
   13986 else
   13987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13988 /* end confdefs.h.  */
   13989 #include <thread_db.h>
   13990 int
   13991 main ()
   13992 {
   13993 int i = TD_VERSION;
   13994   ;
   13995   return 0;
   13996 }
   13997 _ACEOF
   13998 if ac_fn_c_try_compile "$LINENO"; then :
   13999   gdb_cv_thread_db_h_has_td_version=yes
   14000 else
   14001   gdb_cv_thread_db_h_has_td_version=no
   14002 
   14003 fi
   14004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14005 
   14006 fi
   14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
   14008 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
   14009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
   14010 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
   14011 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
   14012   $as_echo_n "(cached) " >&6
   14013 else
   14014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14015 /* end confdefs.h.  */
   14016 #include <thread_db.h>
   14017 int
   14018 main ()
   14019 {
   14020 int i = TD_NOTLS;
   14021   ;
   14022   return 0;
   14023 }
   14024 _ACEOF
   14025 if ac_fn_c_try_compile "$LINENO"; then :
   14026   gdb_cv_thread_db_h_has_td_notls=yes
   14027 else
   14028   gdb_cv_thread_db_h_has_td_notls=no
   14029 
   14030 fi
   14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14032 
   14033 fi
   14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
   14035 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
   14036 fi
   14037 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
   14038 
   14039 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
   14040 
   14041 fi
   14042 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
   14043 
   14044 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
   14045 
   14046 fi
   14047 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
   14048 
   14049 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
   14050 
   14051 fi
   14052 
   14053 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
   14054 "
   14055 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
   14056   ac_have_decl=1
   14057 else
   14058   ac_have_decl=0
   14059 fi
   14060 
   14061 cat >>confdefs.h <<_ACEOF
   14062 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
   14063 _ACEOF
   14064 
   14065 
   14066 if test "$cross_compiling" = yes; then :
   14067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14068 /* end confdefs.h.  */
   14069 #include <sys/personality.h>
   14070 int
   14071 main ()
   14072 {
   14073 
   14074 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   14075 #       define ADDR_NO_RANDOMIZE 0x0040000
   14076 #      endif
   14077        /* Test the flag could be set and stays set.  */
   14078        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   14079        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   14080 	   return 1
   14081   ;
   14082   return 0;
   14083 }
   14084 _ACEOF
   14085 if ac_fn_c_try_link "$LINENO"; then :
   14086   have_personality=true
   14087 else
   14088   have_personality=false
   14089 fi
   14090 rm -f core conftest.err conftest.$ac_objext \
   14091     conftest$ac_exeext conftest.$ac_ext
   14092 else
   14093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14094 /* end confdefs.h.  */
   14095 #include <sys/personality.h>
   14096 int
   14097 main ()
   14098 {
   14099 
   14100 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   14101 #       define ADDR_NO_RANDOMIZE 0x0040000
   14102 #      endif
   14103        /* Test the flag could be set and stays set.  */
   14104        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   14105        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   14106 	   return 1
   14107   ;
   14108   return 0;
   14109 }
   14110 _ACEOF
   14111 if ac_fn_c_try_run "$LINENO"; then :
   14112   have_personality=true
   14113 else
   14114   have_personality=false
   14115 fi
   14116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   14117   conftest.$ac_objext conftest.beam conftest.$ac_ext
   14118 fi
   14119 
   14120 if $have_personality
   14121 then
   14122 
   14123 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
   14124 
   14125 fi
   14126 
   14127 case $host_os in
   14128   go32* | *djgpp*)
   14129     gdbinit=gdb.ini
   14130     ;;
   14131   *)
   14132     gdbinit=.gdbinit
   14133     ;;
   14134 esac
   14135 
   14136 cat >>confdefs.h <<_ACEOF
   14137 #define GDBINIT "$gdbinit"
   14138 _ACEOF
   14139 
   14140 
   14141 
   14142 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
   14143 # except that the argument to --with-sysroot is optional.
   14144 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
   14145 if test "x$with_sysroot" = xyes; then
   14146   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
   14147 fi
   14148 
   14149 # Check whether --with-sysroot was given.
   14150 if test "${with_sysroot+set}" = set; then :
   14151   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
   14152 else
   14153   TARGET_SYSTEM_ROOT=
   14154 fi
   14155 
   14156 
   14157   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   14158   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   14159   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
   14160   ac_define_dir=`eval echo $ac_define_dir`
   14161 
   14162 cat >>confdefs.h <<_ACEOF
   14163 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
   14164 _ACEOF
   14165 
   14166 
   14167 
   14168 
   14169   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   14170      if test "x$prefix" = xNONE; then
   14171      	test_prefix=/usr/local
   14172      else
   14173 	test_prefix=$prefix
   14174      fi
   14175   else
   14176      test_prefix=$exec_prefix
   14177   fi
   14178   value=0
   14179   case ${ac_define_dir} in
   14180      "${test_prefix}"|"${test_prefix}/"*|\
   14181 	'${exec_prefix}'|'${exec_prefix}/'*)
   14182      value=1
   14183      ;;
   14184   esac
   14185 
   14186 cat >>confdefs.h <<_ACEOF
   14187 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
   14188 _ACEOF
   14189 
   14190 
   14191 
   14192 
   14193 
   14194 # Check whether --with-system-gdbinit was given.
   14195 if test "${with_system_gdbinit+set}" = set; then :
   14196   withval=$with_system_gdbinit;
   14197     SYSTEM_GDBINIT=$withval
   14198 else
   14199   SYSTEM_GDBINIT=
   14200 fi
   14201 
   14202 
   14203   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   14204   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   14205   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
   14206   ac_define_dir=`eval echo $ac_define_dir`
   14207 
   14208 cat >>confdefs.h <<_ACEOF
   14209 #define SYSTEM_GDBINIT "$ac_define_dir"
   14210 _ACEOF
   14211 
   14212 
   14213 
   14214 
   14215   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   14216      if test "x$prefix" = xNONE; then
   14217      	test_prefix=/usr/local
   14218      else
   14219 	test_prefix=$prefix
   14220      fi
   14221   else
   14222      test_prefix=$exec_prefix
   14223   fi
   14224   value=0
   14225   case ${ac_define_dir} in
   14226      "${test_prefix}"|"${test_prefix}/"*|\
   14227 	'${exec_prefix}'|'${exec_prefix}/'*)
   14228      value=1
   14229      ;;
   14230   esac
   14231 
   14232 cat >>confdefs.h <<_ACEOF
   14233 #define SYSTEM_GDBINIT_RELOCATABLE $value
   14234 _ACEOF
   14235 
   14236 
   14237 
   14238 
   14239 
   14240 
   14241 # Check whether --enable-werror was given.
   14242 if test "${enable_werror+set}" = set; then :
   14243   enableval=$enable_werror; case "${enableval}" in
   14244      yes | y) ERROR_ON_WARNING="yes" ;;
   14245      no | n)  ERROR_ON_WARNING="no" ;;
   14246      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
   14247    esac
   14248 fi
   14249 
   14250 
   14251 # Enable -Werror by default when using gcc.  Turn it off for releases.
   14252 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
   14253     ERROR_ON_WARNING=yes
   14254 fi
   14255 
   14256 WERROR_CFLAGS=""
   14257 if test "${ERROR_ON_WARNING}" = yes ; then
   14258     WERROR_CFLAGS="-Werror"
   14259 fi
   14260 
   14261 # These options work in either C or C++ modes.
   14262 build_warnings="-Wall -Wpointer-arith \
   14263 -Wno-unused -Wunused-value -Wunused-function \
   14264 -Wno-switch -Wno-char-subscripts \
   14265 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable"
   14266 
   14267 # Now add in C and C++ specific options, depending on mode.
   14268 if test "$enable_build_with_cxx" = "yes"; then
   14269    build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
   14270 -Wno-narrowing"
   14271 else
   14272    build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
   14273 -Wdeclaration-after-statement -Wmissing-parameter-type \
   14274 -Wold-style-declaration -Wold-style-definition"
   14275 fi
   14276 
   14277 # Enable -Wno-format by default when using gcc on mingw since many
   14278 # GCC versions complain about %I64.
   14279 case "${host}" in
   14280   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
   14281   *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
   14282 esac
   14283 
   14284 # Check whether --enable-build-warnings was given.
   14285 if test "${enable_build_warnings+set}" = set; then :
   14286   enableval=$enable_build_warnings; case "${enableval}" in
   14287   yes)	;;
   14288   no)	build_warnings="-w";;
   14289   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   14290         build_warnings="${build_warnings} ${t}";;
   14291   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   14292         build_warnings="${t} ${build_warnings}";;
   14293   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   14294 esac
   14295 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   14296   echo "Setting compiler warning flags = $build_warnings" 6>&1
   14297 fi
   14298 fi
   14299 # Check whether --enable-gdb-build-warnings was given.
   14300 if test "${enable_gdb_build_warnings+set}" = set; then :
   14301   enableval=$enable_gdb_build_warnings; case "${enableval}" in
   14302   yes)	;;
   14303   no)	build_warnings="-w";;
   14304   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   14305         build_warnings="${build_warnings} ${t}";;
   14306   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   14307         build_warnings="${t} ${build_warnings}";;
   14308   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   14309 esac
   14310 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   14311   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
   14312 fi
   14313 fi
   14314 
   14315 # The set of warnings supported by a C++ compiler is not the same as
   14316 # of the C compiler.
   14317 if test "$enable_build_with_cxx" = "yes"; then
   14318     ac_ext=cpp
   14319 ac_cpp='$CXXCPP $CPPFLAGS'
   14320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   14323 
   14324 fi
   14325 
   14326 WARN_CFLAGS=""
   14327 if test "x${build_warnings}" != x -a "x$GCC" = xyes
   14328 then
   14329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
   14330 $as_echo_n "checking compiler warning flags... " >&6; }
   14331     # Separate out the -Werror flag as some files just cannot be
   14332     # compiled with it enabled.
   14333     for w in ${build_warnings}; do
   14334 	# GCC does not complain about -Wno-unknown-warning.  Invert
   14335 	# and test -Wunknown-warning instead.
   14336 	case $w in
   14337 	-Wno-*)
   14338 		wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
   14339 	*)
   14340 		wtest=$w ;;
   14341 	esac
   14342 
   14343 	case $w in
   14344 	-Werr*) WERROR_CFLAGS=-Werror ;;
   14345 	*)
   14346 	    # Check whether GCC accepts it.
   14347 	    saved_CFLAGS="$CFLAGS"
   14348 	    CFLAGS="$CFLAGS $wtest"
   14349 	    saved_CXXFLAGS="$CXXFLAGS"
   14350 	    CXXFLAGS="$CXXFLAGS $wtest"
   14351 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14352 /* end confdefs.h.  */
   14353 
   14354 int
   14355 main ()
   14356 {
   14357 
   14358   ;
   14359   return 0;
   14360 }
   14361 _ACEOF
   14362 if ac_fn_cxx_try_compile "$LINENO"; then :
   14363   WARN_CFLAGS="${WARN_CFLAGS} $w"
   14364 fi
   14365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14366 	    CFLAGS="$saved_CFLAGS"
   14367 	    CXXFLAGS="$saved_CXXFLAGS"
   14368 	esac
   14369     done
   14370     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
   14371 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
   14372 fi
   14373 
   14374 
   14375 
   14376 if test "$enable_build_with_cxx" = "yes"; then
   14377    ac_ext=c
   14378 ac_cpp='$CPP $CPPFLAGS'
   14379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14382 
   14383 fi
   14384 
   14385 
   14386 # In the Cygwin environment, we need some additional flags.
   14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
   14388 $as_echo_n "checking for cygwin... " >&6; }
   14389 if test "${gdb_cv_os_cygwin+set}" = set; then :
   14390   $as_echo_n "(cached) " >&6
   14391 else
   14392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14393 /* end confdefs.h.  */
   14394 
   14395 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
   14396 lose
   14397 #endif
   14398 _ACEOF
   14399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   14400   $EGREP "^lose$" >/dev/null 2>&1; then :
   14401   gdb_cv_os_cygwin=yes
   14402 else
   14403   gdb_cv_os_cygwin=no
   14404 fi
   14405 rm -f conftest*
   14406 
   14407 fi
   14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
   14409 $as_echo "$gdb_cv_os_cygwin" >&6; }
   14410 
   14411 
   14412 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
   14413 case ${host} in
   14414   *go32* ) SER_HARDWIRE=ser-go32.o ;;
   14415   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
   14416   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
   14417 esac
   14418 
   14419 
   14420 # libreadline needs libuser32.a in a cygwin environment
   14421 WIN32LIBS=
   14422 if test x$gdb_cv_os_cygwin = xyes; then
   14423     WIN32LIBS="-luser32"
   14424     case "${target}" in
   14425 	*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
   14426 	;;
   14427     esac
   14428 fi
   14429 
   14430 # The ser-tcp.c module requires sockets.
   14431 case ${host} in
   14432   *mingw32*)
   14433 
   14434 $as_echo "#define USE_WIN32API 1" >>confdefs.h
   14435 
   14436     WIN32LIBS="$WIN32LIBS -lws2_32"
   14437     ;;
   14438 esac
   14439 
   14440 
   14441 # Add ELF support to GDB, but only if BFD includes ELF support.
   14442 
   14443   OLD_CFLAGS=$CFLAGS
   14444   OLD_LDFLAGS=$LDFLAGS
   14445   OLD_LIBS=$LIBS
   14446   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   14447   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   14448   # always want our bfd.
   14449   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   14450   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
   14451   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
   14452   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   14453   LIBS="-lbfd -liberty -lz $intl $LIBS"
   14454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
   14455 $as_echo_n "checking for ELF support in BFD... " >&6; }
   14456 if test "${gdb_cv_var_elf+set}" = set; then :
   14457   $as_echo_n "(cached) " >&6
   14458 else
   14459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14460 /* end confdefs.h.  */
   14461 #include <stdlib.h>
   14462   #include "bfd.h"
   14463   #include "elf-bfd.h"
   14464 
   14465 int
   14466 main ()
   14467 {
   14468 return bfd_get_elf_phdr_upper_bound (NULL);
   14469   ;
   14470   return 0;
   14471 }
   14472 _ACEOF
   14473 if ac_fn_c_try_link "$LINENO"; then :
   14474   gdb_cv_var_elf=yes
   14475 else
   14476   gdb_cv_var_elf=no
   14477 fi
   14478 rm -f core conftest.err conftest.$ac_objext \
   14479     conftest$ac_exeext conftest.$ac_ext
   14480 fi
   14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
   14482 $as_echo "$gdb_cv_var_elf" >&6; }
   14483   CFLAGS=$OLD_CFLAGS
   14484   LDFLAGS=$OLD_LDFLAGS
   14485   LIBS=$OLD_LIBS
   14486 if test $gdb_cv_var_elf = yes; then
   14487   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
   14488 
   14489 $as_echo "#define HAVE_ELF 1" >>confdefs.h
   14490 
   14491   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
   14492   if test "$plugins" = "yes"; then
   14493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   14494 $as_echo_n "checking for library containing dlopen... " >&6; }
   14495 if test "${ac_cv_search_dlopen+set}" = set; then :
   14496   $as_echo_n "(cached) " >&6
   14497 else
   14498   ac_func_search_save_LIBS=$LIBS
   14499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14500 /* end confdefs.h.  */
   14501 
   14502 /* Override any GCC internal prototype to avoid an error.
   14503    Use char because int might match the return type of a GCC
   14504    builtin and then its argument prototype would still apply.  */
   14505 #ifdef __cplusplus
   14506 extern "C"
   14507 #endif
   14508 char dlopen ();
   14509 int
   14510 main ()
   14511 {
   14512 return dlopen ();
   14513   ;
   14514   return 0;
   14515 }
   14516 _ACEOF
   14517 for ac_lib in '' dl; do
   14518   if test -z "$ac_lib"; then
   14519     ac_res="none required"
   14520   else
   14521     ac_res=-l$ac_lib
   14522     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   14523   fi
   14524   if ac_fn_c_try_link "$LINENO"; then :
   14525   ac_cv_search_dlopen=$ac_res
   14526 fi
   14527 rm -f core conftest.err conftest.$ac_objext \
   14528     conftest$ac_exeext
   14529   if test "${ac_cv_search_dlopen+set}" = set; then :
   14530   break
   14531 fi
   14532 done
   14533 if test "${ac_cv_search_dlopen+set}" = set; then :
   14534 
   14535 else
   14536   ac_cv_search_dlopen=no
   14537 fi
   14538 rm conftest.$ac_ext
   14539 LIBS=$ac_func_search_save_LIBS
   14540 fi
   14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   14542 $as_echo "$ac_cv_search_dlopen" >&6; }
   14543 ac_res=$ac_cv_search_dlopen
   14544 if test "$ac_res" != no; then :
   14545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   14546 
   14547 fi
   14548 
   14549   fi
   14550 fi
   14551 
   14552 # Add macho support to GDB, but only if BFD includes it.
   14553 
   14554   OLD_CFLAGS=$CFLAGS
   14555   OLD_LDFLAGS=$LDFLAGS
   14556   OLD_LIBS=$LIBS
   14557   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   14558   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   14559   # always want our bfd.
   14560   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   14561   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
   14562   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
   14563   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   14564   LIBS="-lbfd -liberty -lz $intl $LIBS"
   14565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
   14566 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
   14567 if test "${gdb_cv_var_macho+set}" = set; then :
   14568   $as_echo_n "(cached) " >&6
   14569 else
   14570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14571 /* end confdefs.h.  */
   14572 #include <stdlib.h>
   14573   #include "bfd.h"
   14574   #include "mach-o.h"
   14575 
   14576 int
   14577 main ()
   14578 {
   14579 return bfd_mach_o_lookup_command (NULL, 0, NULL);
   14580   ;
   14581   return 0;
   14582 }
   14583 _ACEOF
   14584 if ac_fn_c_try_link "$LINENO"; then :
   14585   gdb_cv_var_macho=yes
   14586 else
   14587   gdb_cv_var_macho=no
   14588 fi
   14589 rm -f core conftest.err conftest.$ac_objext \
   14590     conftest$ac_exeext conftest.$ac_ext
   14591 fi
   14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
   14593 $as_echo "$gdb_cv_var_macho" >&6; }
   14594   CFLAGS=$OLD_CFLAGS
   14595   LDFLAGS=$OLD_LDFLAGS
   14596   LIBS=$OLD_LIBS
   14597 if test $gdb_cv_var_macho = yes; then
   14598   CONFIG_OBS="$CONFIG_OBS machoread.o"
   14599 fi
   14600 
   14601 # Add any host-specific objects to GDB.
   14602 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
   14603 
   14604 # If building on ELF, look for lzma support for embedded compressed debug info.
   14605 if test $gdb_cv_var_elf = yes; then
   14606 
   14607 # Check whether --with-lzma was given.
   14608 if test "${with_lzma+set}" = set; then :
   14609   withval=$with_lzma;
   14610 else
   14611   with_lzma=auto
   14612 fi
   14613 
   14614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
   14615 $as_echo_n "checking whether to use lzma... " >&6; }
   14616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
   14617 $as_echo "$with_lzma" >&6; }
   14618 
   14619   if test "${with_lzma}" != no; then
   14620 
   14621 
   14622 
   14623 
   14624 
   14625 
   14626 
   14627 
   14628     use_additional=yes
   14629 
   14630   acl_save_prefix="$prefix"
   14631   prefix="$acl_final_prefix"
   14632   acl_save_exec_prefix="$exec_prefix"
   14633   exec_prefix="$acl_final_exec_prefix"
   14634 
   14635     eval additional_includedir=\"$includedir\"
   14636     eval additional_libdir=\"$libdir\"
   14637 
   14638   exec_prefix="$acl_save_exec_prefix"
   14639   prefix="$acl_save_prefix"
   14640 
   14641 
   14642 # Check whether --with-liblzma-prefix was given.
   14643 if test "${with_liblzma_prefix+set}" = set; then :
   14644   withval=$with_liblzma_prefix;
   14645     if test "X$withval" = "Xno"; then
   14646       use_additional=no
   14647     else
   14648       if test "X$withval" = "X"; then
   14649 
   14650   acl_save_prefix="$prefix"
   14651   prefix="$acl_final_prefix"
   14652   acl_save_exec_prefix="$exec_prefix"
   14653   exec_prefix="$acl_final_exec_prefix"
   14654 
   14655           eval additional_includedir=\"$includedir\"
   14656           eval additional_libdir=\"$libdir\"
   14657 
   14658   exec_prefix="$acl_save_exec_prefix"
   14659   prefix="$acl_save_prefix"
   14660 
   14661       else
   14662         additional_includedir="$withval/include"
   14663         additional_libdir="$withval/lib"
   14664       fi
   14665     fi
   14666 
   14667 fi
   14668 
   14669       LIBLZMA=
   14670   LTLIBLZMA=
   14671   INCLZMA=
   14672   rpathdirs=
   14673   ltrpathdirs=
   14674   names_already_handled=
   14675   names_next_round='lzma '
   14676   while test -n "$names_next_round"; do
   14677     names_this_round="$names_next_round"
   14678     names_next_round=
   14679     for name in $names_this_round; do
   14680       already_handled=
   14681       for n in $names_already_handled; do
   14682         if test "$n" = "$name"; then
   14683           already_handled=yes
   14684           break
   14685         fi
   14686       done
   14687       if test -z "$already_handled"; then
   14688         names_already_handled="$names_already_handled $name"
   14689                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   14690         eval value=\"\$HAVE_LIB$uppername\"
   14691         if test -n "$value"; then
   14692           if test "$value" = yes; then
   14693             eval value=\"\$LIB$uppername\"
   14694             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
   14695             eval value=\"\$LTLIB$uppername\"
   14696             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
   14697           else
   14698                                     :
   14699           fi
   14700         else
   14701                               found_dir=
   14702           found_la=
   14703           found_so=
   14704           found_a=
   14705           if test $use_additional = yes; then
   14706             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   14707               found_dir="$additional_libdir"
   14708               found_so="$additional_libdir/lib$name.$shlibext"
   14709               if test -f "$additional_libdir/lib$name.la"; then
   14710                 found_la="$additional_libdir/lib$name.la"
   14711               fi
   14712             else
   14713               if test -f "$additional_libdir/lib$name.$libext"; then
   14714                 found_dir="$additional_libdir"
   14715                 found_a="$additional_libdir/lib$name.$libext"
   14716                 if test -f "$additional_libdir/lib$name.la"; then
   14717                   found_la="$additional_libdir/lib$name.la"
   14718                 fi
   14719               fi
   14720             fi
   14721           fi
   14722           if test "X$found_dir" = "X"; then
   14723             for x in $LDFLAGS $LTLIBLZMA; do
   14724 
   14725   acl_save_prefix="$prefix"
   14726   prefix="$acl_final_prefix"
   14727   acl_save_exec_prefix="$exec_prefix"
   14728   exec_prefix="$acl_final_exec_prefix"
   14729   eval x=\"$x\"
   14730   exec_prefix="$acl_save_exec_prefix"
   14731   prefix="$acl_save_prefix"
   14732 
   14733               case "$x" in
   14734                 -L*)
   14735                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   14736                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   14737                     found_dir="$dir"
   14738                     found_so="$dir/lib$name.$shlibext"
   14739                     if test -f "$dir/lib$name.la"; then
   14740                       found_la="$dir/lib$name.la"
   14741                     fi
   14742                   else
   14743                     if test -f "$dir/lib$name.$libext"; then
   14744                       found_dir="$dir"
   14745                       found_a="$dir/lib$name.$libext"
   14746                       if test -f "$dir/lib$name.la"; then
   14747                         found_la="$dir/lib$name.la"
   14748                       fi
   14749                     fi
   14750                   fi
   14751                   ;;
   14752               esac
   14753               if test "X$found_dir" != "X"; then
   14754                 break
   14755               fi
   14756             done
   14757           fi
   14758           if test "X$found_dir" != "X"; then
   14759                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
   14760             if test "X$found_so" != "X"; then
   14761                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   14762                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   14763               else
   14764                                                                                 haveit=
   14765                 for x in $ltrpathdirs; do
   14766                   if test "X$x" = "X$found_dir"; then
   14767                     haveit=yes
   14768                     break
   14769                   fi
   14770                 done
   14771                 if test -z "$haveit"; then
   14772                   ltrpathdirs="$ltrpathdirs $found_dir"
   14773                 fi
   14774                                 if test "$hardcode_direct" = yes; then
   14775                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   14776                 else
   14777                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   14778                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   14779                                                             haveit=
   14780                     for x in $rpathdirs; do
   14781                       if test "X$x" = "X$found_dir"; then
   14782                         haveit=yes
   14783                         break
   14784                       fi
   14785                     done
   14786                     if test -z "$haveit"; then
   14787                       rpathdirs="$rpathdirs $found_dir"
   14788                     fi
   14789                   else
   14790                                                                                 haveit=
   14791                     for x in $LDFLAGS $LIBLZMA; do
   14792 
   14793   acl_save_prefix="$prefix"
   14794   prefix="$acl_final_prefix"
   14795   acl_save_exec_prefix="$exec_prefix"
   14796   exec_prefix="$acl_final_exec_prefix"
   14797   eval x=\"$x\"
   14798   exec_prefix="$acl_save_exec_prefix"
   14799   prefix="$acl_save_prefix"
   14800 
   14801                       if test "X$x" = "X-L$found_dir"; then
   14802                         haveit=yes
   14803                         break
   14804                       fi
   14805                     done
   14806                     if test -z "$haveit"; then
   14807                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
   14808                     fi
   14809                     if test "$hardcode_minus_L" != no; then
   14810                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   14811                     else
   14812                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   14813                     fi
   14814                   fi
   14815                 fi
   14816               fi
   14817             else
   14818               if test "X$found_a" != "X"; then
   14819                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
   14820               else
   14821                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
   14822               fi
   14823             fi
   14824                         additional_includedir=
   14825             case "$found_dir" in
   14826               */lib | */lib/)
   14827                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   14828                 additional_includedir="$basedir/include"
   14829                 ;;
   14830             esac
   14831             if test "X$additional_includedir" != "X"; then
   14832                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   14833                 haveit=
   14834                 if test "X$additional_includedir" = "X/usr/local/include"; then
   14835                   if test -n "$GCC"; then
   14836                     case $host_os in
   14837                       linux*) haveit=yes;;
   14838                     esac
   14839                   fi
   14840                 fi
   14841                 if test -z "$haveit"; then
   14842                   for x in $CPPFLAGS $INCLZMA; do
   14843 
   14844   acl_save_prefix="$prefix"
   14845   prefix="$acl_final_prefix"
   14846   acl_save_exec_prefix="$exec_prefix"
   14847   exec_prefix="$acl_final_exec_prefix"
   14848   eval x=\"$x\"
   14849   exec_prefix="$acl_save_exec_prefix"
   14850   prefix="$acl_save_prefix"
   14851 
   14852                     if test "X$x" = "X-I$additional_includedir"; then
   14853                       haveit=yes
   14854                       break
   14855                     fi
   14856                   done
   14857                   if test -z "$haveit"; then
   14858                     if test -d "$additional_includedir"; then
   14859                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
   14860                     fi
   14861                   fi
   14862                 fi
   14863               fi
   14864             fi
   14865                         if test -n "$found_la"; then
   14866                                                         save_libdir="$libdir"
   14867               case "$found_la" in
   14868                 */* | *\\*) . "$found_la" ;;
   14869                 *) . "./$found_la" ;;
   14870               esac
   14871               libdir="$save_libdir"
   14872                             for dep in $dependency_libs; do
   14873                 case "$dep" in
   14874                   -L*)
   14875                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   14876                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   14877                       haveit=
   14878                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   14879                         if test -n "$GCC"; then
   14880                           case $host_os in
   14881                             linux*) haveit=yes;;
   14882                           esac
   14883                         fi
   14884                       fi
   14885                       if test -z "$haveit"; then
   14886                         haveit=
   14887                         for x in $LDFLAGS $LIBLZMA; do
   14888 
   14889   acl_save_prefix="$prefix"
   14890   prefix="$acl_final_prefix"
   14891   acl_save_exec_prefix="$exec_prefix"
   14892   exec_prefix="$acl_final_exec_prefix"
   14893   eval x=\"$x\"
   14894   exec_prefix="$acl_save_exec_prefix"
   14895   prefix="$acl_save_prefix"
   14896 
   14897                           if test "X$x" = "X-L$additional_libdir"; then
   14898                             haveit=yes
   14899                             break
   14900                           fi
   14901                         done
   14902                         if test -z "$haveit"; then
   14903                           if test -d "$additional_libdir"; then
   14904                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
   14905                           fi
   14906                         fi
   14907                         haveit=
   14908                         for x in $LDFLAGS $LTLIBLZMA; do
   14909 
   14910   acl_save_prefix="$prefix"
   14911   prefix="$acl_final_prefix"
   14912   acl_save_exec_prefix="$exec_prefix"
   14913   exec_prefix="$acl_final_exec_prefix"
   14914   eval x=\"$x\"
   14915   exec_prefix="$acl_save_exec_prefix"
   14916   prefix="$acl_save_prefix"
   14917 
   14918                           if test "X$x" = "X-L$additional_libdir"; then
   14919                             haveit=yes
   14920                             break
   14921                           fi
   14922                         done
   14923                         if test -z "$haveit"; then
   14924                           if test -d "$additional_libdir"; then
   14925                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
   14926                           fi
   14927                         fi
   14928                       fi
   14929                     fi
   14930                     ;;
   14931                   -R*)
   14932                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   14933                     if test "$enable_rpath" != no; then
   14934                                                                   haveit=
   14935                       for x in $rpathdirs; do
   14936                         if test "X$x" = "X$dir"; then
   14937                           haveit=yes
   14938                           break
   14939                         fi
   14940                       done
   14941                       if test -z "$haveit"; then
   14942                         rpathdirs="$rpathdirs $dir"
   14943                       fi
   14944                                                                   haveit=
   14945                       for x in $ltrpathdirs; do
   14946                         if test "X$x" = "X$dir"; then
   14947                           haveit=yes
   14948                           break
   14949                         fi
   14950                       done
   14951                       if test -z "$haveit"; then
   14952                         ltrpathdirs="$ltrpathdirs $dir"
   14953                       fi
   14954                     fi
   14955                     ;;
   14956                   -l*)
   14957                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   14958                     ;;
   14959                   *.la)
   14960                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   14961                     ;;
   14962                   *)
   14963                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
   14964                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
   14965                     ;;
   14966                 esac
   14967               done
   14968             fi
   14969           else
   14970                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   14971             LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
   14972           fi
   14973         fi
   14974       fi
   14975     done
   14976   done
   14977   if test "X$rpathdirs" != "X"; then
   14978     if test -n "$hardcode_libdir_separator"; then
   14979                         alldirs=
   14980       for found_dir in $rpathdirs; do
   14981         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   14982       done
   14983             acl_save_libdir="$libdir"
   14984       libdir="$alldirs"
   14985       eval flag=\"$hardcode_libdir_flag_spec\"
   14986       libdir="$acl_save_libdir"
   14987       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   14988     else
   14989             for found_dir in $rpathdirs; do
   14990         acl_save_libdir="$libdir"
   14991         libdir="$found_dir"
   14992         eval flag=\"$hardcode_libdir_flag_spec\"
   14993         libdir="$acl_save_libdir"
   14994         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   14995       done
   14996     fi
   14997   fi
   14998   if test "X$ltrpathdirs" != "X"; then
   14999             for found_dir in $ltrpathdirs; do
   15000       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
   15001     done
   15002   fi
   15003 
   15004 
   15005         ac_save_CPPFLAGS="$CPPFLAGS"
   15006 
   15007   for element in $INCLZMA; do
   15008     haveit=
   15009     for x in $CPPFLAGS; do
   15010 
   15011   acl_save_prefix="$prefix"
   15012   prefix="$acl_final_prefix"
   15013   acl_save_exec_prefix="$exec_prefix"
   15014   exec_prefix="$acl_final_exec_prefix"
   15015   eval x=\"$x\"
   15016   exec_prefix="$acl_save_exec_prefix"
   15017   prefix="$acl_save_prefix"
   15018 
   15019       if test "X$x" = "X$element"; then
   15020         haveit=yes
   15021         break
   15022       fi
   15023     done
   15024     if test -z "$haveit"; then
   15025       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   15026     fi
   15027   done
   15028 
   15029 
   15030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
   15031 $as_echo_n "checking for liblzma... " >&6; }
   15032 if test "${ac_cv_liblzma+set}" = set; then :
   15033   $as_echo_n "(cached) " >&6
   15034 else
   15035 
   15036     ac_save_LIBS="$LIBS"
   15037     LIBS="$LIBS $LIBLZMA"
   15038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15039 /* end confdefs.h.  */
   15040 #include "lzma.h"
   15041 int
   15042 main ()
   15043 {
   15044 lzma_index_iter iter;
   15045 			   lzma_index_iter_init (&iter, 0);
   15046 			   lzma_mf_is_supported (LZMA_MF_HC3);
   15047   ;
   15048   return 0;
   15049 }
   15050 _ACEOF
   15051 if ac_fn_c_try_link "$LINENO"; then :
   15052   ac_cv_liblzma=yes
   15053 else
   15054   ac_cv_liblzma=no
   15055 fi
   15056 rm -f core conftest.err conftest.$ac_objext \
   15057     conftest$ac_exeext conftest.$ac_ext
   15058     LIBS="$ac_save_LIBS"
   15059 
   15060 fi
   15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
   15062 $as_echo "$ac_cv_liblzma" >&6; }
   15063   if test "$ac_cv_liblzma" = yes; then
   15064     HAVE_LIBLZMA=yes
   15065 
   15066 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
   15067 
   15068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
   15069 $as_echo_n "checking how to link with liblzma... " >&6; }
   15070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
   15071 $as_echo "$LIBLZMA" >&6; }
   15072   else
   15073     HAVE_LIBLZMA=no
   15074             CPPFLAGS="$ac_save_CPPFLAGS"
   15075     LIBLZMA=
   15076     LTLIBLZMA=
   15077   fi
   15078 
   15079 
   15080 
   15081 
   15082 
   15083 
   15084     if test "$HAVE_LIBLZMA" != yes; then
   15085       if test "$with_lzma" = yes; then
   15086         as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
   15087       fi
   15088     fi
   15089   fi
   15090 fi
   15091 
   15092 LIBGUI="../libgui/src/libgui.a"
   15093 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
   15094 
   15095 
   15096 
   15097 WIN32LDAPP=
   15098 
   15099 
   15100 
   15101 case "${host}" in
   15102 *-*-cygwin* | *-*-mingw* )
   15103     configdir="win"
   15104     ;;
   15105 *)
   15106     configdir="unix"
   15107     ;;
   15108 esac
   15109 
   15110 GDBTKLIBS=
   15111 if test "${enable_gdbtk}" = "yes"; then
   15112 
   15113     # Gdbtk must have an absolute path to srcdir in order to run
   15114     # properly when not installed.
   15115     here=`pwd`
   15116     cd ${srcdir}
   15117     GDBTK_SRC_DIR=`pwd`
   15118     cd $here
   15119 
   15120 
   15121     #
   15122     # Ok, lets find the tcl configuration
   15123     # First, look for one uninstalled.
   15124     # the alternative search directory is invoked by --with-tcl
   15125     #
   15126 
   15127     if test x"${no_tcl}" = x ; then
   15128 	# we reset no_tcl in case something fails here
   15129 	no_tcl=true
   15130 
   15131 # Check whether --with-tcl was given.
   15132 if test "${with_tcl+set}" = set; then :
   15133   withval=$with_tcl; with_tclconfig=${withval}
   15134 fi
   15135 
   15136 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
   15137 $as_echo_n "checking for Tcl configuration... " >&6; }
   15138 	if test "${ac_cv_c_tclconfig+set}" = set; then :
   15139   $as_echo_n "(cached) " >&6
   15140 else
   15141 
   15142 
   15143 	    # First check to see if --with-tcl was specified.
   15144 	    case "${host}" in
   15145 		*-*-cygwin*) platDir="win" ;;
   15146 		*) platDir="unix" ;;
   15147 	    esac
   15148 	    if test x"${with_tclconfig}" != x ; then
   15149 		if test -f "${with_tclconfig}/tclConfig.sh" ; then
   15150 		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
   15151 		else
   15152 		    as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
   15153 		fi
   15154 	    fi
   15155 
   15156 	    # then check for a private Tcl installation
   15157 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   15158 		for i in \
   15159 			../tcl \
   15160 			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   15161 			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
   15162 			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
   15163 			../../tcl \
   15164 			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   15165 			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
   15166 			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
   15167 			../../../tcl \
   15168 			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   15169 			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
   15170 			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
   15171 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   15172 			ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   15173 			break
   15174 		    fi
   15175 		done
   15176 	    fi
   15177 
   15178 	    # on Darwin, check in Framework installation locations
   15179 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
   15180 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   15181 			`ls -d /Library/Frameworks 2>/dev/null` \
   15182 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   15183 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   15184 			; do
   15185 		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
   15186 			ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
   15187 			break
   15188 		    fi
   15189 		done
   15190 	    fi
   15191 
   15192 	    # check in a few common install locations
   15193 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   15194 		for i in `ls -d ${libdir} 2>/dev/null` \
   15195 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   15196 			`ls -d ${prefix}/lib 2>/dev/null` \
   15197 			`ls -d /usr/local/lib 2>/dev/null` \
   15198 			`ls -d /usr/contrib/lib 2>/dev/null` \
   15199 			`ls -d /usr/lib 2>/dev/null` \
   15200 			; do
   15201 		    if test -f "$i/tclConfig.sh" ; then
   15202 			ac_cv_c_tclconfig=`(cd $i; pwd)`
   15203 			break
   15204 		    fi
   15205 		done
   15206 	    fi
   15207 
   15208 	    # check in a few other private locations
   15209 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   15210 		for i in \
   15211 			${srcdir}/../tcl \
   15212 			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   15213 			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
   15214 			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
   15215 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   15216 		    ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   15217 		    break
   15218 		fi
   15219 		done
   15220 	    fi
   15221 
   15222 fi
   15223 
   15224 
   15225 	if test x"${ac_cv_c_tclconfig}" = x ; then
   15226 	    TCL_BIN_DIR="# no Tcl configs found"
   15227 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
   15228 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
   15229 	else
   15230 	    no_tcl=
   15231 	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
   15232 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
   15233 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   15234 	fi
   15235     fi
   15236 
   15237 
   15238     # If $no_tk is nonempty, then we can't do Tk, and there is no
   15239     # point to doing Tcl.
   15240 
   15241     #
   15242     # Ok, lets find the tk configuration
   15243     # First, look for one uninstalled.
   15244     # the alternative search directory is invoked by --with-tk
   15245     #
   15246 
   15247     if test x"${no_tk}" = x ; then
   15248 	# we reset no_tk in case something fails here
   15249 	no_tk=true
   15250 
   15251 # Check whether --with-tk was given.
   15252 if test "${with_tk+set}" = set; then :
   15253   withval=$with_tk; with_tkconfig=${withval}
   15254 fi
   15255 
   15256 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
   15257 $as_echo_n "checking for Tk configuration... " >&6; }
   15258 	if test "${ac_cv_c_tkconfig+set}" = set; then :
   15259   $as_echo_n "(cached) " >&6
   15260 else
   15261 
   15262 
   15263 	    # First check to see if --with-tkconfig was specified.
   15264 	    if test x"${with_tkconfig}" != x ; then
   15265 		if test -f "${with_tkconfig}/tkConfig.sh" ; then
   15266 		    ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
   15267 		else
   15268 		    as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
   15269 		fi
   15270 	    fi
   15271 
   15272 	    # then check for a private Tk library
   15273 	    case "${host}" in
   15274 		*-*-cygwin*) platDir="win" ;;
   15275 		*) platDir="unix" ;;
   15276 	    esac
   15277 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   15278 		for i in \
   15279 			../tk \
   15280 			`ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   15281 			`ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
   15282 			`ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
   15283 			../../tk \
   15284 			`ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   15285 			`ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
   15286 			`ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
   15287 			../../../tk \
   15288 			`ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   15289 			`ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
   15290 			`ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
   15291 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   15292 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   15293 			break
   15294 		    fi
   15295 		done
   15296 	    fi
   15297 
   15298 	    # on Darwin, check in Framework installation locations
   15299 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
   15300 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   15301 			`ls -d /Library/Frameworks 2>/dev/null` \
   15302 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   15303 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   15304 			; do
   15305 		    if test -f "$i/Tk.framework/tkConfig.sh" ; then
   15306 			ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
   15307 			break
   15308 		    fi
   15309 		done
   15310 	    fi
   15311 
   15312 	    # check in a few common install locations
   15313 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   15314 		for i in `ls -d ${libdir} 2>/dev/null` \
   15315 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   15316 			`ls -d ${prefix}/lib 2>/dev/null` \
   15317 			`ls -d /usr/local/lib 2>/dev/null` \
   15318 			`ls -d /usr/contrib/lib 2>/dev/null` \
   15319 			`ls -d /usr/lib 2>/dev/null` \
   15320 			; do
   15321 		    if test -f "$i/tkConfig.sh" ; then
   15322 			ac_cv_c_tkconfig=`(cd $i; pwd)`
   15323 			break
   15324 		    fi
   15325 		done
   15326 	    fi
   15327 	    # check in a few other private locations
   15328 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   15329 		for i in \
   15330 			${srcdir}/../tk \
   15331 			`ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   15332 			`ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
   15333 			`ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
   15334 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   15335 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   15336 			break
   15337 		    fi
   15338 		done
   15339 	    fi
   15340 
   15341 fi
   15342 
   15343 
   15344 	if test x"${ac_cv_c_tkconfig}" = x ; then
   15345 	    TK_BIN_DIR="# no Tk configs found"
   15346 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
   15347 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
   15348 	else
   15349 	    no_tk=
   15350 	    TK_BIN_DIR=${ac_cv_c_tkconfig}
   15351 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
   15352 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   15353 	fi
   15354     fi
   15355 
   15356 
   15357     if test -z "${no_tcl}" -a -z "${no_tk}"; then
   15358 
   15359     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
   15360 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
   15361 
   15362     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
   15363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   15364 $as_echo "loading" >&6; }
   15365 	. ${TCL_BIN_DIR}/tclConfig.sh
   15366     else
   15367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
   15368 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   15369     fi
   15370 
   15371     # eval is required to do the TCL_DBGX substitution
   15372     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
   15373     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
   15374 
   15375     # If the TCL_BIN_DIR is the build directory (not the install directory),
   15376     # then set the common variable name to the value of the build variables.
   15377     # For example, the variable TCL_LIB_SPEC will be set to the value
   15378     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
   15379     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
   15380     # installed and uninstalled version of Tcl.
   15381     if test -f "${TCL_BIN_DIR}/Makefile" ; then
   15382         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
   15383         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
   15384         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
   15385     elif test "`uname -s`" = "Darwin"; then
   15386 	# If Tcl was built as a framework, attempt to use the libraries
   15387 	# from the framework at the given location so that linking works
   15388 	# against Tcl.framework installed in an arbitrary location.
   15389 	case ${TCL_DEFS} in
   15390 	    *TCL_FRAMEWORK*)
   15391 		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
   15392 		    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
   15393 			     "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
   15394 			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
   15395 			    TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
   15396 			    break
   15397 			fi
   15398 		    done
   15399 		fi
   15400 		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
   15401 		    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
   15402 		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
   15403 		fi
   15404 		;;
   15405 	esac
   15406     fi
   15407 
   15408     # eval is required to do the TCL_DBGX substitution
   15409     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
   15410     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
   15411     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
   15412     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
   15413 
   15414 
   15415 
   15416 
   15417 
   15418 
   15419 
   15420 
   15421 
   15422 
   15423 
   15424 
   15425 
   15426 
   15427 
   15428         # Check for in-tree tcl
   15429         here=`pwd`
   15430         cd ${srcdir}/..
   15431         topdir=`pwd`
   15432         cd ${here}
   15433 
   15434         intree="no"
   15435         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
   15436           intree="yes"
   15437         fi
   15438 
   15439         # Find Tcl private headers
   15440         if test x"${intree}" = xno; then
   15441 
   15442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
   15443 $as_echo_n "checking for Tcl private headers... " >&6; }
   15444   private_dir=""
   15445   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
   15446   if test -f ${dir}/tclInt.h ; then
   15447     private_dir=${dir}
   15448   fi
   15449 
   15450   if test x"${private_dir}" = x; then
   15451     as_fn_error "could not find private Tcl headers" "$LINENO" 5
   15452   else
   15453     TCL_PRIVATE_INCLUDE="-I${private_dir}"
   15454     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   15455 $as_echo "${private_dir}" >&6; }
   15456   fi
   15457 
   15458 	  TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
   15459           TCL_LIBRARY="${TCL_LIB_SPEC}"
   15460           TCL_DEPS=""
   15461         else
   15462           # If building tcl in the same src tree, private headers
   15463           # are not needed, but we need to be sure to use the right
   15464           # headers library
   15465 	  TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
   15466           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
   15467           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
   15468         fi
   15469 
   15470 
   15471 
   15472 
   15473 
   15474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
   15475 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
   15476 
   15477     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
   15478         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   15479 $as_echo "loading" >&6; }
   15480 	. ${TK_BIN_DIR}/tkConfig.sh
   15481     else
   15482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
   15483 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   15484     fi
   15485 
   15486     # eval is required to do the TK_DBGX substitution
   15487     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
   15488     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
   15489 
   15490     # If the TK_BIN_DIR is the build directory (not the install directory),
   15491     # then set the common variable name to the value of the build variables.
   15492     # For example, the variable TK_LIB_SPEC will be set to the value
   15493     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
   15494     # instead of TK_BUILD_LIB_SPEC since it will work with both an
   15495     # installed and uninstalled version of Tcl.
   15496     if test -f "${TK_BIN_DIR}/Makefile" ; then
   15497         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
   15498         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
   15499         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
   15500     elif test "`uname -s`" = "Darwin"; then
   15501 	# If Tk was built as a framework, attempt to use the libraries
   15502 	# from the framework at the given location so that linking works
   15503 	# against Tk.framework installed in an arbitrary location.
   15504 	case ${TK_DEFS} in
   15505 	    *TK_FRAMEWORK*)
   15506 		if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
   15507 		    for i in "`cd ${TK_BIN_DIR}; pwd`" \
   15508 			     "`cd ${TK_BIN_DIR}/../..; pwd`"; do
   15509 			if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
   15510 			    TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
   15511 			    break
   15512 			fi
   15513 		    done
   15514 		fi
   15515 		if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
   15516 		    TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
   15517 		    TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
   15518 		fi
   15519 		;;
   15520 	esac
   15521     fi
   15522 
   15523     # eval is required to do the TK_DBGX substitution
   15524     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
   15525     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
   15526     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
   15527     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
   15528 
   15529 
   15530 
   15531 
   15532 
   15533 
   15534 
   15535 
   15536 
   15537 
   15538 
   15539 
   15540 
   15541 
   15542         # Check for in-tree Tk
   15543         intree="no"
   15544         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
   15545           intree="yes"
   15546         fi
   15547 
   15548         # Find Tk private headers
   15549         if test x"${intree}" = xno; then
   15550 
   15551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
   15552 $as_echo_n "checking for Tk private headers... " >&6; }
   15553   private_dir=""
   15554   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
   15555   if test -f ${dir}/tkInt.h; then
   15556     private_dir=${dir}
   15557   fi
   15558 
   15559   if test x"${private_dir}" = x; then
   15560     as_fn_error "could not find Tk private headers" "$LINENO" 5
   15561   else
   15562     TK_PRIVATE_INCLUDE="-I${private_dir}"
   15563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   15564 $as_echo "${private_dir}" >&6; }
   15565   fi
   15566 
   15567 	  TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
   15568 	  TK_LIBRARY=${TK_LIB_SPEC}
   15569           TK_DEPS=""
   15570         else
   15571           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
   15572           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
   15573           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
   15574         fi
   15575 
   15576 
   15577 
   15578 
   15579 
   15580         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
   15581 
   15582 	# Include some libraries that Tcl and Tk want.
   15583 	TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
   15584 	# Yes, the ordering seems wrong here.  But it isn't.
   15585 	# TK_LIBS is the list of libraries that need to be linked
   15586 	# after Tcl/Tk.  Note that this isn't put into LIBS.  If it
   15587 	# were in LIBS then any link tests after this point would
   15588 	# try to include things like `$(LIBGUI)', which wouldn't work.
   15589 	GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
   15590 
   15591         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
   15592         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
   15593         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
   15594 	CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
   15595 	CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
   15596 	CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
   15597 	CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
   15598 
   15599 	if test x$gdb_cv_os_cygwin = xyes; then
   15600 	  WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
   15601 	  WIN32LDAPP="-Wl,--subsystem,console"
   15602 	  CONFIG_OBS="${CONFIG_OBS} gdbres.o"
   15603 	fi
   15604 
   15605         subdirs="$subdirs gdbtk"
   15606 
   15607     fi
   15608 fi
   15609 
   15610 
   15611 
   15612 
   15613 
   15614 
   15615 
   15616 
   15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
   15618 $as_echo_n "checking for X... " >&6; }
   15619 
   15620 
   15621 # Check whether --with-x was given.
   15622 if test "${with_x+set}" = set; then :
   15623   withval=$with_x;
   15624 fi
   15625 
   15626 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   15627 if test "x$with_x" = xno; then
   15628   # The user explicitly disabled X.
   15629   have_x=disabled
   15630 else
   15631   case $x_includes,$x_libraries in #(
   15632     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
   15633     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
   15634   $as_echo_n "(cached) " >&6
   15635 else
   15636   # One or both of the vars are not set, and there is no cached value.
   15637 ac_x_includes=no ac_x_libraries=no
   15638 rm -f -r conftest.dir
   15639 if mkdir conftest.dir; then
   15640   cd conftest.dir
   15641   cat >Imakefile <<'_ACEOF'
   15642 incroot:
   15643 	@echo incroot='${INCROOT}'
   15644 usrlibdir:
   15645 	@echo usrlibdir='${USRLIBDIR}'
   15646 libdir:
   15647 	@echo libdir='${LIBDIR}'
   15648 _ACEOF
   15649   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
   15650     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   15651     for ac_var in incroot usrlibdir libdir; do
   15652       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
   15653     done
   15654     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   15655     for ac_extension in a so sl dylib la dll; do
   15656       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
   15657 	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
   15658 	ac_im_usrlibdir=$ac_im_libdir; break
   15659       fi
   15660     done
   15661     # Screen out bogus values from the imake configuration.  They are
   15662     # bogus both because they are the default anyway, and because
   15663     # using them would break gcc on systems where it needs fixed includes.
   15664     case $ac_im_incroot in
   15665 	/usr/include) ac_x_includes= ;;
   15666 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   15667     esac
   15668     case $ac_im_usrlibdir in
   15669 	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
   15670 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   15671     esac
   15672   fi
   15673   cd ..
   15674   rm -f -r conftest.dir
   15675 fi
   15676 
   15677 # Standard set of common directories for X headers.
   15678 # Check X11 before X11Rn because it is often a symlink to the current release.
   15679 ac_x_header_dirs='
   15680 /usr/X11/include
   15681 /usr/X11R7/include
   15682 /usr/X11R6/include
   15683 /usr/X11R5/include
   15684 /usr/X11R4/include
   15685 
   15686 /usr/include/X11
   15687 /usr/include/X11R7
   15688 /usr/include/X11R6
   15689 /usr/include/X11R5
   15690 /usr/include/X11R4
   15691 
   15692 /usr/local/X11/include
   15693 /usr/local/X11R7/include
   15694 /usr/local/X11R6/include
   15695 /usr/local/X11R5/include
   15696 /usr/local/X11R4/include
   15697 
   15698 /usr/local/include/X11
   15699 /usr/local/include/X11R7
   15700 /usr/local/include/X11R6
   15701 /usr/local/include/X11R5
   15702 /usr/local/include/X11R4
   15703 
   15704 /usr/X386/include
   15705 /usr/x386/include
   15706 /usr/XFree86/include/X11
   15707 
   15708 /usr/include
   15709 /usr/local/include
   15710 /usr/unsupported/include
   15711 /usr/athena/include
   15712 /usr/local/x11r5/include
   15713 /usr/lpp/Xamples/include
   15714 
   15715 /usr/openwin/include
   15716 /usr/openwin/share/include'
   15717 
   15718 if test "$ac_x_includes" = no; then
   15719   # Guess where to find include files, by looking for Xlib.h.
   15720   # First, try using that file with no special directory specified.
   15721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15722 /* end confdefs.h.  */
   15723 #include <X11/Xlib.h>
   15724 _ACEOF
   15725 if ac_fn_c_try_cpp "$LINENO"; then :
   15726   # We can compile using X headers with no special include directory.
   15727 ac_x_includes=
   15728 else
   15729   for ac_dir in $ac_x_header_dirs; do
   15730   if test -r "$ac_dir/X11/Xlib.h"; then
   15731     ac_x_includes=$ac_dir
   15732     break
   15733   fi
   15734 done
   15735 fi
   15736 rm -f conftest.err conftest.$ac_ext
   15737 fi # $ac_x_includes = no
   15738 
   15739 if test "$ac_x_libraries" = no; then
   15740   # Check for the libraries.
   15741   # See if we find them without any special options.
   15742   # Don't add to $LIBS permanently.
   15743   ac_save_LIBS=$LIBS
   15744   LIBS="-lX11 $LIBS"
   15745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15746 /* end confdefs.h.  */
   15747 #include <X11/Xlib.h>
   15748 int
   15749 main ()
   15750 {
   15751 XrmInitialize ()
   15752   ;
   15753   return 0;
   15754 }
   15755 _ACEOF
   15756 if ac_fn_c_try_link "$LINENO"; then :
   15757   LIBS=$ac_save_LIBS
   15758 # We can link X programs with no special library path.
   15759 ac_x_libraries=
   15760 else
   15761   LIBS=$ac_save_LIBS
   15762 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   15763 do
   15764   # Don't even attempt the hair of trying to link an X program!
   15765   for ac_extension in a so sl dylib la dll; do
   15766     if test -r "$ac_dir/libX11.$ac_extension"; then
   15767       ac_x_libraries=$ac_dir
   15768       break 2
   15769     fi
   15770   done
   15771 done
   15772 fi
   15773 rm -f core conftest.err conftest.$ac_objext \
   15774     conftest$ac_exeext conftest.$ac_ext
   15775 fi # $ac_x_libraries = no
   15776 
   15777 case $ac_x_includes,$ac_x_libraries in #(
   15778   no,* | *,no | *\'*)
   15779     # Didn't find X, or a directory has "'" in its name.
   15780     ac_cv_have_x="have_x=no";; #(
   15781   *)
   15782     # Record where we found X for the cache.
   15783     ac_cv_have_x="have_x=yes\
   15784 	ac_x_includes='$ac_x_includes'\
   15785 	ac_x_libraries='$ac_x_libraries'"
   15786 esac
   15787 fi
   15788 ;; #(
   15789     *) have_x=yes;;
   15790   esac
   15791   eval "$ac_cv_have_x"
   15792 fi # $with_x != no
   15793 
   15794 if test "$have_x" != yes; then
   15795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
   15796 $as_echo "$have_x" >&6; }
   15797   no_x=yes
   15798 else
   15799   # If each of the values was on the command line, it overrides each guess.
   15800   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   15801   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   15802   # Update the cache value to reflect the command line values.
   15803   ac_cv_have_x="have_x=yes\
   15804 	ac_x_includes='$x_includes'\
   15805 	ac_x_libraries='$x_libraries'"
   15806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
   15807 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
   15808 fi
   15809 
   15810 
   15811 # Unlike the sim directory, whether a simulator is linked is controlled by
   15812 # presence of a gdb_sim definition in the target configure.tgt entry.
   15813 # This code just checks for a few cases where we'd like to ignore those
   15814 # definitions, even when they're present in the '.mt' file.  These cases
   15815 # are when --disable-sim is specified, or if the simulator directory is
   15816 # not part of the source tree.
   15817 #
   15818 # Check whether --enable-sim was given.
   15819 if test "${enable_sim+set}" = set; then :
   15820   enableval=$enable_sim; echo "enable_sim = $enable_sim";
   15821  echo "enableval = ${enableval}";
   15822  case "${enableval}" in
   15823   yes) ignore_sim=false ;;
   15824   no)  ignore_sim=true ;;
   15825   *)   ignore_sim=false ;;
   15826  esac
   15827 else
   15828   ignore_sim=false
   15829 fi
   15830 
   15831 
   15832 if test ! -d "${srcdir}/../sim"; then
   15833   ignore_sim=true
   15834 fi
   15835 
   15836 SIM=
   15837 SIM_OBS=
   15838 if test "${ignore_sim}" = "false"; then
   15839   if test x"${gdb_sim}" != x ; then
   15840     SIM="${gdb_sim}"
   15841     SIM_OBS="remote-sim.o"
   15842 
   15843 $as_echo "#define WITH_SIM 1" >>confdefs.h
   15844 
   15845 
   15846     # Some tdep code should only be compiled in when the ppc sim is
   15847     # built.  PR sim/13418.
   15848     case $target in
   15849       powerpc*-*-*)
   15850 
   15851 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
   15852 
   15853 	;;
   15854     esac
   15855   fi
   15856 fi
   15857 
   15858 
   15859 
   15860 
   15861 
   15862 
   15863 
   15864 
   15865 
   15866 
   15867 
   15868 
   15869 
   15870 
   15871 # List of host floatformats.
   15872 
   15873 cat >>confdefs.h <<_ACEOF
   15874 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
   15875 _ACEOF
   15876 
   15877 
   15878 cat >>confdefs.h <<_ACEOF
   15879 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
   15880 _ACEOF
   15881 
   15882 
   15883 cat >>confdefs.h <<_ACEOF
   15884 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
   15885 _ACEOF
   15886 
   15887 
   15888 # target_subdir is used by the testsuite to find the target libraries.
   15889 target_subdir=
   15890 if test "${host}" != "${target}"; then
   15891     target_subdir="${target_alias}/"
   15892 fi
   15893 
   15894 
   15895 frags=
   15896 if test "${gdb_native}" = "yes"; then
   15897   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
   15898   if test ! -f ${host_makefile_frag}; then
   15899     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
   15900   fi
   15901   frags="$frags $host_makefile_frag"
   15902 else
   15903   host_makefile_frag=/dev/null
   15904 fi
   15905 
   15906 
   15907 
   15908 
   15909 if test "${gdb_native}" = "yes"; then
   15910 # We pick this up from the host configuration file (.mh) because we
   15911 # do not have a native configuration Makefile fragment.
   15912 nativefile=`sed -n '
   15913 s/NAT_FILE[ 	]*=[ 	]*\([^ 	]*\)/\1/p
   15914 ' ${host_makefile_frag}`
   15915 fi
   15916 
   15917 
   15918 if test x"${gdb_osabi}" != x ; then
   15919 
   15920 cat >>confdefs.h <<_ACEOF
   15921 #define GDB_OSABI_DEFAULT $gdb_osabi
   15922 _ACEOF
   15923 
   15924 fi
   15925 
   15926 # Enable multi-ice-gdb-server.
   15927 # Check whether --enable-multi-ice was given.
   15928 if test "${enable_multi_ice+set}" = set; then :
   15929   enableval=$enable_multi_ice; case $enableval in
   15930     yes | no)
   15931       ;;
   15932     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
   15933   esac
   15934 fi
   15935 
   15936 if test "x$enable_multi_ice" = xyes; then
   15937    subdirs="$subdirs multi-ice"
   15938 
   15939 fi
   15940 
   15941 # Check whether --enable-gdbserver was given.
   15942 if test "${enable_gdbserver+set}" = set; then :
   15943   enableval=$enable_gdbserver; case "${enableval}" in
   15944   yes| no|auto) ;;
   15945   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
   15946 esac
   15947 else
   15948   enable_gdbserver=auto
   15949 fi
   15950 
   15951 
   15952 # We only build gdbserver automatically in a native configuration, and
   15953 # only if the user did not explicitly disable its build.
   15954 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
   15955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
   15956 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
   15957   if test "x$build_gdbserver" = xyes; then
   15958     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   15959 $as_echo "yes" >&6; }
   15960     subdirs="$subdirs gdbserver"
   15961 
   15962     gdbserver_build_enabled=yes
   15963   else
   15964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   15965 $as_echo "no" >&6; }
   15966   fi
   15967 fi
   15968 
   15969 # If the user explicitly request the gdbserver to be built, verify that
   15970 # we were in fact able to enable it.
   15971 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
   15972   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
   15973 fi
   15974 
   15975 # Check for babeltrace and babeltrace-ctf
   15976 
   15977 # Check whether --with-babeltrace was given.
   15978 if test "${with_babeltrace+set}" = set; then :
   15979   withval=$with_babeltrace;
   15980 else
   15981   with_babeltrace=auto
   15982 fi
   15983 
   15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
   15985 $as_echo_n "checking whether to use babeltrace... " >&6; }
   15986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
   15987 $as_echo "$with_babeltrace" >&6; }
   15988 
   15989 if test "x$with_babeltrace" = "xno"; then
   15990   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
   15991 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
   15992 else
   15993   # Append -Werror to CFLAGS so that configure can catch the warning
   15994   # "assignment from incompatible pointer type", which is related to
   15995   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
   15996   # in GDB, while babeltrace 1.0.3 is broken.
   15997   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
   15998   # safe to save and restore CFLAGS here.
   15999   saved_CFLAGS=$CFLAGS
   16000   CFLAGS="$CFLAGS -Werror"
   16001 
   16002 
   16003 
   16004 
   16005 
   16006 
   16007 
   16008 
   16009     use_additional=yes
   16010 
   16011   acl_save_prefix="$prefix"
   16012   prefix="$acl_final_prefix"
   16013   acl_save_exec_prefix="$exec_prefix"
   16014   exec_prefix="$acl_final_exec_prefix"
   16015 
   16016     eval additional_includedir=\"$includedir\"
   16017     eval additional_libdir=\"$libdir\"
   16018 
   16019   exec_prefix="$acl_save_exec_prefix"
   16020   prefix="$acl_save_prefix"
   16021 
   16022 
   16023 # Check whether --with-libbabeltrace-prefix was given.
   16024 if test "${with_libbabeltrace_prefix+set}" = set; then :
   16025   withval=$with_libbabeltrace_prefix;
   16026     if test "X$withval" = "Xno"; then
   16027       use_additional=no
   16028     else
   16029       if test "X$withval" = "X"; then
   16030 
   16031   acl_save_prefix="$prefix"
   16032   prefix="$acl_final_prefix"
   16033   acl_save_exec_prefix="$exec_prefix"
   16034   exec_prefix="$acl_final_exec_prefix"
   16035 
   16036           eval additional_includedir=\"$includedir\"
   16037           eval additional_libdir=\"$libdir\"
   16038 
   16039   exec_prefix="$acl_save_exec_prefix"
   16040   prefix="$acl_save_prefix"
   16041 
   16042       else
   16043         additional_includedir="$withval/include"
   16044         additional_libdir="$withval/lib"
   16045       fi
   16046     fi
   16047 
   16048 fi
   16049 
   16050       LIBBABELTRACE=
   16051   LTLIBBABELTRACE=
   16052   INCBABELTRACE=
   16053   rpathdirs=
   16054   ltrpathdirs=
   16055   names_already_handled=
   16056   names_next_round='babeltrace babeltrace-ctf'
   16057   while test -n "$names_next_round"; do
   16058     names_this_round="$names_next_round"
   16059     names_next_round=
   16060     for name in $names_this_round; do
   16061       already_handled=
   16062       for n in $names_already_handled; do
   16063         if test "$n" = "$name"; then
   16064           already_handled=yes
   16065           break
   16066         fi
   16067       done
   16068       if test -z "$already_handled"; then
   16069         names_already_handled="$names_already_handled $name"
   16070                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   16071         eval value=\"\$HAVE_LIB$uppername\"
   16072         if test -n "$value"; then
   16073           if test "$value" = yes; then
   16074             eval value=\"\$LIB$uppername\"
   16075             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
   16076             eval value=\"\$LTLIB$uppername\"
   16077             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
   16078           else
   16079                                     :
   16080           fi
   16081         else
   16082                               found_dir=
   16083           found_la=
   16084           found_so=
   16085           found_a=
   16086           if test $use_additional = yes; then
   16087             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   16088               found_dir="$additional_libdir"
   16089               found_so="$additional_libdir/lib$name.$shlibext"
   16090               if test -f "$additional_libdir/lib$name.la"; then
   16091                 found_la="$additional_libdir/lib$name.la"
   16092               fi
   16093             else
   16094               if test -f "$additional_libdir/lib$name.$libext"; then
   16095                 found_dir="$additional_libdir"
   16096                 found_a="$additional_libdir/lib$name.$libext"
   16097                 if test -f "$additional_libdir/lib$name.la"; then
   16098                   found_la="$additional_libdir/lib$name.la"
   16099                 fi
   16100               fi
   16101             fi
   16102           fi
   16103           if test "X$found_dir" = "X"; then
   16104             for x in $LDFLAGS $LTLIBBABELTRACE; do
   16105 
   16106   acl_save_prefix="$prefix"
   16107   prefix="$acl_final_prefix"
   16108   acl_save_exec_prefix="$exec_prefix"
   16109   exec_prefix="$acl_final_exec_prefix"
   16110   eval x=\"$x\"
   16111   exec_prefix="$acl_save_exec_prefix"
   16112   prefix="$acl_save_prefix"
   16113 
   16114               case "$x" in
   16115                 -L*)
   16116                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   16117                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   16118                     found_dir="$dir"
   16119                     found_so="$dir/lib$name.$shlibext"
   16120                     if test -f "$dir/lib$name.la"; then
   16121                       found_la="$dir/lib$name.la"
   16122                     fi
   16123                   else
   16124                     if test -f "$dir/lib$name.$libext"; then
   16125                       found_dir="$dir"
   16126                       found_a="$dir/lib$name.$libext"
   16127                       if test -f "$dir/lib$name.la"; then
   16128                         found_la="$dir/lib$name.la"
   16129                       fi
   16130                     fi
   16131                   fi
   16132                   ;;
   16133               esac
   16134               if test "X$found_dir" != "X"; then
   16135                 break
   16136               fi
   16137             done
   16138           fi
   16139           if test "X$found_dir" != "X"; then
   16140                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
   16141             if test "X$found_so" != "X"; then
   16142                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   16143                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   16144               else
   16145                                                                                 haveit=
   16146                 for x in $ltrpathdirs; do
   16147                   if test "X$x" = "X$found_dir"; then
   16148                     haveit=yes
   16149                     break
   16150                   fi
   16151                 done
   16152                 if test -z "$haveit"; then
   16153                   ltrpathdirs="$ltrpathdirs $found_dir"
   16154                 fi
   16155                                 if test "$hardcode_direct" = yes; then
   16156                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   16157                 else
   16158                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   16159                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   16160                                                             haveit=
   16161                     for x in $rpathdirs; do
   16162                       if test "X$x" = "X$found_dir"; then
   16163                         haveit=yes
   16164                         break
   16165                       fi
   16166                     done
   16167                     if test -z "$haveit"; then
   16168                       rpathdirs="$rpathdirs $found_dir"
   16169                     fi
   16170                   else
   16171                                                                                 haveit=
   16172                     for x in $LDFLAGS $LIBBABELTRACE; do
   16173 
   16174   acl_save_prefix="$prefix"
   16175   prefix="$acl_final_prefix"
   16176   acl_save_exec_prefix="$exec_prefix"
   16177   exec_prefix="$acl_final_exec_prefix"
   16178   eval x=\"$x\"
   16179   exec_prefix="$acl_save_exec_prefix"
   16180   prefix="$acl_save_prefix"
   16181 
   16182                       if test "X$x" = "X-L$found_dir"; then
   16183                         haveit=yes
   16184                         break
   16185                       fi
   16186                     done
   16187                     if test -z "$haveit"; then
   16188                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
   16189                     fi
   16190                     if test "$hardcode_minus_L" != no; then
   16191                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   16192                     else
   16193                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   16194                     fi
   16195                   fi
   16196                 fi
   16197               fi
   16198             else
   16199               if test "X$found_a" != "X"; then
   16200                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
   16201               else
   16202                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
   16203               fi
   16204             fi
   16205                         additional_includedir=
   16206             case "$found_dir" in
   16207               */lib | */lib/)
   16208                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   16209                 additional_includedir="$basedir/include"
   16210                 ;;
   16211             esac
   16212             if test "X$additional_includedir" != "X"; then
   16213                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   16214                 haveit=
   16215                 if test "X$additional_includedir" = "X/usr/local/include"; then
   16216                   if test -n "$GCC"; then
   16217                     case $host_os in
   16218                       linux*) haveit=yes;;
   16219                     esac
   16220                   fi
   16221                 fi
   16222                 if test -z "$haveit"; then
   16223                   for x in $CPPFLAGS $INCBABELTRACE; do
   16224 
   16225   acl_save_prefix="$prefix"
   16226   prefix="$acl_final_prefix"
   16227   acl_save_exec_prefix="$exec_prefix"
   16228   exec_prefix="$acl_final_exec_prefix"
   16229   eval x=\"$x\"
   16230   exec_prefix="$acl_save_exec_prefix"
   16231   prefix="$acl_save_prefix"
   16232 
   16233                     if test "X$x" = "X-I$additional_includedir"; then
   16234                       haveit=yes
   16235                       break
   16236                     fi
   16237                   done
   16238                   if test -z "$haveit"; then
   16239                     if test -d "$additional_includedir"; then
   16240                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
   16241                     fi
   16242                   fi
   16243                 fi
   16244               fi
   16245             fi
   16246                         if test -n "$found_la"; then
   16247                                                         save_libdir="$libdir"
   16248               case "$found_la" in
   16249                 */* | *\\*) . "$found_la" ;;
   16250                 *) . "./$found_la" ;;
   16251               esac
   16252               libdir="$save_libdir"
   16253                             for dep in $dependency_libs; do
   16254                 case "$dep" in
   16255                   -L*)
   16256                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   16257                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   16258                       haveit=
   16259                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   16260                         if test -n "$GCC"; then
   16261                           case $host_os in
   16262                             linux*) haveit=yes;;
   16263                           esac
   16264                         fi
   16265                       fi
   16266                       if test -z "$haveit"; then
   16267                         haveit=
   16268                         for x in $LDFLAGS $LIBBABELTRACE; do
   16269 
   16270   acl_save_prefix="$prefix"
   16271   prefix="$acl_final_prefix"
   16272   acl_save_exec_prefix="$exec_prefix"
   16273   exec_prefix="$acl_final_exec_prefix"
   16274   eval x=\"$x\"
   16275   exec_prefix="$acl_save_exec_prefix"
   16276   prefix="$acl_save_prefix"
   16277 
   16278                           if test "X$x" = "X-L$additional_libdir"; then
   16279                             haveit=yes
   16280                             break
   16281                           fi
   16282                         done
   16283                         if test -z "$haveit"; then
   16284                           if test -d "$additional_libdir"; then
   16285                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
   16286                           fi
   16287                         fi
   16288                         haveit=
   16289                         for x in $LDFLAGS $LTLIBBABELTRACE; do
   16290 
   16291   acl_save_prefix="$prefix"
   16292   prefix="$acl_final_prefix"
   16293   acl_save_exec_prefix="$exec_prefix"
   16294   exec_prefix="$acl_final_exec_prefix"
   16295   eval x=\"$x\"
   16296   exec_prefix="$acl_save_exec_prefix"
   16297   prefix="$acl_save_prefix"
   16298 
   16299                           if test "X$x" = "X-L$additional_libdir"; then
   16300                             haveit=yes
   16301                             break
   16302                           fi
   16303                         done
   16304                         if test -z "$haveit"; then
   16305                           if test -d "$additional_libdir"; then
   16306                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
   16307                           fi
   16308                         fi
   16309                       fi
   16310                     fi
   16311                     ;;
   16312                   -R*)
   16313                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   16314                     if test "$enable_rpath" != no; then
   16315                                                                   haveit=
   16316                       for x in $rpathdirs; do
   16317                         if test "X$x" = "X$dir"; then
   16318                           haveit=yes
   16319                           break
   16320                         fi
   16321                       done
   16322                       if test -z "$haveit"; then
   16323                         rpathdirs="$rpathdirs $dir"
   16324                       fi
   16325                                                                   haveit=
   16326                       for x in $ltrpathdirs; do
   16327                         if test "X$x" = "X$dir"; then
   16328                           haveit=yes
   16329                           break
   16330                         fi
   16331                       done
   16332                       if test -z "$haveit"; then
   16333                         ltrpathdirs="$ltrpathdirs $dir"
   16334                       fi
   16335                     fi
   16336                     ;;
   16337                   -l*)
   16338                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   16339                     ;;
   16340                   *.la)
   16341                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   16342                     ;;
   16343                   *)
   16344                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
   16345                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
   16346                     ;;
   16347                 esac
   16348               done
   16349             fi
   16350           else
   16351                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   16352             LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
   16353           fi
   16354         fi
   16355       fi
   16356     done
   16357   done
   16358   if test "X$rpathdirs" != "X"; then
   16359     if test -n "$hardcode_libdir_separator"; then
   16360                         alldirs=
   16361       for found_dir in $rpathdirs; do
   16362         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   16363       done
   16364             acl_save_libdir="$libdir"
   16365       libdir="$alldirs"
   16366       eval flag=\"$hardcode_libdir_flag_spec\"
   16367       libdir="$acl_save_libdir"
   16368       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   16369     else
   16370             for found_dir in $rpathdirs; do
   16371         acl_save_libdir="$libdir"
   16372         libdir="$found_dir"
   16373         eval flag=\"$hardcode_libdir_flag_spec\"
   16374         libdir="$acl_save_libdir"
   16375         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   16376       done
   16377     fi
   16378   fi
   16379   if test "X$ltrpathdirs" != "X"; then
   16380             for found_dir in $ltrpathdirs; do
   16381       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
   16382     done
   16383   fi
   16384 
   16385 
   16386         ac_save_CPPFLAGS="$CPPFLAGS"
   16387 
   16388   for element in $INCBABELTRACE; do
   16389     haveit=
   16390     for x in $CPPFLAGS; do
   16391 
   16392   acl_save_prefix="$prefix"
   16393   prefix="$acl_final_prefix"
   16394   acl_save_exec_prefix="$exec_prefix"
   16395   exec_prefix="$acl_final_exec_prefix"
   16396   eval x=\"$x\"
   16397   exec_prefix="$acl_save_exec_prefix"
   16398   prefix="$acl_save_prefix"
   16399 
   16400       if test "X$x" = "X$element"; then
   16401         haveit=yes
   16402         break
   16403       fi
   16404     done
   16405     if test -z "$haveit"; then
   16406       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   16407     fi
   16408   done
   16409 
   16410 
   16411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
   16412 $as_echo_n "checking for libbabeltrace... " >&6; }
   16413 if test "${ac_cv_libbabeltrace+set}" = set; then :
   16414   $as_echo_n "(cached) " >&6
   16415 else
   16416 
   16417     ac_save_LIBS="$LIBS"
   16418     LIBS="$LIBS $LIBBABELTRACE"
   16419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16420 /* end confdefs.h.  */
   16421 #include <babeltrace/babeltrace.h>
   16422 			 #include <babeltrace/ctf/events.h>
   16423 			 #include <babeltrace/ctf/iterator.h>
   16424 int
   16425 main ()
   16426 {
   16427 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
   16428 			struct bt_ctf_event *event = NULL;
   16429 			const struct bt_definition *scope;
   16430 
   16431 			pos->type = BT_SEEK_BEGIN;
   16432 			bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
   16433 			scope = bt_ctf_get_top_level_scope (event,
   16434 			      				   BT_STREAM_EVENT_HEADER);
   16435 		        bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
   16436 
   16437   ;
   16438   return 0;
   16439 }
   16440 _ACEOF
   16441 if ac_fn_c_try_link "$LINENO"; then :
   16442   ac_cv_libbabeltrace=yes
   16443 else
   16444   ac_cv_libbabeltrace=no
   16445 fi
   16446 rm -f core conftest.err conftest.$ac_objext \
   16447     conftest$ac_exeext conftest.$ac_ext
   16448     LIBS="$ac_save_LIBS"
   16449 
   16450 fi
   16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
   16452 $as_echo "$ac_cv_libbabeltrace" >&6; }
   16453   if test "$ac_cv_libbabeltrace" = yes; then
   16454     HAVE_LIBBABELTRACE=yes
   16455 
   16456 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
   16457 
   16458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
   16459 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
   16460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
   16461 $as_echo "$LIBBABELTRACE" >&6; }
   16462   else
   16463     HAVE_LIBBABELTRACE=no
   16464             CPPFLAGS="$ac_save_CPPFLAGS"
   16465     LIBBABELTRACE=
   16466     LTLIBBABELTRACE=
   16467   fi
   16468 
   16469 
   16470 
   16471 
   16472 
   16473 
   16474   CFLAGS=$saved_CFLAGS
   16475 
   16476   if test "$HAVE_LIBBABELTRACE" != yes; then
   16477      if test "$with_babeltrace" = yes; then
   16478        as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
   16479      else
   16480        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
   16481 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
   16482      fi
   16483   fi
   16484 fi
   16485 
   16486 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
   16487 # to an empty version.
   16488 
   16489 files=
   16490 links=
   16491 
   16492 rm -f nm.h
   16493 if test "${nativefile}" != ""; then
   16494     case "${nativefile}" in
   16495       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
   16496       * ) GDB_NM_FILE="${nativefile}"
   16497     esac
   16498     files="${files} ${GDB_NM_FILE}"
   16499     links="${links} nm.h"
   16500 
   16501 cat >>confdefs.h <<_ACEOF
   16502 #define GDB_NM_FILE "${GDB_NM_FILE}"
   16503 _ACEOF
   16504 
   16505 fi
   16506 
   16507 
   16508 for ac_prog in xsltproc
   16509 do
   16510   # Extract the first word of "$ac_prog", so it can be a program name with args.
   16511 set dummy $ac_prog; ac_word=$2
   16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   16513 $as_echo_n "checking for $ac_word... " >&6; }
   16514 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
   16515   $as_echo_n "(cached) " >&6
   16516 else
   16517   case $XSLTPROC in
   16518   [\\/]* | ?:[\\/]*)
   16519   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   16520   ;;
   16521   *)
   16522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16523 for as_dir in $PATH
   16524 do
   16525   IFS=$as_save_IFS
   16526   test -z "$as_dir" && as_dir=.
   16527     for ac_exec_ext in '' $ac_executable_extensions; do
   16528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   16529     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   16530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   16531     break 2
   16532   fi
   16533 done
   16534   done
   16535 IFS=$as_save_IFS
   16536 
   16537   ;;
   16538 esac
   16539 fi
   16540 XSLTPROC=$ac_cv_path_XSLTPROC
   16541 if test -n "$XSLTPROC"; then
   16542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   16543 $as_echo "$XSLTPROC" >&6; }
   16544 else
   16545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   16546 $as_echo "no" >&6; }
   16547 fi
   16548 
   16549 
   16550   test -n "$XSLTPROC" && break
   16551 done
   16552 test -n "$XSLTPROC" || XSLTPROC="missing"
   16553 
   16554 if test "x$USE_MAINTAINER_MODE" = xyes; then
   16555   if test "${XSLTPROC}" = missing; then
   16556     as_fn_error "unable to find xsltproc.  maintainer-mode requires xsltproc." "$LINENO" 5
   16557   fi
   16558 fi
   16559 
   16560 
   16561 ac_sources="$files"
   16562 ac_dests="$links"
   16563 while test -n "$ac_sources"; do
   16564   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
   16565   set $ac_sources; ac_source=$1; shift; ac_sources=$*
   16566   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
   16567 done
   16568 ac_config_links="$ac_config_links $ac_config_links_1"
   16569 
   16570 
   16571 
   16572 
   16573 
   16574 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
   16575 
   16576 
   16577 if $development; then
   16578 
   16579 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
   16580 
   16581 fi
   16582 
   16583 
   16584   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
   16585   GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
   16586   if test "x$GDB_TRANSFORM_NAME" = x; then
   16587      GDB_TRANSFORM_NAME=gdb
   16588   fi
   16589 
   16590 
   16591 
   16592   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
   16593   GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
   16594   if test "x$GCORE_TRANSFORM_NAME" = x; then
   16595      GCORE_TRANSFORM_NAME=gcore
   16596   fi
   16597 
   16598 
   16599 ac_config_files="$ac_config_files gcore"
   16600 
   16601 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
   16602 
   16603 
   16604 cat >confcache <<\_ACEOF
   16605 # This file is a shell script that caches the results of configure
   16606 # tests run on this system so they can be shared between configure
   16607 # scripts and configure runs, see configure's option --config-cache.
   16608 # It is not useful on other systems.  If it contains results you don't
   16609 # want to keep, you may remove or edit it.
   16610 #
   16611 # config.status only pays attention to the cache file if you give it
   16612 # the --recheck option to rerun configure.
   16613 #
   16614 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   16615 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   16616 # following values.
   16617 
   16618 _ACEOF
   16619 
   16620 # The following way of writing the cache mishandles newlines in values,
   16621 # but we know of no workaround that is simple, portable, and efficient.
   16622 # So, we kill variables containing newlines.
   16623 # Ultrix sh set writes to stderr and can't be redirected directly,
   16624 # and sets the high bit in the cache file unless we assign to the vars.
   16625 (
   16626   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   16627     eval ac_val=\$$ac_var
   16628     case $ac_val in #(
   16629     *${as_nl}*)
   16630       case $ac_var in #(
   16631       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   16632 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   16633       esac
   16634       case $ac_var in #(
   16635       _ | IFS | as_nl) ;; #(
   16636       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   16637       *) { eval $ac_var=; unset $ac_var;} ;;
   16638       esac ;;
   16639     esac
   16640   done
   16641 
   16642   (set) 2>&1 |
   16643     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   16644     *${as_nl}ac_space=\ *)
   16645       # `set' does not quote correctly, so add quotes: double-quote
   16646       # substitution turns \\\\ into \\, and sed turns \\ into \.
   16647       sed -n \
   16648 	"s/'/'\\\\''/g;
   16649 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   16650       ;; #(
   16651     *)
   16652       # `set' quotes correctly as required by POSIX, so do not add quotes.
   16653       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   16654       ;;
   16655     esac |
   16656     sort
   16657 ) |
   16658   sed '
   16659      /^ac_cv_env_/b end
   16660      t clear
   16661      :clear
   16662      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   16663      t end
   16664      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   16665      :end' >>confcache
   16666 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   16667   if test -w "$cache_file"; then
   16668     test "x$cache_file" != "x/dev/null" &&
   16669       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   16670 $as_echo "$as_me: updating cache $cache_file" >&6;}
   16671     cat confcache >$cache_file
   16672   else
   16673     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   16674 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   16675   fi
   16676 fi
   16677 rm -f confcache
   16678 
   16679 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   16680 # Let make expand exec_prefix.
   16681 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   16682 
   16683 DEFS=-DHAVE_CONFIG_H
   16684 
   16685 ac_libobjs=
   16686 ac_ltlibobjs=
   16687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   16688   # 1. Remove the extension, and $U if already installed.
   16689   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   16690   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   16691   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   16692   #    will be set to the directory where LIBOBJS objects are built.
   16693   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   16694   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   16695 done
   16696 LIBOBJS=$ac_libobjs
   16697 
   16698 LTLIBOBJS=$ac_ltlibobjs
   16699 
   16700 
   16701 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   16702   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
   16703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16704 fi
   16705 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
   16706   as_fn_error "conditional \"GMAKE\" was never defined.
   16707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16708 fi
   16709 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
   16710   as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
   16711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16712 fi
   16713 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
   16714   as_fn_error "conditional \"HAVE_GUILE\" was never defined.
   16715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   16716 fi
   16717 
   16718 
   16719 : ${CONFIG_STATUS=./config.status}
   16720 ac_write_fail=0
   16721 ac_clean_files_save=$ac_clean_files
   16722 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   16723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   16724 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   16725 as_write_fail=0
   16726 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   16727 #! $SHELL
   16728 # Generated by $as_me.
   16729 # Run this file to recreate the current configuration.
   16730 # Compiler output produced by configure, useful for debugging
   16731 # configure, is in config.log if it exists.
   16732 
   16733 debug=false
   16734 ac_cs_recheck=false
   16735 ac_cs_silent=false
   16736 
   16737 SHELL=\${CONFIG_SHELL-$SHELL}
   16738 export SHELL
   16739 _ASEOF
   16740 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   16741 ## -------------------- ##
   16742 ## M4sh Initialization. ##
   16743 ## -------------------- ##
   16744 
   16745 # Be more Bourne compatible
   16746 DUALCASE=1; export DUALCASE # for MKS sh
   16747 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   16748   emulate sh
   16749   NULLCMD=:
   16750   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   16751   # is contrary to our usage.  Disable this feature.
   16752   alias -g '${1+"$@"}'='"$@"'
   16753   setopt NO_GLOB_SUBST
   16754 else
   16755   case `(set -o) 2>/dev/null` in #(
   16756   *posix*) :
   16757     set -o posix ;; #(
   16758   *) :
   16759      ;;
   16760 esac
   16761 fi
   16762 
   16763 
   16764 as_nl='
   16765 '
   16766 export as_nl
   16767 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   16768 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   16769 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   16770 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   16771 # Prefer a ksh shell builtin over an external printf program on Solaris,
   16772 # but without wasting forks for bash or zsh.
   16773 if test -z "$BASH_VERSION$ZSH_VERSION" \
   16774     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   16775   as_echo='print -r --'
   16776   as_echo_n='print -rn --'
   16777 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   16778   as_echo='printf %s\n'
   16779   as_echo_n='printf %s'
   16780 else
   16781   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   16782     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   16783     as_echo_n='/usr/ucb/echo -n'
   16784   else
   16785     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   16786     as_echo_n_body='eval
   16787       arg=$1;
   16788       case $arg in #(
   16789       *"$as_nl"*)
   16790 	expr "X$arg" : "X\\(.*\\)$as_nl";
   16791 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   16792       esac;
   16793       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   16794     '
   16795     export as_echo_n_body
   16796     as_echo_n='sh -c $as_echo_n_body as_echo'
   16797   fi
   16798   export as_echo_body
   16799   as_echo='sh -c $as_echo_body as_echo'
   16800 fi
   16801 
   16802 # The user is always right.
   16803 if test "${PATH_SEPARATOR+set}" != set; then
   16804   PATH_SEPARATOR=:
   16805   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   16806     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   16807       PATH_SEPARATOR=';'
   16808   }
   16809 fi
   16810 
   16811 
   16812 # IFS
   16813 # We need space, tab and new line, in precisely that order.  Quoting is
   16814 # there to prevent editors from complaining about space-tab.
   16815 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   16816 # splitting by setting IFS to empty value.)
   16817 IFS=" ""	$as_nl"
   16818 
   16819 # Find who we are.  Look in the path if we contain no directory separator.
   16820 case $0 in #((
   16821   *[\\/]* ) as_myself=$0 ;;
   16822   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   16823 for as_dir in $PATH
   16824 do
   16825   IFS=$as_save_IFS
   16826   test -z "$as_dir" && as_dir=.
   16827     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   16828   done
   16829 IFS=$as_save_IFS
   16830 
   16831      ;;
   16832 esac
   16833 # We did not find ourselves, most probably we were run as `sh COMMAND'
   16834 # in which case we are not to be found in the path.
   16835 if test "x$as_myself" = x; then
   16836   as_myself=$0
   16837 fi
   16838 if test ! -f "$as_myself"; then
   16839   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   16840   exit 1
   16841 fi
   16842 
   16843 # Unset variables that we do not need and which cause bugs (e.g. in
   16844 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   16845 # suppresses any "Segmentation fault" message there.  '((' could
   16846 # trigger a bug in pdksh 5.2.14.
   16847 for as_var in BASH_ENV ENV MAIL MAILPATH
   16848 do eval test x\${$as_var+set} = xset \
   16849   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   16850 done
   16851 PS1='$ '
   16852 PS2='> '
   16853 PS4='+ '
   16854 
   16855 # NLS nuisances.
   16856 LC_ALL=C
   16857 export LC_ALL
   16858 LANGUAGE=C
   16859 export LANGUAGE
   16860 
   16861 # CDPATH.
   16862 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   16863 
   16864 
   16865 # as_fn_error ERROR [LINENO LOG_FD]
   16866 # ---------------------------------
   16867 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   16868 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   16869 # script with status $?, using 1 if that was 0.
   16870 as_fn_error ()
   16871 {
   16872   as_status=$?; test $as_status -eq 0 && as_status=1
   16873   if test "$3"; then
   16874     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   16875     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
   16876   fi
   16877   $as_echo "$as_me: error: $1" >&2
   16878   as_fn_exit $as_status
   16879 } # as_fn_error
   16880 
   16881 
   16882 # as_fn_set_status STATUS
   16883 # -----------------------
   16884 # Set $? to STATUS, without forking.
   16885 as_fn_set_status ()
   16886 {
   16887   return $1
   16888 } # as_fn_set_status
   16889 
   16890 # as_fn_exit STATUS
   16891 # -----------------
   16892 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   16893 as_fn_exit ()
   16894 {
   16895   set +e
   16896   as_fn_set_status $1
   16897   exit $1
   16898 } # as_fn_exit
   16899 
   16900 # as_fn_unset VAR
   16901 # ---------------
   16902 # Portably unset VAR.
   16903 as_fn_unset ()
   16904 {
   16905   { eval $1=; unset $1;}
   16906 }
   16907 as_unset=as_fn_unset
   16908 # as_fn_append VAR VALUE
   16909 # ----------------------
   16910 # Append the text in VALUE to the end of the definition contained in VAR. Take
   16911 # advantage of any shell optimizations that allow amortized linear growth over
   16912 # repeated appends, instead of the typical quadratic growth present in naive
   16913 # implementations.
   16914 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   16915   eval 'as_fn_append ()
   16916   {
   16917     eval $1+=\$2
   16918   }'
   16919 else
   16920   as_fn_append ()
   16921   {
   16922     eval $1=\$$1\$2
   16923   }
   16924 fi # as_fn_append
   16925 
   16926 # as_fn_arith ARG...
   16927 # ------------------
   16928 # Perform arithmetic evaluation on the ARGs, and store the result in the
   16929 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   16930 # must be portable across $(()) and expr.
   16931 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   16932   eval 'as_fn_arith ()
   16933   {
   16934     as_val=$(( $* ))
   16935   }'
   16936 else
   16937   as_fn_arith ()
   16938   {
   16939     as_val=`expr "$@" || test $? -eq 1`
   16940   }
   16941 fi # as_fn_arith
   16942 
   16943 
   16944 if expr a : '\(a\)' >/dev/null 2>&1 &&
   16945    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   16946   as_expr=expr
   16947 else
   16948   as_expr=false
   16949 fi
   16950 
   16951 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   16952   as_basename=basename
   16953 else
   16954   as_basename=false
   16955 fi
   16956 
   16957 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   16958   as_dirname=dirname
   16959 else
   16960   as_dirname=false
   16961 fi
   16962 
   16963 as_me=`$as_basename -- "$0" ||
   16964 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   16965 	 X"$0" : 'X\(//\)$' \| \
   16966 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   16967 $as_echo X/"$0" |
   16968     sed '/^.*\/\([^/][^/]*\)\/*$/{
   16969 	    s//\1/
   16970 	    q
   16971 	  }
   16972 	  /^X\/\(\/\/\)$/{
   16973 	    s//\1/
   16974 	    q
   16975 	  }
   16976 	  /^X\/\(\/\).*/{
   16977 	    s//\1/
   16978 	    q
   16979 	  }
   16980 	  s/.*/./; q'`
   16981 
   16982 # Avoid depending upon Character Ranges.
   16983 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   16984 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   16985 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   16986 as_cr_digits='0123456789'
   16987 as_cr_alnum=$as_cr_Letters$as_cr_digits
   16988 
   16989 ECHO_C= ECHO_N= ECHO_T=
   16990 case `echo -n x` in #(((((
   16991 -n*)
   16992   case `echo 'xy\c'` in
   16993   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   16994   xy)  ECHO_C='\c';;
   16995   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   16996        ECHO_T='	';;
   16997   esac;;
   16998 *)
   16999   ECHO_N='-n';;
   17000 esac
   17001 
   17002 rm -f conf$$ conf$$.exe conf$$.file
   17003 if test -d conf$$.dir; then
   17004   rm -f conf$$.dir/conf$$.file
   17005 else
   17006   rm -f conf$$.dir
   17007   mkdir conf$$.dir 2>/dev/null
   17008 fi
   17009 if (echo >conf$$.file) 2>/dev/null; then
   17010   if ln -s conf$$.file conf$$ 2>/dev/null; then
   17011     as_ln_s='ln -s'
   17012     # ... but there are two gotchas:
   17013     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   17014     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   17015     # In both cases, we have to default to `cp -p'.
   17016     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   17017       as_ln_s='cp -p'
   17018   elif ln conf$$.file conf$$ 2>/dev/null; then
   17019     as_ln_s=ln
   17020   else
   17021     as_ln_s='cp -p'
   17022   fi
   17023 else
   17024   as_ln_s='cp -p'
   17025 fi
   17026 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   17027 rmdir conf$$.dir 2>/dev/null
   17028 
   17029 
   17030 # as_fn_mkdir_p
   17031 # -------------
   17032 # Create "$as_dir" as a directory, including parents if necessary.
   17033 as_fn_mkdir_p ()
   17034 {
   17035 
   17036   case $as_dir in #(
   17037   -*) as_dir=./$as_dir;;
   17038   esac
   17039   test -d "$as_dir" || eval $as_mkdir_p || {
   17040     as_dirs=
   17041     while :; do
   17042       case $as_dir in #(
   17043       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   17044       *) as_qdir=$as_dir;;
   17045       esac
   17046       as_dirs="'$as_qdir' $as_dirs"
   17047       as_dir=`$as_dirname -- "$as_dir" ||
   17048 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   17049 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   17050 	 X"$as_dir" : 'X\(//\)$' \| \
   17051 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   17052 $as_echo X"$as_dir" |
   17053     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   17054 	    s//\1/
   17055 	    q
   17056 	  }
   17057 	  /^X\(\/\/\)[^/].*/{
   17058 	    s//\1/
   17059 	    q
   17060 	  }
   17061 	  /^X\(\/\/\)$/{
   17062 	    s//\1/
   17063 	    q
   17064 	  }
   17065 	  /^X\(\/\).*/{
   17066 	    s//\1/
   17067 	    q
   17068 	  }
   17069 	  s/.*/./; q'`
   17070       test -d "$as_dir" && break
   17071     done
   17072     test -z "$as_dirs" || eval "mkdir $as_dirs"
   17073   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
   17074 
   17075 
   17076 } # as_fn_mkdir_p
   17077 if mkdir -p . 2>/dev/null; then
   17078   as_mkdir_p='mkdir -p "$as_dir"'
   17079 else
   17080   test -d ./-p && rmdir ./-p
   17081   as_mkdir_p=false
   17082 fi
   17083 
   17084 if test -x / >/dev/null 2>&1; then
   17085   as_test_x='test -x'
   17086 else
   17087   if ls -dL / >/dev/null 2>&1; then
   17088     as_ls_L_option=L
   17089   else
   17090     as_ls_L_option=
   17091   fi
   17092   as_test_x='
   17093     eval sh -c '\''
   17094       if test -d "$1"; then
   17095 	test -d "$1/.";
   17096       else
   17097 	case $1 in #(
   17098 	-*)set "./$1";;
   17099 	esac;
   17100 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   17101 	???[sx]*):;;*)false;;esac;fi
   17102     '\'' sh
   17103   '
   17104 fi
   17105 as_executable_p=$as_test_x
   17106 
   17107 # Sed expression to map a string onto a valid CPP name.
   17108 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   17109 
   17110 # Sed expression to map a string onto a valid variable name.
   17111 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   17112 
   17113 
   17114 exec 6>&1
   17115 ## ----------------------------------- ##
   17116 ## Main body of $CONFIG_STATUS script. ##
   17117 ## ----------------------------------- ##
   17118 _ASEOF
   17119 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   17120 
   17121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17122 # Save the log message, to keep $0 and so on meaningful, and to
   17123 # report actual input values of CONFIG_FILES etc. instead of their
   17124 # values after options handling.
   17125 ac_log="
   17126 This file was extended by $as_me, which was
   17127 generated by GNU Autoconf 2.64.  Invocation command line was
   17128 
   17129   CONFIG_FILES    = $CONFIG_FILES
   17130   CONFIG_HEADERS  = $CONFIG_HEADERS
   17131   CONFIG_LINKS    = $CONFIG_LINKS
   17132   CONFIG_COMMANDS = $CONFIG_COMMANDS
   17133   $ $0 $@
   17134 
   17135 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   17136 "
   17137 
   17138 _ACEOF
   17139 
   17140 case $ac_config_files in *"
   17141 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   17142 esac
   17143 
   17144 case $ac_config_headers in *"
   17145 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   17146 esac
   17147 
   17148 
   17149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17150 # Files that config.status was made for.
   17151 config_files="$ac_config_files"
   17152 config_headers="$ac_config_headers"
   17153 config_links="$ac_config_links"
   17154 config_commands="$ac_config_commands"
   17155 
   17156 _ACEOF
   17157 
   17158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17159 ac_cs_usage="\
   17160 \`$as_me' instantiates files and other configuration actions
   17161 from templates according to the current configuration.  Unless the files
   17162 and actions are specified as TAGs, all are instantiated by default.
   17163 
   17164 Usage: $0 [OPTION]... [TAG]...
   17165 
   17166   -h, --help       print this help, then exit
   17167   -V, --version    print version number and configuration settings, then exit
   17168   -q, --quiet, --silent
   17169                    do not print progress messages
   17170   -d, --debug      don't remove temporary files
   17171       --recheck    update $as_me by reconfiguring in the same conditions
   17172       --file=FILE[:TEMPLATE]
   17173                    instantiate the configuration file FILE
   17174       --header=FILE[:TEMPLATE]
   17175                    instantiate the configuration header FILE
   17176 
   17177 Configuration files:
   17178 $config_files
   17179 
   17180 Configuration headers:
   17181 $config_headers
   17182 
   17183 Configuration links:
   17184 $config_links
   17185 
   17186 Configuration commands:
   17187 $config_commands
   17188 
   17189 Report bugs to the package provider."
   17190 
   17191 _ACEOF
   17192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17193 ac_cs_version="\\
   17194 config.status
   17195 configured by $0, generated by GNU Autoconf 2.64,
   17196   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   17197 
   17198 Copyright (C) 2009 Free Software Foundation, Inc.
   17199 This config.status script is free software; the Free Software Foundation
   17200 gives unlimited permission to copy, distribute and modify it."
   17201 
   17202 ac_pwd='$ac_pwd'
   17203 srcdir='$srcdir'
   17204 INSTALL='$INSTALL'
   17205 AWK='$AWK'
   17206 test -n "\$AWK" || AWK=awk
   17207 _ACEOF
   17208 
   17209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17210 # The default lists apply if the user does not specify any file.
   17211 ac_need_defaults=:
   17212 while test $# != 0
   17213 do
   17214   case $1 in
   17215   --*=*)
   17216     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   17217     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   17218     ac_shift=:
   17219     ;;
   17220   *)
   17221     ac_option=$1
   17222     ac_optarg=$2
   17223     ac_shift=shift
   17224     ;;
   17225   esac
   17226 
   17227   case $ac_option in
   17228   # Handling of the options.
   17229   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   17230     ac_cs_recheck=: ;;
   17231   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   17232     $as_echo "$ac_cs_version"; exit ;;
   17233   --debug | --debu | --deb | --de | --d | -d )
   17234     debug=: ;;
   17235   --file | --fil | --fi | --f )
   17236     $ac_shift
   17237     case $ac_optarg in
   17238     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   17239     esac
   17240     as_fn_append CONFIG_FILES " '$ac_optarg'"
   17241     ac_need_defaults=false;;
   17242   --header | --heade | --head | --hea )
   17243     $ac_shift
   17244     case $ac_optarg in
   17245     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   17246     esac
   17247     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   17248     ac_need_defaults=false;;
   17249   --he | --h)
   17250     # Conflict between --help and --header
   17251     as_fn_error "ambiguous option: \`$1'
   17252 Try \`$0 --help' for more information.";;
   17253   --help | --hel | -h )
   17254     $as_echo "$ac_cs_usage"; exit ;;
   17255   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   17256   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   17257     ac_cs_silent=: ;;
   17258 
   17259   # This is an error.
   17260   -*) as_fn_error "unrecognized option: \`$1'
   17261 Try \`$0 --help' for more information." ;;
   17262 
   17263   *) as_fn_append ac_config_targets " $1"
   17264      ac_need_defaults=false ;;
   17265 
   17266   esac
   17267   shift
   17268 done
   17269 
   17270 ac_configure_extra_args=
   17271 
   17272 if $ac_cs_silent; then
   17273   exec 6>/dev/null
   17274   ac_configure_extra_args="$ac_configure_extra_args --silent"
   17275 fi
   17276 
   17277 _ACEOF
   17278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17279 if \$ac_cs_recheck; then
   17280   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   17281   shift
   17282   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   17283   CONFIG_SHELL='$SHELL'
   17284   export CONFIG_SHELL
   17285   exec "\$@"
   17286 fi
   17287 
   17288 _ACEOF
   17289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17290 exec 5>>config.log
   17291 {
   17292   echo
   17293   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   17294 ## Running $as_me. ##
   17295 _ASBOX
   17296   $as_echo "$ac_log"
   17297 } >&5
   17298 
   17299 _ACEOF
   17300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17301 #
   17302 # INIT-COMMANDS
   17303 #
   17304 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
   17305 
   17306 _ACEOF
   17307 
   17308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17309 
   17310 # Handling of arguments.
   17311 for ac_config_target in $ac_config_targets
   17312 do
   17313   case $ac_config_target in
   17314     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
   17315     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
   17316     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
   17317     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
   17318     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
   17319     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   17320     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
   17321     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   17322     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
   17323 
   17324   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   17325   esac
   17326 done
   17327 
   17328 
   17329 # If the user did not use the arguments to specify the items to instantiate,
   17330 # then the envvar interface is used.  Set only those that are not.
   17331 # We use the long form for the default assignment because of an extremely
   17332 # bizarre bug on SunOS 4.1.3.
   17333 if $ac_need_defaults; then
   17334   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   17335   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   17336   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
   17337   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   17338 fi
   17339 
   17340 # Have a temporary directory for convenience.  Make it in the build tree
   17341 # simply because there is no reason against having it here, and in addition,
   17342 # creating and moving files from /tmp can sometimes cause problems.
   17343 # Hook for its removal unless debugging.
   17344 # Note that there is a small window in which the directory will not be cleaned:
   17345 # after its creation but before its name has been assigned to `$tmp'.
   17346 $debug ||
   17347 {
   17348   tmp=
   17349   trap 'exit_status=$?
   17350   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   17351 ' 0
   17352   trap 'as_fn_exit 1' 1 2 13 15
   17353 }
   17354 # Create a (secure) tmp directory for tmp files.
   17355 
   17356 {
   17357   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   17358   test -n "$tmp" && test -d "$tmp"
   17359 }  ||
   17360 {
   17361   tmp=./conf$$-$RANDOM
   17362   (umask 077 && mkdir "$tmp")
   17363 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
   17364 
   17365 # Set up the scripts for CONFIG_FILES section.
   17366 # No need to generate them if there are no CONFIG_FILES.
   17367 # This happens for instance with `./config.status config.h'.
   17368 if test -n "$CONFIG_FILES"; then
   17369 
   17370 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   17371   ac_cs_awk_getline=:
   17372   ac_cs_awk_pipe_init=
   17373   ac_cs_awk_read_file='
   17374       while ((getline aline < (F[key])) > 0)
   17375 	print(aline)
   17376       close(F[key])'
   17377   ac_cs_awk_pipe_fini=
   17378 else
   17379   ac_cs_awk_getline=false
   17380   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   17381   ac_cs_awk_read_file='
   17382       print "|#_!!_#|"
   17383       print "cat " F[key] " &&"
   17384       '$ac_cs_awk_pipe_init
   17385   # The final `:' finishes the AND list.
   17386   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   17387 fi
   17388 ac_cr=`echo X | tr X '\015'`
   17389 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   17390 # But we know of no other shell where ac_cr would be empty at this
   17391 # point, so we can use a bashism as a fallback.
   17392 if test "x$ac_cr" = x; then
   17393   eval ac_cr=\$\'\\r\'
   17394 fi
   17395 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   17396 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   17397   ac_cs_awk_cr='\r'
   17398 else
   17399   ac_cs_awk_cr=$ac_cr
   17400 fi
   17401 
   17402 echo 'BEGIN {' >"$tmp/subs1.awk" &&
   17403 _ACEOF
   17404 
   17405 # Create commands to substitute file output variables.
   17406 {
   17407   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   17408   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
   17409   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   17410   echo "_ACAWK" &&
   17411   echo "_ACEOF"
   17412 } >conf$$files.sh &&
   17413 . ./conf$$files.sh ||
   17414   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   17415 rm -f conf$$files.sh
   17416 
   17417 {
   17418   echo "cat >conf$$subs.awk <<_ACEOF" &&
   17419   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   17420   echo "_ACEOF"
   17421 } >conf$$subs.sh ||
   17422   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   17423 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
   17424 ac_delim='%!_!# '
   17425 for ac_last_try in false false false false false :; do
   17426   . ./conf$$subs.sh ||
   17427     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   17428 
   17429   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   17430   if test $ac_delim_n = $ac_delim_num; then
   17431     break
   17432   elif $ac_last_try; then
   17433     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   17434   else
   17435     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   17436   fi
   17437 done
   17438 rm -f conf$$subs.sh
   17439 
   17440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17441 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
   17442 _ACEOF
   17443 sed -n '
   17444 h
   17445 s/^/S["/; s/!.*/"]=/
   17446 p
   17447 g
   17448 s/^[^!]*!//
   17449 :repl
   17450 t repl
   17451 s/'"$ac_delim"'$//
   17452 t delim
   17453 :nl
   17454 h
   17455 s/\(.\{148\}\).*/\1/
   17456 t more1
   17457 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   17458 p
   17459 n
   17460 b repl
   17461 :more1
   17462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   17463 p
   17464 g
   17465 s/.\{148\}//
   17466 t nl
   17467 :delim
   17468 h
   17469 s/\(.\{148\}\).*/\1/
   17470 t more2
   17471 s/["\\]/\\&/g; s/^/"/; s/$/"/
   17472 p
   17473 b
   17474 :more2
   17475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   17476 p
   17477 g
   17478 s/.\{148\}//
   17479 t delim
   17480 ' <conf$$subs.awk | sed '
   17481 /^[^""]/{
   17482   N
   17483   s/\n//
   17484 }
   17485 ' >>$CONFIG_STATUS || ac_write_fail=1
   17486 rm -f conf$$subs.awk
   17487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17488 _ACAWK
   17489 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
   17490   for (key in S) S_is_set[key] = 1
   17491   FS = ""
   17492   \$ac_cs_awk_pipe_init
   17493 }
   17494 {
   17495   line = $ 0
   17496   nfields = split(line, field, "@")
   17497   substed = 0
   17498   len = length(field[1])
   17499   for (i = 2; i < nfields; i++) {
   17500     key = field[i]
   17501     keylen = length(key)
   17502     if (S_is_set[key]) {
   17503       value = S[key]
   17504       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   17505       len += length(value) + length(field[++i])
   17506       substed = 1
   17507     } else
   17508       len += 1 + keylen
   17509   }
   17510   if (nfields == 3 && !substed) {
   17511     key = field[2]
   17512     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   17513       \$ac_cs_awk_read_file
   17514       next
   17515     }
   17516   }
   17517   print line
   17518 }
   17519 \$ac_cs_awk_pipe_fini
   17520 _ACAWK
   17521 _ACEOF
   17522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17523 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   17524   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   17525 else
   17526   cat
   17527 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
   17528   || as_fn_error "could not setup config files machinery" "$LINENO" 5
   17529 _ACEOF
   17530 
   17531 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   17532 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   17533 # trailing colons and then remove the whole line if VPATH becomes empty
   17534 # (actually we leave an empty line to preserve line numbers).
   17535 if test "x$srcdir" = x.; then
   17536   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   17537 s/:*\$(srcdir):*/:/
   17538 s/:*\${srcdir}:*/:/
   17539 s/:*@srcdir@:*/:/
   17540 s/^\([^=]*=[	 ]*\):*/\1/
   17541 s/:*$//
   17542 s/^[^=]*=[	 ]*$//
   17543 }'
   17544 fi
   17545 
   17546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17547 fi # test -n "$CONFIG_FILES"
   17548 
   17549 # Set up the scripts for CONFIG_HEADERS section.
   17550 # No need to generate them if there are no CONFIG_HEADERS.
   17551 # This happens for instance with `./config.status Makefile'.
   17552 if test -n "$CONFIG_HEADERS"; then
   17553 cat >"$tmp/defines.awk" <<\_ACAWK ||
   17554 BEGIN {
   17555 _ACEOF
   17556 
   17557 # Transform confdefs.h into an awk script `defines.awk', embedded as
   17558 # here-document in config.status, that substitutes the proper values into
   17559 # config.h.in to produce config.h.
   17560 
   17561 # Create a delimiter string that does not exist in confdefs.h, to ease
   17562 # handling of long lines.
   17563 ac_delim='%!_!# '
   17564 for ac_last_try in false false :; do
   17565   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
   17566   if test -z "$ac_t"; then
   17567     break
   17568   elif $ac_last_try; then
   17569     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
   17570   else
   17571     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   17572   fi
   17573 done
   17574 
   17575 # For the awk script, D is an array of macro values keyed by name,
   17576 # likewise P contains macro parameters if any.  Preserve backslash
   17577 # newline sequences.
   17578 
   17579 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   17580 sed -n '
   17581 s/.\{148\}/&'"$ac_delim"'/g
   17582 t rset
   17583 :rset
   17584 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   17585 t def
   17586 d
   17587 :def
   17588 s/\\$//
   17589 t bsnl
   17590 s/["\\]/\\&/g
   17591 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   17592 D["\1"]=" \3"/p
   17593 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   17594 d
   17595 :bsnl
   17596 s/["\\]/\\&/g
   17597 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   17598 D["\1"]=" \3\\\\\\n"\\/p
   17599 t cont
   17600 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   17601 t cont
   17602 d
   17603 :cont
   17604 n
   17605 s/.\{148\}/&'"$ac_delim"'/g
   17606 t clear
   17607 :clear
   17608 s/\\$//
   17609 t bsnlc
   17610 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   17611 d
   17612 :bsnlc
   17613 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   17614 b cont
   17615 ' <confdefs.h | sed '
   17616 s/'"$ac_delim"'/"\\\
   17617 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   17618 
   17619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17620   for (key in D) D_is_set[key] = 1
   17621   FS = ""
   17622 }
   17623 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   17624   line = \$ 0
   17625   split(line, arg, " ")
   17626   if (arg[1] == "#") {
   17627     defundef = arg[2]
   17628     mac1 = arg[3]
   17629   } else {
   17630     defundef = substr(arg[1], 2)
   17631     mac1 = arg[2]
   17632   }
   17633   split(mac1, mac2, "(") #)
   17634   macro = mac2[1]
   17635   prefix = substr(line, 1, index(line, defundef) - 1)
   17636   if (D_is_set[macro]) {
   17637     # Preserve the white space surrounding the "#".
   17638     print prefix "define", macro P[macro] D[macro]
   17639     next
   17640   } else {
   17641     # Replace #undef with comments.  This is necessary, for example,
   17642     # in the case of _POSIX_SOURCE, which is predefined and required
   17643     # on some systems where configure will not decide to define it.
   17644     if (defundef == "undef") {
   17645       print "/*", prefix defundef, macro, "*/"
   17646       next
   17647     }
   17648   }
   17649 }
   17650 { print }
   17651 _ACAWK
   17652 _ACEOF
   17653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17654   as_fn_error "could not setup config headers machinery" "$LINENO" 5
   17655 fi # test -n "$CONFIG_HEADERS"
   17656 
   17657 
   17658 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
   17659 shift
   17660 for ac_tag
   17661 do
   17662   case $ac_tag in
   17663   :[FHLC]) ac_mode=$ac_tag; continue;;
   17664   esac
   17665   case $ac_mode$ac_tag in
   17666   :[FHL]*:*);;
   17667   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
   17668   :[FH]-) ac_tag=-:-;;
   17669   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   17670   esac
   17671   ac_save_IFS=$IFS
   17672   IFS=:
   17673   set x $ac_tag
   17674   IFS=$ac_save_IFS
   17675   shift
   17676   ac_file=$1
   17677   shift
   17678 
   17679   case $ac_mode in
   17680   :L) ac_source=$1;;
   17681   :[FH])
   17682     ac_file_inputs=
   17683     for ac_f
   17684     do
   17685       case $ac_f in
   17686       -) ac_f="$tmp/stdin";;
   17687       *) # Look for the file first in the build tree, then in the source tree
   17688 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   17689 	 # because $ac_f cannot contain `:'.
   17690 	 test -f "$ac_f" ||
   17691 	   case $ac_f in
   17692 	   [\\/$]*) false;;
   17693 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   17694 	   esac ||
   17695 	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   17696       esac
   17697       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   17698       as_fn_append ac_file_inputs " '$ac_f'"
   17699     done
   17700 
   17701     # Let's still pretend it is `configure' which instantiates (i.e., don't
   17702     # use $as_me), people would be surprised to read:
   17703     #    /* config.h.  Generated by config.status.  */
   17704     configure_input='Generated from '`
   17705 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   17706 	`' by configure.'
   17707     if test x"$ac_file" != x-; then
   17708       configure_input="$ac_file.  $configure_input"
   17709       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   17710 $as_echo "$as_me: creating $ac_file" >&6;}
   17711     fi
   17712     # Neutralize special characters interpreted by sed in replacement strings.
   17713     case $configure_input in #(
   17714     *\&* | *\|* | *\\* )
   17715        ac_sed_conf_input=`$as_echo "$configure_input" |
   17716        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   17717     *) ac_sed_conf_input=$configure_input;;
   17718     esac
   17719 
   17720     case $ac_tag in
   17721     *:-:* | *:-) cat >"$tmp/stdin" \
   17722       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
   17723     esac
   17724     ;;
   17725   esac
   17726 
   17727   ac_dir=`$as_dirname -- "$ac_file" ||
   17728 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   17729 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   17730 	 X"$ac_file" : 'X\(//\)$' \| \
   17731 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   17732 $as_echo X"$ac_file" |
   17733     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   17734 	    s//\1/
   17735 	    q
   17736 	  }
   17737 	  /^X\(\/\/\)[^/].*/{
   17738 	    s//\1/
   17739 	    q
   17740 	  }
   17741 	  /^X\(\/\/\)$/{
   17742 	    s//\1/
   17743 	    q
   17744 	  }
   17745 	  /^X\(\/\).*/{
   17746 	    s//\1/
   17747 	    q
   17748 	  }
   17749 	  s/.*/./; q'`
   17750   as_dir="$ac_dir"; as_fn_mkdir_p
   17751   ac_builddir=.
   17752 
   17753 case "$ac_dir" in
   17754 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   17755 *)
   17756   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   17757   # A ".." for each directory in $ac_dir_suffix.
   17758   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   17759   case $ac_top_builddir_sub in
   17760   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   17761   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   17762   esac ;;
   17763 esac
   17764 ac_abs_top_builddir=$ac_pwd
   17765 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   17766 # for backward compatibility:
   17767 ac_top_builddir=$ac_top_build_prefix
   17768 
   17769 case $srcdir in
   17770   .)  # We are building in place.
   17771     ac_srcdir=.
   17772     ac_top_srcdir=$ac_top_builddir_sub
   17773     ac_abs_top_srcdir=$ac_pwd ;;
   17774   [\\/]* | ?:[\\/]* )  # Absolute name.
   17775     ac_srcdir=$srcdir$ac_dir_suffix;
   17776     ac_top_srcdir=$srcdir
   17777     ac_abs_top_srcdir=$srcdir ;;
   17778   *) # Relative name.
   17779     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   17780     ac_top_srcdir=$ac_top_build_prefix$srcdir
   17781     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   17782 esac
   17783 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   17784 
   17785 
   17786   case $ac_mode in
   17787   :F)
   17788   #
   17789   # CONFIG_FILE
   17790   #
   17791 
   17792   case $INSTALL in
   17793   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   17794   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   17795   esac
   17796 _ACEOF
   17797 
   17798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17799 # If the template does not know about datarootdir, expand it.
   17800 # FIXME: This hack should be removed a few years after 2.60.
   17801 ac_datarootdir_hack=; ac_datarootdir_seen=
   17802 ac_sed_dataroot='
   17803 /datarootdir/ {
   17804   p
   17805   q
   17806 }
   17807 /@datadir@/p
   17808 /@docdir@/p
   17809 /@infodir@/p
   17810 /@localedir@/p
   17811 /@mandir@/p'
   17812 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   17813 *datarootdir*) ac_datarootdir_seen=yes;;
   17814 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   17815   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   17816 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   17817 _ACEOF
   17818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17819   ac_datarootdir_hack='
   17820   s&@datadir@&$datadir&g
   17821   s&@docdir@&$docdir&g
   17822   s&@infodir@&$infodir&g
   17823   s&@localedir@&$localedir&g
   17824   s&@mandir@&$mandir&g
   17825   s&\\\${datarootdir}&$datarootdir&g' ;;
   17826 esac
   17827 _ACEOF
   17828 
   17829 # Neutralize VPATH when `$srcdir' = `.'.
   17830 # Shell code in configure.ac might set extrasub.
   17831 # FIXME: do we really want to maintain this feature?
   17832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   17833 ac_sed_extra="$ac_vpsub
   17834 $extrasub
   17835 _ACEOF
   17836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   17837 :t
   17838 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   17839 s|@configure_input@|$ac_sed_conf_input|;t t
   17840 s&@top_builddir@&$ac_top_builddir_sub&;t t
   17841 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   17842 s&@srcdir@&$ac_srcdir&;t t
   17843 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   17844 s&@top_srcdir@&$ac_top_srcdir&;t t
   17845 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   17846 s&@builddir@&$ac_builddir&;t t
   17847 s&@abs_builddir@&$ac_abs_builddir&;t t
   17848 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   17849 s&@INSTALL@&$ac_INSTALL&;t t
   17850 $ac_datarootdir_hack
   17851 "
   17852 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   17853 if $ac_cs_awk_getline; then
   17854   $AWK -f "$tmp/subs.awk"
   17855 else
   17856   $AWK -f "$tmp/subs.awk" | $SHELL
   17857 fi >$tmp/out \
   17858   || as_fn_error "could not create $ac_file" "$LINENO" 5
   17859 
   17860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   17861   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   17862   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   17863   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   17864 which seems to be undefined.  Please make sure it is defined." >&5
   17865 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   17866 which seems to be undefined.  Please make sure it is defined." >&2;}
   17867 
   17868   rm -f "$tmp/stdin"
   17869   case $ac_file in
   17870   -) cat "$tmp/out" && rm -f "$tmp/out";;
   17871   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
   17872   esac \
   17873   || as_fn_error "could not create $ac_file" "$LINENO" 5
   17874  ;;
   17875   :H)
   17876   #
   17877   # CONFIG_HEADER
   17878   #
   17879   if test x"$ac_file" != x-; then
   17880     {
   17881       $as_echo "/* $configure_input  */" \
   17882       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
   17883     } >"$tmp/config.h" \
   17884       || as_fn_error "could not create $ac_file" "$LINENO" 5
   17885     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
   17886       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   17887 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   17888     else
   17889       rm -f "$ac_file"
   17890       mv "$tmp/config.h" "$ac_file" \
   17891 	|| as_fn_error "could not create $ac_file" "$LINENO" 5
   17892     fi
   17893   else
   17894     $as_echo "/* $configure_input  */" \
   17895       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
   17896       || as_fn_error "could not create -" "$LINENO" 5
   17897   fi
   17898  ;;
   17899   :L)
   17900   #
   17901   # CONFIG_LINK
   17902   #
   17903 
   17904   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
   17905     :
   17906   else
   17907     # Prefer the file from the source tree if names are identical.
   17908     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
   17909       ac_source=$srcdir/$ac_source
   17910     fi
   17911 
   17912     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
   17913 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
   17914 
   17915     if test ! -r "$ac_source"; then
   17916       as_fn_error "$ac_source: file not found" "$LINENO" 5
   17917     fi
   17918     rm -f "$ac_file"
   17919 
   17920     # Try a relative symlink, then a hard link, then a copy.
   17921     case $srcdir in
   17922     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
   17923 	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
   17924     esac
   17925     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
   17926       ln "$ac_source" "$ac_file" 2>/dev/null ||
   17927       cp -p "$ac_source" "$ac_file" ||
   17928       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
   17929   fi
   17930  ;;
   17931   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   17932 $as_echo "$as_me: executing $ac_file commands" >&6;}
   17933  ;;
   17934   esac
   17935 
   17936 
   17937   case $ac_file$ac_mode in
   17938     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
   17939     "gcore":F) chmod +x gcore ;;
   17940     "Makefile":F)
   17941 case x$CONFIG_HEADERS in
   17942 xconfig.h:config.in)
   17943 echo > stamp-h ;;
   17944 esac
   17945  ;;
   17946     "gdb-gdb.gdb":F)
   17947 case x$CONFIG_HEADERS in
   17948 xconfig.h:config.in)
   17949 echo > stamp-h ;;
   17950 esac
   17951  ;;
   17952     "doc/Makefile":F)
   17953 case x$CONFIG_HEADERS in
   17954 xconfig.h:config.in)
   17955 echo > stamp-h ;;
   17956 esac
   17957  ;;
   17958     "data-directory/Makefile":F)
   17959 case x$CONFIG_HEADERS in
   17960 xconfig.h:config.in)
   17961 echo > stamp-h ;;
   17962 esac
   17963  ;;
   17964 
   17965   esac
   17966 done # for ac_tag
   17967 
   17968 
   17969 as_fn_exit 0
   17970 _ACEOF
   17971 ac_clean_files=$ac_clean_files_save
   17972 
   17973 test $ac_write_fail = 0 ||
   17974   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
   17975 
   17976 
   17977 # configure is writing to config.log, and then calls config.status.
   17978 # config.status does its own redirection, appending to config.log.
   17979 # Unfortunately, on DOS this fails, as config.log is still kept open
   17980 # by configure, so config.status won't be able to write to it; its
   17981 # output is simply discarded.  So we exec the FD to /dev/null,
   17982 # effectively closing config.log, so it can be properly (re)opened and
   17983 # appended to by config.status.  When coming back to configure, we
   17984 # need to make the FD available again.
   17985 if test "$no_create" != yes; then
   17986   ac_cs_success=:
   17987   ac_config_status_args=
   17988   test "$silent" = yes &&
   17989     ac_config_status_args="$ac_config_status_args --quiet"
   17990   exec 5>/dev/null
   17991   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   17992   exec 5>>config.log
   17993   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   17994   # would make configure fail if this is the last instruction.
   17995   $ac_cs_success || as_fn_exit $?
   17996 fi
   17997 
   17998 #
   17999 # CONFIG_SUBDIRS section.
   18000 #
   18001 if test "$no_recursion" != yes; then
   18002 
   18003   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   18004   # so they do not pile up.
   18005   ac_sub_configure_args=
   18006   ac_prev=
   18007   eval "set x $ac_configure_args"
   18008   shift
   18009   for ac_arg
   18010   do
   18011     if test -n "$ac_prev"; then
   18012       ac_prev=
   18013       continue
   18014     fi
   18015     case $ac_arg in
   18016     -cache-file | --cache-file | --cache-fil | --cache-fi \
   18017     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   18018       ac_prev=cache_file ;;
   18019     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   18020     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   18021     | --c=*)
   18022       ;;
   18023     --config-cache | -C)
   18024       ;;
   18025     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   18026       ac_prev=srcdir ;;
   18027     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   18028       ;;
   18029     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   18030       ac_prev=prefix ;;
   18031     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   18032       ;;
   18033     --disable-option-checking)
   18034       ;;
   18035     *)
   18036       case $ac_arg in
   18037       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   18038       esac
   18039       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   18040     esac
   18041   done
   18042 
   18043   # Always prepend --prefix to ensure using the same prefix
   18044   # in subdir configurations.
   18045   ac_arg="--prefix=$prefix"
   18046   case $ac_arg in
   18047   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   18048   esac
   18049   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   18050 
   18051   # Pass --silent
   18052   if test "$silent" = yes; then
   18053     ac_sub_configure_args="--silent $ac_sub_configure_args"
   18054   fi
   18055 
   18056   # Always prepend --disable-option-checking to silence warnings, since
   18057   # different subdirs can have different --enable and --with options.
   18058   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   18059 
   18060   ac_popdir=`pwd`
   18061   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   18062 
   18063     # Do not complain, so a configure script can configure whichever
   18064     # parts of a large source tree are present.
   18065     test -d "$srcdir/$ac_dir" || continue
   18066 
   18067     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   18068     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   18069     $as_echo "$ac_msg" >&6
   18070     as_dir="$ac_dir"; as_fn_mkdir_p
   18071     ac_builddir=.
   18072 
   18073 case "$ac_dir" in
   18074 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   18075 *)
   18076   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   18077   # A ".." for each directory in $ac_dir_suffix.
   18078   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   18079   case $ac_top_builddir_sub in
   18080   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   18081   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   18082   esac ;;
   18083 esac
   18084 ac_abs_top_builddir=$ac_pwd
   18085 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   18086 # for backward compatibility:
   18087 ac_top_builddir=$ac_top_build_prefix
   18088 
   18089 case $srcdir in
   18090   .)  # We are building in place.
   18091     ac_srcdir=.
   18092     ac_top_srcdir=$ac_top_builddir_sub
   18093     ac_abs_top_srcdir=$ac_pwd ;;
   18094   [\\/]* | ?:[\\/]* )  # Absolute name.
   18095     ac_srcdir=$srcdir$ac_dir_suffix;
   18096     ac_top_srcdir=$srcdir
   18097     ac_abs_top_srcdir=$srcdir ;;
   18098   *) # Relative name.
   18099     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   18100     ac_top_srcdir=$ac_top_build_prefix$srcdir
   18101     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   18102 esac
   18103 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   18104 
   18105 
   18106     cd "$ac_dir"
   18107 
   18108     # Check for guested configure; otherwise get Cygnus style configure.
   18109     if test -f "$ac_srcdir/configure.gnu"; then
   18110       ac_sub_configure=$ac_srcdir/configure.gnu
   18111     elif test -f "$ac_srcdir/configure"; then
   18112       ac_sub_configure=$ac_srcdir/configure
   18113     elif test -f "$ac_srcdir/configure.in"; then
   18114       # This should be Cygnus configure.
   18115       ac_sub_configure=$ac_aux_dir/configure
   18116     else
   18117       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
   18118 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   18119       ac_sub_configure=
   18120     fi
   18121 
   18122     # The recursion is here.
   18123     if test -n "$ac_sub_configure"; then
   18124       # Make the cache file name correct relative to the subdirectory.
   18125       case $cache_file in
   18126       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   18127       *) # Relative name.
   18128 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   18129       esac
   18130 
   18131       { $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
   18132 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   18133       # The eval makes quoting arguments work.
   18134       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   18135 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   18136 	as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   18137     fi
   18138 
   18139     cd "$ac_popdir"
   18140   done
   18141 fi
   18142 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   18143   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   18144 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   18145 fi
   18146 
   18147