Home | History | Annotate | Line # | Download | only in gdb
configure revision 1.9
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69.
      4 #
      5 #
      6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
      7 #
      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 as_myself=
     91 case $0 in #((
     92   *[\\/]* ) as_myself=$0 ;;
     93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     94 for as_dir in $PATH
     95 do
     96   IFS=$as_save_IFS
     97   test -z "$as_dir" && as_dir=.
     98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     99   done
    100 IFS=$as_save_IFS
    101 
    102      ;;
    103 esac
    104 # We did not find ourselves, most probably we were run as `sh COMMAND'
    105 # in which case we are not to be found in the path.
    106 if test "x$as_myself" = x; then
    107   as_myself=$0
    108 fi
    109 if test ! -f "$as_myself"; then
    110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    111   exit 1
    112 fi
    113 
    114 # Unset variables that we do not need and which cause bugs (e.g. in
    115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    116 # suppresses any "Segmentation fault" message there.  '((' could
    117 # trigger a bug in pdksh 5.2.14.
    118 for as_var in BASH_ENV ENV MAIL MAILPATH
    119 do eval test x\${$as_var+set} = xset \
    120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    121 done
    122 PS1='$ '
    123 PS2='> '
    124 PS4='+ '
    125 
    126 # NLS nuisances.
    127 LC_ALL=C
    128 export LC_ALL
    129 LANGUAGE=C
    130 export LANGUAGE
    131 
    132 # CDPATH.
    133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    134 
    135 # Use a proper internal environment variable to ensure we don't fall
    136   # into an infinite loop, continuously re-executing ourselves.
    137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
    138     _as_can_reexec=no; export _as_can_reexec;
    139     # We cannot yet assume a decent shell, so we have to provide a
    140 # neutralization value for shells without unset; and this also
    141 # works around shells that cannot unset nonexistent variables.
    142 # Preserve -v and -x to the replacement shell.
    143 BASH_ENV=/dev/null
    144 ENV=/dev/null
    145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    146 case $- in # ((((
    147   *v*x* | *x*v* ) as_opts=-vx ;;
    148   *v* ) as_opts=-v ;;
    149   *x* ) as_opts=-x ;;
    150   * ) as_opts= ;;
    151 esac
    152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    153 # Admittedly, this is quite paranoid, since all the known shells bail
    154 # out after a failed `exec'.
    155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    156 as_fn_exit 255
    157   fi
    158   # We don't want this to propagate to other subprocesses.
    159           { _as_can_reexec=; unset _as_can_reexec;}
    160 if test "x$CONFIG_SHELL" = x; then
    161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    162   emulate sh
    163   NULLCMD=:
    164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    165   # is contrary to our usage.  Disable this feature.
    166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    167   setopt NO_GLOB_SUBST
    168 else
    169   case \`(set -o) 2>/dev/null\` in #(
    170   *posix*) :
    171     set -o posix ;; #(
    172   *) :
    173      ;;
    174 esac
    175 fi
    176 "
    177   as_required="as_fn_return () { (exit \$1); }
    178 as_fn_success () { as_fn_return 0; }
    179 as_fn_failure () { as_fn_return 1; }
    180 as_fn_ret_success () { return 0; }
    181 as_fn_ret_failure () { return 1; }
    182 
    183 exitcode=0
    184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    189 
    190 else
    191   exitcode=1; echo positional parameters were not saved.
    192 fi
    193 test x\$exitcode = x0 || exit 1
    194 test -x / || exit 1"
    195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    199 test \$(( 1 + 1 )) = 2 || exit 1"
    200   if (eval "$as_required") 2>/dev/null; then :
    201   as_have_required=yes
    202 else
    203   as_have_required=no
    204 fi
    205   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    206 
    207 else
    208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    209 as_found=false
    210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    211 do
    212   IFS=$as_save_IFS
    213   test -z "$as_dir" && as_dir=.
    214   as_found=:
    215   case $as_dir in #(
    216 	 /*)
    217 	   for as_base in sh bash ksh sh5; do
    218 	     # Try only shells that exist, to save several forks.
    219 	     as_shell=$as_dir/$as_base
    220 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    221 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    222   CONFIG_SHELL=$as_shell as_have_required=yes
    223 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    224   break 2
    225 fi
    226 fi
    227 	   done;;
    228        esac
    229   as_found=false
    230 done
    231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    232 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    233   CONFIG_SHELL=$SHELL as_have_required=yes
    234 fi; }
    235 IFS=$as_save_IFS
    236 
    237 
    238       if test "x$CONFIG_SHELL" != x; then :
    239   export CONFIG_SHELL
    240              # We cannot yet assume a decent shell, so we have to provide a
    241 # neutralization value for shells without unset; and this also
    242 # works around shells that cannot unset nonexistent variables.
    243 # Preserve -v and -x to the replacement shell.
    244 BASH_ENV=/dev/null
    245 ENV=/dev/null
    246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    247 case $- in # ((((
    248   *v*x* | *x*v* ) as_opts=-vx ;;
    249   *v* ) as_opts=-v ;;
    250   *x* ) as_opts=-x ;;
    251   * ) as_opts= ;;
    252 esac
    253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
    254 # Admittedly, this is quite paranoid, since all the known shells bail
    255 # out after a failed `exec'.
    256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
    257 exit 255
    258 fi
    259 
    260     if test x$as_have_required = xno; then :
    261   $as_echo "$0: This script requires a shell more modern than all"
    262   $as_echo "$0: the shells that I found on your system."
    263   if test x${ZSH_VERSION+set} = xset ; then
    264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    266   else
    267     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    268 $0: including any error possibly output before this
    269 $0: message. Then install a modern shell, or manually run
    270 $0: the script under such a shell if you do have one."
    271   fi
    272   exit 1
    273 fi
    274 fi
    275 fi
    276 SHELL=${CONFIG_SHELL-/bin/sh}
    277 export SHELL
    278 # Unset more variables known to interfere with behavior of common tools.
    279 CLICOLOR_FORCE= GREP_OPTIONS=
    280 unset CLICOLOR_FORCE GREP_OPTIONS
    281 
    282 ## --------------------- ##
    283 ## M4sh Shell Functions. ##
    284 ## --------------------- ##
    285 # as_fn_unset VAR
    286 # ---------------
    287 # Portably unset VAR.
    288 as_fn_unset ()
    289 {
    290   { eval $1=; unset $1;}
    291 }
    292 as_unset=as_fn_unset
    293 
    294 # as_fn_set_status STATUS
    295 # -----------------------
    296 # Set $? to STATUS, without forking.
    297 as_fn_set_status ()
    298 {
    299   return $1
    300 } # as_fn_set_status
    301 
    302 # as_fn_exit STATUS
    303 # -----------------
    304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    305 as_fn_exit ()
    306 {
    307   set +e
    308   as_fn_set_status $1
    309   exit $1
    310 } # as_fn_exit
    311 
    312 # as_fn_mkdir_p
    313 # -------------
    314 # Create "$as_dir" as a directory, including parents if necessary.
    315 as_fn_mkdir_p ()
    316 {
    317 
    318   case $as_dir in #(
    319   -*) as_dir=./$as_dir;;
    320   esac
    321   test -d "$as_dir" || eval $as_mkdir_p || {
    322     as_dirs=
    323     while :; do
    324       case $as_dir in #(
    325       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    326       *) as_qdir=$as_dir;;
    327       esac
    328       as_dirs="'$as_qdir' $as_dirs"
    329       as_dir=`$as_dirname -- "$as_dir" ||
    330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    331 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    332 	 X"$as_dir" : 'X\(//\)$' \| \
    333 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    334 $as_echo X"$as_dir" |
    335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    336 	    s//\1/
    337 	    q
    338 	  }
    339 	  /^X\(\/\/\)[^/].*/{
    340 	    s//\1/
    341 	    q
    342 	  }
    343 	  /^X\(\/\/\)$/{
    344 	    s//\1/
    345 	    q
    346 	  }
    347 	  /^X\(\/\).*/{
    348 	    s//\1/
    349 	    q
    350 	  }
    351 	  s/.*/./; q'`
    352       test -d "$as_dir" && break
    353     done
    354     test -z "$as_dirs" || eval "mkdir $as_dirs"
    355   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
    356 
    357 
    358 } # as_fn_mkdir_p
    359 
    360 # as_fn_executable_p FILE
    361 # -----------------------
    362 # Test if FILE is an executable regular file.
    363 as_fn_executable_p ()
    364 {
    365   test -f "$1" && test -x "$1"
    366 } # as_fn_executable_p
    367 # as_fn_append VAR VALUE
    368 # ----------------------
    369 # Append the text in VALUE to the end of the definition contained in VAR. Take
    370 # advantage of any shell optimizations that allow amortized linear growth over
    371 # repeated appends, instead of the typical quadratic growth present in naive
    372 # implementations.
    373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    374   eval 'as_fn_append ()
    375   {
    376     eval $1+=\$2
    377   }'
    378 else
    379   as_fn_append ()
    380   {
    381     eval $1=\$$1\$2
    382   }
    383 fi # as_fn_append
    384 
    385 # as_fn_arith ARG...
    386 # ------------------
    387 # Perform arithmetic evaluation on the ARGs, and store the result in the
    388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    389 # must be portable across $(()) and expr.
    390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    391   eval 'as_fn_arith ()
    392   {
    393     as_val=$(( $* ))
    394   }'
    395 else
    396   as_fn_arith ()
    397   {
    398     as_val=`expr "$@" || test $? -eq 1`
    399   }
    400 fi # as_fn_arith
    401 
    402 
    403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    404 # ----------------------------------------
    405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    407 # script with STATUS, using 1 if that was 0.
    408 as_fn_error ()
    409 {
    410   as_status=$1; test $as_status -eq 0 && as_status=1
    411   if test "$4"; then
    412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
    414   fi
    415   $as_echo "$as_me: error: $2" >&2
    416   as_fn_exit $as_status
    417 } # as_fn_error
    418 
    419 if expr a : '\(a\)' >/dev/null 2>&1 &&
    420    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    421   as_expr=expr
    422 else
    423   as_expr=false
    424 fi
    425 
    426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    427   as_basename=basename
    428 else
    429   as_basename=false
    430 fi
    431 
    432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    433   as_dirname=dirname
    434 else
    435   as_dirname=false
    436 fi
    437 
    438 as_me=`$as_basename -- "$0" ||
    439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    440 	 X"$0" : 'X\(//\)$' \| \
    441 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    442 $as_echo X/"$0" |
    443     sed '/^.*\/\([^/][^/]*\)\/*$/{
    444 	    s//\1/
    445 	    q
    446 	  }
    447 	  /^X\/\(\/\/\)$/{
    448 	    s//\1/
    449 	    q
    450 	  }
    451 	  /^X\/\(\/\).*/{
    452 	    s//\1/
    453 	    q
    454 	  }
    455 	  s/.*/./; q'`
    456 
    457 # Avoid depending upon Character Ranges.
    458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    461 as_cr_digits='0123456789'
    462 as_cr_alnum=$as_cr_Letters$as_cr_digits
    463 
    464 
    465   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    466   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    467   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    468   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    469   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    470   sed -n '
    471     p
    472     /[$]LINENO/=
    473   ' <$as_myself |
    474     sed '
    475       s/[$]LINENO.*/&-/
    476       t lineno
    477       b
    478       :lineno
    479       N
    480       :loop
    481       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    482       t loop
    483       s/-\n.*//
    484     ' >$as_me.lineno &&
    485   chmod +x "$as_me.lineno" ||
    486     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    487 
    488   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
    489   # already done that, so ensure we don't try to do so again and fall
    490   # in an infinite loop.  This has already happened in practice.
    491   _as_can_reexec=no; export _as_can_reexec
    492   # Don't try to exec as it changes $[0], causing all sort of problems
    493   # (the dirname of $[0] is not the place where we might find the
    494   # original and so on.  Autoconf is especially sensitive to this).
    495   . "./$as_me.lineno"
    496   # Exit status is that of the last command.
    497   exit
    498 }
    499 
    500 ECHO_C= ECHO_N= ECHO_T=
    501 case `echo -n x` in #(((((
    502 -n*)
    503   case `echo 'xy\c'` in
    504   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    505   xy)  ECHO_C='\c';;
    506   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    507        ECHO_T='	';;
    508   esac;;
    509 *)
    510   ECHO_N='-n';;
    511 esac
    512 
    513 rm -f conf$$ conf$$.exe conf$$.file
    514 if test -d conf$$.dir; then
    515   rm -f conf$$.dir/conf$$.file
    516 else
    517   rm -f conf$$.dir
    518   mkdir conf$$.dir 2>/dev/null
    519 fi
    520 if (echo >conf$$.file) 2>/dev/null; then
    521   if ln -s conf$$.file conf$$ 2>/dev/null; then
    522     as_ln_s='ln -s'
    523     # ... but there are two gotchas:
    524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    526     # In both cases, we have to default to `cp -pR'.
    527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    528       as_ln_s='cp -pR'
    529   elif ln conf$$.file conf$$ 2>/dev/null; then
    530     as_ln_s=ln
    531   else
    532     as_ln_s='cp -pR'
    533   fi
    534 else
    535   as_ln_s='cp -pR'
    536 fi
    537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    538 rmdir conf$$.dir 2>/dev/null
    539 
    540 if mkdir -p . 2>/dev/null; then
    541   as_mkdir_p='mkdir -p "$as_dir"'
    542 else
    543   test -d ./-p && rmdir ./-p
    544   as_mkdir_p=false
    545 fi
    546 
    547 as_test_x='test -x'
    548 as_executable_p=as_fn_executable_p
    549 
    550 # Sed expression to map a string onto a valid CPP name.
    551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    552 
    553 # Sed expression to map a string onto a valid variable name.
    554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    555 
    556 
    557 test -n "$DJDIR" || exec 7<&0 </dev/null
    558 exec 6>&1
    559 
    560 # Name of the host.
    561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
    562 # so uname gets run too.
    563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    564 
    565 #
    566 # Initializations.
    567 #
    568 ac_default_prefix=/usr/local
    569 ac_clean_files=
    570 ac_config_libobj_dir=.
    571 LIBOBJS=
    572 cross_compiling=no
    573 subdirs=
    574 MFLAGS=
    575 MAKEFLAGS=
    576 
    577 # Identity of this package.
    578 PACKAGE_NAME=
    579 PACKAGE_TARNAME=
    580 PACKAGE_VERSION=
    581 PACKAGE_STRING=
    582 PACKAGE_BUGREPORT=
    583 PACKAGE_URL=
    584 
    585 ac_unique_file="main.c"
    586 # Factoring default headers for most tests.
    587 ac_includes_default="\
    588 #include <stdio.h>
    589 #ifdef HAVE_SYS_TYPES_H
    590 # include <sys/types.h>
    591 #endif
    592 #ifdef HAVE_SYS_STAT_H
    593 # include <sys/stat.h>
    594 #endif
    595 #ifdef STDC_HEADERS
    596 # include <stdlib.h>
    597 # include <stddef.h>
    598 #else
    599 # ifdef HAVE_STDLIB_H
    600 #  include <stdlib.h>
    601 # endif
    602 #endif
    603 #ifdef HAVE_STRING_H
    604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    605 #  include <memory.h>
    606 # endif
    607 # include <string.h>
    608 #endif
    609 #ifdef HAVE_STRINGS_H
    610 # include <strings.h>
    611 #endif
    612 #ifdef HAVE_INTTYPES_H
    613 # include <inttypes.h>
    614 #endif
    615 #ifdef HAVE_STDINT_H
    616 # include <stdint.h>
    617 #endif
    618 #ifdef HAVE_UNISTD_H
    619 # include <unistd.h>
    620 #endif"
    621 
    622 enable_option_checking=no
    623 ac_header_list=
    624 ac_subst_vars='LTLIBOBJS
    625 LIBOBJS
    626 GCORE_TRANSFORM_NAME
    627 GDB_TRANSFORM_NAME
    628 XSLTPROC
    629 NM_H
    630 GDB_NM_FILE
    631 LTLIBXXHASH
    632 LIBXXHASH
    633 HAVE_LIBXXHASH
    634 CTF_DEPS
    635 LIBCTF
    636 ENABLE_LIBCTF
    637 LTLIBBABELTRACE
    638 LIBBABELTRACE
    639 HAVE_LIBBABELTRACE
    640 HAVE_NATIVE_GCORE_HOST
    641 NAT_GENERATED_FILES
    642 XM_CLIBS
    643 MH_CFLAGS
    644 LOADLIBES
    645 NAT_CDEPS
    646 NATDEPFILES
    647 NAT_FILE
    648 target_subdir
    649 CONFIG_UNINSTALL
    650 CONFIG_INSTALL
    651 CONFIG_CLEAN
    652 CONFIG_ALL
    653 CONFIG_SRCS
    654 CONFIG_DEPS
    655 CONFIG_OBS
    656 PROFILE_CFLAGS
    657 ENABLE_CFLAGS
    658 SIM_OBS
    659 SIM
    660 XMKMF
    661 GDBTK_SRC_DIR
    662 GDBTK_CFLAGS
    663 GDBTKLIBS
    664 X_LIBS
    665 X_LDFLAGS
    666 X_CFLAGS
    667 TK_XINCLUDES
    668 TK_DEPS
    669 TK_LIBRARY
    670 TK_INCLUDE
    671 TK_STUB_LIB_SPEC
    672 TK_STUB_LIB_FLAG
    673 TK_STUB_LIB_FILE
    674 TK_LIB_SPEC
    675 TK_LIB_FLAG
    676 TK_LIB_FILE
    677 TK_SRC_DIR
    678 TK_BIN_DIR
    679 TK_VERSION
    680 TCL_DEPS
    681 TCL_LIBRARY
    682 TCL_INCLUDE
    683 TCL_STUB_LIB_SPEC
    684 TCL_STUB_LIB_FLAG
    685 TCL_STUB_LIB_FILE
    686 TCL_LIB_SPEC
    687 TCL_LIB_FLAG
    688 TCL_LIB_FILE
    689 TCL_SRC_DIR
    690 TCL_BIN_DIR
    691 TCL_PATCH_LEVEL
    692 TCL_VERSION
    693 WIN32LDAPP
    694 WIN32LIBS
    695 GUI_CFLAGS_X
    696 LIBGUI
    697 LTLIBLZMA
    698 LIBLZMA
    699 HAVE_LIBLZMA
    700 SER_HARDWIRE
    701 WERROR_CFLAGS
    702 WARN_CFLAGS
    703 SYSTEM_GDBINIT_DIR
    704 SYSTEM_GDBINIT
    705 TARGET_SYSTEM_ROOT
    706 CONFIG_LDFLAGS
    707 RDYNAMIC
    708 LTLIBIPT
    709 LIBIPT
    710 HAVE_LIBIPT
    711 PTHREAD_CFLAGS
    712 PTHREAD_LIBS
    713 PTHREAD_CC
    714 ax_pthread_config
    715 SED
    716 ALLOCA
    717 SRCHIGH_CFLAGS
    718 SRCHIGH_LIBS
    719 HAVE_GUILE_FALSE
    720 HAVE_GUILE_TRUE
    721 GUILE_LIBS
    722 GUILE_CPPFLAGS
    723 GUILD_TARGET_FLAG
    724 GUILD
    725 pkg_config_prog_path
    726 HAVE_PYTHON_FALSE
    727 HAVE_PYTHON_TRUE
    728 PYTHON_LIBS
    729 PYTHON_CPPFLAGS
    730 PYTHON_CFLAGS
    731 python_prog_path
    732 LTLIBMPFR
    733 LIBMPFR
    734 HAVE_LIBMPFR
    735 LTLIBEXPAT
    736 LIBEXPAT
    737 HAVE_LIBEXPAT
    738 JIT_READER_DIR
    739 TARGET_PTR
    740 READLINE_TEXI_INCFLAG
    741 READLINE_CFLAGS
    742 READLINE_DEPS
    743 READLINE
    744 LTLIBICONV
    745 LIBICONV
    746 zlibinc
    747 zlibdir
    748 MIG
    749 WINDRES
    750 DLLTOOL
    751 AR
    752 YFLAGS
    753 YACC
    754 RANLIB
    755 LN_S
    756 INSTALL_DATA
    757 INSTALL_SCRIPT
    758 INSTALL_PROGRAM
    759 AWK
    760 REPORT_BUGS_TEXI
    761 REPORT_BUGS_TO
    762 PKGVERSION
    763 CODESIGN_CERT
    764 DEBUGINFOD_LIBS
    765 DEBUGINFOD_CFLAGS
    766 PKG_CONFIG_LIBDIR
    767 PKG_CONFIG_PATH
    768 PKG_CONFIG
    769 HAVE_NATIVE_GCORE_TARGET
    770 TARGET_OBS
    771 subdirs
    772 GDB_DATADIR
    773 DEBUGDIR
    774 MAKEINFO_EXTRA_FLAGS
    775 MAKEINFOFLAGS
    776 MAKEINFO
    777 PACKAGE
    778 CATOBJEXT
    779 GENCAT
    780 INSTOBJEXT
    781 DATADIRNAME
    782 CATALOGS
    783 POSUB
    784 GMSGFMT
    785 XGETTEXT
    786 INCINTL
    787 LIBINTL_DEP
    788 LIBINTL
    789 USE_NLS
    790 CCDEPMODE
    791 DEPDIR
    792 am__leading_dot
    793 CXX_DIALECT
    794 HAVE_CXX11
    795 INSTALL_STRIP_PROGRAM
    796 STRIP
    797 install_sh
    798 LARGEFILE_CPPFLAGS
    799 target_os
    800 target_vendor
    801 target_cpu
    802 target
    803 host_os
    804 host_vendor
    805 host_cpu
    806 host
    807 build_os
    808 build_vendor
    809 build_cpu
    810 build
    811 EGREP
    812 GREP
    813 CPP
    814 ac_ct_CXX
    815 CXXFLAGS
    816 CXX
    817 OBJEXT
    818 EXEEXT
    819 ac_ct_CC
    820 CPPFLAGS
    821 LDFLAGS
    822 CFLAGS
    823 CC
    824 MAINT
    825 MAINTAINER_MODE_FALSE
    826 MAINTAINER_MODE_TRUE
    827 target_alias
    828 host_alias
    829 build_alias
    830 LIBS
    831 ECHO_T
    832 ECHO_N
    833 ECHO_C
    834 DEFS
    835 mandir
    836 localedir
    837 libdir
    838 psdir
    839 pdfdir
    840 dvidir
    841 htmldir
    842 infodir
    843 docdir
    844 oldincludedir
    845 includedir
    846 localstatedir
    847 sharedstatedir
    848 sysconfdir
    849 datadir
    850 datarootdir
    851 libexecdir
    852 sbindir
    853 bindir
    854 program_transform_name
    855 prefix
    856 exec_prefix
    857 PACKAGE_URL
    858 PACKAGE_BUGREPORT
    859 PACKAGE_STRING
    860 PACKAGE_VERSION
    861 PACKAGE_TARNAME
    862 PACKAGE_NAME
    863 PATH_SEPARATOR
    864 SHELL'
    865 ac_subst_files='nat_makefile_frag'
    866 ac_user_opts='
    867 enable_option_checking
    868 enable_maintainer_mode
    869 enable_plugins
    870 enable_largefile
    871 with_separate_debug_dir
    872 with_gdb_datadir
    873 with_relocated_sources
    874 with_auto_load_dir
    875 with_auto_load_safe_path
    876 enable_targets
    877 enable_64_bit_bfd
    878 enable_gdbmi
    879 enable_tui
    880 enable_gdbtk
    881 with_debuginfod
    882 with_libunwind_ia64
    883 with_curses
    884 enable_profiling
    885 enable_codesign
    886 with_pkgversion
    887 with_bugurl
    888 with_system_zlib
    889 with_gnu_ld
    890 enable_rpath
    891 with_libiconv_prefix
    892 with_libiconv_type
    893 with_iconv_bin
    894 with_system_readline
    895 with_jit_reader_dir
    896 with_expat
    897 with_libexpat_prefix
    898 with_libexpat_type
    899 with_mpfr
    900 with_libmpfr_prefix
    901 with_libmpfr_type
    902 with_python
    903 with_python_libdir
    904 with_guile
    905 enable_source_highlight
    906 with_intel_pt
    907 with_libipt_prefix
    908 with_libipt_type
    909 with_included_regex
    910 with_sysroot
    911 with_system_gdbinit
    912 with_system_gdbinit_dir
    913 enable_werror
    914 enable_build_warnings
    915 enable_gdb_build_warnings
    916 enable_ubsan
    917 with_lzma
    918 with_liblzma_prefix
    919 with_liblzma_type
    920 with_tcl
    921 with_tk
    922 with_x
    923 enable_sim
    924 with_babeltrace
    925 with_libbabeltrace_prefix
    926 with_libbabeltrace_type
    927 with_xxhash
    928 enable_libctf
    929 with_libxxhash_prefix
    930 with_libxxhash_type
    931 enable_unit_tests
    932 '
    933       ac_precious_vars='build_alias
    934 host_alias
    935 target_alias
    936 CC
    937 CFLAGS
    938 LDFLAGS
    939 LIBS
    940 CPPFLAGS
    941 CXX
    942 CXXFLAGS
    943 CCC
    944 CPP
    945 MAKEINFO
    946 MAKEINFOFLAGS
    947 PKG_CONFIG
    948 PKG_CONFIG_PATH
    949 PKG_CONFIG_LIBDIR
    950 DEBUGINFOD_CFLAGS
    951 DEBUGINFOD_LIBS
    952 YACC
    953 YFLAGS
    954 XMKMF'
    955 ac_subdirs_all='testsuite
    956 gdbtk'
    957 
    958 # Initialize some variables set by options.
    959 ac_init_help=
    960 ac_init_version=false
    961 ac_unrecognized_opts=
    962 ac_unrecognized_sep=
    963 # The variables have the same names as the options, with
    964 # dashes changed to underlines.
    965 cache_file=/dev/null
    966 exec_prefix=NONE
    967 no_create=
    968 no_recursion=
    969 prefix=NONE
    970 program_prefix=NONE
    971 program_suffix=NONE
    972 program_transform_name=s,x,x,
    973 silent=
    974 site=
    975 srcdir=
    976 verbose=
    977 x_includes=NONE
    978 x_libraries=NONE
    979 
    980 # Installation directory options.
    981 # These are left unexpanded so users can "make install exec_prefix=/foo"
    982 # and all the variables that are supposed to be based on exec_prefix
    983 # by default will actually change.
    984 # Use braces instead of parens because sh, perl, etc. also accept them.
    985 # (The list follows the same order as the GNU Coding Standards.)
    986 bindir='${exec_prefix}/bin'
    987 sbindir='${exec_prefix}/sbin'
    988 libexecdir='${exec_prefix}/libexec'
    989 datarootdir='${prefix}/share'
    990 datadir='${datarootdir}'
    991 sysconfdir='${prefix}/etc'
    992 sharedstatedir='${prefix}/com'
    993 localstatedir='${prefix}/var'
    994 includedir='${prefix}/include'
    995 oldincludedir='/usr/include'
    996 docdir='${datarootdir}/doc/${PACKAGE}'
    997 infodir='${datarootdir}/info'
    998 htmldir='${docdir}'
    999 dvidir='${docdir}'
   1000 pdfdir='${docdir}'
   1001 psdir='${docdir}'
   1002 libdir='${exec_prefix}/lib'
   1003 localedir='${datarootdir}/locale'
   1004 mandir='${datarootdir}/man'
   1005 
   1006 ac_prev=
   1007 ac_dashdash=
   1008 for ac_option
   1009 do
   1010   # If the previous option needs an argument, assign it.
   1011   if test -n "$ac_prev"; then
   1012     eval $ac_prev=\$ac_option
   1013     ac_prev=
   1014     continue
   1015   fi
   1016 
   1017   case $ac_option in
   1018   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
   1019   *=)   ac_optarg= ;;
   1020   *)    ac_optarg=yes ;;
   1021   esac
   1022 
   1023   # Accept the important Cygnus configure options, so we can diagnose typos.
   1024 
   1025   case $ac_dashdash$ac_option in
   1026   --)
   1027     ac_dashdash=yes ;;
   1028 
   1029   -bindir | --bindir | --bindi | --bind | --bin | --bi)
   1030     ac_prev=bindir ;;
   1031   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
   1032     bindir=$ac_optarg ;;
   1033 
   1034   -build | --build | --buil | --bui | --bu)
   1035     ac_prev=build_alias ;;
   1036   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
   1037     build_alias=$ac_optarg ;;
   1038 
   1039   -cache-file | --cache-file | --cache-fil | --cache-fi \
   1040   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1041     ac_prev=cache_file ;;
   1042   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1043   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1044     cache_file=$ac_optarg ;;
   1045 
   1046   --config-cache | -C)
   1047     cache_file=config.cache ;;
   1048 
   1049   -datadir | --datadir | --datadi | --datad)
   1050     ac_prev=datadir ;;
   1051   -datadir=* | --datadir=* | --datadi=* | --datad=*)
   1052     datadir=$ac_optarg ;;
   1053 
   1054   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
   1055   | --dataroo | --dataro | --datar)
   1056     ac_prev=datarootdir ;;
   1057   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
   1058   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
   1059     datarootdir=$ac_optarg ;;
   1060 
   1061   -disable-* | --disable-*)
   1062     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
   1063     # Reject names that are not valid shell variable names.
   1064     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1065       as_fn_error $? "invalid feature name: $ac_useropt"
   1066     ac_useropt_orig=$ac_useropt
   1067     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1068     case $ac_user_opts in
   1069       *"
   1070 "enable_$ac_useropt"
   1071 "*) ;;
   1072       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
   1073 	 ac_unrecognized_sep=', ';;
   1074     esac
   1075     eval enable_$ac_useropt=no ;;
   1076 
   1077   -docdir | --docdir | --docdi | --doc | --do)
   1078     ac_prev=docdir ;;
   1079   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
   1080     docdir=$ac_optarg ;;
   1081 
   1082   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
   1083     ac_prev=dvidir ;;
   1084   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
   1085     dvidir=$ac_optarg ;;
   1086 
   1087   -enable-* | --enable-*)
   1088     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
   1089     # Reject names that are not valid shell variable names.
   1090     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1091       as_fn_error $? "invalid feature name: $ac_useropt"
   1092     ac_useropt_orig=$ac_useropt
   1093     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1094     case $ac_user_opts in
   1095       *"
   1096 "enable_$ac_useropt"
   1097 "*) ;;
   1098       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
   1099 	 ac_unrecognized_sep=', ';;
   1100     esac
   1101     eval enable_$ac_useropt=\$ac_optarg ;;
   1102 
   1103   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1104   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1105   | --exec | --exe | --ex)
   1106     ac_prev=exec_prefix ;;
   1107   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1108   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1109   | --exec=* | --exe=* | --ex=*)
   1110     exec_prefix=$ac_optarg ;;
   1111 
   1112   -gas | --gas | --ga | --g)
   1113     # Obsolete; use --with-gas.
   1114     with_gas=yes ;;
   1115 
   1116   -help | --help | --hel | --he | -h)
   1117     ac_init_help=long ;;
   1118   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1119     ac_init_help=recursive ;;
   1120   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1121     ac_init_help=short ;;
   1122 
   1123   -host | --host | --hos | --ho)
   1124     ac_prev=host_alias ;;
   1125   -host=* | --host=* | --hos=* | --ho=*)
   1126     host_alias=$ac_optarg ;;
   1127 
   1128   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1129     ac_prev=htmldir ;;
   1130   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1131   | --ht=*)
   1132     htmldir=$ac_optarg ;;
   1133 
   1134   -includedir | --includedir | --includedi | --included | --include \
   1135   | --includ | --inclu | --incl | --inc)
   1136     ac_prev=includedir ;;
   1137   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1138   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1139     includedir=$ac_optarg ;;
   1140 
   1141   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1142     ac_prev=infodir ;;
   1143   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1144     infodir=$ac_optarg ;;
   1145 
   1146   -libdir | --libdir | --libdi | --libd)
   1147     ac_prev=libdir ;;
   1148   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1149     libdir=$ac_optarg ;;
   1150 
   1151   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1152   | --libexe | --libex | --libe)
   1153     ac_prev=libexecdir ;;
   1154   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1155   | --libexe=* | --libex=* | --libe=*)
   1156     libexecdir=$ac_optarg ;;
   1157 
   1158   -localedir | --localedir | --localedi | --localed | --locale)
   1159     ac_prev=localedir ;;
   1160   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1161     localedir=$ac_optarg ;;
   1162 
   1163   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1164   | --localstate | --localstat | --localsta | --localst | --locals)
   1165     ac_prev=localstatedir ;;
   1166   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1167   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1168     localstatedir=$ac_optarg ;;
   1169 
   1170   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1171     ac_prev=mandir ;;
   1172   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1173     mandir=$ac_optarg ;;
   1174 
   1175   -nfp | --nfp | --nf)
   1176     # Obsolete; use --without-fp.
   1177     with_fp=no ;;
   1178 
   1179   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1180   | --no-cr | --no-c | -n)
   1181     no_create=yes ;;
   1182 
   1183   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1184   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1185     no_recursion=yes ;;
   1186 
   1187   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1188   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1189   | --oldin | --oldi | --old | --ol | --o)
   1190     ac_prev=oldincludedir ;;
   1191   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1192   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1193   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1194     oldincludedir=$ac_optarg ;;
   1195 
   1196   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1197     ac_prev=prefix ;;
   1198   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1199     prefix=$ac_optarg ;;
   1200 
   1201   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1202   | --program-pre | --program-pr | --program-p)
   1203     ac_prev=program_prefix ;;
   1204   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1205   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1206     program_prefix=$ac_optarg ;;
   1207 
   1208   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1209   | --program-suf | --program-su | --program-s)
   1210     ac_prev=program_suffix ;;
   1211   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1212   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1213     program_suffix=$ac_optarg ;;
   1214 
   1215   -program-transform-name | --program-transform-name \
   1216   | --program-transform-nam | --program-transform-na \
   1217   | --program-transform-n | --program-transform- \
   1218   | --program-transform | --program-transfor \
   1219   | --program-transfo | --program-transf \
   1220   | --program-trans | --program-tran \
   1221   | --progr-tra | --program-tr | --program-t)
   1222     ac_prev=program_transform_name ;;
   1223   -program-transform-name=* | --program-transform-name=* \
   1224   | --program-transform-nam=* | --program-transform-na=* \
   1225   | --program-transform-n=* | --program-transform-=* \
   1226   | --program-transform=* | --program-transfor=* \
   1227   | --program-transfo=* | --program-transf=* \
   1228   | --program-trans=* | --program-tran=* \
   1229   | --progr-tra=* | --program-tr=* | --program-t=*)
   1230     program_transform_name=$ac_optarg ;;
   1231 
   1232   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1233     ac_prev=pdfdir ;;
   1234   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1235     pdfdir=$ac_optarg ;;
   1236 
   1237   -psdir | --psdir | --psdi | --psd | --ps)
   1238     ac_prev=psdir ;;
   1239   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1240     psdir=$ac_optarg ;;
   1241 
   1242   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1243   | -silent | --silent | --silen | --sile | --sil)
   1244     silent=yes ;;
   1245 
   1246   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1247     ac_prev=sbindir ;;
   1248   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1249   | --sbi=* | --sb=*)
   1250     sbindir=$ac_optarg ;;
   1251 
   1252   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1253   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1254   | --sharedst | --shareds | --shared | --share | --shar \
   1255   | --sha | --sh)
   1256     ac_prev=sharedstatedir ;;
   1257   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1258   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1259   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1260   | --sha=* | --sh=*)
   1261     sharedstatedir=$ac_optarg ;;
   1262 
   1263   -site | --site | --sit)
   1264     ac_prev=site ;;
   1265   -site=* | --site=* | --sit=*)
   1266     site=$ac_optarg ;;
   1267 
   1268   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1269     ac_prev=srcdir ;;
   1270   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1271     srcdir=$ac_optarg ;;
   1272 
   1273   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1274   | --syscon | --sysco | --sysc | --sys | --sy)
   1275     ac_prev=sysconfdir ;;
   1276   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1277   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1278     sysconfdir=$ac_optarg ;;
   1279 
   1280   -target | --target | --targe | --targ | --tar | --ta | --t)
   1281     ac_prev=target_alias ;;
   1282   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1283     target_alias=$ac_optarg ;;
   1284 
   1285   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1286     verbose=yes ;;
   1287 
   1288   -version | --version | --versio | --versi | --vers | -V)
   1289     ac_init_version=: ;;
   1290 
   1291   -with-* | --with-*)
   1292     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1293     # Reject names that are not valid shell variable names.
   1294     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1295       as_fn_error $? "invalid package name: $ac_useropt"
   1296     ac_useropt_orig=$ac_useropt
   1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1298     case $ac_user_opts in
   1299       *"
   1300 "with_$ac_useropt"
   1301 "*) ;;
   1302       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1303 	 ac_unrecognized_sep=', ';;
   1304     esac
   1305     eval with_$ac_useropt=\$ac_optarg ;;
   1306 
   1307   -without-* | --without-*)
   1308     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1309     # Reject names that are not valid shell variable names.
   1310     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1311       as_fn_error $? "invalid package name: $ac_useropt"
   1312     ac_useropt_orig=$ac_useropt
   1313     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1314     case $ac_user_opts in
   1315       *"
   1316 "with_$ac_useropt"
   1317 "*) ;;
   1318       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1319 	 ac_unrecognized_sep=', ';;
   1320     esac
   1321     eval with_$ac_useropt=no ;;
   1322 
   1323   --x)
   1324     # Obsolete; use --with-x.
   1325     with_x=yes ;;
   1326 
   1327   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1328   | --x-incl | --x-inc | --x-in | --x-i)
   1329     ac_prev=x_includes ;;
   1330   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1331   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1332     x_includes=$ac_optarg ;;
   1333 
   1334   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1335   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1336     ac_prev=x_libraries ;;
   1337   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1338   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1339     x_libraries=$ac_optarg ;;
   1340 
   1341   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1342 Try \`$0 --help' for more information"
   1343     ;;
   1344 
   1345   *=*)
   1346     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1347     # Reject names that are not valid shell variable names.
   1348     case $ac_envvar in #(
   1349       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1350       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1351     esac
   1352     eval $ac_envvar=\$ac_optarg
   1353     export $ac_envvar ;;
   1354 
   1355   *)
   1356     # FIXME: should be removed in autoconf 3.0.
   1357     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1358     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1359       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1360     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1361     ;;
   1362 
   1363   esac
   1364 done
   1365 
   1366 if test -n "$ac_prev"; then
   1367   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1368   as_fn_error $? "missing argument to $ac_option"
   1369 fi
   1370 
   1371 if test -n "$ac_unrecognized_opts"; then
   1372   case $enable_option_checking in
   1373     no) ;;
   1374     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1375     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1376   esac
   1377 fi
   1378 
   1379 # Check all directory arguments for consistency.
   1380 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1381 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1382 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1383 		libdir localedir mandir
   1384 do
   1385   eval ac_val=\$$ac_var
   1386   # Remove trailing slashes.
   1387   case $ac_val in
   1388     */ )
   1389       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1390       eval $ac_var=\$ac_val;;
   1391   esac
   1392   # Be sure to have absolute directory names.
   1393   case $ac_val in
   1394     [\\/$]* | ?:[\\/]* )  continue;;
   1395     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1396   esac
   1397   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1398 done
   1399 
   1400 # There might be people who depend on the old broken behavior: `$host'
   1401 # used to hold the argument of --host etc.
   1402 # FIXME: To remove some day.
   1403 build=$build_alias
   1404 host=$host_alias
   1405 target=$target_alias
   1406 
   1407 # FIXME: To remove some day.
   1408 if test "x$host_alias" != x; then
   1409   if test "x$build_alias" = x; then
   1410     cross_compiling=maybe
   1411   elif test "x$build_alias" != "x$host_alias"; then
   1412     cross_compiling=yes
   1413   fi
   1414 fi
   1415 
   1416 ac_tool_prefix=
   1417 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1418 
   1419 test "$silent" = yes && exec 6>/dev/null
   1420 
   1421 
   1422 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1423 ac_ls_di=`ls -di .` &&
   1424 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1425   as_fn_error $? "working directory cannot be determined"
   1426 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1427   as_fn_error $? "pwd does not report name of working directory"
   1428 
   1429 
   1430 # Find the source files, if location was not specified.
   1431 if test -z "$srcdir"; then
   1432   ac_srcdir_defaulted=yes
   1433   # Try the directory containing this script, then the parent directory.
   1434   ac_confdir=`$as_dirname -- "$as_myself" ||
   1435 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1436 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1437 	 X"$as_myself" : 'X\(//\)$' \| \
   1438 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1439 $as_echo X"$as_myself" |
   1440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1441 	    s//\1/
   1442 	    q
   1443 	  }
   1444 	  /^X\(\/\/\)[^/].*/{
   1445 	    s//\1/
   1446 	    q
   1447 	  }
   1448 	  /^X\(\/\/\)$/{
   1449 	    s//\1/
   1450 	    q
   1451 	  }
   1452 	  /^X\(\/\).*/{
   1453 	    s//\1/
   1454 	    q
   1455 	  }
   1456 	  s/.*/./; q'`
   1457   srcdir=$ac_confdir
   1458   if test ! -r "$srcdir/$ac_unique_file"; then
   1459     srcdir=..
   1460   fi
   1461 else
   1462   ac_srcdir_defaulted=no
   1463 fi
   1464 if test ! -r "$srcdir/$ac_unique_file"; then
   1465   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1466   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1467 fi
   1468 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1469 ac_abs_confdir=`(
   1470 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1471 	pwd)`
   1472 # When building in place, set srcdir=.
   1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1474   srcdir=.
   1475 fi
   1476 # Remove unnecessary trailing slashes from srcdir.
   1477 # Double slashes in file names in object file debugging info
   1478 # mess up M-x gdb in Emacs.
   1479 case $srcdir in
   1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1481 esac
   1482 for ac_var in $ac_precious_vars; do
   1483   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1484   eval ac_env_${ac_var}_value=\$${ac_var}
   1485   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1486   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1487 done
   1488 
   1489 #
   1490 # Report the --help message.
   1491 #
   1492 if test "$ac_init_help" = "long"; then
   1493   # Omit some internal or obsolete options to make the list less imposing.
   1494   # This message is too long to be a string in the A/UX 3.1 sh.
   1495   cat <<_ACEOF
   1496 \`configure' configures this package to adapt to many kinds of systems.
   1497 
   1498 Usage: $0 [OPTION]... [VAR=VALUE]...
   1499 
   1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1501 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1502 
   1503 Defaults for the options are specified in brackets.
   1504 
   1505 Configuration:
   1506   -h, --help              display this help and exit
   1507       --help=short        display options specific to this package
   1508       --help=recursive    display the short help of all the included packages
   1509   -V, --version           display version information and exit
   1510   -q, --quiet, --silent   do not print \`checking ...' messages
   1511       --cache-file=FILE   cache test results in FILE [disabled]
   1512   -C, --config-cache      alias for \`--cache-file=config.cache'
   1513   -n, --no-create         do not create output files
   1514       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1515 
   1516 Installation directories:
   1517   --prefix=PREFIX         install architecture-independent files in PREFIX
   1518                           [$ac_default_prefix]
   1519   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1520                           [PREFIX]
   1521 
   1522 By default, \`make install' will install all the files in
   1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1525 for instance \`--prefix=\$HOME'.
   1526 
   1527 For better control, use the options below.
   1528 
   1529 Fine tuning of the installation directories:
   1530   --bindir=DIR            user executables [EPREFIX/bin]
   1531   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1532   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1533   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1534   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1535   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1536   --libdir=DIR            object code libraries [EPREFIX/lib]
   1537   --includedir=DIR        C header files [PREFIX/include]
   1538   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1539   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1540   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1541   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1542   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1543   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1544   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1545   --htmldir=DIR           html documentation [DOCDIR]
   1546   --dvidir=DIR            dvi documentation [DOCDIR]
   1547   --pdfdir=DIR            pdf documentation [DOCDIR]
   1548   --psdir=DIR             ps documentation [DOCDIR]
   1549 _ACEOF
   1550 
   1551   cat <<\_ACEOF
   1552 
   1553 Program names:
   1554   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1555   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1556   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1557 
   1558 X features:
   1559   --x-includes=DIR    X include files are in DIR
   1560   --x-libraries=DIR   X library files are in DIR
   1561 
   1562 System types:
   1563   --build=BUILD     configure for building on BUILD [guessed]
   1564   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1565   --target=TARGET   configure for building compilers for TARGET [HOST]
   1566 _ACEOF
   1567 fi
   1568 
   1569 if test -n "$ac_init_help"; then
   1570 
   1571   cat <<\_ACEOF
   1572 
   1573 Optional Features:
   1574   --disable-option-checking  ignore unrecognized --enable/--with options
   1575   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1576   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1577   --enable-maintainer-mode
   1578                           enable make rules and dependencies not useful (and
   1579                           sometimes confusing) to the casual installer
   1580   --enable-plugins        Enable support for plugins
   1581   --disable-largefile     omit support for large files
   1582   --enable-targets=TARGETS
   1583                           alternative target configurations
   1584   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
   1585   --disable-gdbmi         disable machine-interface (MI)
   1586   --enable-tui            enable full-screen terminal user interface (TUI)
   1587   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
   1588   --enable-profiling      enable profiling of GDB
   1589   --enable-codesign=CERT  sign gdb with 'codesign -s CERT'
   1590   --disable-rpath         do not hardcode runtime library paths
   1591   --enable-source-highlight
   1592                           enable source-highlight for source listings
   1593   --enable-werror         treat compile warnings as errors
   1594   --enable-build-warnings enable build-time compiler warnings if gcc is used
   1595   --enable-gdb-build-warnings
   1596                           enable GDB specific build-time compiler warnings if
   1597                           gcc is used
   1598   --enable-ubsan          enable undefined behavior sanitizer (auto/yes/no)
   1599   --enable-sim            link gdb with simulator
   1600   --enable-libctf         Handle .ctf type-info sections [default=yes]
   1601   --enable-unit-tests     Enable the inclusion of unit tests when compiling
   1602                           GDB
   1603 
   1604 Optional Packages:
   1605   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1606   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1607   --with-separate-debug-dir=PATH
   1608                           look for global separate debug info in this path
   1609                           [LIBDIR/debug]
   1610   --with-gdb-datadir=PATH look for global separate data files in this path
   1611                           [DATADIR/gdb]
   1612   --with-relocated-sources=PATH
   1613                           automatically relocate this path for source files
   1614   --with-auto-load-dir=PATH
   1615                           directories from which to load auto-loaded scripts
   1616                           [$debugdir:$datadir/auto-load]
   1617   --with-auto-load-safe-path=PATH
   1618                           directories safe to hold auto-loaded files
   1619                           [--with-auto-load-dir]
   1620   --without-auto-load-safe-path
   1621                           do not restrict auto-loaded files locations
   1622   --with-debuginfod       Enable debuginfo lookups with debuginfod
   1623                           (auto/yes/no)
   1624   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
   1625   --with-curses           use the curses library instead of the termcap
   1626                           library
   1627   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
   1628   --with-bugurl=URL       Direct users to URL to report a bug
   1629   --with-system-zlib      use installed libz
   1630   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   1631   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
   1632   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
   1633   --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
   1634   --with-iconv-bin=PATH   specify where to find the iconv program
   1635   --with-system-readline  use installed readline library
   1636   --with-jit-reader-dir=PATH
   1637                           directory to load the JIT readers from
   1638   --with-expat            include expat support (auto/yes/no)
   1639   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
   1640   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
   1641   --with-libexpat-type=TYPE     type of library to search for (auto/static/shared)
   1642   --with-mpfr             include MPFR support (auto/yes/no)
   1643   --with-libmpfr-prefix[=DIR]  search for libmpfr in DIR/include and DIR/lib
   1644   --without-libmpfr-prefix     don't search for libmpfr in includedir and libdir
   1645   --with-libmpfr-type=TYPE     type of library to search for (auto/static/shared)
   1646   --with-python[=PYTHON]  include python support
   1647                           (auto/yes/no/<python-program>)
   1648   --with-python-libdir[=DIR]
   1649                           search for python's libraries in DIR
   1650   --with-guile[=GUILE]    include guile support
   1651                           (auto/yes/no/<guile-version>/<pkg-config-program>)
   1652   --with-intel-pt         include Intel Processor Trace support (auto/yes/no)
   1653   --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
   1654   --without-libipt-prefix     don't search for libipt in includedir and libdir
   1655   --with-libipt-type=TYPE     type of library to search for (auto/static/shared)
   1656   --without-included-regex
   1657                           don't use included regex; this is the default on
   1658                           systems with version 2 of the GNU C library (use
   1659                           with caution on other system)
   1660   --with-sysroot[=DIR]    search for usr/lib et al within DIR
   1661   --with-system-gdbinit=PATH
   1662                           automatically load a system-wide gdbinit file
   1663   --with-system-gdbinit-dir=PATH
   1664                           automatically load system-wide gdbinit files from
   1665                           this directory
   1666   --with-lzma             support lzma compression (auto/yes/no)
   1667   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
   1668   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
   1669   --with-liblzma-type=TYPE     type of library to search for (auto/static/shared)
   1670   --with-tcl              directory containing tcl configuration (tclConfig.sh)
   1671   --with-tk               directory containing tk configuration (tkConfig.sh)
   1672   --with-x                use the X Window System
   1673   --with-babeltrace       include babeltrace support (auto/yes/no)
   1674   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
   1675   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
   1676   --with-libbabeltrace-type=TYPE     type of library to search for (auto/static/shared)
   1677   --with-xxhash           use libxxhash for hashing (faster) (auto/yes/no)
   1678   --with-libxxhash-prefix[=DIR]  search for libxxhash in DIR/include and DIR/lib
   1679   --without-libxxhash-prefix     don't search for libxxhash in includedir and libdir
   1680   --with-libxxhash-type=TYPE     type of library to search for (auto/static/shared)
   1681 
   1682 Some influential environment variables:
   1683   CC          C compiler command
   1684   CFLAGS      C compiler flags
   1685   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1686               nonstandard directory <lib dir>
   1687   LIBS        libraries to pass to the linker, e.g. -l<library>
   1688   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1689               you have headers in a nonstandard directory <include dir>
   1690   CXX         C++ compiler command
   1691   CXXFLAGS    C++ compiler flags
   1692   CPP         C preprocessor
   1693   MAKEINFO    Parent configure detects if it is of sufficient version.
   1694   MAKEINFOFLAGS
   1695               Parameters for MAKEINFO.
   1696   PKG_CONFIG  path to pkg-config utility
   1697   PKG_CONFIG_PATH
   1698               directories to add to pkg-config's search path
   1699   PKG_CONFIG_LIBDIR
   1700               path overriding pkg-config's built-in search path
   1701   DEBUGINFOD_CFLAGS
   1702               C compiler flags for DEBUGINFOD, overriding pkg-config
   1703   DEBUGINFOD_LIBS
   1704               linker flags for DEBUGINFOD, overriding pkg-config
   1705   YACC        The `Yet Another Compiler Compiler' implementation to use.
   1706               Defaults to the first program found out of: `bison -y', `byacc',
   1707               `yacc'.
   1708   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1709               This script will default YFLAGS to the empty string to avoid a
   1710               default value of `-d' given by some make applications.
   1711   XMKMF       Path to xmkmf, Makefile generator for X Window System
   1712 
   1713 Use these variables to override the choices made by `configure' or to help
   1714 it to find libraries and programs with nonstandard names/locations.
   1715 
   1716 Report bugs to the package provider.
   1717 _ACEOF
   1718 ac_status=$?
   1719 fi
   1720 
   1721 if test "$ac_init_help" = "recursive"; then
   1722   # If there are subdirs, report their specific --help.
   1723   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1724     test -d "$ac_dir" ||
   1725       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1726       continue
   1727     ac_builddir=.
   1728 
   1729 case "$ac_dir" in
   1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1731 *)
   1732   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1733   # A ".." for each directory in $ac_dir_suffix.
   1734   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1735   case $ac_top_builddir_sub in
   1736   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1737   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1738   esac ;;
   1739 esac
   1740 ac_abs_top_builddir=$ac_pwd
   1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1742 # for backward compatibility:
   1743 ac_top_builddir=$ac_top_build_prefix
   1744 
   1745 case $srcdir in
   1746   .)  # We are building in place.
   1747     ac_srcdir=.
   1748     ac_top_srcdir=$ac_top_builddir_sub
   1749     ac_abs_top_srcdir=$ac_pwd ;;
   1750   [\\/]* | ?:[\\/]* )  # Absolute name.
   1751     ac_srcdir=$srcdir$ac_dir_suffix;
   1752     ac_top_srcdir=$srcdir
   1753     ac_abs_top_srcdir=$srcdir ;;
   1754   *) # Relative name.
   1755     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1756     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1757     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1758 esac
   1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1760 
   1761     cd "$ac_dir" || { ac_status=$?; continue; }
   1762     # Check for guested configure.
   1763     if test -f "$ac_srcdir/configure.gnu"; then
   1764       echo &&
   1765       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1766     elif test -f "$ac_srcdir/configure"; then
   1767       echo &&
   1768       $SHELL "$ac_srcdir/configure" --help=recursive
   1769     else
   1770       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1771     fi || ac_status=$?
   1772     cd "$ac_pwd" || { ac_status=$?; break; }
   1773   done
   1774 fi
   1775 
   1776 test -n "$ac_init_help" && exit $ac_status
   1777 if $ac_init_version; then
   1778   cat <<\_ACEOF
   1779 configure
   1780 generated by GNU Autoconf 2.69
   1781 
   1782 Copyright (C) 2012 Free Software Foundation, Inc.
   1783 This configure script is free software; the Free Software Foundation
   1784 gives unlimited permission to copy, distribute and modify it.
   1785 _ACEOF
   1786   exit
   1787 fi
   1788 
   1789 ## ------------------------ ##
   1790 ## Autoconf initialization. ##
   1791 ## ------------------------ ##
   1792 
   1793 # ac_fn_c_try_compile LINENO
   1794 # --------------------------
   1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1796 ac_fn_c_try_compile ()
   1797 {
   1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1799   rm -f conftest.$ac_objext
   1800   if { { ac_try="$ac_compile"
   1801 case "(($ac_try" in
   1802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1803   *) ac_try_echo=$ac_try;;
   1804 esac
   1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1806 $as_echo "$ac_try_echo"; } >&5
   1807   (eval "$ac_compile") 2>conftest.err
   1808   ac_status=$?
   1809   if test -s conftest.err; then
   1810     grep -v '^ *+' conftest.err >conftest.er1
   1811     cat conftest.er1 >&5
   1812     mv -f conftest.er1 conftest.err
   1813   fi
   1814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1815   test $ac_status = 0; } && {
   1816 	 test -z "$ac_c_werror_flag" ||
   1817 	 test ! -s conftest.err
   1818        } && test -s conftest.$ac_objext; then :
   1819   ac_retval=0
   1820 else
   1821   $as_echo "$as_me: failed program was:" >&5
   1822 sed 's/^/| /' conftest.$ac_ext >&5
   1823 
   1824 	ac_retval=1
   1825 fi
   1826   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1827   as_fn_set_status $ac_retval
   1828 
   1829 } # ac_fn_c_try_compile
   1830 
   1831 # ac_fn_cxx_try_compile LINENO
   1832 # ----------------------------
   1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1834 ac_fn_cxx_try_compile ()
   1835 {
   1836   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1837   rm -f conftest.$ac_objext
   1838   if { { ac_try="$ac_compile"
   1839 case "(($ac_try" in
   1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1841   *) ac_try_echo=$ac_try;;
   1842 esac
   1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1844 $as_echo "$ac_try_echo"; } >&5
   1845   (eval "$ac_compile") 2>conftest.err
   1846   ac_status=$?
   1847   if test -s conftest.err; then
   1848     grep -v '^ *+' conftest.err >conftest.er1
   1849     cat conftest.er1 >&5
   1850     mv -f conftest.er1 conftest.err
   1851   fi
   1852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1853   test $ac_status = 0; } && {
   1854 	 test -z "$ac_cxx_werror_flag" ||
   1855 	 test ! -s conftest.err
   1856        } && test -s conftest.$ac_objext; then :
   1857   ac_retval=0
   1858 else
   1859   $as_echo "$as_me: failed program was:" >&5
   1860 sed 's/^/| /' conftest.$ac_ext >&5
   1861 
   1862 	ac_retval=1
   1863 fi
   1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1865   as_fn_set_status $ac_retval
   1866 
   1867 } # ac_fn_cxx_try_compile
   1868 
   1869 # ac_fn_c_try_cpp LINENO
   1870 # ----------------------
   1871 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1872 ac_fn_c_try_cpp ()
   1873 {
   1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1875   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1876 case "(($ac_try" in
   1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1878   *) ac_try_echo=$ac_try;;
   1879 esac
   1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1881 $as_echo "$ac_try_echo"; } >&5
   1882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1883   ac_status=$?
   1884   if test -s conftest.err; then
   1885     grep -v '^ *+' conftest.err >conftest.er1
   1886     cat conftest.er1 >&5
   1887     mv -f conftest.er1 conftest.err
   1888   fi
   1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1890   test $ac_status = 0; } > conftest.i && {
   1891 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1892 	 test ! -s conftest.err
   1893        }; then :
   1894   ac_retval=0
   1895 else
   1896   $as_echo "$as_me: failed program was:" >&5
   1897 sed 's/^/| /' conftest.$ac_ext >&5
   1898 
   1899     ac_retval=1
   1900 fi
   1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1902   as_fn_set_status $ac_retval
   1903 
   1904 } # ac_fn_c_try_cpp
   1905 
   1906 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1907 # -------------------------------------------------------
   1908 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1909 # the include files in INCLUDES and setting the cache variable VAR
   1910 # accordingly.
   1911 ac_fn_c_check_header_mongrel ()
   1912 {
   1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1914   if eval \${$3+:} false; then :
   1915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1916 $as_echo_n "checking for $2... " >&6; }
   1917 if eval \${$3+:} false; then :
   1918   $as_echo_n "(cached) " >&6
   1919 fi
   1920 eval ac_res=\$$3
   1921 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1922 $as_echo "$ac_res" >&6; }
   1923 else
   1924   # Is the header compilable?
   1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1926 $as_echo_n "checking $2 usability... " >&6; }
   1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1928 /* end confdefs.h.  */
   1929 $4
   1930 #include <$2>
   1931 _ACEOF
   1932 if ac_fn_c_try_compile "$LINENO"; then :
   1933   ac_header_compiler=yes
   1934 else
   1935   ac_header_compiler=no
   1936 fi
   1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1939 $as_echo "$ac_header_compiler" >&6; }
   1940 
   1941 # Is the header present?
   1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1943 $as_echo_n "checking $2 presence... " >&6; }
   1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1945 /* end confdefs.h.  */
   1946 #include <$2>
   1947 _ACEOF
   1948 if ac_fn_c_try_cpp "$LINENO"; then :
   1949   ac_header_preproc=yes
   1950 else
   1951   ac_header_preproc=no
   1952 fi
   1953 rm -f conftest.err conftest.i conftest.$ac_ext
   1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1955 $as_echo "$ac_header_preproc" >&6; }
   1956 
   1957 # So?  What about this header?
   1958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1959   yes:no: )
   1960     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1961 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1962     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1964     ;;
   1965   no:yes:* )
   1966     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1967 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1968     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1969 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1970     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1971 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1972     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1973 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1975 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1976     ;;
   1977 esac
   1978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1979 $as_echo_n "checking for $2... " >&6; }
   1980 if eval \${$3+:} false; then :
   1981   $as_echo_n "(cached) " >&6
   1982 else
   1983   eval "$3=\$ac_header_compiler"
   1984 fi
   1985 eval ac_res=\$$3
   1986 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1987 $as_echo "$ac_res" >&6; }
   1988 fi
   1989   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1990 
   1991 } # ac_fn_c_check_header_mongrel
   1992 
   1993 # ac_fn_c_try_run LINENO
   1994 # ----------------------
   1995 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1996 # that executables *can* be run.
   1997 ac_fn_c_try_run ()
   1998 {
   1999   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2000   if { { ac_try="$ac_link"
   2001 case "(($ac_try" in
   2002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2003   *) ac_try_echo=$ac_try;;
   2004 esac
   2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2006 $as_echo "$ac_try_echo"; } >&5
   2007   (eval "$ac_link") 2>&5
   2008   ac_status=$?
   2009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2010   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   2011   { { case "(($ac_try" in
   2012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2013   *) ac_try_echo=$ac_try;;
   2014 esac
   2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2016 $as_echo "$ac_try_echo"; } >&5
   2017   (eval "$ac_try") 2>&5
   2018   ac_status=$?
   2019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2020   test $ac_status = 0; }; }; then :
   2021   ac_retval=0
   2022 else
   2023   $as_echo "$as_me: program exited with status $ac_status" >&5
   2024        $as_echo "$as_me: failed program was:" >&5
   2025 sed 's/^/| /' conftest.$ac_ext >&5
   2026 
   2027        ac_retval=$ac_status
   2028 fi
   2029   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2030   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2031   as_fn_set_status $ac_retval
   2032 
   2033 } # ac_fn_c_try_run
   2034 
   2035 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   2036 # -------------------------------------------------------
   2037 # Tests whether HEADER exists and can be compiled using the include files in
   2038 # INCLUDES, setting the cache variable VAR accordingly.
   2039 ac_fn_c_check_header_compile ()
   2040 {
   2041   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2043 $as_echo_n "checking for $2... " >&6; }
   2044 if eval \${$3+:} false; then :
   2045   $as_echo_n "(cached) " >&6
   2046 else
   2047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2048 /* end confdefs.h.  */
   2049 $4
   2050 #include <$2>
   2051 _ACEOF
   2052 if ac_fn_c_try_compile "$LINENO"; then :
   2053   eval "$3=yes"
   2054 else
   2055   eval "$3=no"
   2056 fi
   2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2058 fi
   2059 eval ac_res=\$$3
   2060 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2061 $as_echo "$ac_res" >&6; }
   2062   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2063 
   2064 } # ac_fn_c_check_header_compile
   2065 
   2066 # ac_fn_c_try_link LINENO
   2067 # -----------------------
   2068 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2069 ac_fn_c_try_link ()
   2070 {
   2071   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2072   rm -f conftest.$ac_objext conftest$ac_exeext
   2073   if { { ac_try="$ac_link"
   2074 case "(($ac_try" in
   2075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2076   *) ac_try_echo=$ac_try;;
   2077 esac
   2078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2079 $as_echo "$ac_try_echo"; } >&5
   2080   (eval "$ac_link") 2>conftest.err
   2081   ac_status=$?
   2082   if test -s conftest.err; then
   2083     grep -v '^ *+' conftest.err >conftest.er1
   2084     cat conftest.er1 >&5
   2085     mv -f conftest.er1 conftest.err
   2086   fi
   2087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2088   test $ac_status = 0; } && {
   2089 	 test -z "$ac_c_werror_flag" ||
   2090 	 test ! -s conftest.err
   2091        } && test -s conftest$ac_exeext && {
   2092 	 test "$cross_compiling" = yes ||
   2093 	 test -x conftest$ac_exeext
   2094        }; then :
   2095   ac_retval=0
   2096 else
   2097   $as_echo "$as_me: failed program was:" >&5
   2098 sed 's/^/| /' conftest.$ac_ext >&5
   2099 
   2100 	ac_retval=1
   2101 fi
   2102   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2103   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2104   # interfere with the next link command; also delete a directory that is
   2105   # left behind by Apple's compiler.  We do this before executing the actions.
   2106   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2107   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2108   as_fn_set_status $ac_retval
   2109 
   2110 } # ac_fn_c_try_link
   2111 
   2112 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   2113 # --------------------------------------------
   2114 # Tries to find the compile-time value of EXPR in a program that includes
   2115 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   2116 # computed
   2117 ac_fn_c_compute_int ()
   2118 {
   2119   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2120   if test "$cross_compiling" = yes; then
   2121     # Depending upon the size, compute the lo and hi bounds.
   2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2123 /* end confdefs.h.  */
   2124 $4
   2125 int
   2126 main ()
   2127 {
   2128 static int test_array [1 - 2 * !(($2) >= 0)];
   2129 test_array [0] = 0;
   2130 return test_array [0];
   2131 
   2132   ;
   2133   return 0;
   2134 }
   2135 _ACEOF
   2136 if ac_fn_c_try_compile "$LINENO"; then :
   2137   ac_lo=0 ac_mid=0
   2138   while :; do
   2139     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2140 /* end confdefs.h.  */
   2141 $4
   2142 int
   2143 main ()
   2144 {
   2145 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2146 test_array [0] = 0;
   2147 return test_array [0];
   2148 
   2149   ;
   2150   return 0;
   2151 }
   2152 _ACEOF
   2153 if ac_fn_c_try_compile "$LINENO"; then :
   2154   ac_hi=$ac_mid; break
   2155 else
   2156   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   2157 			if test $ac_lo -le $ac_mid; then
   2158 			  ac_lo= ac_hi=
   2159 			  break
   2160 			fi
   2161 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   2162 fi
   2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2164   done
   2165 else
   2166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2167 /* end confdefs.h.  */
   2168 $4
   2169 int
   2170 main ()
   2171 {
   2172 static int test_array [1 - 2 * !(($2) < 0)];
   2173 test_array [0] = 0;
   2174 return test_array [0];
   2175 
   2176   ;
   2177   return 0;
   2178 }
   2179 _ACEOF
   2180 if ac_fn_c_try_compile "$LINENO"; then :
   2181   ac_hi=-1 ac_mid=-1
   2182   while :; do
   2183     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2184 /* end confdefs.h.  */
   2185 $4
   2186 int
   2187 main ()
   2188 {
   2189 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2190 test_array [0] = 0;
   2191 return test_array [0];
   2192 
   2193   ;
   2194   return 0;
   2195 }
   2196 _ACEOF
   2197 if ac_fn_c_try_compile "$LINENO"; then :
   2198   ac_lo=$ac_mid; break
   2199 else
   2200   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2201 			if test $ac_mid -le $ac_hi; then
   2202 			  ac_lo= ac_hi=
   2203 			  break
   2204 			fi
   2205 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2206 fi
   2207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2208   done
   2209 else
   2210   ac_lo= ac_hi=
   2211 fi
   2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2213 fi
   2214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2215 # Binary search between lo and hi bounds.
   2216 while test "x$ac_lo" != "x$ac_hi"; do
   2217   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2219 /* end confdefs.h.  */
   2220 $4
   2221 int
   2222 main ()
   2223 {
   2224 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2225 test_array [0] = 0;
   2226 return test_array [0];
   2227 
   2228   ;
   2229   return 0;
   2230 }
   2231 _ACEOF
   2232 if ac_fn_c_try_compile "$LINENO"; then :
   2233   ac_hi=$ac_mid
   2234 else
   2235   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2236 fi
   2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2238 done
   2239 case $ac_lo in #((
   2240 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2241 '') ac_retval=1 ;;
   2242 esac
   2243   else
   2244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2245 /* end confdefs.h.  */
   2246 $4
   2247 static long int longval () { return $2; }
   2248 static unsigned long int ulongval () { return $2; }
   2249 #include <stdio.h>
   2250 #include <stdlib.h>
   2251 int
   2252 main ()
   2253 {
   2254 
   2255   FILE *f = fopen ("conftest.val", "w");
   2256   if (! f)
   2257     return 1;
   2258   if (($2) < 0)
   2259     {
   2260       long int i = longval ();
   2261       if (i != ($2))
   2262 	return 1;
   2263       fprintf (f, "%ld", i);
   2264     }
   2265   else
   2266     {
   2267       unsigned long int i = ulongval ();
   2268       if (i != ($2))
   2269 	return 1;
   2270       fprintf (f, "%lu", i);
   2271     }
   2272   /* Do not output a trailing newline, as this causes \r\n confusion
   2273      on some platforms.  */
   2274   return ferror (f) || fclose (f) != 0;
   2275 
   2276   ;
   2277   return 0;
   2278 }
   2279 _ACEOF
   2280 if ac_fn_c_try_run "$LINENO"; then :
   2281   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2282 else
   2283   ac_retval=1
   2284 fi
   2285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2286   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2287 rm -f conftest.val
   2288 
   2289   fi
   2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2291   as_fn_set_status $ac_retval
   2292 
   2293 } # ac_fn_c_compute_int
   2294 
   2295 # ac_fn_c_check_func LINENO FUNC VAR
   2296 # ----------------------------------
   2297 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2298 ac_fn_c_check_func ()
   2299 {
   2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2302 $as_echo_n "checking for $2... " >&6; }
   2303 if eval \${$3+:} false; then :
   2304   $as_echo_n "(cached) " >&6
   2305 else
   2306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2307 /* end confdefs.h.  */
   2308 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2310 #define $2 innocuous_$2
   2311 
   2312 /* System header to define __stub macros and hopefully few prototypes,
   2313     which can conflict with char $2 (); below.
   2314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2315     <limits.h> exists even on freestanding compilers.  */
   2316 
   2317 #ifdef __STDC__
   2318 # include <limits.h>
   2319 #else
   2320 # include <assert.h>
   2321 #endif
   2322 
   2323 #undef $2
   2324 
   2325 /* Override any GCC internal prototype to avoid an error.
   2326    Use char because int might match the return type of a GCC
   2327    builtin and then its argument prototype would still apply.  */
   2328 #ifdef __cplusplus
   2329 extern "C"
   2330 #endif
   2331 char $2 ();
   2332 /* The GNU C library defines this for functions which it implements
   2333     to always fail with ENOSYS.  Some functions are actually named
   2334     something starting with __ and the normal name is an alias.  */
   2335 #if defined __stub_$2 || defined __stub___$2
   2336 choke me
   2337 #endif
   2338 
   2339 int
   2340 main ()
   2341 {
   2342 return $2 ();
   2343   ;
   2344   return 0;
   2345 }
   2346 _ACEOF
   2347 if ac_fn_c_try_link "$LINENO"; then :
   2348   eval "$3=yes"
   2349 else
   2350   eval "$3=no"
   2351 fi
   2352 rm -f core conftest.err conftest.$ac_objext \
   2353     conftest$ac_exeext conftest.$ac_ext
   2354 fi
   2355 eval ac_res=\$$3
   2356 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2357 $as_echo "$ac_res" >&6; }
   2358   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2359 
   2360 } # ac_fn_c_check_func
   2361 
   2362 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2363 # -------------------------------------------
   2364 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2365 # variable VAR accordingly.
   2366 ac_fn_c_check_type ()
   2367 {
   2368   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2370 $as_echo_n "checking for $2... " >&6; }
   2371 if eval \${$3+:} false; then :
   2372   $as_echo_n "(cached) " >&6
   2373 else
   2374   eval "$3=no"
   2375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2376 /* end confdefs.h.  */
   2377 $4
   2378 int
   2379 main ()
   2380 {
   2381 if (sizeof ($2))
   2382 	 return 0;
   2383   ;
   2384   return 0;
   2385 }
   2386 _ACEOF
   2387 if ac_fn_c_try_compile "$LINENO"; then :
   2388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2389 /* end confdefs.h.  */
   2390 $4
   2391 int
   2392 main ()
   2393 {
   2394 if (sizeof (($2)))
   2395 	    return 0;
   2396   ;
   2397   return 0;
   2398 }
   2399 _ACEOF
   2400 if ac_fn_c_try_compile "$LINENO"; then :
   2401 
   2402 else
   2403   eval "$3=yes"
   2404 fi
   2405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2406 fi
   2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2408 fi
   2409 eval ac_res=\$$3
   2410 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2411 $as_echo "$ac_res" >&6; }
   2412   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2413 
   2414 } # ac_fn_c_check_type
   2415 
   2416 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   2417 # ---------------------------------------------
   2418 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2419 # accordingly.
   2420 ac_fn_c_check_decl ()
   2421 {
   2422   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2423   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2424   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2426 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2427 if eval \${$3+:} false; then :
   2428   $as_echo_n "(cached) " >&6
   2429 else
   2430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2431 /* end confdefs.h.  */
   2432 $4
   2433 int
   2434 main ()
   2435 {
   2436 #ifndef $as_decl_name
   2437 #ifdef __cplusplus
   2438   (void) $as_decl_use;
   2439 #else
   2440   (void) $as_decl_name;
   2441 #endif
   2442 #endif
   2443 
   2444   ;
   2445   return 0;
   2446 }
   2447 _ACEOF
   2448 if ac_fn_c_try_compile "$LINENO"; then :
   2449   eval "$3=yes"
   2450 else
   2451   eval "$3=no"
   2452 fi
   2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2454 fi
   2455 eval ac_res=\$$3
   2456 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2457 $as_echo "$ac_res" >&6; }
   2458   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2459 
   2460 } # ac_fn_c_check_decl
   2461 
   2462 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2463 # ----------------------------------------------------
   2464 # Tries to find if the field MEMBER exists in type AGGR, after including
   2465 # INCLUDES, setting cache variable VAR accordingly.
   2466 ac_fn_c_check_member ()
   2467 {
   2468   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2470 $as_echo_n "checking for $2.$3... " >&6; }
   2471 if eval \${$4+:} false; then :
   2472   $as_echo_n "(cached) " >&6
   2473 else
   2474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2475 /* end confdefs.h.  */
   2476 $5
   2477 int
   2478 main ()
   2479 {
   2480 static $2 ac_aggr;
   2481 if (ac_aggr.$3)
   2482 return 0;
   2483   ;
   2484   return 0;
   2485 }
   2486 _ACEOF
   2487 if ac_fn_c_try_compile "$LINENO"; then :
   2488   eval "$4=yes"
   2489 else
   2490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2491 /* end confdefs.h.  */
   2492 $5
   2493 int
   2494 main ()
   2495 {
   2496 static $2 ac_aggr;
   2497 if (sizeof ac_aggr.$3)
   2498 return 0;
   2499   ;
   2500   return 0;
   2501 }
   2502 _ACEOF
   2503 if ac_fn_c_try_compile "$LINENO"; then :
   2504   eval "$4=yes"
   2505 else
   2506   eval "$4=no"
   2507 fi
   2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2509 fi
   2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2511 fi
   2512 eval ac_res=\$$4
   2513 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2514 $as_echo "$ac_res" >&6; }
   2515   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2516 
   2517 } # ac_fn_c_check_member
   2518 
   2519 # ac_fn_cxx_try_link LINENO
   2520 # -------------------------
   2521 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2522 ac_fn_cxx_try_link ()
   2523 {
   2524   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2525   rm -f conftest.$ac_objext conftest$ac_exeext
   2526   if { { ac_try="$ac_link"
   2527 case "(($ac_try" in
   2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2529   *) ac_try_echo=$ac_try;;
   2530 esac
   2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2532 $as_echo "$ac_try_echo"; } >&5
   2533   (eval "$ac_link") 2>conftest.err
   2534   ac_status=$?
   2535   if test -s conftest.err; then
   2536     grep -v '^ *+' conftest.err >conftest.er1
   2537     cat conftest.er1 >&5
   2538     mv -f conftest.er1 conftest.err
   2539   fi
   2540   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2541   test $ac_status = 0; } && {
   2542 	 test -z "$ac_cxx_werror_flag" ||
   2543 	 test ! -s conftest.err
   2544        } && test -s conftest$ac_exeext && {
   2545 	 test "$cross_compiling" = yes ||
   2546 	 test -x conftest$ac_exeext
   2547        }; then :
   2548   ac_retval=0
   2549 else
   2550   $as_echo "$as_me: failed program was:" >&5
   2551 sed 's/^/| /' conftest.$ac_ext >&5
   2552 
   2553 	ac_retval=1
   2554 fi
   2555   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2556   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2557   # interfere with the next link command; also delete a directory that is
   2558   # left behind by Apple's compiler.  We do this before executing the actions.
   2559   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2560   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2561   as_fn_set_status $ac_retval
   2562 
   2563 } # ac_fn_cxx_try_link
   2564 
   2565 # ac_fn_cxx_check_func LINENO FUNC VAR
   2566 # ------------------------------------
   2567 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2568 ac_fn_cxx_check_func ()
   2569 {
   2570   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2572 $as_echo_n "checking for $2... " >&6; }
   2573 if eval \${$3+:} false; then :
   2574   $as_echo_n "(cached) " >&6
   2575 else
   2576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2577 /* end confdefs.h.  */
   2578 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2580 #define $2 innocuous_$2
   2581 
   2582 /* System header to define __stub macros and hopefully few prototypes,
   2583     which can conflict with char $2 (); below.
   2584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2585     <limits.h> exists even on freestanding compilers.  */
   2586 
   2587 #ifdef __STDC__
   2588 # include <limits.h>
   2589 #else
   2590 # include <assert.h>
   2591 #endif
   2592 
   2593 #undef $2
   2594 
   2595 /* Override any GCC internal prototype to avoid an error.
   2596    Use char because int might match the return type of a GCC
   2597    builtin and then its argument prototype would still apply.  */
   2598 #ifdef __cplusplus
   2599 extern "C"
   2600 #endif
   2601 char $2 ();
   2602 /* The GNU C library defines this for functions which it implements
   2603     to always fail with ENOSYS.  Some functions are actually named
   2604     something starting with __ and the normal name is an alias.  */
   2605 #if defined __stub_$2 || defined __stub___$2
   2606 choke me
   2607 #endif
   2608 
   2609 int
   2610 main ()
   2611 {
   2612 return $2 ();
   2613   ;
   2614   return 0;
   2615 }
   2616 _ACEOF
   2617 if ac_fn_cxx_try_link "$LINENO"; then :
   2618   eval "$3=yes"
   2619 else
   2620   eval "$3=no"
   2621 fi
   2622 rm -f core conftest.err conftest.$ac_objext \
   2623     conftest$ac_exeext conftest.$ac_ext
   2624 fi
   2625 eval ac_res=\$$3
   2626 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2627 $as_echo "$ac_res" >&6; }
   2628   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2629 
   2630 } # ac_fn_cxx_check_func
   2631 cat >config.log <<_ACEOF
   2632 This file contains any messages produced by compilers while
   2633 running configure, to aid debugging if configure makes a mistake.
   2634 
   2635 It was created by $as_me, which was
   2636 generated by GNU Autoconf 2.69.  Invocation command line was
   2637 
   2638   $ $0 $@
   2639 
   2640 _ACEOF
   2641 exec 5>>config.log
   2642 {
   2643 cat <<_ASUNAME
   2644 ## --------- ##
   2645 ## Platform. ##
   2646 ## --------- ##
   2647 
   2648 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2649 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2650 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2651 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2652 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2653 
   2654 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2655 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2656 
   2657 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2658 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2659 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2660 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2661 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2662 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2663 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2664 
   2665 _ASUNAME
   2666 
   2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2668 for as_dir in $PATH
   2669 do
   2670   IFS=$as_save_IFS
   2671   test -z "$as_dir" && as_dir=.
   2672     $as_echo "PATH: $as_dir"
   2673   done
   2674 IFS=$as_save_IFS
   2675 
   2676 } >&5
   2677 
   2678 cat >&5 <<_ACEOF
   2679 
   2680 
   2681 ## ----------- ##
   2682 ## Core tests. ##
   2683 ## ----------- ##
   2684 
   2685 _ACEOF
   2686 
   2687 
   2688 # Keep a trace of the command line.
   2689 # Strip out --no-create and --no-recursion so they do not pile up.
   2690 # Strip out --silent because we don't want to record it for future runs.
   2691 # Also quote any args containing shell meta-characters.
   2692 # Make two passes to allow for proper duplicate-argument suppression.
   2693 ac_configure_args=
   2694 ac_configure_args0=
   2695 ac_configure_args1=
   2696 ac_must_keep_next=false
   2697 for ac_pass in 1 2
   2698 do
   2699   for ac_arg
   2700   do
   2701     case $ac_arg in
   2702     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2703     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2704     | -silent | --silent | --silen | --sile | --sil)
   2705       continue ;;
   2706     *\'*)
   2707       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2708     esac
   2709     case $ac_pass in
   2710     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2711     2)
   2712       as_fn_append ac_configure_args1 " '$ac_arg'"
   2713       if test $ac_must_keep_next = true; then
   2714 	ac_must_keep_next=false # Got value, back to normal.
   2715       else
   2716 	case $ac_arg in
   2717 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2718 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2719 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2720 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2721 	    case "$ac_configure_args0 " in
   2722 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2723 	    esac
   2724 	    ;;
   2725 	  -* ) ac_must_keep_next=true ;;
   2726 	esac
   2727       fi
   2728       as_fn_append ac_configure_args " '$ac_arg'"
   2729       ;;
   2730     esac
   2731   done
   2732 done
   2733 { ac_configure_args0=; unset ac_configure_args0;}
   2734 { ac_configure_args1=; unset ac_configure_args1;}
   2735 
   2736 # When interrupted or exit'd, cleanup temporary files, and complete
   2737 # config.log.  We remove comments because anyway the quotes in there
   2738 # would cause problems or look ugly.
   2739 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2741 trap 'exit_status=$?
   2742   # Save into config.log some information that might help in debugging.
   2743   {
   2744     echo
   2745 
   2746     $as_echo "## ---------------- ##
   2747 ## Cache variables. ##
   2748 ## ---------------- ##"
   2749     echo
   2750     # The following way of writing the cache mishandles newlines in values,
   2751 (
   2752   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2753     eval ac_val=\$$ac_var
   2754     case $ac_val in #(
   2755     *${as_nl}*)
   2756       case $ac_var in #(
   2757       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2758 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2759       esac
   2760       case $ac_var in #(
   2761       _ | IFS | as_nl) ;; #(
   2762       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2763       *) { eval $ac_var=; unset $ac_var;} ;;
   2764       esac ;;
   2765     esac
   2766   done
   2767   (set) 2>&1 |
   2768     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2769     *${as_nl}ac_space=\ *)
   2770       sed -n \
   2771 	"s/'\''/'\''\\\\'\'''\''/g;
   2772 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2773       ;; #(
   2774     *)
   2775       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2776       ;;
   2777     esac |
   2778     sort
   2779 )
   2780     echo
   2781 
   2782     $as_echo "## ----------------- ##
   2783 ## Output variables. ##
   2784 ## ----------------- ##"
   2785     echo
   2786     for ac_var in $ac_subst_vars
   2787     do
   2788       eval ac_val=\$$ac_var
   2789       case $ac_val in
   2790       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2791       esac
   2792       $as_echo "$ac_var='\''$ac_val'\''"
   2793     done | sort
   2794     echo
   2795 
   2796     if test -n "$ac_subst_files"; then
   2797       $as_echo "## ------------------- ##
   2798 ## File substitutions. ##
   2799 ## ------------------- ##"
   2800       echo
   2801       for ac_var in $ac_subst_files
   2802       do
   2803 	eval ac_val=\$$ac_var
   2804 	case $ac_val in
   2805 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2806 	esac
   2807 	$as_echo "$ac_var='\''$ac_val'\''"
   2808       done | sort
   2809       echo
   2810     fi
   2811 
   2812     if test -s confdefs.h; then
   2813       $as_echo "## ----------- ##
   2814 ## confdefs.h. ##
   2815 ## ----------- ##"
   2816       echo
   2817       cat confdefs.h
   2818       echo
   2819     fi
   2820     test "$ac_signal" != 0 &&
   2821       $as_echo "$as_me: caught signal $ac_signal"
   2822     $as_echo "$as_me: exit $exit_status"
   2823   } >&5
   2824   rm -f core *.core core.conftest.* &&
   2825     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2826     exit $exit_status
   2827 ' 0
   2828 for ac_signal in 1 2 13 15; do
   2829   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2830 done
   2831 ac_signal=0
   2832 
   2833 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2834 rm -f -r conftest* confdefs.h
   2835 
   2836 $as_echo "/* confdefs.h */" > confdefs.h
   2837 
   2838 # Predefined preprocessor variables.
   2839 
   2840 cat >>confdefs.h <<_ACEOF
   2841 #define PACKAGE_NAME "$PACKAGE_NAME"
   2842 _ACEOF
   2843 
   2844 cat >>confdefs.h <<_ACEOF
   2845 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2846 _ACEOF
   2847 
   2848 cat >>confdefs.h <<_ACEOF
   2849 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2850 _ACEOF
   2851 
   2852 cat >>confdefs.h <<_ACEOF
   2853 #define PACKAGE_STRING "$PACKAGE_STRING"
   2854 _ACEOF
   2855 
   2856 cat >>confdefs.h <<_ACEOF
   2857 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2858 _ACEOF
   2859 
   2860 cat >>confdefs.h <<_ACEOF
   2861 #define PACKAGE_URL "$PACKAGE_URL"
   2862 _ACEOF
   2863 
   2864 
   2865 # Let the site file select an alternate cache file if it wants to.
   2866 # Prefer an explicitly selected file to automatically selected ones.
   2867 ac_site_file1=NONE
   2868 ac_site_file2=NONE
   2869 if test -n "$CONFIG_SITE"; then
   2870   # We do not want a PATH search for config.site.
   2871   case $CONFIG_SITE in #((
   2872     -*)  ac_site_file1=./$CONFIG_SITE;;
   2873     */*) ac_site_file1=$CONFIG_SITE;;
   2874     *)   ac_site_file1=./$CONFIG_SITE;;
   2875   esac
   2876 elif test "x$prefix" != xNONE; then
   2877   ac_site_file1=$prefix/share/config.site
   2878   ac_site_file2=$prefix/etc/config.site
   2879 else
   2880   ac_site_file1=$ac_default_prefix/share/config.site
   2881   ac_site_file2=$ac_default_prefix/etc/config.site
   2882 fi
   2883 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2884 do
   2885   test "x$ac_site_file" = xNONE && continue
   2886   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2887     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2888 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2889     sed 's/^/| /' "$ac_site_file" >&5
   2890     . "$ac_site_file" \
   2891       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2893 as_fn_error $? "failed to load site script $ac_site_file
   2894 See \`config.log' for more details" "$LINENO" 5; }
   2895   fi
   2896 done
   2897 
   2898 if test -r "$cache_file"; then
   2899   # Some versions of bash will fail to source /dev/null (special files
   2900   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2901   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2902     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2903 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2904     case $cache_file in
   2905       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2906       *)                      . "./$cache_file";;
   2907     esac
   2908   fi
   2909 else
   2910   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2911 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2912   >$cache_file
   2913 fi
   2914 
   2915 as_fn_append ac_header_list " stdlib.h"
   2916 as_fn_append ac_header_list " unistd.h"
   2917 as_fn_append ac_header_list " sys/param.h"
   2918 # Check that the precious variables saved in the cache have kept the same
   2919 # value.
   2920 ac_cache_corrupted=false
   2921 for ac_var in $ac_precious_vars; do
   2922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2923   eval ac_new_set=\$ac_env_${ac_var}_set
   2924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2925   eval ac_new_val=\$ac_env_${ac_var}_value
   2926   case $ac_old_set,$ac_new_set in
   2927     set,)
   2928       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2930       ac_cache_corrupted=: ;;
   2931     ,set)
   2932       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2934       ac_cache_corrupted=: ;;
   2935     ,);;
   2936     *)
   2937       if test "x$ac_old_val" != "x$ac_new_val"; then
   2938 	# differences in whitespace do not lead to failure.
   2939 	ac_old_val_w=`echo x $ac_old_val`
   2940 	ac_new_val_w=`echo x $ac_new_val`
   2941 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2942 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2944 	  ac_cache_corrupted=:
   2945 	else
   2946 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2948 	  eval $ac_var=\$ac_old_val
   2949 	fi
   2950 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2951 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2952 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2953 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2954       fi;;
   2955   esac
   2956   # Pass precious variables to config.status.
   2957   if test "$ac_new_set" = set; then
   2958     case $ac_new_val in
   2959     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2960     *) ac_arg=$ac_var=$ac_new_val ;;
   2961     esac
   2962     case " $ac_configure_args " in
   2963       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2964       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2965     esac
   2966   fi
   2967 done
   2968 if $ac_cache_corrupted; then
   2969   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2971   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2972 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2973   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2974 fi
   2975 ## -------------------- ##
   2976 ## Main body of script. ##
   2977 ## -------------------- ##
   2978 
   2979 ac_ext=c
   2980 ac_cpp='$CPP $CPPFLAGS'
   2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2984 
   2985 
   2986 
   2987 
   2988 
   2989 ac_config_headers="$ac_config_headers config.h:config.in"
   2990 
   2991 
   2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2993 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2994     # Check whether --enable-maintainer-mode was given.
   2995 if test "${enable_maintainer_mode+set}" = set; then :
   2996   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2997 else
   2998   USE_MAINTAINER_MODE=no
   2999 fi
   3000 
   3001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   3002 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   3003    if test $USE_MAINTAINER_MODE = yes; then
   3004   MAINTAINER_MODE_TRUE=
   3005   MAINTAINER_MODE_FALSE='#'
   3006 else
   3007   MAINTAINER_MODE_TRUE='#'
   3008   MAINTAINER_MODE_FALSE=
   3009 fi
   3010 
   3011   MAINT=$MAINTAINER_MODE_TRUE
   3012 
   3013 
   3014 
   3015 ac_ext=c
   3016 ac_cpp='$CPP $CPPFLAGS'
   3017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3020 if test -n "$ac_tool_prefix"; then
   3021   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3022 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3024 $as_echo_n "checking for $ac_word... " >&6; }
   3025 if ${ac_cv_prog_CC+:} false; then :
   3026   $as_echo_n "(cached) " >&6
   3027 else
   3028   if test -n "$CC"; then
   3029   ac_cv_prog_CC="$CC" # Let the user override the test.
   3030 else
   3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3032 for as_dir in $PATH
   3033 do
   3034   IFS=$as_save_IFS
   3035   test -z "$as_dir" && as_dir=.
   3036     for ac_exec_ext in '' $ac_executable_extensions; do
   3037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3038     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3040     break 2
   3041   fi
   3042 done
   3043   done
   3044 IFS=$as_save_IFS
   3045 
   3046 fi
   3047 fi
   3048 CC=$ac_cv_prog_CC
   3049 if test -n "$CC"; then
   3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3051 $as_echo "$CC" >&6; }
   3052 else
   3053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3054 $as_echo "no" >&6; }
   3055 fi
   3056 
   3057 
   3058 fi
   3059 if test -z "$ac_cv_prog_CC"; then
   3060   ac_ct_CC=$CC
   3061   # Extract the first word of "gcc", so it can be a program name with args.
   3062 set dummy gcc; ac_word=$2
   3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3064 $as_echo_n "checking for $ac_word... " >&6; }
   3065 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3066   $as_echo_n "(cached) " >&6
   3067 else
   3068   if test -n "$ac_ct_CC"; then
   3069   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3070 else
   3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3072 for as_dir in $PATH
   3073 do
   3074   IFS=$as_save_IFS
   3075   test -z "$as_dir" && as_dir=.
   3076     for ac_exec_ext in '' $ac_executable_extensions; do
   3077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3078     ac_cv_prog_ac_ct_CC="gcc"
   3079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3080     break 2
   3081   fi
   3082 done
   3083   done
   3084 IFS=$as_save_IFS
   3085 
   3086 fi
   3087 fi
   3088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3089 if test -n "$ac_ct_CC"; then
   3090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3091 $as_echo "$ac_ct_CC" >&6; }
   3092 else
   3093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3094 $as_echo "no" >&6; }
   3095 fi
   3096 
   3097   if test "x$ac_ct_CC" = x; then
   3098     CC=""
   3099   else
   3100     case $cross_compiling:$ac_tool_warned in
   3101 yes:)
   3102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3104 ac_tool_warned=yes ;;
   3105 esac
   3106     CC=$ac_ct_CC
   3107   fi
   3108 else
   3109   CC="$ac_cv_prog_CC"
   3110 fi
   3111 
   3112 if test -z "$CC"; then
   3113           if test -n "$ac_tool_prefix"; then
   3114     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3115 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3117 $as_echo_n "checking for $ac_word... " >&6; }
   3118 if ${ac_cv_prog_CC+:} false; then :
   3119   $as_echo_n "(cached) " >&6
   3120 else
   3121   if test -n "$CC"; then
   3122   ac_cv_prog_CC="$CC" # Let the user override the test.
   3123 else
   3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3125 for as_dir in $PATH
   3126 do
   3127   IFS=$as_save_IFS
   3128   test -z "$as_dir" && as_dir=.
   3129     for ac_exec_ext in '' $ac_executable_extensions; do
   3130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3131     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3133     break 2
   3134   fi
   3135 done
   3136   done
   3137 IFS=$as_save_IFS
   3138 
   3139 fi
   3140 fi
   3141 CC=$ac_cv_prog_CC
   3142 if test -n "$CC"; then
   3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3144 $as_echo "$CC" >&6; }
   3145 else
   3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3147 $as_echo "no" >&6; }
   3148 fi
   3149 
   3150 
   3151   fi
   3152 fi
   3153 if test -z "$CC"; then
   3154   # Extract the first word of "cc", so it can be a program name with args.
   3155 set dummy cc; ac_word=$2
   3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3157 $as_echo_n "checking for $ac_word... " >&6; }
   3158 if ${ac_cv_prog_CC+:} false; then :
   3159   $as_echo_n "(cached) " >&6
   3160 else
   3161   if test -n "$CC"; then
   3162   ac_cv_prog_CC="$CC" # Let the user override the test.
   3163 else
   3164   ac_prog_rejected=no
   3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3166 for as_dir in $PATH
   3167 do
   3168   IFS=$as_save_IFS
   3169   test -z "$as_dir" && as_dir=.
   3170     for ac_exec_ext in '' $ac_executable_extensions; do
   3171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3172     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3173        ac_prog_rejected=yes
   3174        continue
   3175      fi
   3176     ac_cv_prog_CC="cc"
   3177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3178     break 2
   3179   fi
   3180 done
   3181   done
   3182 IFS=$as_save_IFS
   3183 
   3184 if test $ac_prog_rejected = yes; then
   3185   # We found a bogon in the path, so make sure we never use it.
   3186   set dummy $ac_cv_prog_CC
   3187   shift
   3188   if test $# != 0; then
   3189     # We chose a different compiler from the bogus one.
   3190     # However, it has the same basename, so the bogon will be chosen
   3191     # first if we set CC to just the basename; use the full file name.
   3192     shift
   3193     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3194   fi
   3195 fi
   3196 fi
   3197 fi
   3198 CC=$ac_cv_prog_CC
   3199 if test -n "$CC"; then
   3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3201 $as_echo "$CC" >&6; }
   3202 else
   3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3204 $as_echo "no" >&6; }
   3205 fi
   3206 
   3207 
   3208 fi
   3209 if test -z "$CC"; then
   3210   if test -n "$ac_tool_prefix"; then
   3211   for ac_prog in cl.exe
   3212   do
   3213     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3216 $as_echo_n "checking for $ac_word... " >&6; }
   3217 if ${ac_cv_prog_CC+:} false; then :
   3218   $as_echo_n "(cached) " >&6
   3219 else
   3220   if test -n "$CC"; then
   3221   ac_cv_prog_CC="$CC" # Let the user override the test.
   3222 else
   3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3224 for as_dir in $PATH
   3225 do
   3226   IFS=$as_save_IFS
   3227   test -z "$as_dir" && as_dir=.
   3228     for ac_exec_ext in '' $ac_executable_extensions; do
   3229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3230     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3232     break 2
   3233   fi
   3234 done
   3235   done
   3236 IFS=$as_save_IFS
   3237 
   3238 fi
   3239 fi
   3240 CC=$ac_cv_prog_CC
   3241 if test -n "$CC"; then
   3242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3243 $as_echo "$CC" >&6; }
   3244 else
   3245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3246 $as_echo "no" >&6; }
   3247 fi
   3248 
   3249 
   3250     test -n "$CC" && break
   3251   done
   3252 fi
   3253 if test -z "$CC"; then
   3254   ac_ct_CC=$CC
   3255   for ac_prog in cl.exe
   3256 do
   3257   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3258 set dummy $ac_prog; ac_word=$2
   3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3260 $as_echo_n "checking for $ac_word... " >&6; }
   3261 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3262   $as_echo_n "(cached) " >&6
   3263 else
   3264   if test -n "$ac_ct_CC"; then
   3265   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3266 else
   3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3268 for as_dir in $PATH
   3269 do
   3270   IFS=$as_save_IFS
   3271   test -z "$as_dir" && as_dir=.
   3272     for ac_exec_ext in '' $ac_executable_extensions; do
   3273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3274     ac_cv_prog_ac_ct_CC="$ac_prog"
   3275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3276     break 2
   3277   fi
   3278 done
   3279   done
   3280 IFS=$as_save_IFS
   3281 
   3282 fi
   3283 fi
   3284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3285 if test -n "$ac_ct_CC"; then
   3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3287 $as_echo "$ac_ct_CC" >&6; }
   3288 else
   3289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3290 $as_echo "no" >&6; }
   3291 fi
   3292 
   3293 
   3294   test -n "$ac_ct_CC" && break
   3295 done
   3296 
   3297   if test "x$ac_ct_CC" = x; then
   3298     CC=""
   3299   else
   3300     case $cross_compiling:$ac_tool_warned in
   3301 yes:)
   3302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3304 ac_tool_warned=yes ;;
   3305 esac
   3306     CC=$ac_ct_CC
   3307   fi
   3308 fi
   3309 
   3310 fi
   3311 
   3312 
   3313 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3315 as_fn_error $? "no acceptable C compiler found in \$PATH
   3316 See \`config.log' for more details" "$LINENO" 5; }
   3317 
   3318 # Provide some information about the compiler.
   3319 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3320 set X $ac_compile
   3321 ac_compiler=$2
   3322 for ac_option in --version -v -V -qversion; do
   3323   { { ac_try="$ac_compiler $ac_option >&5"
   3324 case "(($ac_try" in
   3325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3326   *) ac_try_echo=$ac_try;;
   3327 esac
   3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3329 $as_echo "$ac_try_echo"; } >&5
   3330   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3331   ac_status=$?
   3332   if test -s conftest.err; then
   3333     sed '10a\
   3334 ... rest of stderr output deleted ...
   3335          10q' conftest.err >conftest.er1
   3336     cat conftest.er1 >&5
   3337   fi
   3338   rm -f conftest.er1 conftest.err
   3339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3340   test $ac_status = 0; }
   3341 done
   3342 
   3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3344 /* end confdefs.h.  */
   3345 
   3346 int
   3347 main ()
   3348 {
   3349 
   3350   ;
   3351   return 0;
   3352 }
   3353 _ACEOF
   3354 ac_clean_files_save=$ac_clean_files
   3355 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3356 # Try to create an executable without -o first, disregard a.out.
   3357 # It will help us diagnose broken compilers, and finding out an intuition
   3358 # of exeext.
   3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3360 $as_echo_n "checking whether the C compiler works... " >&6; }
   3361 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3362 
   3363 # The possible output files:
   3364 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3365 
   3366 ac_rmfiles=
   3367 for ac_file in $ac_files
   3368 do
   3369   case $ac_file in
   3370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3371     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3372   esac
   3373 done
   3374 rm -f $ac_rmfiles
   3375 
   3376 if { { ac_try="$ac_link_default"
   3377 case "(($ac_try" in
   3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3379   *) ac_try_echo=$ac_try;;
   3380 esac
   3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3382 $as_echo "$ac_try_echo"; } >&5
   3383   (eval "$ac_link_default") 2>&5
   3384   ac_status=$?
   3385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3386   test $ac_status = 0; }; then :
   3387   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3388 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3389 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3390 # so that the user can short-circuit this test for compilers unknown to
   3391 # Autoconf.
   3392 for ac_file in $ac_files ''
   3393 do
   3394   test -f "$ac_file" || continue
   3395   case $ac_file in
   3396     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3397 	;;
   3398     [ab].out )
   3399 	# We found the default executable, but exeext='' is most
   3400 	# certainly right.
   3401 	break;;
   3402     *.* )
   3403 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3404 	then :; else
   3405 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3406 	fi
   3407 	# We set ac_cv_exeext here because the later test for it is not
   3408 	# safe: cross compilers may not add the suffix if given an `-o'
   3409 	# argument, so we may need to know it at that point already.
   3410 	# Even if this section looks crufty: it has the advantage of
   3411 	# actually working.
   3412 	break;;
   3413     * )
   3414 	break;;
   3415   esac
   3416 done
   3417 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3418 
   3419 else
   3420   ac_file=''
   3421 fi
   3422 if test -z "$ac_file"; then :
   3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3424 $as_echo "no" >&6; }
   3425 $as_echo "$as_me: failed program was:" >&5
   3426 sed 's/^/| /' conftest.$ac_ext >&5
   3427 
   3428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3430 as_fn_error 77 "C compiler cannot create executables
   3431 See \`config.log' for more details" "$LINENO" 5; }
   3432 else
   3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3434 $as_echo "yes" >&6; }
   3435 fi
   3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3437 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3439 $as_echo "$ac_file" >&6; }
   3440 ac_exeext=$ac_cv_exeext
   3441 
   3442 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   3443 ac_clean_files=$ac_clean_files_save
   3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3445 $as_echo_n "checking for suffix of executables... " >&6; }
   3446 if { { ac_try="$ac_link"
   3447 case "(($ac_try" in
   3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3449   *) ac_try_echo=$ac_try;;
   3450 esac
   3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3452 $as_echo "$ac_try_echo"; } >&5
   3453   (eval "$ac_link") 2>&5
   3454   ac_status=$?
   3455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3456   test $ac_status = 0; }; then :
   3457   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3458 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3459 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3460 # `rm'.
   3461 for ac_file in conftest.exe conftest conftest.*; do
   3462   test -f "$ac_file" || continue
   3463   case $ac_file in
   3464     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3465     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3466 	  break;;
   3467     * ) break;;
   3468   esac
   3469 done
   3470 else
   3471   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3473 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   3474 See \`config.log' for more details" "$LINENO" 5; }
   3475 fi
   3476 rm -f conftest conftest$ac_cv_exeext
   3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3478 $as_echo "$ac_cv_exeext" >&6; }
   3479 
   3480 rm -f conftest.$ac_ext
   3481 EXEEXT=$ac_cv_exeext
   3482 ac_exeext=$EXEEXT
   3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3484 /* end confdefs.h.  */
   3485 #include <stdio.h>
   3486 int
   3487 main ()
   3488 {
   3489 FILE *f = fopen ("conftest.out", "w");
   3490  return ferror (f) || fclose (f) != 0;
   3491 
   3492   ;
   3493   return 0;
   3494 }
   3495 _ACEOF
   3496 ac_clean_files="$ac_clean_files conftest.out"
   3497 # Check that the compiler produces executables we can run.  If not, either
   3498 # the compiler is broken, or we cross compile.
   3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3500 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3501 if test "$cross_compiling" != yes; then
   3502   { { ac_try="$ac_link"
   3503 case "(($ac_try" in
   3504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3505   *) ac_try_echo=$ac_try;;
   3506 esac
   3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3508 $as_echo "$ac_try_echo"; } >&5
   3509   (eval "$ac_link") 2>&5
   3510   ac_status=$?
   3511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3512   test $ac_status = 0; }
   3513   if { ac_try='./conftest$ac_cv_exeext'
   3514   { { case "(($ac_try" in
   3515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3516   *) ac_try_echo=$ac_try;;
   3517 esac
   3518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3519 $as_echo "$ac_try_echo"; } >&5
   3520   (eval "$ac_try") 2>&5
   3521   ac_status=$?
   3522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3523   test $ac_status = 0; }; }; then
   3524     cross_compiling=no
   3525   else
   3526     if test "$cross_compiling" = maybe; then
   3527 	cross_compiling=yes
   3528     else
   3529 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3531 as_fn_error $? "cannot run C compiled programs.
   3532 If you meant to cross compile, use \`--host'.
   3533 See \`config.log' for more details" "$LINENO" 5; }
   3534     fi
   3535   fi
   3536 fi
   3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3538 $as_echo "$cross_compiling" >&6; }
   3539 
   3540 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   3541 ac_clean_files=$ac_clean_files_save
   3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3543 $as_echo_n "checking for suffix of object files... " >&6; }
   3544 if ${ac_cv_objext+:} false; then :
   3545   $as_echo_n "(cached) " >&6
   3546 else
   3547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3548 /* end confdefs.h.  */
   3549 
   3550 int
   3551 main ()
   3552 {
   3553 
   3554   ;
   3555   return 0;
   3556 }
   3557 _ACEOF
   3558 rm -f conftest.o conftest.obj
   3559 if { { ac_try="$ac_compile"
   3560 case "(($ac_try" in
   3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3562   *) ac_try_echo=$ac_try;;
   3563 esac
   3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3565 $as_echo "$ac_try_echo"; } >&5
   3566   (eval "$ac_compile") 2>&5
   3567   ac_status=$?
   3568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3569   test $ac_status = 0; }; then :
   3570   for ac_file in conftest.o conftest.obj conftest.*; do
   3571   test -f "$ac_file" || continue;
   3572   case $ac_file in
   3573     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3574     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3575        break;;
   3576   esac
   3577 done
   3578 else
   3579   $as_echo "$as_me: failed program was:" >&5
   3580 sed 's/^/| /' conftest.$ac_ext >&5
   3581 
   3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3584 as_fn_error $? "cannot compute suffix of object files: cannot compile
   3585 See \`config.log' for more details" "$LINENO" 5; }
   3586 fi
   3587 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3588 fi
   3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3590 $as_echo "$ac_cv_objext" >&6; }
   3591 OBJEXT=$ac_cv_objext
   3592 ac_objext=$OBJEXT
   3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3594 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3595 if ${ac_cv_c_compiler_gnu+:} false; then :
   3596   $as_echo_n "(cached) " >&6
   3597 else
   3598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3599 /* end confdefs.h.  */
   3600 
   3601 int
   3602 main ()
   3603 {
   3604 #ifndef __GNUC__
   3605        choke me
   3606 #endif
   3607 
   3608   ;
   3609   return 0;
   3610 }
   3611 _ACEOF
   3612 if ac_fn_c_try_compile "$LINENO"; then :
   3613   ac_compiler_gnu=yes
   3614 else
   3615   ac_compiler_gnu=no
   3616 fi
   3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3618 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3619 
   3620 fi
   3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3622 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3623 if test $ac_compiler_gnu = yes; then
   3624   GCC=yes
   3625 else
   3626   GCC=
   3627 fi
   3628 ac_test_CFLAGS=${CFLAGS+set}
   3629 ac_save_CFLAGS=$CFLAGS
   3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3631 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3632 if ${ac_cv_prog_cc_g+:} false; then :
   3633   $as_echo_n "(cached) " >&6
   3634 else
   3635   ac_save_c_werror_flag=$ac_c_werror_flag
   3636    ac_c_werror_flag=yes
   3637    ac_cv_prog_cc_g=no
   3638    CFLAGS="-g"
   3639    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3640 /* end confdefs.h.  */
   3641 
   3642 int
   3643 main ()
   3644 {
   3645 
   3646   ;
   3647   return 0;
   3648 }
   3649 _ACEOF
   3650 if ac_fn_c_try_compile "$LINENO"; then :
   3651   ac_cv_prog_cc_g=yes
   3652 else
   3653   CFLAGS=""
   3654       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3655 /* end confdefs.h.  */
   3656 
   3657 int
   3658 main ()
   3659 {
   3660 
   3661   ;
   3662   return 0;
   3663 }
   3664 _ACEOF
   3665 if ac_fn_c_try_compile "$LINENO"; then :
   3666 
   3667 else
   3668   ac_c_werror_flag=$ac_save_c_werror_flag
   3669 	 CFLAGS="-g"
   3670 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3671 /* end confdefs.h.  */
   3672 
   3673 int
   3674 main ()
   3675 {
   3676 
   3677   ;
   3678   return 0;
   3679 }
   3680 _ACEOF
   3681 if ac_fn_c_try_compile "$LINENO"; then :
   3682   ac_cv_prog_cc_g=yes
   3683 fi
   3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3685 fi
   3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3687 fi
   3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3689    ac_c_werror_flag=$ac_save_c_werror_flag
   3690 fi
   3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3692 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3693 if test "$ac_test_CFLAGS" = set; then
   3694   CFLAGS=$ac_save_CFLAGS
   3695 elif test $ac_cv_prog_cc_g = yes; then
   3696   if test "$GCC" = yes; then
   3697     CFLAGS="-g -O2"
   3698   else
   3699     CFLAGS="-g"
   3700   fi
   3701 else
   3702   if test "$GCC" = yes; then
   3703     CFLAGS="-O2"
   3704   else
   3705     CFLAGS=
   3706   fi
   3707 fi
   3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3709 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3710 if ${ac_cv_prog_cc_c89+:} false; then :
   3711   $as_echo_n "(cached) " >&6
   3712 else
   3713   ac_cv_prog_cc_c89=no
   3714 ac_save_CC=$CC
   3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3716 /* end confdefs.h.  */
   3717 #include <stdarg.h>
   3718 #include <stdio.h>
   3719 struct stat;
   3720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3721 struct buf { int x; };
   3722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3723 static char *e (p, i)
   3724      char **p;
   3725      int i;
   3726 {
   3727   return p[i];
   3728 }
   3729 static char *f (char * (*g) (char **, int), char **p, ...)
   3730 {
   3731   char *s;
   3732   va_list v;
   3733   va_start (v,p);
   3734   s = g (p, va_arg (v,int));
   3735   va_end (v);
   3736   return s;
   3737 }
   3738 
   3739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3740    function prototypes and stuff, but not '\xHH' hex character constants.
   3741    These don't provoke an error unfortunately, instead are silently treated
   3742    as 'x'.  The following induces an error, until -std is added to get
   3743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3744    array size at least.  It's necessary to write '\x00'==0 to get something
   3745    that's true only with -std.  */
   3746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3747 
   3748 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3749    inside strings and character constants.  */
   3750 #define FOO(x) 'x'
   3751 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3752 
   3753 int test (int i, double x);
   3754 struct s1 {int (*f) (int a);};
   3755 struct s2 {int (*f) (double a);};
   3756 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3757 int argc;
   3758 char **argv;
   3759 int
   3760 main ()
   3761 {
   3762 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3763   ;
   3764   return 0;
   3765 }
   3766 _ACEOF
   3767 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3768 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3769 do
   3770   CC="$ac_save_CC $ac_arg"
   3771   if ac_fn_c_try_compile "$LINENO"; then :
   3772   ac_cv_prog_cc_c89=$ac_arg
   3773 fi
   3774 rm -f core conftest.err conftest.$ac_objext
   3775   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3776 done
   3777 rm -f conftest.$ac_ext
   3778 CC=$ac_save_CC
   3779 
   3780 fi
   3781 # AC_CACHE_VAL
   3782 case "x$ac_cv_prog_cc_c89" in
   3783   x)
   3784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3785 $as_echo "none needed" >&6; } ;;
   3786   xno)
   3787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3788 $as_echo "unsupported" >&6; } ;;
   3789   *)
   3790     CC="$CC $ac_cv_prog_cc_c89"
   3791     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3792 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3793 esac
   3794 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3795 
   3796 fi
   3797 
   3798 ac_ext=c
   3799 ac_cpp='$CPP $CPPFLAGS'
   3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3803 
   3804 ac_ext=cpp
   3805 ac_cpp='$CXXCPP $CPPFLAGS'
   3806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   3809 if test -z "$CXX"; then
   3810   if test -n "$CCC"; then
   3811     CXX=$CCC
   3812   else
   3813     if test -n "$ac_tool_prefix"; then
   3814   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3815   do
   3816     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3817 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3819 $as_echo_n "checking for $ac_word... " >&6; }
   3820 if ${ac_cv_prog_CXX+:} false; then :
   3821   $as_echo_n "(cached) " >&6
   3822 else
   3823   if test -n "$CXX"; then
   3824   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   3825 else
   3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3827 for as_dir in $PATH
   3828 do
   3829   IFS=$as_save_IFS
   3830   test -z "$as_dir" && as_dir=.
   3831     for ac_exec_ext in '' $ac_executable_extensions; do
   3832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3833     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   3834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3835     break 2
   3836   fi
   3837 done
   3838   done
   3839 IFS=$as_save_IFS
   3840 
   3841 fi
   3842 fi
   3843 CXX=$ac_cv_prog_CXX
   3844 if test -n "$CXX"; then
   3845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   3846 $as_echo "$CXX" >&6; }
   3847 else
   3848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3849 $as_echo "no" >&6; }
   3850 fi
   3851 
   3852 
   3853     test -n "$CXX" && break
   3854   done
   3855 fi
   3856 if test -z "$CXX"; then
   3857   ac_ct_CXX=$CXX
   3858   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   3859 do
   3860   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3861 set dummy $ac_prog; ac_word=$2
   3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3863 $as_echo_n "checking for $ac_word... " >&6; }
   3864 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   3865   $as_echo_n "(cached) " >&6
   3866 else
   3867   if test -n "$ac_ct_CXX"; then
   3868   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   3869 else
   3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3871 for as_dir in $PATH
   3872 do
   3873   IFS=$as_save_IFS
   3874   test -z "$as_dir" && as_dir=.
   3875     for ac_exec_ext in '' $ac_executable_extensions; do
   3876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3877     ac_cv_prog_ac_ct_CXX="$ac_prog"
   3878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3879     break 2
   3880   fi
   3881 done
   3882   done
   3883 IFS=$as_save_IFS
   3884 
   3885 fi
   3886 fi
   3887 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   3888 if test -n "$ac_ct_CXX"; then
   3889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   3890 $as_echo "$ac_ct_CXX" >&6; }
   3891 else
   3892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3893 $as_echo "no" >&6; }
   3894 fi
   3895 
   3896 
   3897   test -n "$ac_ct_CXX" && break
   3898 done
   3899 
   3900   if test "x$ac_ct_CXX" = x; then
   3901     CXX="g++"
   3902   else
   3903     case $cross_compiling:$ac_tool_warned in
   3904 yes:)
   3905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3907 ac_tool_warned=yes ;;
   3908 esac
   3909     CXX=$ac_ct_CXX
   3910   fi
   3911 fi
   3912 
   3913   fi
   3914 fi
   3915 # Provide some information about the compiler.
   3916 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   3917 set X $ac_compile
   3918 ac_compiler=$2
   3919 for ac_option in --version -v -V -qversion; do
   3920   { { ac_try="$ac_compiler $ac_option >&5"
   3921 case "(($ac_try" in
   3922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3923   *) ac_try_echo=$ac_try;;
   3924 esac
   3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3926 $as_echo "$ac_try_echo"; } >&5
   3927   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3928   ac_status=$?
   3929   if test -s conftest.err; then
   3930     sed '10a\
   3931 ... rest of stderr output deleted ...
   3932          10q' conftest.err >conftest.er1
   3933     cat conftest.er1 >&5
   3934   fi
   3935   rm -f conftest.er1 conftest.err
   3936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3937   test $ac_status = 0; }
   3938 done
   3939 
   3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   3941 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   3942 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   3943   $as_echo_n "(cached) " >&6
   3944 else
   3945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3946 /* end confdefs.h.  */
   3947 
   3948 int
   3949 main ()
   3950 {
   3951 #ifndef __GNUC__
   3952        choke me
   3953 #endif
   3954 
   3955   ;
   3956   return 0;
   3957 }
   3958 _ACEOF
   3959 if ac_fn_cxx_try_compile "$LINENO"; then :
   3960   ac_compiler_gnu=yes
   3961 else
   3962   ac_compiler_gnu=no
   3963 fi
   3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3965 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   3966 
   3967 fi
   3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   3969 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   3970 if test $ac_compiler_gnu = yes; then
   3971   GXX=yes
   3972 else
   3973   GXX=
   3974 fi
   3975 ac_test_CXXFLAGS=${CXXFLAGS+set}
   3976 ac_save_CXXFLAGS=$CXXFLAGS
   3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   3978 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   3979 if ${ac_cv_prog_cxx_g+:} false; then :
   3980   $as_echo_n "(cached) " >&6
   3981 else
   3982   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   3983    ac_cxx_werror_flag=yes
   3984    ac_cv_prog_cxx_g=no
   3985    CXXFLAGS="-g"
   3986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3987 /* end confdefs.h.  */
   3988 
   3989 int
   3990 main ()
   3991 {
   3992 
   3993   ;
   3994   return 0;
   3995 }
   3996 _ACEOF
   3997 if ac_fn_cxx_try_compile "$LINENO"; then :
   3998   ac_cv_prog_cxx_g=yes
   3999 else
   4000   CXXFLAGS=""
   4001       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4002 /* end confdefs.h.  */
   4003 
   4004 int
   4005 main ()
   4006 {
   4007 
   4008   ;
   4009   return 0;
   4010 }
   4011 _ACEOF
   4012 if ac_fn_cxx_try_compile "$LINENO"; then :
   4013 
   4014 else
   4015   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   4016 	 CXXFLAGS="-g"
   4017 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4018 /* end confdefs.h.  */
   4019 
   4020 int
   4021 main ()
   4022 {
   4023 
   4024   ;
   4025   return 0;
   4026 }
   4027 _ACEOF
   4028 if ac_fn_cxx_try_compile "$LINENO"; then :
   4029   ac_cv_prog_cxx_g=yes
   4030 fi
   4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4032 fi
   4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4034 fi
   4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4036    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   4037 fi
   4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   4039 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   4040 if test "$ac_test_CXXFLAGS" = set; then
   4041   CXXFLAGS=$ac_save_CXXFLAGS
   4042 elif test $ac_cv_prog_cxx_g = yes; then
   4043   if test "$GXX" = yes; then
   4044     CXXFLAGS="-g -O2"
   4045   else
   4046     CXXFLAGS="-g"
   4047   fi
   4048 else
   4049   if test "$GXX" = yes; then
   4050     CXXFLAGS="-O2"
   4051   else
   4052     CXXFLAGS=
   4053   fi
   4054 fi
   4055 ac_ext=c
   4056 ac_cpp='$CPP $CPPFLAGS'
   4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4060 
   4061 
   4062 
   4063 ac_ext=c
   4064 ac_cpp='$CPP $CPPFLAGS'
   4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   4069 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   4070 # On Suns, sometimes $CPP names a directory.
   4071 if test -n "$CPP" && test -d "$CPP"; then
   4072   CPP=
   4073 fi
   4074 if test -z "$CPP"; then
   4075   if ${ac_cv_prog_CPP+:} false; then :
   4076   $as_echo_n "(cached) " >&6
   4077 else
   4078       # Double quotes because CPP needs to be expanded
   4079     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   4080     do
   4081       ac_preproc_ok=false
   4082 for ac_c_preproc_warn_flag in '' yes
   4083 do
   4084   # Use a header file that comes with gcc, so configuring glibc
   4085   # with a fresh cross-compiler works.
   4086   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4087   # <limits.h> exists even on freestanding compilers.
   4088   # On the NeXT, cc -E runs the code through the compiler's parser,
   4089   # not just through cpp. "Syntax error" is here to catch this case.
   4090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4091 /* end confdefs.h.  */
   4092 #ifdef __STDC__
   4093 # include <limits.h>
   4094 #else
   4095 # include <assert.h>
   4096 #endif
   4097 		     Syntax error
   4098 _ACEOF
   4099 if ac_fn_c_try_cpp "$LINENO"; then :
   4100 
   4101 else
   4102   # Broken: fails on valid input.
   4103 continue
   4104 fi
   4105 rm -f conftest.err conftest.i conftest.$ac_ext
   4106 
   4107   # OK, works on sane cases.  Now check whether nonexistent headers
   4108   # can be detected and how.
   4109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4110 /* end confdefs.h.  */
   4111 #include <ac_nonexistent.h>
   4112 _ACEOF
   4113 if ac_fn_c_try_cpp "$LINENO"; then :
   4114   # Broken: success on invalid input.
   4115 continue
   4116 else
   4117   # Passes both tests.
   4118 ac_preproc_ok=:
   4119 break
   4120 fi
   4121 rm -f conftest.err conftest.i conftest.$ac_ext
   4122 
   4123 done
   4124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4125 rm -f conftest.i conftest.err conftest.$ac_ext
   4126 if $ac_preproc_ok; then :
   4127   break
   4128 fi
   4129 
   4130     done
   4131     ac_cv_prog_CPP=$CPP
   4132 
   4133 fi
   4134   CPP=$ac_cv_prog_CPP
   4135 else
   4136   ac_cv_prog_CPP=$CPP
   4137 fi
   4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   4139 $as_echo "$CPP" >&6; }
   4140 ac_preproc_ok=false
   4141 for ac_c_preproc_warn_flag in '' yes
   4142 do
   4143   # Use a header file that comes with gcc, so configuring glibc
   4144   # with a fresh cross-compiler works.
   4145   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   4146   # <limits.h> exists even on freestanding compilers.
   4147   # On the NeXT, cc -E runs the code through the compiler's parser,
   4148   # not just through cpp. "Syntax error" is here to catch this case.
   4149   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4150 /* end confdefs.h.  */
   4151 #ifdef __STDC__
   4152 # include <limits.h>
   4153 #else
   4154 # include <assert.h>
   4155 #endif
   4156 		     Syntax error
   4157 _ACEOF
   4158 if ac_fn_c_try_cpp "$LINENO"; then :
   4159 
   4160 else
   4161   # Broken: fails on valid input.
   4162 continue
   4163 fi
   4164 rm -f conftest.err conftest.i conftest.$ac_ext
   4165 
   4166   # OK, works on sane cases.  Now check whether nonexistent headers
   4167   # can be detected and how.
   4168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4169 /* end confdefs.h.  */
   4170 #include <ac_nonexistent.h>
   4171 _ACEOF
   4172 if ac_fn_c_try_cpp "$LINENO"; then :
   4173   # Broken: success on invalid input.
   4174 continue
   4175 else
   4176   # Passes both tests.
   4177 ac_preproc_ok=:
   4178 break
   4179 fi
   4180 rm -f conftest.err conftest.i conftest.$ac_ext
   4181 
   4182 done
   4183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   4184 rm -f conftest.i conftest.err conftest.$ac_ext
   4185 if $ac_preproc_ok; then :
   4186 
   4187 else
   4188   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4190 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   4191 See \`config.log' for more details" "$LINENO" 5; }
   4192 fi
   4193 
   4194 ac_ext=c
   4195 ac_cpp='$CPP $CPPFLAGS'
   4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4199 
   4200 
   4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   4202 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   4203 if ${ac_cv_path_GREP+:} false; then :
   4204   $as_echo_n "(cached) " >&6
   4205 else
   4206   if test -z "$GREP"; then
   4207   ac_path_GREP_found=false
   4208   # Loop through the user's path and test for each of PROGNAME-LIST
   4209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4211 do
   4212   IFS=$as_save_IFS
   4213   test -z "$as_dir" && as_dir=.
   4214     for ac_prog in grep ggrep; do
   4215     for ac_exec_ext in '' $ac_executable_extensions; do
   4216       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   4217       as_fn_executable_p "$ac_path_GREP" || continue
   4218 # Check for GNU ac_path_GREP and select it if it is found.
   4219   # Check for GNU $ac_path_GREP
   4220 case `"$ac_path_GREP" --version 2>&1` in
   4221 *GNU*)
   4222   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   4223 *)
   4224   ac_count=0
   4225   $as_echo_n 0123456789 >"conftest.in"
   4226   while :
   4227   do
   4228     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4229     mv "conftest.tmp" "conftest.in"
   4230     cp "conftest.in" "conftest.nl"
   4231     $as_echo 'GREP' >> "conftest.nl"
   4232     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4233     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4234     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4235     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   4236       # Best one so far, save it but keep looking for a better one
   4237       ac_cv_path_GREP="$ac_path_GREP"
   4238       ac_path_GREP_max=$ac_count
   4239     fi
   4240     # 10*(2^10) chars as input seems more than enough
   4241     test $ac_count -gt 10 && break
   4242   done
   4243   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4244 esac
   4245 
   4246       $ac_path_GREP_found && break 3
   4247     done
   4248   done
   4249   done
   4250 IFS=$as_save_IFS
   4251   if test -z "$ac_cv_path_GREP"; then
   4252     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4253   fi
   4254 else
   4255   ac_cv_path_GREP=$GREP
   4256 fi
   4257 
   4258 fi
   4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   4260 $as_echo "$ac_cv_path_GREP" >&6; }
   4261  GREP="$ac_cv_path_GREP"
   4262 
   4263 
   4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   4265 $as_echo_n "checking for egrep... " >&6; }
   4266 if ${ac_cv_path_EGREP+:} false; then :
   4267   $as_echo_n "(cached) " >&6
   4268 else
   4269   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   4270    then ac_cv_path_EGREP="$GREP -E"
   4271    else
   4272      if test -z "$EGREP"; then
   4273   ac_path_EGREP_found=false
   4274   # Loop through the user's path and test for each of PROGNAME-LIST
   4275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   4277 do
   4278   IFS=$as_save_IFS
   4279   test -z "$as_dir" && as_dir=.
   4280     for ac_prog in egrep; do
   4281     for ac_exec_ext in '' $ac_executable_extensions; do
   4282       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   4283       as_fn_executable_p "$ac_path_EGREP" || continue
   4284 # Check for GNU ac_path_EGREP and select it if it is found.
   4285   # Check for GNU $ac_path_EGREP
   4286 case `"$ac_path_EGREP" --version 2>&1` in
   4287 *GNU*)
   4288   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   4289 *)
   4290   ac_count=0
   4291   $as_echo_n 0123456789 >"conftest.in"
   4292   while :
   4293   do
   4294     cat "conftest.in" "conftest.in" >"conftest.tmp"
   4295     mv "conftest.tmp" "conftest.in"
   4296     cp "conftest.in" "conftest.nl"
   4297     $as_echo 'EGREP' >> "conftest.nl"
   4298     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   4299     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   4300     as_fn_arith $ac_count + 1 && ac_count=$as_val
   4301     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   4302       # Best one so far, save it but keep looking for a better one
   4303       ac_cv_path_EGREP="$ac_path_EGREP"
   4304       ac_path_EGREP_max=$ac_count
   4305     fi
   4306     # 10*(2^10) chars as input seems more than enough
   4307     test $ac_count -gt 10 && break
   4308   done
   4309   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   4310 esac
   4311 
   4312       $ac_path_EGREP_found && break 3
   4313     done
   4314   done
   4315   done
   4316 IFS=$as_save_IFS
   4317   if test -z "$ac_cv_path_EGREP"; then
   4318     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   4319   fi
   4320 else
   4321   ac_cv_path_EGREP=$EGREP
   4322 fi
   4323 
   4324    fi
   4325 fi
   4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   4327 $as_echo "$ac_cv_path_EGREP" >&6; }
   4328  EGREP="$ac_cv_path_EGREP"
   4329 
   4330 
   4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   4332 $as_echo_n "checking for ANSI C header files... " >&6; }
   4333 if ${ac_cv_header_stdc+:} false; then :
   4334   $as_echo_n "(cached) " >&6
   4335 else
   4336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4337 /* end confdefs.h.  */
   4338 #include <stdlib.h>
   4339 #include <stdarg.h>
   4340 #include <string.h>
   4341 #include <float.h>
   4342 
   4343 int
   4344 main ()
   4345 {
   4346 
   4347   ;
   4348   return 0;
   4349 }
   4350 _ACEOF
   4351 if ac_fn_c_try_compile "$LINENO"; then :
   4352   ac_cv_header_stdc=yes
   4353 else
   4354   ac_cv_header_stdc=no
   4355 fi
   4356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4357 
   4358 if test $ac_cv_header_stdc = yes; then
   4359   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   4360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4361 /* end confdefs.h.  */
   4362 #include <string.h>
   4363 
   4364 _ACEOF
   4365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4366   $EGREP "memchr" >/dev/null 2>&1; then :
   4367 
   4368 else
   4369   ac_cv_header_stdc=no
   4370 fi
   4371 rm -f conftest*
   4372 
   4373 fi
   4374 
   4375 if test $ac_cv_header_stdc = yes; then
   4376   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   4377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4378 /* end confdefs.h.  */
   4379 #include <stdlib.h>
   4380 
   4381 _ACEOF
   4382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   4383   $EGREP "free" >/dev/null 2>&1; then :
   4384 
   4385 else
   4386   ac_cv_header_stdc=no
   4387 fi
   4388 rm -f conftest*
   4389 
   4390 fi
   4391 
   4392 if test $ac_cv_header_stdc = yes; then
   4393   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   4394   if test "$cross_compiling" = yes; then :
   4395   :
   4396 else
   4397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4398 /* end confdefs.h.  */
   4399 #include <ctype.h>
   4400 #include <stdlib.h>
   4401 #if ((' ' & 0x0FF) == 0x020)
   4402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   4403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   4404 #else
   4405 # define ISLOWER(c) \
   4406 		   (('a' <= (c) && (c) <= 'i') \
   4407 		     || ('j' <= (c) && (c) <= 'r') \
   4408 		     || ('s' <= (c) && (c) <= 'z'))
   4409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   4410 #endif
   4411 
   4412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   4413 int
   4414 main ()
   4415 {
   4416   int i;
   4417   for (i = 0; i < 256; i++)
   4418     if (XOR (islower (i), ISLOWER (i))
   4419 	|| toupper (i) != TOUPPER (i))
   4420       return 2;
   4421   return 0;
   4422 }
   4423 _ACEOF
   4424 if ac_fn_c_try_run "$LINENO"; then :
   4425 
   4426 else
   4427   ac_cv_header_stdc=no
   4428 fi
   4429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   4430   conftest.$ac_objext conftest.beam conftest.$ac_ext
   4431 fi
   4432 
   4433 fi
   4434 fi
   4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   4436 $as_echo "$ac_cv_header_stdc" >&6; }
   4437 if test $ac_cv_header_stdc = yes; then
   4438 
   4439 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   4440 
   4441 fi
   4442 
   4443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   4444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   4445 		  inttypes.h stdint.h unistd.h
   4446 do :
   4447   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   4448 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   4449 "
   4450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   4451   cat >>confdefs.h <<_ACEOF
   4452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   4453 _ACEOF
   4454 
   4455 fi
   4456 
   4457 done
   4458 
   4459 
   4460 
   4461   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   4462 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   4463   MINIX=yes
   4464 else
   4465   MINIX=
   4466 fi
   4467 
   4468 
   4469   if test "$MINIX" = yes; then
   4470 
   4471 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   4472 
   4473 
   4474 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   4475 
   4476 
   4477 $as_echo "#define _MINIX 1" >>confdefs.h
   4478 
   4479   fi
   4480 
   4481 
   4482   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   4483 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   4484 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   4485   $as_echo_n "(cached) " >&6
   4486 else
   4487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4488 /* end confdefs.h.  */
   4489 
   4490 #         define __EXTENSIONS__ 1
   4491           $ac_includes_default
   4492 int
   4493 main ()
   4494 {
   4495 
   4496   ;
   4497   return 0;
   4498 }
   4499 _ACEOF
   4500 if ac_fn_c_try_compile "$LINENO"; then :
   4501   ac_cv_safe_to_define___extensions__=yes
   4502 else
   4503   ac_cv_safe_to_define___extensions__=no
   4504 fi
   4505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4506 fi
   4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   4508 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   4509   test $ac_cv_safe_to_define___extensions__ = yes &&
   4510     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   4511 
   4512   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   4513 
   4514   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   4515 
   4516   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   4517 
   4518   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   4519 
   4520 
   4521 ac_aux_dir=
   4522 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   4523   if test -f "$ac_dir/install-sh"; then
   4524     ac_aux_dir=$ac_dir
   4525     ac_install_sh="$ac_aux_dir/install-sh -c"
   4526     break
   4527   elif test -f "$ac_dir/install.sh"; then
   4528     ac_aux_dir=$ac_dir
   4529     ac_install_sh="$ac_aux_dir/install.sh -c"
   4530     break
   4531   elif test -f "$ac_dir/shtool"; then
   4532     ac_aux_dir=$ac_dir
   4533     ac_install_sh="$ac_aux_dir/shtool install -c"
   4534     break
   4535   fi
   4536 done
   4537 if test -z "$ac_aux_dir"; then
   4538   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   4539 fi
   4540 
   4541 # These three variables are undocumented and unsupported,
   4542 # and are intended to be withdrawn in a future Autoconf release.
   4543 # They can cause serious problems if a builder's source tree is in a directory
   4544 # whose full name contains unusual characters.
   4545 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   4546 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   4547 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   4548 
   4549 
   4550 # Make sure we can run config.sub.
   4551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   4552   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   4553 
   4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   4555 $as_echo_n "checking build system type... " >&6; }
   4556 if ${ac_cv_build+:} false; then :
   4557   $as_echo_n "(cached) " >&6
   4558 else
   4559   ac_build_alias=$build_alias
   4560 test "x$ac_build_alias" = x &&
   4561   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   4562 test "x$ac_build_alias" = x &&
   4563   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   4564 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   4565   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   4566 
   4567 fi
   4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   4569 $as_echo "$ac_cv_build" >&6; }
   4570 case $ac_cv_build in
   4571 *-*-*) ;;
   4572 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   4573 esac
   4574 build=$ac_cv_build
   4575 ac_save_IFS=$IFS; IFS='-'
   4576 set x $ac_cv_build
   4577 shift
   4578 build_cpu=$1
   4579 build_vendor=$2
   4580 shift; shift
   4581 # Remember, the first character of IFS is used to create $*,
   4582 # except with old shells:
   4583 build_os=$*
   4584 IFS=$ac_save_IFS
   4585 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   4586 
   4587 
   4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4589 $as_echo_n "checking host system type... " >&6; }
   4590 if ${ac_cv_host+:} false; then :
   4591   $as_echo_n "(cached) " >&6
   4592 else
   4593   if test "x$host_alias" = x; then
   4594   ac_cv_host=$ac_cv_build
   4595 else
   4596   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   4597     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   4598 fi
   4599 
   4600 fi
   4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4602 $as_echo "$ac_cv_host" >&6; }
   4603 case $ac_cv_host in
   4604 *-*-*) ;;
   4605 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   4606 esac
   4607 host=$ac_cv_host
   4608 ac_save_IFS=$IFS; IFS='-'
   4609 set x $ac_cv_host
   4610 shift
   4611 host_cpu=$1
   4612 host_vendor=$2
   4613 shift; shift
   4614 # Remember, the first character of IFS is used to create $*,
   4615 # except with old shells:
   4616 host_os=$*
   4617 IFS=$ac_save_IFS
   4618 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4619 
   4620 
   4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   4622 $as_echo_n "checking target system type... " >&6; }
   4623 if ${ac_cv_target+:} false; then :
   4624   $as_echo_n "(cached) " >&6
   4625 else
   4626   if test "x$target_alias" = x; then
   4627   ac_cv_target=$ac_cv_host
   4628 else
   4629   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   4630     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   4631 fi
   4632 
   4633 fi
   4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   4635 $as_echo "$ac_cv_target" >&6; }
   4636 case $ac_cv_target in
   4637 *-*-*) ;;
   4638 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   4639 esac
   4640 target=$ac_cv_target
   4641 ac_save_IFS=$IFS; IFS='-'
   4642 set x $ac_cv_target
   4643 shift
   4644 target_cpu=$1
   4645 target_vendor=$2
   4646 shift; shift
   4647 # Remember, the first character of IFS is used to create $*,
   4648 # except with old shells:
   4649 target_os=$*
   4650 IFS=$ac_save_IFS
   4651 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   4652 
   4653 
   4654 # The aliases save the names the user supplied, while $host etc.
   4655 # will get canonicalized.
   4656 test -n "$target_alias" &&
   4657   test "$program_prefix$program_suffix$program_transform_name" = \
   4658     NONENONEs,x,x, &&
   4659   program_prefix=${target_alias}-
   4660 
   4661 # The tests for host and target for $enable_largefile require
   4662 # canonical names.
   4663 
   4664 
   4665 
   4666 # As the $enable_largefile decision depends on --enable-plugins we must set it
   4667 # even in directories otherwise not depending on the $plugins option.
   4668 
   4669 
   4670   maybe_plugins=no
   4671   for ac_header in dlfcn.h
   4672 do :
   4673   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   4674 "
   4675 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   4676   cat >>confdefs.h <<_ACEOF
   4677 #define HAVE_DLFCN_H 1
   4678 _ACEOF
   4679  maybe_plugins=yes
   4680 fi
   4681 
   4682 done
   4683 
   4684   for ac_header in windows.h
   4685 do :
   4686   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
   4687 "
   4688 if test "x$ac_cv_header_windows_h" = xyes; then :
   4689   cat >>confdefs.h <<_ACEOF
   4690 #define HAVE_WINDOWS_H 1
   4691 _ACEOF
   4692  maybe_plugins=yes
   4693 fi
   4694 
   4695 done
   4696 
   4697 
   4698   # Check whether --enable-plugins was given.
   4699 if test "${enable_plugins+set}" = set; then :
   4700   enableval=$enable_plugins; case "${enableval}" in
   4701       no) plugins=no ;;
   4702       *) plugins=yes
   4703          if test "$maybe_plugins" != "yes" ; then
   4704 	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
   4705 	 fi ;;
   4706      esac
   4707 else
   4708   plugins=$maybe_plugins
   4709 
   4710 fi
   4711 
   4712   if test "$plugins" = "yes"; then
   4713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
   4714 $as_echo_n "checking for library containing dlsym... " >&6; }
   4715 if ${ac_cv_search_dlsym+:} false; then :
   4716   $as_echo_n "(cached) " >&6
   4717 else
   4718   ac_func_search_save_LIBS=$LIBS
   4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4720 /* end confdefs.h.  */
   4721 
   4722 /* Override any GCC internal prototype to avoid an error.
   4723    Use char because int might match the return type of a GCC
   4724    builtin and then its argument prototype would still apply.  */
   4725 #ifdef __cplusplus
   4726 extern "C"
   4727 #endif
   4728 char dlsym ();
   4729 int
   4730 main ()
   4731 {
   4732 return dlsym ();
   4733   ;
   4734   return 0;
   4735 }
   4736 _ACEOF
   4737 for ac_lib in '' dl; do
   4738   if test -z "$ac_lib"; then
   4739     ac_res="none required"
   4740   else
   4741     ac_res=-l$ac_lib
   4742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   4743   fi
   4744   if ac_fn_c_try_link "$LINENO"; then :
   4745   ac_cv_search_dlsym=$ac_res
   4746 fi
   4747 rm -f core conftest.err conftest.$ac_objext \
   4748     conftest$ac_exeext
   4749   if ${ac_cv_search_dlsym+:} false; then :
   4750   break
   4751 fi
   4752 done
   4753 if ${ac_cv_search_dlsym+:} false; then :
   4754 
   4755 else
   4756   ac_cv_search_dlsym=no
   4757 fi
   4758 rm conftest.$ac_ext
   4759 LIBS=$ac_func_search_save_LIBS
   4760 fi
   4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
   4762 $as_echo "$ac_cv_search_dlsym" >&6; }
   4763 ac_res=$ac_cv_search_dlsym
   4764 if test "$ac_res" != no; then :
   4765   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   4766 
   4767 fi
   4768 
   4769   fi
   4770 
   4771 
   4772 case "${host}" in
   4773   sparc-*-solaris*|i?86-*-solaris*)
   4774     # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
   4775     # were mutually exclusive until Solaris 11.3.  Without procfs support,
   4776     # the bfd/ elf module cannot provide certain routines such as
   4777     # elfcore_write_prpsinfo or elfcore_write_prstatus.  So unless the user
   4778     # explicitly requested large-file support through the
   4779     # --enable-largefile switch, disable large-file support in favor of
   4780     # procfs support.
   4781     #
   4782     # Check if <sys/procfs.h> is incompatible with large-file support.
   4783     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4784 /* end confdefs.h.  */
   4785 #define _FILE_OFFSET_BITS 64
   4786 #define _STRUCTURED_PROC 1
   4787 #include <sys/procfs.h>
   4788 int
   4789 main ()
   4790 {
   4791 
   4792   ;
   4793   return 0;
   4794 }
   4795 _ACEOF
   4796 if ac_fn_c_try_compile "$LINENO"; then :
   4797   acx_cv_procfs_lfs=yes
   4798 else
   4799   acx_cv_procfs_lfs=no
   4800 fi
   4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4802     #
   4803     # Forcefully disable large-file support only if necessary, gdb is in
   4804     # tree and enabled.
   4805     if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
   4806          -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
   4807       : ${enable_largefile="no"}
   4808       if test "$plugins" = yes; then
   4809 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
   4810 plugin support disabled; require large-file support which is incompatible with GDB." >&5
   4811 $as_echo "$as_me: WARNING:
   4812 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
   4813 	plugins=no
   4814       fi
   4815     fi
   4816     #
   4817     # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
   4818     # benefit of g++ 9+ which predefines it on Solaris.
   4819     if test "$enable_largefile" = no; then
   4820       LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
   4821 
   4822     fi
   4823     ;;
   4824 esac
   4825 
   4826 # Check whether --enable-largefile was given.
   4827 if test "${enable_largefile+set}" = set; then :
   4828   enableval=$enable_largefile;
   4829 fi
   4830 
   4831 if test "$enable_largefile" != no; then
   4832 
   4833   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   4834 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4835 if ${ac_cv_sys_largefile_CC+:} false; then :
   4836   $as_echo_n "(cached) " >&6
   4837 else
   4838   ac_cv_sys_largefile_CC=no
   4839      if test "$GCC" != yes; then
   4840        ac_save_CC=$CC
   4841        while :; do
   4842 	 # IRIX 6.2 and later do not support large files by default,
   4843 	 # so use the C compiler's -n32 option if that helps.
   4844 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4845 /* end confdefs.h.  */
   4846 #include <sys/types.h>
   4847  /* Check that off_t can represent 2**63 - 1 correctly.
   4848     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4849     since some C++ compilers masquerading as C compilers
   4850     incorrectly reject 9223372036854775807.  */
   4851 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4852   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4853 		       && LARGE_OFF_T % 2147483647 == 1)
   4854 		      ? 1 : -1];
   4855 int
   4856 main ()
   4857 {
   4858 
   4859   ;
   4860   return 0;
   4861 }
   4862 _ACEOF
   4863 	 if ac_fn_c_try_compile "$LINENO"; then :
   4864   break
   4865 fi
   4866 rm -f core conftest.err conftest.$ac_objext
   4867 	 CC="$CC -n32"
   4868 	 if ac_fn_c_try_compile "$LINENO"; then :
   4869   ac_cv_sys_largefile_CC=' -n32'; break
   4870 fi
   4871 rm -f core conftest.err conftest.$ac_objext
   4872 	 break
   4873        done
   4874        CC=$ac_save_CC
   4875        rm -f conftest.$ac_ext
   4876     fi
   4877 fi
   4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4879 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4880   if test "$ac_cv_sys_largefile_CC" != no; then
   4881     CC=$CC$ac_cv_sys_largefile_CC
   4882   fi
   4883 
   4884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4885 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4886 if ${ac_cv_sys_file_offset_bits+:} false; then :
   4887   $as_echo_n "(cached) " >&6
   4888 else
   4889   while :; do
   4890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4891 /* end confdefs.h.  */
   4892 #include <sys/types.h>
   4893  /* Check that off_t can represent 2**63 - 1 correctly.
   4894     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4895     since some C++ compilers masquerading as C compilers
   4896     incorrectly reject 9223372036854775807.  */
   4897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4898   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4899 		       && LARGE_OFF_T % 2147483647 == 1)
   4900 		      ? 1 : -1];
   4901 int
   4902 main ()
   4903 {
   4904 
   4905   ;
   4906   return 0;
   4907 }
   4908 _ACEOF
   4909 if ac_fn_c_try_compile "$LINENO"; then :
   4910   ac_cv_sys_file_offset_bits=no; break
   4911 fi
   4912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4914 /* end confdefs.h.  */
   4915 #define _FILE_OFFSET_BITS 64
   4916 #include <sys/types.h>
   4917  /* Check that off_t can represent 2**63 - 1 correctly.
   4918     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4919     since some C++ compilers masquerading as C compilers
   4920     incorrectly reject 9223372036854775807.  */
   4921 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4922   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4923 		       && LARGE_OFF_T % 2147483647 == 1)
   4924 		      ? 1 : -1];
   4925 int
   4926 main ()
   4927 {
   4928 
   4929   ;
   4930   return 0;
   4931 }
   4932 _ACEOF
   4933 if ac_fn_c_try_compile "$LINENO"; then :
   4934   ac_cv_sys_file_offset_bits=64; break
   4935 fi
   4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4937   ac_cv_sys_file_offset_bits=unknown
   4938   break
   4939 done
   4940 fi
   4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4942 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4943 case $ac_cv_sys_file_offset_bits in #(
   4944   no | unknown) ;;
   4945   *)
   4946 cat >>confdefs.h <<_ACEOF
   4947 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4948 _ACEOF
   4949 ;;
   4950 esac
   4951 rm -rf conftest*
   4952   if test $ac_cv_sys_file_offset_bits = unknown; then
   4953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4954 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4955 if ${ac_cv_sys_large_files+:} false; then :
   4956   $as_echo_n "(cached) " >&6
   4957 else
   4958   while :; do
   4959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4960 /* end confdefs.h.  */
   4961 #include <sys/types.h>
   4962  /* Check that off_t can represent 2**63 - 1 correctly.
   4963     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4964     since some C++ compilers masquerading as C compilers
   4965     incorrectly reject 9223372036854775807.  */
   4966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4967   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4968 		       && LARGE_OFF_T % 2147483647 == 1)
   4969 		      ? 1 : -1];
   4970 int
   4971 main ()
   4972 {
   4973 
   4974   ;
   4975   return 0;
   4976 }
   4977 _ACEOF
   4978 if ac_fn_c_try_compile "$LINENO"; then :
   4979   ac_cv_sys_large_files=no; break
   4980 fi
   4981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4983 /* end confdefs.h.  */
   4984 #define _LARGE_FILES 1
   4985 #include <sys/types.h>
   4986  /* Check that off_t can represent 2**63 - 1 correctly.
   4987     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4988     since some C++ compilers masquerading as C compilers
   4989     incorrectly reject 9223372036854775807.  */
   4990 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4991   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4992 		       && LARGE_OFF_T % 2147483647 == 1)
   4993 		      ? 1 : -1];
   4994 int
   4995 main ()
   4996 {
   4997 
   4998   ;
   4999   return 0;
   5000 }
   5001 _ACEOF
   5002 if ac_fn_c_try_compile "$LINENO"; then :
   5003   ac_cv_sys_large_files=1; break
   5004 fi
   5005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5006   ac_cv_sys_large_files=unknown
   5007   break
   5008 done
   5009 fi
   5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   5011 $as_echo "$ac_cv_sys_large_files" >&6; }
   5012 case $ac_cv_sys_large_files in #(
   5013   no | unknown) ;;
   5014   *)
   5015 cat >>confdefs.h <<_ACEOF
   5016 #define _LARGE_FILES $ac_cv_sys_large_files
   5017 _ACEOF
   5018 ;;
   5019 esac
   5020 rm -rf conftest*
   5021   fi
   5022 
   5023 
   5024 fi
   5025 
   5026 
   5027 
   5028 
   5029 
   5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
   5031 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
   5032 if ${am_cv_prog_cc_stdc+:} false; then :
   5033   $as_echo_n "(cached) " >&6
   5034 else
   5035   am_cv_prog_cc_stdc=no
   5036 ac_save_CC="$CC"
   5037 # Don't try gcc -ansi; that turns off useful extensions and
   5038 # breaks some systems' header files.
   5039 # AIX			-qlanglvl=ansi
   5040 # Ultrix and OSF/1	-std1
   5041 # HP-UX 10.20 and later	-Ae
   5042 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   5043 # SVR4			-Xc -D__EXTENSIONS__
   5044 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   5045 do
   5046   CC="$ac_save_CC $ac_arg"
   5047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5048 /* end confdefs.h.  */
   5049 #include <stdarg.h>
   5050 #include <stdio.h>
   5051 #include <sys/types.h>
   5052 #include <sys/stat.h>
   5053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   5054 struct buf { int x; };
   5055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   5056 static char *e (p, i)
   5057      char **p;
   5058      int i;
   5059 {
   5060   return p[i];
   5061 }
   5062 static char *f (char * (*g) (char **, int), char **p, ...)
   5063 {
   5064   char *s;
   5065   va_list v;
   5066   va_start (v,p);
   5067   s = g (p, va_arg (v,int));
   5068   va_end (v);
   5069   return s;
   5070 }
   5071 int test (int i, double x);
   5072 struct s1 {int (*f) (int a);};
   5073 struct s2 {int (*f) (double a);};
   5074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   5075 int argc;
   5076 char **argv;
   5077 
   5078 int
   5079 main ()
   5080 {
   5081 
   5082 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   5083 
   5084   ;
   5085   return 0;
   5086 }
   5087 _ACEOF
   5088 if ac_fn_c_try_compile "$LINENO"; then :
   5089   am_cv_prog_cc_stdc="$ac_arg"; break
   5090 fi
   5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5092 done
   5093 CC="$ac_save_CC"
   5094 
   5095 fi
   5096 
   5097 if test -z "$am_cv_prog_cc_stdc"; then
   5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   5099 $as_echo "none needed" >&6; }
   5100 else
   5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
   5102 $as_echo "$am_cv_prog_cc_stdc" >&6; }
   5103 fi
   5104 case "x$am_cv_prog_cc_stdc" in
   5105   x|xno) ;;
   5106   *) CC="$CC $am_cv_prog_cc_stdc" ;;
   5107 esac
   5108 
   5109 # Expand $ac_aux_dir to an absolute path.
   5110 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   5111 
   5112 if test x"${install_sh+set}" != xset; then
   5113   case $am_aux_dir in
   5114   *\ * | *\	*)
   5115     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   5116   *)
   5117     install_sh="\${SHELL} $am_aux_dir/install-sh"
   5118   esac
   5119 fi
   5120 
   5121 # Installed binaries are usually stripped using 'strip' when the user
   5122 # run "make install-strip".  However 'strip' might not be the right
   5123 # tool to use in cross-compilation environments, therefore Automake
   5124 # will honor the 'STRIP' environment variable to overrule this program.
   5125 if test "$cross_compiling" != no; then
   5126   if test -n "$ac_tool_prefix"; then
   5127   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   5128 set dummy ${ac_tool_prefix}strip; ac_word=$2
   5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5130 $as_echo_n "checking for $ac_word... " >&6; }
   5131 if ${ac_cv_prog_STRIP+:} false; then :
   5132   $as_echo_n "(cached) " >&6
   5133 else
   5134   if test -n "$STRIP"; then
   5135   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   5136 else
   5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5138 for as_dir in $PATH
   5139 do
   5140   IFS=$as_save_IFS
   5141   test -z "$as_dir" && as_dir=.
   5142     for ac_exec_ext in '' $ac_executable_extensions; do
   5143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5144     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   5145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5146     break 2
   5147   fi
   5148 done
   5149   done
   5150 IFS=$as_save_IFS
   5151 
   5152 fi
   5153 fi
   5154 STRIP=$ac_cv_prog_STRIP
   5155 if test -n "$STRIP"; then
   5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   5157 $as_echo "$STRIP" >&6; }
   5158 else
   5159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5160 $as_echo "no" >&6; }
   5161 fi
   5162 
   5163 
   5164 fi
   5165 if test -z "$ac_cv_prog_STRIP"; then
   5166   ac_ct_STRIP=$STRIP
   5167   # Extract the first word of "strip", so it can be a program name with args.
   5168 set dummy strip; ac_word=$2
   5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5170 $as_echo_n "checking for $ac_word... " >&6; }
   5171 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   5172   $as_echo_n "(cached) " >&6
   5173 else
   5174   if test -n "$ac_ct_STRIP"; then
   5175   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   5176 else
   5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5178 for as_dir in $PATH
   5179 do
   5180   IFS=$as_save_IFS
   5181   test -z "$as_dir" && as_dir=.
   5182     for ac_exec_ext in '' $ac_executable_extensions; do
   5183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5184     ac_cv_prog_ac_ct_STRIP="strip"
   5185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5186     break 2
   5187   fi
   5188 done
   5189   done
   5190 IFS=$as_save_IFS
   5191 
   5192 fi
   5193 fi
   5194 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   5195 if test -n "$ac_ct_STRIP"; then
   5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   5197 $as_echo "$ac_ct_STRIP" >&6; }
   5198 else
   5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5200 $as_echo "no" >&6; }
   5201 fi
   5202 
   5203   if test "x$ac_ct_STRIP" = x; then
   5204     STRIP=":"
   5205   else
   5206     case $cross_compiling:$ac_tool_warned in
   5207 yes:)
   5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5210 ac_tool_warned=yes ;;
   5211 esac
   5212     STRIP=$ac_ct_STRIP
   5213   fi
   5214 else
   5215   STRIP="$ac_cv_prog_STRIP"
   5216 fi
   5217 
   5218 fi
   5219 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   5220 
   5221 
   5222 ac_aux_dir=
   5223 for ac_dir in .. "$srcdir"/..; do
   5224   if test -f "$ac_dir/install-sh"; then
   5225     ac_aux_dir=$ac_dir
   5226     ac_install_sh="$ac_aux_dir/install-sh -c"
   5227     break
   5228   elif test -f "$ac_dir/install.sh"; then
   5229     ac_aux_dir=$ac_dir
   5230     ac_install_sh="$ac_aux_dir/install.sh -c"
   5231     break
   5232   elif test -f "$ac_dir/shtool"; then
   5233     ac_aux_dir=$ac_dir
   5234     ac_install_sh="$ac_aux_dir/shtool install -c"
   5235     break
   5236   fi
   5237 done
   5238 if test -z "$ac_aux_dir"; then
   5239   as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
   5240 fi
   5241 
   5242 # These three variables are undocumented and unsupported,
   5243 # and are intended to be withdrawn in a future Autoconf release.
   5244 # They can cause serious problems if a builder's source tree is in a directory
   5245 # whose full name contains unusual characters.
   5246 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   5247 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   5248 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   5249 
   5250 
   5251 
   5252 test "$program_prefix" != NONE &&
   5253   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   5254 # Use a double $ so make ignores it.
   5255 test "$program_suffix" != NONE &&
   5256   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   5257 # Double any \ or $.
   5258 # By default was `s,x,x', remove it if useless.
   5259 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   5260 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   5261 
   5262 
   5263 # We require a C++11 compiler.  Check if one is available, and if
   5264 # necessary, set CXX_DIALECT to some -std=xxx switch.
   5265 
   5266   ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
   5267   ac_ext=cpp
   5268 ac_cpp='$CXXCPP $CPPFLAGS'
   5269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5272   CXX_DIALECT=""
   5273   ac_success=no
   5274   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
   5275 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
   5276 if ${ax_cv_cxx_compile_cxx11+:} false; then :
   5277   $as_echo_n "(cached) " >&6
   5278 else
   5279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5280 /* end confdefs.h.  */
   5281 
   5282 
   5283 // If the compiler admits that it is not ready for C++11, why torture it?
   5284 // Hopefully, this will speed up the test.
   5285 
   5286 #ifndef __cplusplus
   5287 
   5288 #error "This is not a C++ compiler"
   5289 
   5290 #elif __cplusplus < 201103L
   5291 
   5292 #error "This is not a C++11 compiler"
   5293 
   5294 #else
   5295 
   5296 namespace cxx11
   5297 {
   5298 
   5299   namespace test_static_assert
   5300   {
   5301 
   5302     template <typename T>
   5303     struct check
   5304     {
   5305       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5306     };
   5307 
   5308   }
   5309 
   5310   namespace test_final_override
   5311   {
   5312 
   5313     struct Base
   5314     {
   5315       virtual void f() {}
   5316     };
   5317 
   5318     struct Derived : public Base
   5319     {
   5320       virtual void f() override {}
   5321     };
   5322 
   5323   }
   5324 
   5325   namespace test_double_right_angle_brackets
   5326   {
   5327 
   5328     template < typename T >
   5329     struct check {};
   5330 
   5331     typedef check<void> single_type;
   5332     typedef check<check<void>> double_type;
   5333     typedef check<check<check<void>>> triple_type;
   5334     typedef check<check<check<check<void>>>> quadruple_type;
   5335 
   5336   }
   5337 
   5338   namespace test_decltype
   5339   {
   5340 
   5341     int
   5342     f()
   5343     {
   5344       int a = 1;
   5345       decltype(a) b = 2;
   5346       return a + b;
   5347     }
   5348 
   5349   }
   5350 
   5351   namespace test_type_deduction
   5352   {
   5353 
   5354     template < typename T1, typename T2 >
   5355     struct is_same
   5356     {
   5357       static const bool value = false;
   5358     };
   5359 
   5360     template < typename T >
   5361     struct is_same<T, T>
   5362     {
   5363       static const bool value = true;
   5364     };
   5365 
   5366     template < typename T1, typename T2 >
   5367     auto
   5368     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   5369     {
   5370       return a1 + a2;
   5371     }
   5372 
   5373     int
   5374     test(const int c, volatile int v)
   5375     {
   5376       static_assert(is_same<int, decltype(0)>::value == true, "");
   5377       static_assert(is_same<int, decltype(c)>::value == false, "");
   5378       static_assert(is_same<int, decltype(v)>::value == false, "");
   5379       auto ac = c;
   5380       auto av = v;
   5381       auto sumi = ac + av + 'x';
   5382       auto sumf = ac + av + 1.0;
   5383       static_assert(is_same<int, decltype(ac)>::value == true, "");
   5384       static_assert(is_same<int, decltype(av)>::value == true, "");
   5385       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   5386       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   5387       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   5388       return (sumf > 0.0) ? sumi : add(c, v);
   5389     }
   5390 
   5391   }
   5392 
   5393   namespace test_noexcept
   5394   {
   5395 
   5396     int f() { return 0; }
   5397     int g() noexcept { return 0; }
   5398 
   5399     static_assert(noexcept(f()) == false, "");
   5400     static_assert(noexcept(g()) == true, "");
   5401 
   5402   }
   5403 
   5404   namespace test_constexpr
   5405   {
   5406 
   5407     template < typename CharT >
   5408     unsigned long constexpr
   5409     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   5410     {
   5411       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   5412     }
   5413 
   5414     template < typename CharT >
   5415     unsigned long constexpr
   5416     strlen_c(const CharT *const s) noexcept
   5417     {
   5418       return strlen_c_r(s, 0UL);
   5419     }
   5420 
   5421     static_assert(strlen_c("") == 0UL, "");
   5422     static_assert(strlen_c("1") == 1UL, "");
   5423     static_assert(strlen_c("example") == 7UL, "");
   5424     static_assert(strlen_c("another\0example") == 7UL, "");
   5425 
   5426   }
   5427 
   5428   namespace test_rvalue_references
   5429   {
   5430 
   5431     template < int N >
   5432     struct answer
   5433     {
   5434       static constexpr int value = N;
   5435     };
   5436 
   5437     answer<1> f(int&)       { return answer<1>(); }
   5438     answer<2> f(const int&) { return answer<2>(); }
   5439     answer<3> f(int&&)      { return answer<3>(); }
   5440 
   5441     void
   5442     test()
   5443     {
   5444       int i = 0;
   5445       const int c = 0;
   5446       static_assert(decltype(f(i))::value == 1, "");
   5447       static_assert(decltype(f(c))::value == 2, "");
   5448       static_assert(decltype(f(0))::value == 3, "");
   5449     }
   5450 
   5451   }
   5452 
   5453   namespace test_uniform_initialization
   5454   {
   5455 
   5456     struct test
   5457     {
   5458       static const int zero {};
   5459       static const int one {1};
   5460     };
   5461 
   5462     static_assert(test::zero == 0, "");
   5463     static_assert(test::one == 1, "");
   5464 
   5465   }
   5466 
   5467   namespace test_lambdas
   5468   {
   5469 
   5470     void
   5471     test1()
   5472     {
   5473       auto lambda1 = [](){};
   5474       auto lambda2 = lambda1;
   5475       lambda1();
   5476       lambda2();
   5477     }
   5478 
   5479     int
   5480     test2()
   5481     {
   5482       auto a = [](int i, int j){ return i + j; }(1, 2);
   5483       auto b = []() -> int { return '0'; }();
   5484       auto c = [=](){ return a + b; }();
   5485       auto d = [&](){ return c; }();
   5486       auto e = [a, &b](int x) mutable {
   5487         const auto identity = [](int y){ return y; };
   5488         for (auto i = 0; i < a; ++i)
   5489           a += b--;
   5490         return x + identity(a + b);
   5491       }(0);
   5492       return a + b + c + d + e;
   5493     }
   5494 
   5495     int
   5496     test3()
   5497     {
   5498       const auto nullary = [](){ return 0; };
   5499       const auto unary = [](int x){ return x; };
   5500       using nullary_t = decltype(nullary);
   5501       using unary_t = decltype(unary);
   5502       const auto higher1st = [](nullary_t f){ return f(); };
   5503       const auto higher2nd = [unary](nullary_t f1){
   5504         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   5505       };
   5506       return higher1st(nullary) + higher2nd(nullary)(unary);
   5507     }
   5508 
   5509   }
   5510 
   5511   namespace test_variadic_templates
   5512   {
   5513 
   5514     template <int...>
   5515     struct sum;
   5516 
   5517     template <int N0, int... N1toN>
   5518     struct sum<N0, N1toN...>
   5519     {
   5520       static constexpr auto value = N0 + sum<N1toN...>::value;
   5521     };
   5522 
   5523     template <>
   5524     struct sum<>
   5525     {
   5526       static constexpr auto value = 0;
   5527     };
   5528 
   5529     static_assert(sum<>::value == 0, "");
   5530     static_assert(sum<1>::value == 1, "");
   5531     static_assert(sum<23>::value == 23, "");
   5532     static_assert(sum<1, 2>::value == 3, "");
   5533     static_assert(sum<5, 5, 11>::value == 21, "");
   5534     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   5535 
   5536   }
   5537 
   5538   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   5539   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   5540   // because of this.
   5541   namespace test_template_alias_sfinae
   5542   {
   5543 
   5544     struct foo {};
   5545 
   5546     template<typename T>
   5547     using member = typename T::member_type;
   5548 
   5549     template<typename T>
   5550     void func(...) {}
   5551 
   5552     template<typename T>
   5553     void func(member<T>*) {}
   5554 
   5555     void test();
   5556 
   5557     void test() { func<foo>(0); }
   5558 
   5559   }
   5560 
   5561 }  // namespace cxx11
   5562 
   5563 #endif  // __cplusplus >= 201103L
   5564 
   5565 
   5566 
   5567 _ACEOF
   5568 if ac_fn_cxx_try_compile "$LINENO"; then :
   5569   ax_cv_cxx_compile_cxx11=yes
   5570 else
   5571   ax_cv_cxx_compile_cxx11=no
   5572 fi
   5573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5574 fi
   5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
   5576 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
   5577   if test x$ax_cv_cxx_compile_cxx11 = xyes; then
   5578     ac_success=yes
   5579   fi
   5580 
   5581     if test x$ac_success = xno; then
   5582     for alternative in ${ax_cxx_compile_alternatives}; do
   5583       switch="-std=gnu++${alternative}"
   5584       cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
   5585       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
   5586 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
   5587 if eval \${$cachevar+:} false; then :
   5588   $as_echo_n "(cached) " >&6
   5589 else
   5590   ac_save_CXX="$CXX"
   5591          CXX="$CXX $switch"
   5592          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5593 /* end confdefs.h.  */
   5594 
   5595 
   5596 // If the compiler admits that it is not ready for C++11, why torture it?
   5597 // Hopefully, this will speed up the test.
   5598 
   5599 #ifndef __cplusplus
   5600 
   5601 #error "This is not a C++ compiler"
   5602 
   5603 #elif __cplusplus < 201103L
   5604 
   5605 #error "This is not a C++11 compiler"
   5606 
   5607 #else
   5608 
   5609 namespace cxx11
   5610 {
   5611 
   5612   namespace test_static_assert
   5613   {
   5614 
   5615     template <typename T>
   5616     struct check
   5617     {
   5618       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5619     };
   5620 
   5621   }
   5622 
   5623   namespace test_final_override
   5624   {
   5625 
   5626     struct Base
   5627     {
   5628       virtual void f() {}
   5629     };
   5630 
   5631     struct Derived : public Base
   5632     {
   5633       virtual void f() override {}
   5634     };
   5635 
   5636   }
   5637 
   5638   namespace test_double_right_angle_brackets
   5639   {
   5640 
   5641     template < typename T >
   5642     struct check {};
   5643 
   5644     typedef check<void> single_type;
   5645     typedef check<check<void>> double_type;
   5646     typedef check<check<check<void>>> triple_type;
   5647     typedef check<check<check<check<void>>>> quadruple_type;
   5648 
   5649   }
   5650 
   5651   namespace test_decltype
   5652   {
   5653 
   5654     int
   5655     f()
   5656     {
   5657       int a = 1;
   5658       decltype(a) b = 2;
   5659       return a + b;
   5660     }
   5661 
   5662   }
   5663 
   5664   namespace test_type_deduction
   5665   {
   5666 
   5667     template < typename T1, typename T2 >
   5668     struct is_same
   5669     {
   5670       static const bool value = false;
   5671     };
   5672 
   5673     template < typename T >
   5674     struct is_same<T, T>
   5675     {
   5676       static const bool value = true;
   5677     };
   5678 
   5679     template < typename T1, typename T2 >
   5680     auto
   5681     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   5682     {
   5683       return a1 + a2;
   5684     }
   5685 
   5686     int
   5687     test(const int c, volatile int v)
   5688     {
   5689       static_assert(is_same<int, decltype(0)>::value == true, "");
   5690       static_assert(is_same<int, decltype(c)>::value == false, "");
   5691       static_assert(is_same<int, decltype(v)>::value == false, "");
   5692       auto ac = c;
   5693       auto av = v;
   5694       auto sumi = ac + av + 'x';
   5695       auto sumf = ac + av + 1.0;
   5696       static_assert(is_same<int, decltype(ac)>::value == true, "");
   5697       static_assert(is_same<int, decltype(av)>::value == true, "");
   5698       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   5699       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   5700       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   5701       return (sumf > 0.0) ? sumi : add(c, v);
   5702     }
   5703 
   5704   }
   5705 
   5706   namespace test_noexcept
   5707   {
   5708 
   5709     int f() { return 0; }
   5710     int g() noexcept { return 0; }
   5711 
   5712     static_assert(noexcept(f()) == false, "");
   5713     static_assert(noexcept(g()) == true, "");
   5714 
   5715   }
   5716 
   5717   namespace test_constexpr
   5718   {
   5719 
   5720     template < typename CharT >
   5721     unsigned long constexpr
   5722     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   5723     {
   5724       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   5725     }
   5726 
   5727     template < typename CharT >
   5728     unsigned long constexpr
   5729     strlen_c(const CharT *const s) noexcept
   5730     {
   5731       return strlen_c_r(s, 0UL);
   5732     }
   5733 
   5734     static_assert(strlen_c("") == 0UL, "");
   5735     static_assert(strlen_c("1") == 1UL, "");
   5736     static_assert(strlen_c("example") == 7UL, "");
   5737     static_assert(strlen_c("another\0example") == 7UL, "");
   5738 
   5739   }
   5740 
   5741   namespace test_rvalue_references
   5742   {
   5743 
   5744     template < int N >
   5745     struct answer
   5746     {
   5747       static constexpr int value = N;
   5748     };
   5749 
   5750     answer<1> f(int&)       { return answer<1>(); }
   5751     answer<2> f(const int&) { return answer<2>(); }
   5752     answer<3> f(int&&)      { return answer<3>(); }
   5753 
   5754     void
   5755     test()
   5756     {
   5757       int i = 0;
   5758       const int c = 0;
   5759       static_assert(decltype(f(i))::value == 1, "");
   5760       static_assert(decltype(f(c))::value == 2, "");
   5761       static_assert(decltype(f(0))::value == 3, "");
   5762     }
   5763 
   5764   }
   5765 
   5766   namespace test_uniform_initialization
   5767   {
   5768 
   5769     struct test
   5770     {
   5771       static const int zero {};
   5772       static const int one {1};
   5773     };
   5774 
   5775     static_assert(test::zero == 0, "");
   5776     static_assert(test::one == 1, "");
   5777 
   5778   }
   5779 
   5780   namespace test_lambdas
   5781   {
   5782 
   5783     void
   5784     test1()
   5785     {
   5786       auto lambda1 = [](){};
   5787       auto lambda2 = lambda1;
   5788       lambda1();
   5789       lambda2();
   5790     }
   5791 
   5792     int
   5793     test2()
   5794     {
   5795       auto a = [](int i, int j){ return i + j; }(1, 2);
   5796       auto b = []() -> int { return '0'; }();
   5797       auto c = [=](){ return a + b; }();
   5798       auto d = [&](){ return c; }();
   5799       auto e = [a, &b](int x) mutable {
   5800         const auto identity = [](int y){ return y; };
   5801         for (auto i = 0; i < a; ++i)
   5802           a += b--;
   5803         return x + identity(a + b);
   5804       }(0);
   5805       return a + b + c + d + e;
   5806     }
   5807 
   5808     int
   5809     test3()
   5810     {
   5811       const auto nullary = [](){ return 0; };
   5812       const auto unary = [](int x){ return x; };
   5813       using nullary_t = decltype(nullary);
   5814       using unary_t = decltype(unary);
   5815       const auto higher1st = [](nullary_t f){ return f(); };
   5816       const auto higher2nd = [unary](nullary_t f1){
   5817         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   5818       };
   5819       return higher1st(nullary) + higher2nd(nullary)(unary);
   5820     }
   5821 
   5822   }
   5823 
   5824   namespace test_variadic_templates
   5825   {
   5826 
   5827     template <int...>
   5828     struct sum;
   5829 
   5830     template <int N0, int... N1toN>
   5831     struct sum<N0, N1toN...>
   5832     {
   5833       static constexpr auto value = N0 + sum<N1toN...>::value;
   5834     };
   5835 
   5836     template <>
   5837     struct sum<>
   5838     {
   5839       static constexpr auto value = 0;
   5840     };
   5841 
   5842     static_assert(sum<>::value == 0, "");
   5843     static_assert(sum<1>::value == 1, "");
   5844     static_assert(sum<23>::value == 23, "");
   5845     static_assert(sum<1, 2>::value == 3, "");
   5846     static_assert(sum<5, 5, 11>::value == 21, "");
   5847     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   5848 
   5849   }
   5850 
   5851   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   5852   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   5853   // because of this.
   5854   namespace test_template_alias_sfinae
   5855   {
   5856 
   5857     struct foo {};
   5858 
   5859     template<typename T>
   5860     using member = typename T::member_type;
   5861 
   5862     template<typename T>
   5863     void func(...) {}
   5864 
   5865     template<typename T>
   5866     void func(member<T>*) {}
   5867 
   5868     void test();
   5869 
   5870     void test() { func<foo>(0); }
   5871 
   5872   }
   5873 
   5874 }  // namespace cxx11
   5875 
   5876 #endif  // __cplusplus >= 201103L
   5877 
   5878 
   5879 
   5880 _ACEOF
   5881 if ac_fn_cxx_try_compile "$LINENO"; then :
   5882   eval $cachevar=yes
   5883 else
   5884   eval $cachevar=no
   5885 fi
   5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5887          CXX="$ac_save_CXX"
   5888 fi
   5889 eval ac_res=\$$cachevar
   5890 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   5891 $as_echo "$ac_res" >&6; }
   5892       if eval test x\$$cachevar = xyes; then
   5893         CXX_DIALECT="$switch"
   5894         ac_success=yes
   5895         break
   5896       fi
   5897     done
   5898   fi
   5899 
   5900     if test x$ac_success = xno; then
   5901                 for alternative in ${ax_cxx_compile_alternatives}; do
   5902       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
   5903         cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
   5904         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
   5905 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
   5906 if eval \${$cachevar+:} false; then :
   5907   $as_echo_n "(cached) " >&6
   5908 else
   5909   ac_save_CXX="$CXX"
   5910            CXX="$CXX $switch"
   5911            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5912 /* end confdefs.h.  */
   5913 
   5914 
   5915 // If the compiler admits that it is not ready for C++11, why torture it?
   5916 // Hopefully, this will speed up the test.
   5917 
   5918 #ifndef __cplusplus
   5919 
   5920 #error "This is not a C++ compiler"
   5921 
   5922 #elif __cplusplus < 201103L
   5923 
   5924 #error "This is not a C++11 compiler"
   5925 
   5926 #else
   5927 
   5928 namespace cxx11
   5929 {
   5930 
   5931   namespace test_static_assert
   5932   {
   5933 
   5934     template <typename T>
   5935     struct check
   5936     {
   5937       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5938     };
   5939 
   5940   }
   5941 
   5942   namespace test_final_override
   5943   {
   5944 
   5945     struct Base
   5946     {
   5947       virtual void f() {}
   5948     };
   5949 
   5950     struct Derived : public Base
   5951     {
   5952       virtual void f() override {}
   5953     };
   5954 
   5955   }
   5956 
   5957   namespace test_double_right_angle_brackets
   5958   {
   5959 
   5960     template < typename T >
   5961     struct check {};
   5962 
   5963     typedef check<void> single_type;
   5964     typedef check<check<void>> double_type;
   5965     typedef check<check<check<void>>> triple_type;
   5966     typedef check<check<check<check<void>>>> quadruple_type;
   5967 
   5968   }
   5969 
   5970   namespace test_decltype
   5971   {
   5972 
   5973     int
   5974     f()
   5975     {
   5976       int a = 1;
   5977       decltype(a) b = 2;
   5978       return a + b;
   5979     }
   5980 
   5981   }
   5982 
   5983   namespace test_type_deduction
   5984   {
   5985 
   5986     template < typename T1, typename T2 >
   5987     struct is_same
   5988     {
   5989       static const bool value = false;
   5990     };
   5991 
   5992     template < typename T >
   5993     struct is_same<T, T>
   5994     {
   5995       static const bool value = true;
   5996     };
   5997 
   5998     template < typename T1, typename T2 >
   5999     auto
   6000     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   6001     {
   6002       return a1 + a2;
   6003     }
   6004 
   6005     int
   6006     test(const int c, volatile int v)
   6007     {
   6008       static_assert(is_same<int, decltype(0)>::value == true, "");
   6009       static_assert(is_same<int, decltype(c)>::value == false, "");
   6010       static_assert(is_same<int, decltype(v)>::value == false, "");
   6011       auto ac = c;
   6012       auto av = v;
   6013       auto sumi = ac + av + 'x';
   6014       auto sumf = ac + av + 1.0;
   6015       static_assert(is_same<int, decltype(ac)>::value == true, "");
   6016       static_assert(is_same<int, decltype(av)>::value == true, "");
   6017       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   6018       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   6019       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   6020       return (sumf > 0.0) ? sumi : add(c, v);
   6021     }
   6022 
   6023   }
   6024 
   6025   namespace test_noexcept
   6026   {
   6027 
   6028     int f() { return 0; }
   6029     int g() noexcept { return 0; }
   6030 
   6031     static_assert(noexcept(f()) == false, "");
   6032     static_assert(noexcept(g()) == true, "");
   6033 
   6034   }
   6035 
   6036   namespace test_constexpr
   6037   {
   6038 
   6039     template < typename CharT >
   6040     unsigned long constexpr
   6041     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   6042     {
   6043       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   6044     }
   6045 
   6046     template < typename CharT >
   6047     unsigned long constexpr
   6048     strlen_c(const CharT *const s) noexcept
   6049     {
   6050       return strlen_c_r(s, 0UL);
   6051     }
   6052 
   6053     static_assert(strlen_c("") == 0UL, "");
   6054     static_assert(strlen_c("1") == 1UL, "");
   6055     static_assert(strlen_c("example") == 7UL, "");
   6056     static_assert(strlen_c("another\0example") == 7UL, "");
   6057 
   6058   }
   6059 
   6060   namespace test_rvalue_references
   6061   {
   6062 
   6063     template < int N >
   6064     struct answer
   6065     {
   6066       static constexpr int value = N;
   6067     };
   6068 
   6069     answer<1> f(int&)       { return answer<1>(); }
   6070     answer<2> f(const int&) { return answer<2>(); }
   6071     answer<3> f(int&&)      { return answer<3>(); }
   6072 
   6073     void
   6074     test()
   6075     {
   6076       int i = 0;
   6077       const int c = 0;
   6078       static_assert(decltype(f(i))::value == 1, "");
   6079       static_assert(decltype(f(c))::value == 2, "");
   6080       static_assert(decltype(f(0))::value == 3, "");
   6081     }
   6082 
   6083   }
   6084 
   6085   namespace test_uniform_initialization
   6086   {
   6087 
   6088     struct test
   6089     {
   6090       static const int zero {};
   6091       static const int one {1};
   6092     };
   6093 
   6094     static_assert(test::zero == 0, "");
   6095     static_assert(test::one == 1, "");
   6096 
   6097   }
   6098 
   6099   namespace test_lambdas
   6100   {
   6101 
   6102     void
   6103     test1()
   6104     {
   6105       auto lambda1 = [](){};
   6106       auto lambda2 = lambda1;
   6107       lambda1();
   6108       lambda2();
   6109     }
   6110 
   6111     int
   6112     test2()
   6113     {
   6114       auto a = [](int i, int j){ return i + j; }(1, 2);
   6115       auto b = []() -> int { return '0'; }();
   6116       auto c = [=](){ return a + b; }();
   6117       auto d = [&](){ return c; }();
   6118       auto e = [a, &b](int x) mutable {
   6119         const auto identity = [](int y){ return y; };
   6120         for (auto i = 0; i < a; ++i)
   6121           a += b--;
   6122         return x + identity(a + b);
   6123       }(0);
   6124       return a + b + c + d + e;
   6125     }
   6126 
   6127     int
   6128     test3()
   6129     {
   6130       const auto nullary = [](){ return 0; };
   6131       const auto unary = [](int x){ return x; };
   6132       using nullary_t = decltype(nullary);
   6133       using unary_t = decltype(unary);
   6134       const auto higher1st = [](nullary_t f){ return f(); };
   6135       const auto higher2nd = [unary](nullary_t f1){
   6136         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   6137       };
   6138       return higher1st(nullary) + higher2nd(nullary)(unary);
   6139     }
   6140 
   6141   }
   6142 
   6143   namespace test_variadic_templates
   6144   {
   6145 
   6146     template <int...>
   6147     struct sum;
   6148 
   6149     template <int N0, int... N1toN>
   6150     struct sum<N0, N1toN...>
   6151     {
   6152       static constexpr auto value = N0 + sum<N1toN...>::value;
   6153     };
   6154 
   6155     template <>
   6156     struct sum<>
   6157     {
   6158       static constexpr auto value = 0;
   6159     };
   6160 
   6161     static_assert(sum<>::value == 0, "");
   6162     static_assert(sum<1>::value == 1, "");
   6163     static_assert(sum<23>::value == 23, "");
   6164     static_assert(sum<1, 2>::value == 3, "");
   6165     static_assert(sum<5, 5, 11>::value == 21, "");
   6166     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   6167 
   6168   }
   6169 
   6170   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   6171   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   6172   // because of this.
   6173   namespace test_template_alias_sfinae
   6174   {
   6175 
   6176     struct foo {};
   6177 
   6178     template<typename T>
   6179     using member = typename T::member_type;
   6180 
   6181     template<typename T>
   6182     void func(...) {}
   6183 
   6184     template<typename T>
   6185     void func(member<T>*) {}
   6186 
   6187     void test();
   6188 
   6189     void test() { func<foo>(0); }
   6190 
   6191   }
   6192 
   6193 }  // namespace cxx11
   6194 
   6195 #endif  // __cplusplus >= 201103L
   6196 
   6197 
   6198 
   6199 _ACEOF
   6200 if ac_fn_cxx_try_compile "$LINENO"; then :
   6201   eval $cachevar=yes
   6202 else
   6203   eval $cachevar=no
   6204 fi
   6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6206            CXX="$ac_save_CXX"
   6207 fi
   6208 eval ac_res=\$$cachevar
   6209 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   6210 $as_echo "$ac_res" >&6; }
   6211         if eval test x\$$cachevar = xyes; then
   6212           CXX_DIALECT="$switch"
   6213           ac_success=yes
   6214           break
   6215         fi
   6216       done
   6217       if test x$ac_success = xyes; then
   6218         break
   6219       fi
   6220     done
   6221   fi
   6222   ac_ext=c
   6223 ac_cpp='$CPP $CPPFLAGS'
   6224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   6225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   6226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   6227 
   6228   if test x$ax_cxx_compile_cxx11_required = xtrue; then
   6229     if test x$ac_success = xno; then
   6230       as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
   6231     fi
   6232   fi
   6233   if test x$ac_success = xno; then
   6234     HAVE_CXX11=0
   6235     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
   6236 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
   6237   else
   6238     HAVE_CXX11=1
   6239 
   6240 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
   6241 
   6242   fi
   6243 
   6244 
   6245 
   6246 
   6247 # Dependency checking.
   6248 rm -rf .tst 2>/dev/null
   6249 mkdir .tst 2>/dev/null
   6250 if test -d .tst; then
   6251   am__leading_dot=.
   6252 else
   6253   am__leading_dot=_
   6254 fi
   6255 rmdir .tst 2>/dev/null
   6256 
   6257 DEPDIR="${am__leading_dot}deps"
   6258 
   6259 ac_config_commands="$ac_config_commands depdir"
   6260 
   6261 
   6262 depcc="$CC"   am_compiler_list=
   6263 
   6264 am_depcomp=$ac_aux_dir/depcomp
   6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   6266 $as_echo_n "checking dependency style of $depcc... " >&6; }
   6267 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   6268   $as_echo_n "(cached) " >&6
   6269 else
   6270   if test -f "$am_depcomp"; then
   6271   # We make a subdir and do the tests there.  Otherwise we can end up
   6272   # making bogus files that we don't know about and never remove.  For
   6273   # instance it was reported that on HP-UX the gcc test will end up
   6274   # making a dummy file named `D' -- because `-MD' means `put the output
   6275   # in D'.
   6276   mkdir conftest.dir
   6277   # Copy depcomp to subdir because otherwise we won't find it if we're
   6278   # using a relative directory.
   6279   cp "$am_depcomp" conftest.dir
   6280   cd conftest.dir
   6281   # We will build objects and dependencies in a subdirectory because
   6282   # it helps to detect inapplicable dependency modes.  For instance
   6283   # both Tru64's cc and ICC support -MD to output dependencies as a
   6284   # side effect of compilation, but ICC will put the dependencies in
   6285   # the current directory while Tru64 will put them in the object
   6286   # directory.
   6287   mkdir sub
   6288 
   6289   am_cv_CC_dependencies_compiler_type=none
   6290   if test "$am_compiler_list" = ""; then
   6291      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   6292   fi
   6293   for depmode in $am_compiler_list; do
   6294     if test $depmode = none; then break; fi
   6295 
   6296     $as_echo "$as_me:$LINENO: trying $depmode" >&5
   6297     # Setup a source with many dependencies, because some compilers
   6298     # like to wrap large dependency lists on column 80 (with \), and
   6299     # we should not choose a depcomp mode which is confused by this.
   6300     #
   6301     # We need to recreate these files for each test, as the compiler may
   6302     # overwrite some of them when testing with obscure command lines.
   6303     # This happens at least with the AIX C compiler.
   6304     : > sub/conftest.c
   6305     for i in 1 2 3 4 5 6; do
   6306       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   6307       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   6308       # Solaris 8's {/usr,}/bin/sh.
   6309       touch sub/conftst$i.h
   6310     done
   6311     echo "include sub/conftest.Po" > confmf
   6312 
   6313     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   6314     # mode.  It turns out that the SunPro C++ compiler does not properly
   6315     # handle `-M -o', and we need to detect this.
   6316     depcmd="depmode=$depmode \
   6317        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   6318        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   6319        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
   6320     echo "| $depcmd" | sed -e 's/  */ /g' >&5
   6321     if env $depcmd > conftest.err 2>&1 &&
   6322        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
   6323        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
   6324        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
   6325       # icc doesn't choke on unknown options, it will just issue warnings
   6326       # or remarks (even with -Werror).  So we grep stderr for any message
   6327       # that says an option was ignored or not supported.
   6328       # When given -MP, icc 7.0 and 7.1 complain thusly:
   6329       #   icc: Command line warning: ignoring option '-M'; no argument required
   6330       # The diagnosis changed in icc 8.0:
   6331       #   icc: Command line remark: option '-MP' not supported
   6332       if (grep 'ignoring option' conftest.err ||
   6333           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   6334         am_cv_CC_dependencies_compiler_type=$depmode
   6335 	$as_echo "$as_me:$LINENO: success" >&5
   6336         break
   6337       fi
   6338     fi
   6339     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
   6340     sed -e 's/^/| /' < conftest.err >&5
   6341   done
   6342 
   6343   cd ..
   6344   rm -rf conftest.dir
   6345 else
   6346   am_cv_CC_dependencies_compiler_type=none
   6347 fi
   6348 
   6349 fi
   6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   6351 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   6352 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
   6353 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
   6354 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   6355 
   6356 fi
   6357 
   6358 
   6359 
   6360 CONFIG_OBS=
   6361 CONFIG_DEPS=
   6362 CONFIG_SRCS=
   6363 ENABLE_CFLAGS=
   6364 
   6365 CONFIG_ALL=
   6366 CONFIG_CLEAN=
   6367 CONFIG_INSTALL=
   6368 CONFIG_UNINSTALL=
   6369 
   6370 # If we haven't got the data from the intl directory,
   6371 # assume NLS is disabled.
   6372 USE_NLS=no
   6373 LIBINTL=
   6374 LIBINTL_DEP=
   6375 INCINTL=
   6376 XGETTEXT=
   6377 GMSGFMT=
   6378 POSUB=
   6379 
   6380 if test -f  ../intl/config.intl; then
   6381   .  ../intl/config.intl
   6382 fi
   6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   6384 $as_echo_n "checking whether NLS is requested... " >&6; }
   6385 if test x"$USE_NLS" != xyes; then
   6386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6387 $as_echo "no" >&6; }
   6388 else
   6389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   6390 $as_echo "yes" >&6; }
   6391 
   6392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   6393 
   6394 
   6395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
   6396 $as_echo_n "checking for catalogs to be installed... " >&6; }
   6397   # Look for .po and .gmo files in the source directory.
   6398   CATALOGS=
   6399   XLINGUAS=
   6400   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
   6401     # If there aren't any .gmo files the shell will give us the
   6402     # literal string "../path/to/srcdir/po/*.gmo" which has to be
   6403     # weeded out.
   6404     case "$cat" in *\**)
   6405       continue;;
   6406     esac
   6407     # The quadruple backslash is collapsed to a double backslash
   6408     # by the backticks, then collapsed again by the double quotes,
   6409     # leaving us with one backslash in the sed expression (right
   6410     # before the dot that mustn't act as a wildcard).
   6411     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
   6412     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
   6413     # The user is allowed to set LINGUAS to a list of languages to
   6414     # install catalogs for.  If it's empty that means "all of them."
   6415     if test "x$LINGUAS" = x; then
   6416       CATALOGS="$CATALOGS $cat"
   6417       XLINGUAS="$XLINGUAS $lang"
   6418     else
   6419       case "$LINGUAS" in *$lang*)
   6420         CATALOGS="$CATALOGS $cat"
   6421         XLINGUAS="$XLINGUAS $lang"
   6422         ;;
   6423       esac
   6424     fi
   6425   done
   6426   LINGUAS="$XLINGUAS"
   6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
   6428 $as_echo "$LINGUAS" >&6; }
   6429 
   6430 
   6431     DATADIRNAME=share
   6432 
   6433   INSTOBJEXT=.mo
   6434 
   6435   GENCAT=gencat
   6436 
   6437   CATOBJEXT=.gmo
   6438 
   6439 fi
   6440 
   6441 localedir='${datadir}/locale'
   6442 
   6443 
   6444 if test x"$USE_NLS" = xyes; then
   6445    CONFIG_ALL="$CONFIG_ALL all-po"
   6446    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
   6447    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
   6448    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
   6449 fi
   6450 
   6451 PACKAGE=gdb
   6452 
   6453 cat >>confdefs.h <<_ACEOF
   6454 #define PACKAGE "$PACKAGE"
   6455 _ACEOF
   6456 
   6457 
   6458 
   6459 # We never need to detect it in this sub-configure.
   6460 # But preserve it for config.status --recheck.
   6461 
   6462 
   6463 
   6464 MAKEINFO_EXTRA_FLAGS=""
   6465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
   6466 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
   6467 if ${gdb_cv_have_makeinfo_click+:} false; then :
   6468   $as_echo_n "(cached) " >&6
   6469 else
   6470   echo '@clicksequence{a @click{} b}' >conftest.texinfo
   6471   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
   6472     gdb_cv_have_makeinfo_click=yes
   6473   else
   6474     gdb_cv_have_makeinfo_click=no
   6475   fi
   6476 fi
   6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
   6478 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
   6479 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
   6480   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
   6481 fi
   6482 
   6483 
   6484 
   6485 
   6486 # Check whether --with-separate-debug-dir was given.
   6487 if test "${with_separate_debug_dir+set}" = set; then :
   6488   withval=$with_separate_debug_dir;
   6489     DEBUGDIR=$withval
   6490 else
   6491   DEBUGDIR=${libdir}/debug
   6492 fi
   6493 
   6494 
   6495   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6496   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6497   ac_define_dir=`eval echo $DEBUGDIR`
   6498   ac_define_dir=`eval echo $ac_define_dir`
   6499 
   6500 cat >>confdefs.h <<_ACEOF
   6501 #define DEBUGDIR "$ac_define_dir"
   6502 _ACEOF
   6503 
   6504 
   6505 
   6506 
   6507   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   6508      if test "x$prefix" = xNONE; then
   6509      	test_prefix=/usr/local
   6510      else
   6511 	test_prefix=$prefix
   6512      fi
   6513   else
   6514      test_prefix=$exec_prefix
   6515   fi
   6516   value=0
   6517   case ${ac_define_dir} in
   6518      "${test_prefix}"|"${test_prefix}/"*|\
   6519 	'${exec_prefix}'|'${exec_prefix}/'*)
   6520      value=1
   6521      ;;
   6522   esac
   6523 
   6524 cat >>confdefs.h <<_ACEOF
   6525 #define DEBUGDIR_RELOCATABLE $value
   6526 _ACEOF
   6527 
   6528 
   6529 
   6530 
   6531 # We can't pass paths as command line arguments.
   6532 # Mingw32 tries to be clever and will convert the paths for us.
   6533 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
   6534 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
   6535 # This breaks GDB's relocatable path conversions since paths passed in
   6536 # config.h would not get so translated, the path prefixes no longer match.
   6537 
   6538   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6539   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6540   ac_define_dir=`eval echo $bindir`
   6541   ac_define_dir=`eval echo $ac_define_dir`
   6542 
   6543 cat >>confdefs.h <<_ACEOF
   6544 #define BINDIR "$ac_define_dir"
   6545 _ACEOF
   6546 
   6547 
   6548 
   6549 # GDB's datadir relocation
   6550 
   6551 
   6552 
   6553 # Check whether --with-gdb-datadir was given.
   6554 if test "${with_gdb_datadir+set}" = set; then :
   6555   withval=$with_gdb_datadir;
   6556     GDB_DATADIR=$withval
   6557 else
   6558   GDB_DATADIR=${datadir}/gdb
   6559 fi
   6560 
   6561 
   6562   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6563   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6564   ac_define_dir=`eval echo $GDB_DATADIR`
   6565   ac_define_dir=`eval echo $ac_define_dir`
   6566 
   6567 cat >>confdefs.h <<_ACEOF
   6568 #define GDB_DATADIR "$ac_define_dir"
   6569 _ACEOF
   6570 
   6571 
   6572 
   6573 
   6574   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   6575      if test "x$prefix" = xNONE; then
   6576      	test_prefix=/usr/local
   6577      else
   6578 	test_prefix=$prefix
   6579      fi
   6580   else
   6581      test_prefix=$exec_prefix
   6582   fi
   6583   value=0
   6584   case ${ac_define_dir} in
   6585      "${test_prefix}"|"${test_prefix}/"*|\
   6586 	'${exec_prefix}'|'${exec_prefix}/'*)
   6587      value=1
   6588      ;;
   6589   esac
   6590 
   6591 cat >>confdefs.h <<_ACEOF
   6592 #define GDB_DATADIR_RELOCATABLE $value
   6593 _ACEOF
   6594 
   6595 
   6596 
   6597 
   6598 
   6599 # Check whether --with-relocated-sources was given.
   6600 if test "${with_relocated_sources+set}" = set; then :
   6601   withval=$with_relocated_sources; reloc_srcdir="${withval}"
   6602 
   6603   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6604   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6605   ac_define_dir=`eval echo $reloc_srcdir`
   6606   ac_define_dir=`eval echo $ac_define_dir`
   6607 
   6608 cat >>confdefs.h <<_ACEOF
   6609 #define RELOC_SRCDIR "$ac_define_dir"
   6610 _ACEOF
   6611 
   6612 
   6613 
   6614 fi
   6615 
   6616 
   6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
   6618 $as_echo_n "checking for default auto-load directory... " >&6; }
   6619 
   6620 # Check whether --with-auto-load-dir was given.
   6621 if test "${with_auto_load_dir+set}" = set; then :
   6622   withval=$with_auto_load_dir;
   6623 else
   6624   with_auto_load_dir='$debugdir:$datadir/auto-load'
   6625 fi
   6626 
   6627 escape_dir=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
   6628 
   6629   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6630   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6631   ac_define_dir=`eval echo $escape_dir`
   6632   ac_define_dir=`eval echo $ac_define_dir`
   6633 
   6634 cat >>confdefs.h <<_ACEOF
   6635 #define AUTO_LOAD_DIR "$ac_define_dir"
   6636 _ACEOF
   6637 
   6638 
   6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
   6640 $as_echo "$with_auto_load_dir" >&6; }
   6641 
   6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
   6643 $as_echo_n "checking for default auto-load safe-path... " >&6; }
   6644 
   6645 # Check whether --with-auto-load-safe-path was given.
   6646 if test "${with_auto_load_safe_path+set}" = set; then :
   6647   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
   6648      with_auto_load_safe_path="/"
   6649      fi
   6650 else
   6651   with_auto_load_safe_path="$with_auto_load_dir"
   6652 fi
   6653 
   6654 escape_dir=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
   6655 
   6656   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   6657   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   6658   ac_define_dir=`eval echo $escape_dir`
   6659   ac_define_dir=`eval echo $ac_define_dir`
   6660 
   6661 cat >>confdefs.h <<_ACEOF
   6662 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
   6663 _ACEOF
   6664 
   6665 
   6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
   6667 $as_echo "$with_auto_load_safe_path" >&6; }
   6668 
   6669 
   6670 
   6671 subdirs="$subdirs testsuite"
   6672 
   6673 
   6674 # Check whether to support alternative target configurations
   6675 # Check whether --enable-targets was given.
   6676 if test "${enable_targets+set}" = set; then :
   6677   enableval=$enable_targets; case "${enableval}" in
   6678   yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
   6679             ;;
   6680   no)       enable_targets= ;;
   6681   *)        enable_targets=$enableval ;;
   6682 esac
   6683 fi
   6684 
   6685 
   6686 # Check whether to enable 64-bit support on 32-bit hosts
   6687 # Check whether --enable-64-bit-bfd was given.
   6688 if test "${enable_64_bit_bfd+set}" = set; then :
   6689   enableval=$enable_64_bit_bfd; case "${enableval}" in
   6690   yes)  want64=true  ;;
   6691   no)   want64=false ;;
   6692   *)    as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
   6693 esac
   6694 else
   6695   want64=false
   6696 fi
   6697 
   6698 # Provide defaults for some variables set by the per-host and per-target
   6699 # configuration.
   6700 gdb_host_obs=posix-hdep.o
   6701 
   6702 if test "${target}" = "${host}"; then
   6703   gdb_native=yes
   6704 else
   6705   gdb_native=no
   6706 fi
   6707 
   6708 . $srcdir/configure.host
   6709 
   6710 # Accumulate some settings from configure.tgt over all enabled targets
   6711 
   6712 TARGET_OBS=
   6713 all_targets=
   6714 HAVE_NATIVE_GCORE_TARGET=
   6715 
   6716 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
   6717 do
   6718   if test "$targ_alias" = "all"; then
   6719     all_targets=true
   6720   else
   6721     # Canonicalize the secondary target names.
   6722     result=`$ac_config_sub $targ_alias 2>/dev/null`
   6723     if test -n "$result"; then
   6724         targ=$result
   6725     else
   6726         targ=$targ_alias
   6727     fi
   6728 
   6729     . ${srcdir}/configure.tgt
   6730 
   6731     if test -z "${gdb_target_obs}"; then :
   6732   as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
   6733 fi
   6734 
   6735     # Target-specific object files
   6736     for i in ${gdb_target_obs}; do
   6737         case " $TARGET_OBS " in
   6738         *" ${i} "*) ;;
   6739         *)
   6740           TARGET_OBS="$TARGET_OBS ${i}"
   6741           ;;
   6742         esac
   6743     done
   6744 
   6745     # Check whether this target needs 64-bit CORE_ADDR
   6746     if test x${want64} = xfalse; then
   6747       . ${srcdir}/../bfd/config.bfd
   6748     fi
   6749 
   6750     # Check whether this target is native and supports gcore.
   6751     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
   6752        && $gdb_have_gcore; then
   6753       HAVE_NATIVE_GCORE_TARGET=1
   6754     fi
   6755   fi
   6756 done
   6757 
   6758 if test x${all_targets} = xtrue; then
   6759 
   6760   # We want all 64-bit targets if we either:
   6761   #  - run on a 64-bit host  or
   6762   #  - already require 64-bit support for some other target  or
   6763   #  - the --enable-64-bit-bfd option was supplied
   6764   # Otherwise we only support all 32-bit targets.
   6765   #
   6766   # NOTE: This test must be in sync with the corresponding
   6767   #       tests in BFD!
   6768 
   6769   if test x${want64} = xfalse; then
   6770     # The cast to long int works around a bug in the HP C Compiler
   6771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   6772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   6773 # This bug is HP SR number 8606223364.
   6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   6775 $as_echo_n "checking size of long... " >&6; }
   6776 if ${ac_cv_sizeof_long+:} false; then :
   6777   $as_echo_n "(cached) " >&6
   6778 else
   6779   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   6780 
   6781 else
   6782   if test "$ac_cv_type_long" = yes; then
   6783      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   6784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   6785 as_fn_error 77 "cannot compute sizeof (long)
   6786 See \`config.log' for more details" "$LINENO" 5; }
   6787    else
   6788      ac_cv_sizeof_long=0
   6789    fi
   6790 fi
   6791 
   6792 fi
   6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   6794 $as_echo "$ac_cv_sizeof_long" >&6; }
   6795 
   6796 
   6797 
   6798 cat >>confdefs.h <<_ACEOF
   6799 #define SIZEOF_LONG $ac_cv_sizeof_long
   6800 _ACEOF
   6801 
   6802 
   6803     if test "x${ac_cv_sizeof_long}" = "x8"; then
   6804       want64=true
   6805     fi
   6806   fi
   6807   if test x${want64} = xtrue; then
   6808     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
   6809   else
   6810     TARGET_OBS='$(ALL_TARGET_OBS)'
   6811   fi
   6812 fi
   6813 
   6814 
   6815 
   6816 
   6817 # For other settings, only the main target counts.
   6818 gdb_sim=
   6819 gdb_osabi=
   6820 targ=$target; . ${srcdir}/configure.tgt
   6821 
   6822 # Fetch the default architecture and default target vector from BFD.
   6823 targ=$target; . $srcdir/../bfd/config.bfd
   6824 
   6825 # We only want the first architecture, so strip off the others if
   6826 # there is more than one.
   6827 targ_archs=`echo $targ_archs | sed 's/ .*//'`
   6828 
   6829 if test "x$targ_archs" != x; then
   6830 
   6831 cat >>confdefs.h <<_ACEOF
   6832 #define DEFAULT_BFD_ARCH $targ_archs
   6833 _ACEOF
   6834 
   6835 fi
   6836 if test "x$targ_defvec" != x; then
   6837 
   6838 cat >>confdefs.h <<_ACEOF
   6839 #define DEFAULT_BFD_VEC $targ_defvec
   6840 _ACEOF
   6841 
   6842 fi
   6843 
   6844 # Enable MI.
   6845 # Check whether --enable-gdbmi was given.
   6846 if test "${enable_gdbmi+set}" = set; then :
   6847   enableval=$enable_gdbmi; case $enableval in
   6848     yes | no)
   6849       ;;
   6850     *)
   6851       as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
   6852   esac
   6853 else
   6854   enable_gdbmi=yes
   6855 fi
   6856 
   6857 if test x"$enable_gdbmi" = xyes; then
   6858   if test -d "$srcdir/mi"; then
   6859     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
   6860     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
   6861     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
   6862     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
   6863   fi
   6864 fi
   6865 
   6866 # Enable TUI.
   6867 # Check whether --enable-tui was given.
   6868 if test "${enable_tui+set}" = set; then :
   6869   enableval=$enable_tui; case $enableval in
   6870     yes | no | auto)
   6871       ;;
   6872     *)
   6873       as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
   6874   esac
   6875 else
   6876   enable_tui=auto
   6877 fi
   6878 
   6879 
   6880 # Enable gdbtk.
   6881 # Check whether --enable-gdbtk was given.
   6882 if test "${enable_gdbtk+set}" = set; then :
   6883   enableval=$enable_gdbtk; case $enableval in
   6884     yes | no)
   6885       ;;
   6886     *)
   6887       as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
   6888   esac
   6889 else
   6890   if test -d "$srcdir/gdbtk"; then
   6891     enable_gdbtk=yes
   6892   else
   6893     enable_gdbtk=no
   6894   fi
   6895 fi
   6896 
   6897 # We unconditionally disable gdbtk tests on selected platforms.
   6898 case $host_os in
   6899   go32* | windows*)
   6900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
   6901 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
   6902     enable_gdbtk=no ;;
   6903 esac
   6904 
   6905 # Handle optional debuginfod support
   6906 
   6907 
   6908 
   6909 
   6910 
   6911 
   6912 
   6913 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
   6914 	if test -n "$ac_tool_prefix"; then
   6915   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
   6916 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
   6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6918 $as_echo_n "checking for $ac_word... " >&6; }
   6919 if ${ac_cv_path_PKG_CONFIG+:} false; then :
   6920   $as_echo_n "(cached) " >&6
   6921 else
   6922   case $PKG_CONFIG in
   6923   [\\/]* | ?:[\\/]*)
   6924   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
   6925   ;;
   6926   *)
   6927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6928 for as_dir in $PATH
   6929 do
   6930   IFS=$as_save_IFS
   6931   test -z "$as_dir" && as_dir=.
   6932     for ac_exec_ext in '' $ac_executable_extensions; do
   6933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6934     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   6935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6936     break 2
   6937   fi
   6938 done
   6939   done
   6940 IFS=$as_save_IFS
   6941 
   6942   ;;
   6943 esac
   6944 fi
   6945 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
   6946 if test -n "$PKG_CONFIG"; then
   6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
   6948 $as_echo "$PKG_CONFIG" >&6; }
   6949 else
   6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6951 $as_echo "no" >&6; }
   6952 fi
   6953 
   6954 
   6955 fi
   6956 if test -z "$ac_cv_path_PKG_CONFIG"; then
   6957   ac_pt_PKG_CONFIG=$PKG_CONFIG
   6958   # Extract the first word of "pkg-config", so it can be a program name with args.
   6959 set dummy pkg-config; ac_word=$2
   6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6961 $as_echo_n "checking for $ac_word... " >&6; }
   6962 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
   6963   $as_echo_n "(cached) " >&6
   6964 else
   6965   case $ac_pt_PKG_CONFIG in
   6966   [\\/]* | ?:[\\/]*)
   6967   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
   6968   ;;
   6969   *)
   6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6971 for as_dir in $PATH
   6972 do
   6973   IFS=$as_save_IFS
   6974   test -z "$as_dir" && as_dir=.
   6975     for ac_exec_ext in '' $ac_executable_extensions; do
   6976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   6977     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
   6978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6979     break 2
   6980   fi
   6981 done
   6982   done
   6983 IFS=$as_save_IFS
   6984 
   6985   ;;
   6986 esac
   6987 fi
   6988 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
   6989 if test -n "$ac_pt_PKG_CONFIG"; then
   6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
   6991 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
   6992 else
   6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6994 $as_echo "no" >&6; }
   6995 fi
   6996 
   6997   if test "x$ac_pt_PKG_CONFIG" = x; then
   6998     PKG_CONFIG=""
   6999   else
   7000     case $cross_compiling:$ac_tool_warned in
   7001 yes:)
   7002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7004 ac_tool_warned=yes ;;
   7005 esac
   7006     PKG_CONFIG=$ac_pt_PKG_CONFIG
   7007   fi
   7008 else
   7009   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
   7010 fi
   7011 
   7012 fi
   7013 if test -n "$PKG_CONFIG"; then
   7014 	_pkg_min_version=0.9.0
   7015 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
   7016 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
   7017 	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
   7018 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7019 $as_echo "yes" >&6; }
   7020 	else
   7021 		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7022 $as_echo "no" >&6; }
   7023 		PKG_CONFIG=""
   7024 	fi
   7025 fi
   7026 
   7027 # Handle optional debuginfod support
   7028 
   7029 # Check whether --with-debuginfod was given.
   7030 if test "${with_debuginfod+set}" = set; then :
   7031   withval=$with_debuginfod;
   7032 else
   7033   with_debuginfod=auto
   7034 fi
   7035 
   7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use debuginfod" >&5
   7037 $as_echo_n "checking whether to use debuginfod... " >&6; }
   7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_debuginfod" >&5
   7039 $as_echo "$with_debuginfod" >&6; }
   7040 
   7041 if test "x$with_debuginfod" != xno; then
   7042 
   7043 pkg_failed=no
   7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdebuginfod >= 0.179" >&5
   7045 $as_echo_n "checking for libdebuginfod >= 0.179... " >&6; }
   7046 
   7047 if test -n "$DEBUGINFOD_CFLAGS"; then
   7048     pkg_cv_DEBUGINFOD_CFLAGS="$DEBUGINFOD_CFLAGS"
   7049  elif test -n "$PKG_CONFIG"; then
   7050     if test -n "$PKG_CONFIG" && \
   7051     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
   7052   ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
   7053   ac_status=$?
   7054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7055   test $ac_status = 0; }; then
   7056   pkg_cv_DEBUGINFOD_CFLAGS=`$PKG_CONFIG --cflags "libdebuginfod >= 0.179" 2>/dev/null`
   7057 		      test "x$?" != "x0" && pkg_failed=yes
   7058 else
   7059   pkg_failed=yes
   7060 fi
   7061  else
   7062     pkg_failed=untried
   7063 fi
   7064 if test -n "$DEBUGINFOD_LIBS"; then
   7065     pkg_cv_DEBUGINFOD_LIBS="$DEBUGINFOD_LIBS"
   7066  elif test -n "$PKG_CONFIG"; then
   7067     if test -n "$PKG_CONFIG" && \
   7068     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdebuginfod >= 0.179\""; } >&5
   7069   ($PKG_CONFIG --exists --print-errors "libdebuginfod >= 0.179") 2>&5
   7070   ac_status=$?
   7071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   7072   test $ac_status = 0; }; then
   7073   pkg_cv_DEBUGINFOD_LIBS=`$PKG_CONFIG --libs "libdebuginfod >= 0.179" 2>/dev/null`
   7074 		      test "x$?" != "x0" && pkg_failed=yes
   7075 else
   7076   pkg_failed=yes
   7077 fi
   7078  else
   7079     pkg_failed=untried
   7080 fi
   7081 
   7082 if test $pkg_failed = no; then
   7083   pkg_save_LDFLAGS="$LDFLAGS"
   7084   LDFLAGS="$LDFLAGS $pkg_cv_DEBUGINFOD_LIBS"
   7085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7086 /* end confdefs.h.  */
   7087 
   7088 int
   7089 main ()
   7090 {
   7091 
   7092   ;
   7093   return 0;
   7094 }
   7095 _ACEOF
   7096 if ac_fn_c_try_link "$LINENO"; then :
   7097 
   7098 else
   7099   pkg_failed=yes
   7100 fi
   7101 rm -f core conftest.err conftest.$ac_objext \
   7102     conftest$ac_exeext conftest.$ac_ext
   7103   LDFLAGS=$pkg_save_LDFLAGS
   7104 fi
   7105 
   7106 
   7107 
   7108 if test $pkg_failed = yes; then
   7109         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7110 $as_echo "no" >&6; }
   7111 
   7112 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
   7113         _pkg_short_errors_supported=yes
   7114 else
   7115         _pkg_short_errors_supported=no
   7116 fi
   7117         if test $_pkg_short_errors_supported = yes; then
   7118 	        DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
   7119         else
   7120 	        DEBUGINFOD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdebuginfod >= 0.179" 2>&1`
   7121         fi
   7122 	# Put the nasty error message in config.log where it belongs
   7123 	echo "$DEBUGINFOD_PKG_ERRORS" >&5
   7124 
   7125 	if test "x$with_debuginfod" = xyes; then
   7126        as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
   7127      else
   7128        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
   7129 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
   7130      fi
   7131 elif test $pkg_failed = untried; then
   7132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7133 $as_echo "no" >&6; }
   7134 	if test "x$with_debuginfod" = xyes; then
   7135        as_fn_error $? "\"--with-debuginfod was given, but libdebuginfod is missing or unusable.\"" "$LINENO" 5
   7136      else
   7137        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&5
   7138 $as_echo "$as_me: WARNING: libdebuginfod is missing or unusable; some features may be unavailable." >&2;}
   7139      fi
   7140 else
   7141 	DEBUGINFOD_CFLAGS=$pkg_cv_DEBUGINFOD_CFLAGS
   7142 	DEBUGINFOD_LIBS=$pkg_cv_DEBUGINFOD_LIBS
   7143         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7144 $as_echo "yes" >&6; }
   7145 
   7146 $as_echo "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h
   7147 
   7148 fi
   7149 else
   7150   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: debuginfod support disabled; some features may be unavailable." >&5
   7151 $as_echo "$as_me: WARNING: debuginfod support disabled; some features may be unavailable." >&2;}
   7152 fi
   7153 
   7154 
   7155 # Libunwind support for ia64.
   7156 
   7157 # Check whether --with-libunwind-ia64 was given.
   7158 if test "${with_libunwind_ia64+set}" = set; then :
   7159   withval=$with_libunwind_ia64;
   7160 else
   7161   with_libunwind_ia64=auto
   7162 fi
   7163 
   7164 
   7165 # Backward compatibility option.
   7166 if test "${with_libunwind+set}" = set; then
   7167   if test x"$with_libunwind_ia64" != xauto; then
   7168     as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
   7169   fi
   7170   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
   7171 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
   7172   with_libunwind_ia64="$with_libunwind"
   7173 fi
   7174 
   7175 case "$with_libunwind_ia64" in
   7176   yes | no)
   7177     ;;
   7178   auto)
   7179     for ac_header in libunwind-ia64.h
   7180 do :
   7181   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   7182 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
   7183   cat >>confdefs.h <<_ACEOF
   7184 #define HAVE_LIBUNWIND_IA64_H 1
   7185 _ACEOF
   7186 
   7187 fi
   7188 
   7189 done
   7190 
   7191     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
   7192     ;;
   7193   *)
   7194     as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
   7195     ;;
   7196 esac
   7197 
   7198 if test x"$with_libunwind_ia64" = xyes; then
   7199   for ac_header in libunwind-ia64.h
   7200 do :
   7201   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   7202 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
   7203   cat >>confdefs.h <<_ACEOF
   7204 #define HAVE_LIBUNWIND_IA64_H 1
   7205 _ACEOF
   7206 
   7207 fi
   7208 
   7209 done
   7210 
   7211   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
   7212     as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
   7213   fi
   7214   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
   7215   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
   7216   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
   7217 fi
   7218 
   7219 opt_curses=no
   7220 
   7221 # Check whether --with-curses was given.
   7222 if test "${with_curses+set}" = set; then :
   7223   withval=$with_curses; opt_curses=$withval
   7224 fi
   7225 
   7226 
   7227 prefer_curses=no
   7228 if test "$opt_curses" = "yes"; then
   7229   prefer_curses=yes
   7230 fi
   7231 
   7232 # Profiling support.
   7233 # Check whether --enable-profiling was given.
   7234 if test "${enable_profiling+set}" = set; then :
   7235   enableval=$enable_profiling; case $enableval in
   7236     yes | no)
   7237       ;;
   7238     *)
   7239       as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
   7240   esac
   7241 else
   7242   enable_profiling=no
   7243 fi
   7244 
   7245 
   7246 for ac_func in monstartup _mcleanup
   7247 do :
   7248   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   7249 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   7250 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   7251   cat >>confdefs.h <<_ACEOF
   7252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   7253 _ACEOF
   7254 
   7255 fi
   7256 done
   7257 
   7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
   7259 $as_echo_n "checking for _etext... " >&6; }
   7260 if ${ac_cv_var__etext+:} false; then :
   7261   $as_echo_n "(cached) " >&6
   7262 else
   7263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7264 /* end confdefs.h.  */
   7265 #include <stdlib.h>
   7266 extern char _etext;
   7267 
   7268 int
   7269 main ()
   7270 {
   7271 free (&_etext);
   7272   ;
   7273   return 0;
   7274 }
   7275 _ACEOF
   7276 if ac_fn_c_try_link "$LINENO"; then :
   7277   ac_cv_var__etext=yes
   7278 else
   7279   ac_cv_var__etext=no
   7280 fi
   7281 rm -f core conftest.err conftest.$ac_objext \
   7282     conftest$ac_exeext conftest.$ac_ext
   7283 fi
   7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
   7285 $as_echo "$ac_cv_var__etext" >&6; }
   7286 if test "$ac_cv_var__etext" = yes; then
   7287 
   7288 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
   7289 
   7290 fi
   7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
   7292 $as_echo_n "checking for etext... " >&6; }
   7293 if ${ac_cv_var_etext+:} false; then :
   7294   $as_echo_n "(cached) " >&6
   7295 else
   7296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7297 /* end confdefs.h.  */
   7298 #include <stdlib.h>
   7299 extern char etext;
   7300 
   7301 int
   7302 main ()
   7303 {
   7304 free (&etext);
   7305   ;
   7306   return 0;
   7307 }
   7308 _ACEOF
   7309 if ac_fn_c_try_link "$LINENO"; then :
   7310   ac_cv_var_etext=yes
   7311 else
   7312   ac_cv_var_etext=no
   7313 fi
   7314 rm -f core conftest.err conftest.$ac_objext \
   7315     conftest$ac_exeext conftest.$ac_ext
   7316 fi
   7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
   7318 $as_echo "$ac_cv_var_etext" >&6; }
   7319 if test "$ac_cv_var_etext" = yes; then
   7320 
   7321 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
   7322 
   7323 fi
   7324 if test "$enable_profiling" = yes ; then
   7325   if test "$ac_cv_func_monstartup" = no || test "$ac_cv_func__mcleanup" = no; then
   7326     as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
   7327   fi
   7328   PROFILE_CFLAGS=-pg
   7329   OLD_CFLAGS="$CFLAGS"
   7330   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
   7331 
   7332   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
   7333 $as_echo_n "checking whether $CC supports -pg... " >&6; }
   7334 if ${ac_cv_cc_supports_pg+:} false; then :
   7335   $as_echo_n "(cached) " >&6
   7336 else
   7337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7338 /* end confdefs.h.  */
   7339 
   7340 int
   7341 main ()
   7342 {
   7343 int x;
   7344   ;
   7345   return 0;
   7346 }
   7347 _ACEOF
   7348 if ac_fn_c_try_compile "$LINENO"; then :
   7349   ac_cv_cc_supports_pg=yes
   7350 else
   7351   ac_cv_cc_supports_pg=no
   7352 fi
   7353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7354 fi
   7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
   7356 $as_echo "$ac_cv_cc_supports_pg" >&6; }
   7357 
   7358   if test "$ac_cv_cc_supports_pg" = no; then
   7359     as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
   7360   fi
   7361 
   7362   CFLAGS="$OLD_CFLAGS"
   7363 fi
   7364 
   7365 CODESIGN_CERT=
   7366 # Check whether --enable-codesign was given.
   7367 if test "${enable_codesign+set}" = set; then :
   7368   enableval=$enable_codesign; CODESIGN_CERT=$enableval
   7369 fi
   7370 
   7371 
   7372 
   7373 
   7374 
   7375 # Check whether --with-pkgversion was given.
   7376 if test "${with_pkgversion+set}" = set; then :
   7377   withval=$with_pkgversion; case "$withval" in
   7378       yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
   7379       no)  PKGVERSION= ;;
   7380       *)   PKGVERSION="($withval) " ;;
   7381      esac
   7382 else
   7383   PKGVERSION="(GDB) "
   7384 
   7385 fi
   7386 
   7387 
   7388 
   7389 
   7390 
   7391 # Check whether --with-bugurl was given.
   7392 if test "${with_bugurl+set}" = set; then :
   7393   withval=$with_bugurl; case "$withval" in
   7394       yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
   7395       no)  BUGURL=
   7396 	   ;;
   7397       *)   BUGURL="$withval"
   7398 	   ;;
   7399      esac
   7400 else
   7401   BUGURL="https://www.gnu.org/software/gdb/bugs/"
   7402 
   7403 fi
   7404 
   7405   case ${BUGURL} in
   7406   "")
   7407     REPORT_BUGS_TO=
   7408     REPORT_BUGS_TEXI=
   7409     ;;
   7410   *)
   7411     REPORT_BUGS_TO="<$BUGURL>"
   7412     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
   7413     ;;
   7414   esac;
   7415 
   7416 
   7417 
   7418 
   7419 cat >>confdefs.h <<_ACEOF
   7420 #define PKGVERSION "$PKGVERSION"
   7421 _ACEOF
   7422 
   7423 
   7424 cat >>confdefs.h <<_ACEOF
   7425 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
   7426 _ACEOF
   7427 
   7428 
   7429 # --------------------- #
   7430 # Checks for programs.  #
   7431 # --------------------- #
   7432 
   7433 for ac_prog in gawk mawk nawk awk
   7434 do
   7435   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7436 set dummy $ac_prog; ac_word=$2
   7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7438 $as_echo_n "checking for $ac_word... " >&6; }
   7439 if ${ac_cv_prog_AWK+:} false; then :
   7440   $as_echo_n "(cached) " >&6
   7441 else
   7442   if test -n "$AWK"; then
   7443   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   7444 else
   7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7446 for as_dir in $PATH
   7447 do
   7448   IFS=$as_save_IFS
   7449   test -z "$as_dir" && as_dir=.
   7450     for ac_exec_ext in '' $ac_executable_extensions; do
   7451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7452     ac_cv_prog_AWK="$ac_prog"
   7453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7454     break 2
   7455   fi
   7456 done
   7457   done
   7458 IFS=$as_save_IFS
   7459 
   7460 fi
   7461 fi
   7462 AWK=$ac_cv_prog_AWK
   7463 if test -n "$AWK"; then
   7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   7465 $as_echo "$AWK" >&6; }
   7466 else
   7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7468 $as_echo "no" >&6; }
   7469 fi
   7470 
   7471 
   7472   test -n "$AWK" && break
   7473 done
   7474 
   7475 # Find a good install program.  We prefer a C program (faster),
   7476 # so one script is as good as another.  But avoid the broken or
   7477 # incompatible versions:
   7478 # SysV /etc/install, /usr/sbin/install
   7479 # SunOS /usr/etc/install
   7480 # IRIX /sbin/install
   7481 # AIX /bin/install
   7482 # AmigaOS /C/install, which installs bootblocks on floppy discs
   7483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   7484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   7485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   7486 # OS/2's system install, which has a completely different semantic
   7487 # ./install, which can be erroneously created by make from ./install.sh.
   7488 # Reject install programs that cannot install multiple files.
   7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   7490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   7491 if test -z "$INSTALL"; then
   7492 if ${ac_cv_path_install+:} false; then :
   7493   $as_echo_n "(cached) " >&6
   7494 else
   7495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7496 for as_dir in $PATH
   7497 do
   7498   IFS=$as_save_IFS
   7499   test -z "$as_dir" && as_dir=.
   7500     # Account for people who put trailing slashes in PATH elements.
   7501 case $as_dir/ in #((
   7502   ./ | .// | /[cC]/* | \
   7503   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   7504   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   7505   /usr/ucb/* ) ;;
   7506   *)
   7507     # OSF1 and SCO ODT 3.0 have their own names for install.
   7508     # Don't use installbsd from OSF since it installs stuff as root
   7509     # by default.
   7510     for ac_prog in ginstall scoinst install; do
   7511       for ac_exec_ext in '' $ac_executable_extensions; do
   7512 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   7513 	  if test $ac_prog = install &&
   7514 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   7515 	    # AIX install.  It has an incompatible calling convention.
   7516 	    :
   7517 	  elif test $ac_prog = install &&
   7518 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   7519 	    # program-specific install script used by HP pwplus--don't use.
   7520 	    :
   7521 	  else
   7522 	    rm -rf conftest.one conftest.two conftest.dir
   7523 	    echo one > conftest.one
   7524 	    echo two > conftest.two
   7525 	    mkdir conftest.dir
   7526 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   7527 	      test -s conftest.one && test -s conftest.two &&
   7528 	      test -s conftest.dir/conftest.one &&
   7529 	      test -s conftest.dir/conftest.two
   7530 	    then
   7531 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   7532 	      break 3
   7533 	    fi
   7534 	  fi
   7535 	fi
   7536       done
   7537     done
   7538     ;;
   7539 esac
   7540 
   7541   done
   7542 IFS=$as_save_IFS
   7543 
   7544 rm -rf conftest.one conftest.two conftest.dir
   7545 
   7546 fi
   7547   if test "${ac_cv_path_install+set}" = set; then
   7548     INSTALL=$ac_cv_path_install
   7549   else
   7550     # As a last resort, use the slow shell script.  Don't cache a
   7551     # value for INSTALL within a source directory, because that will
   7552     # break other packages using the cache if that directory is
   7553     # removed, or if the value is a relative name.
   7554     INSTALL=$ac_install_sh
   7555   fi
   7556 fi
   7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   7558 $as_echo "$INSTALL" >&6; }
   7559 
   7560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   7561 # It thinks the first close brace ends the variable substitution.
   7562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   7563 
   7564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   7565 
   7566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   7567 
   7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   7569 $as_echo_n "checking whether ln -s works... " >&6; }
   7570 LN_S=$as_ln_s
   7571 if test "$LN_S" = "ln -s"; then
   7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   7573 $as_echo "yes" >&6; }
   7574 else
   7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   7576 $as_echo "no, using $LN_S" >&6; }
   7577 fi
   7578 
   7579 if test -n "$ac_tool_prefix"; then
   7580   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   7581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7583 $as_echo_n "checking for $ac_word... " >&6; }
   7584 if ${ac_cv_prog_RANLIB+:} false; then :
   7585   $as_echo_n "(cached) " >&6
   7586 else
   7587   if test -n "$RANLIB"; then
   7588   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   7589 else
   7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7591 for as_dir in $PATH
   7592 do
   7593   IFS=$as_save_IFS
   7594   test -z "$as_dir" && as_dir=.
   7595     for ac_exec_ext in '' $ac_executable_extensions; do
   7596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7597     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   7598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7599     break 2
   7600   fi
   7601 done
   7602   done
   7603 IFS=$as_save_IFS
   7604 
   7605 fi
   7606 fi
   7607 RANLIB=$ac_cv_prog_RANLIB
   7608 if test -n "$RANLIB"; then
   7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   7610 $as_echo "$RANLIB" >&6; }
   7611 else
   7612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7613 $as_echo "no" >&6; }
   7614 fi
   7615 
   7616 
   7617 fi
   7618 if test -z "$ac_cv_prog_RANLIB"; then
   7619   ac_ct_RANLIB=$RANLIB
   7620   # Extract the first word of "ranlib", so it can be a program name with args.
   7621 set dummy ranlib; ac_word=$2
   7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7623 $as_echo_n "checking for $ac_word... " >&6; }
   7624 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   7625   $as_echo_n "(cached) " >&6
   7626 else
   7627   if test -n "$ac_ct_RANLIB"; then
   7628   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   7629 else
   7630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7631 for as_dir in $PATH
   7632 do
   7633   IFS=$as_save_IFS
   7634   test -z "$as_dir" && as_dir=.
   7635     for ac_exec_ext in '' $ac_executable_extensions; do
   7636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7637     ac_cv_prog_ac_ct_RANLIB="ranlib"
   7638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7639     break 2
   7640   fi
   7641 done
   7642   done
   7643 IFS=$as_save_IFS
   7644 
   7645 fi
   7646 fi
   7647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   7648 if test -n "$ac_ct_RANLIB"; then
   7649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   7650 $as_echo "$ac_ct_RANLIB" >&6; }
   7651 else
   7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7653 $as_echo "no" >&6; }
   7654 fi
   7655 
   7656   if test "x$ac_ct_RANLIB" = x; then
   7657     RANLIB=":"
   7658   else
   7659     case $cross_compiling:$ac_tool_warned in
   7660 yes:)
   7661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7663 ac_tool_warned=yes ;;
   7664 esac
   7665     RANLIB=$ac_ct_RANLIB
   7666   fi
   7667 else
   7668   RANLIB="$ac_cv_prog_RANLIB"
   7669 fi
   7670 
   7671 for ac_prog in 'bison -y' byacc
   7672 do
   7673   # Extract the first word of "$ac_prog", so it can be a program name with args.
   7674 set dummy $ac_prog; ac_word=$2
   7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7676 $as_echo_n "checking for $ac_word... " >&6; }
   7677 if ${ac_cv_prog_YACC+:} false; then :
   7678   $as_echo_n "(cached) " >&6
   7679 else
   7680   if test -n "$YACC"; then
   7681   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   7682 else
   7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7684 for as_dir in $PATH
   7685 do
   7686   IFS=$as_save_IFS
   7687   test -z "$as_dir" && as_dir=.
   7688     for ac_exec_ext in '' $ac_executable_extensions; do
   7689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7690     ac_cv_prog_YACC="$ac_prog"
   7691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7692     break 2
   7693   fi
   7694 done
   7695   done
   7696 IFS=$as_save_IFS
   7697 
   7698 fi
   7699 fi
   7700 YACC=$ac_cv_prog_YACC
   7701 if test -n "$YACC"; then
   7702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   7703 $as_echo "$YACC" >&6; }
   7704 else
   7705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7706 $as_echo "no" >&6; }
   7707 fi
   7708 
   7709 
   7710   test -n "$YACC" && break
   7711 done
   7712 test -n "$YACC" || YACC="yacc"
   7713 
   7714 
   7715 if test -n "$ac_tool_prefix"; then
   7716   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   7717 set dummy ${ac_tool_prefix}ar; ac_word=$2
   7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7719 $as_echo_n "checking for $ac_word... " >&6; }
   7720 if ${ac_cv_prog_AR+:} false; then :
   7721   $as_echo_n "(cached) " >&6
   7722 else
   7723   if test -n "$AR"; then
   7724   ac_cv_prog_AR="$AR" # Let the user override the test.
   7725 else
   7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7727 for as_dir in $PATH
   7728 do
   7729   IFS=$as_save_IFS
   7730   test -z "$as_dir" && as_dir=.
   7731     for ac_exec_ext in '' $ac_executable_extensions; do
   7732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7733     ac_cv_prog_AR="${ac_tool_prefix}ar"
   7734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7735     break 2
   7736   fi
   7737 done
   7738   done
   7739 IFS=$as_save_IFS
   7740 
   7741 fi
   7742 fi
   7743 AR=$ac_cv_prog_AR
   7744 if test -n "$AR"; then
   7745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   7746 $as_echo "$AR" >&6; }
   7747 else
   7748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7749 $as_echo "no" >&6; }
   7750 fi
   7751 
   7752 
   7753 fi
   7754 if test -z "$ac_cv_prog_AR"; then
   7755   ac_ct_AR=$AR
   7756   # Extract the first word of "ar", so it can be a program name with args.
   7757 set dummy ar; ac_word=$2
   7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7759 $as_echo_n "checking for $ac_word... " >&6; }
   7760 if ${ac_cv_prog_ac_ct_AR+:} false; then :
   7761   $as_echo_n "(cached) " >&6
   7762 else
   7763   if test -n "$ac_ct_AR"; then
   7764   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   7765 else
   7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7767 for as_dir in $PATH
   7768 do
   7769   IFS=$as_save_IFS
   7770   test -z "$as_dir" && as_dir=.
   7771     for ac_exec_ext in '' $ac_executable_extensions; do
   7772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7773     ac_cv_prog_ac_ct_AR="ar"
   7774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7775     break 2
   7776   fi
   7777 done
   7778   done
   7779 IFS=$as_save_IFS
   7780 
   7781 fi
   7782 fi
   7783 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   7784 if test -n "$ac_ct_AR"; then
   7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   7786 $as_echo "$ac_ct_AR" >&6; }
   7787 else
   7788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7789 $as_echo "no" >&6; }
   7790 fi
   7791 
   7792   if test "x$ac_ct_AR" = x; then
   7793     AR=""
   7794   else
   7795     case $cross_compiling:$ac_tool_warned in
   7796 yes:)
   7797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7799 ac_tool_warned=yes ;;
   7800 esac
   7801     AR=$ac_ct_AR
   7802   fi
   7803 else
   7804   AR="$ac_cv_prog_AR"
   7805 fi
   7806 
   7807 if test -n "$ac_tool_prefix"; then
   7808   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   7809 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7811 $as_echo_n "checking for $ac_word... " >&6; }
   7812 if ${ac_cv_prog_DLLTOOL+:} false; then :
   7813   $as_echo_n "(cached) " >&6
   7814 else
   7815   if test -n "$DLLTOOL"; then
   7816   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   7817 else
   7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7819 for as_dir in $PATH
   7820 do
   7821   IFS=$as_save_IFS
   7822   test -z "$as_dir" && as_dir=.
   7823     for ac_exec_ext in '' $ac_executable_extensions; do
   7824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7825     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   7826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7827     break 2
   7828   fi
   7829 done
   7830   done
   7831 IFS=$as_save_IFS
   7832 
   7833 fi
   7834 fi
   7835 DLLTOOL=$ac_cv_prog_DLLTOOL
   7836 if test -n "$DLLTOOL"; then
   7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   7838 $as_echo "$DLLTOOL" >&6; }
   7839 else
   7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7841 $as_echo "no" >&6; }
   7842 fi
   7843 
   7844 
   7845 fi
   7846 if test -z "$ac_cv_prog_DLLTOOL"; then
   7847   ac_ct_DLLTOOL=$DLLTOOL
   7848   # Extract the first word of "dlltool", so it can be a program name with args.
   7849 set dummy dlltool; ac_word=$2
   7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7851 $as_echo_n "checking for $ac_word... " >&6; }
   7852 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
   7853   $as_echo_n "(cached) " >&6
   7854 else
   7855   if test -n "$ac_ct_DLLTOOL"; then
   7856   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   7857 else
   7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7859 for as_dir in $PATH
   7860 do
   7861   IFS=$as_save_IFS
   7862   test -z "$as_dir" && as_dir=.
   7863     for ac_exec_ext in '' $ac_executable_extensions; do
   7864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7865     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   7866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7867     break 2
   7868   fi
   7869 done
   7870   done
   7871 IFS=$as_save_IFS
   7872 
   7873 fi
   7874 fi
   7875 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   7876 if test -n "$ac_ct_DLLTOOL"; then
   7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   7878 $as_echo "$ac_ct_DLLTOOL" >&6; }
   7879 else
   7880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7881 $as_echo "no" >&6; }
   7882 fi
   7883 
   7884   if test "x$ac_ct_DLLTOOL" = x; then
   7885     DLLTOOL=""
   7886   else
   7887     case $cross_compiling:$ac_tool_warned in
   7888 yes:)
   7889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7891 ac_tool_warned=yes ;;
   7892 esac
   7893     DLLTOOL=$ac_ct_DLLTOOL
   7894   fi
   7895 else
   7896   DLLTOOL="$ac_cv_prog_DLLTOOL"
   7897 fi
   7898 
   7899 if test -n "$ac_tool_prefix"; then
   7900   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   7901 set dummy ${ac_tool_prefix}windres; ac_word=$2
   7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7903 $as_echo_n "checking for $ac_word... " >&6; }
   7904 if ${ac_cv_prog_WINDRES+:} false; then :
   7905   $as_echo_n "(cached) " >&6
   7906 else
   7907   if test -n "$WINDRES"; then
   7908   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   7909 else
   7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7911 for as_dir in $PATH
   7912 do
   7913   IFS=$as_save_IFS
   7914   test -z "$as_dir" && as_dir=.
   7915     for ac_exec_ext in '' $ac_executable_extensions; do
   7916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7917     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
   7918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7919     break 2
   7920   fi
   7921 done
   7922   done
   7923 IFS=$as_save_IFS
   7924 
   7925 fi
   7926 fi
   7927 WINDRES=$ac_cv_prog_WINDRES
   7928 if test -n "$WINDRES"; then
   7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   7930 $as_echo "$WINDRES" >&6; }
   7931 else
   7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7933 $as_echo "no" >&6; }
   7934 fi
   7935 
   7936 
   7937 fi
   7938 if test -z "$ac_cv_prog_WINDRES"; then
   7939   ac_ct_WINDRES=$WINDRES
   7940   # Extract the first word of "windres", so it can be a program name with args.
   7941 set dummy windres; ac_word=$2
   7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7943 $as_echo_n "checking for $ac_word... " >&6; }
   7944 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
   7945   $as_echo_n "(cached) " >&6
   7946 else
   7947   if test -n "$ac_ct_WINDRES"; then
   7948   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
   7949 else
   7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   7951 for as_dir in $PATH
   7952 do
   7953   IFS=$as_save_IFS
   7954   test -z "$as_dir" && as_dir=.
   7955     for ac_exec_ext in '' $ac_executable_extensions; do
   7956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   7957     ac_cv_prog_ac_ct_WINDRES="windres"
   7958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   7959     break 2
   7960   fi
   7961 done
   7962   done
   7963 IFS=$as_save_IFS
   7964 
   7965 fi
   7966 fi
   7967 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
   7968 if test -n "$ac_ct_WINDRES"; then
   7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
   7970 $as_echo "$ac_ct_WINDRES" >&6; }
   7971 else
   7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7973 $as_echo "no" >&6; }
   7974 fi
   7975 
   7976   if test "x$ac_ct_WINDRES" = x; then
   7977     WINDRES=""
   7978   else
   7979     case $cross_compiling:$ac_tool_warned in
   7980 yes:)
   7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   7982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   7983 ac_tool_warned=yes ;;
   7984 esac
   7985     WINDRES=$ac_ct_WINDRES
   7986   fi
   7987 else
   7988   WINDRES="$ac_cv_prog_WINDRES"
   7989 fi
   7990 
   7991 
   7992 case $host_os in
   7993   gnu*)
   7994     # Needed for GNU Hurd hosts.
   7995     if test -n "$ac_tool_prefix"; then
   7996   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
   7997 set dummy ${ac_tool_prefix}mig; ac_word=$2
   7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   7999 $as_echo_n "checking for $ac_word... " >&6; }
   8000 if ${ac_cv_prog_MIG+:} false; then :
   8001   $as_echo_n "(cached) " >&6
   8002 else
   8003   if test -n "$MIG"; then
   8004   ac_cv_prog_MIG="$MIG" # Let the user override the test.
   8005 else
   8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8007 for as_dir in $PATH
   8008 do
   8009   IFS=$as_save_IFS
   8010   test -z "$as_dir" && as_dir=.
   8011     for ac_exec_ext in '' $ac_executable_extensions; do
   8012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8013     ac_cv_prog_MIG="${ac_tool_prefix}mig"
   8014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8015     break 2
   8016   fi
   8017 done
   8018   done
   8019 IFS=$as_save_IFS
   8020 
   8021 fi
   8022 fi
   8023 MIG=$ac_cv_prog_MIG
   8024 if test -n "$MIG"; then
   8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
   8026 $as_echo "$MIG" >&6; }
   8027 else
   8028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8029 $as_echo "no" >&6; }
   8030 fi
   8031 
   8032 
   8033 fi
   8034 if test -z "$ac_cv_prog_MIG"; then
   8035   ac_ct_MIG=$MIG
   8036   # Extract the first word of "mig", so it can be a program name with args.
   8037 set dummy mig; ac_word=$2
   8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8039 $as_echo_n "checking for $ac_word... " >&6; }
   8040 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
   8041   $as_echo_n "(cached) " >&6
   8042 else
   8043   if test -n "$ac_ct_MIG"; then
   8044   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
   8045 else
   8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8047 for as_dir in $PATH
   8048 do
   8049   IFS=$as_save_IFS
   8050   test -z "$as_dir" && as_dir=.
   8051     for ac_exec_ext in '' $ac_executable_extensions; do
   8052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8053     ac_cv_prog_ac_ct_MIG="mig"
   8054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8055     break 2
   8056   fi
   8057 done
   8058   done
   8059 IFS=$as_save_IFS
   8060 
   8061 fi
   8062 fi
   8063 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
   8064 if test -n "$ac_ct_MIG"; then
   8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
   8066 $as_echo "$ac_ct_MIG" >&6; }
   8067 else
   8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8069 $as_echo "no" >&6; }
   8070 fi
   8071 
   8072   if test "x$ac_ct_MIG" = x; then
   8073     MIG=""
   8074   else
   8075     case $cross_compiling:$ac_tool_warned in
   8076 yes:)
   8077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   8078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   8079 ac_tool_warned=yes ;;
   8080 esac
   8081     MIG=$ac_ct_MIG
   8082   fi
   8083 else
   8084   MIG="$ac_cv_prog_MIG"
   8085 fi
   8086 
   8087     if test x"$MIG" = x; then
   8088       as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
   8089     fi
   8090     ;;
   8091 esac
   8092 
   8093 # ---------------------- #
   8094 # Checks for libraries.  #
   8095 # ---------------------- #
   8096 
   8097 # We might need to link with -lm; most simulators need it.
   8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
   8099 $as_echo_n "checking for main in -lm... " >&6; }
   8100 if ${ac_cv_lib_m_main+:} false; then :
   8101   $as_echo_n "(cached) " >&6
   8102 else
   8103   ac_check_lib_save_LIBS=$LIBS
   8104 LIBS="-lm  $LIBS"
   8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8106 /* end confdefs.h.  */
   8107 
   8108 
   8109 int
   8110 main ()
   8111 {
   8112 return main ();
   8113   ;
   8114   return 0;
   8115 }
   8116 _ACEOF
   8117 if ac_fn_c_try_link "$LINENO"; then :
   8118   ac_cv_lib_m_main=yes
   8119 else
   8120   ac_cv_lib_m_main=no
   8121 fi
   8122 rm -f core conftest.err conftest.$ac_objext \
   8123     conftest$ac_exeext conftest.$ac_ext
   8124 LIBS=$ac_check_lib_save_LIBS
   8125 fi
   8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
   8127 $as_echo "$ac_cv_lib_m_main" >&6; }
   8128 if test "x$ac_cv_lib_m_main" = xyes; then :
   8129   cat >>confdefs.h <<_ACEOF
   8130 #define HAVE_LIBM 1
   8131 _ACEOF
   8132 
   8133   LIBS="-lm $LIBS"
   8134 
   8135 fi
   8136 
   8137 
   8138 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
   8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
   8140 $as_echo_n "checking for library containing gethostbyname... " >&6; }
   8141 if ${ac_cv_search_gethostbyname+:} false; then :
   8142   $as_echo_n "(cached) " >&6
   8143 else
   8144   ac_func_search_save_LIBS=$LIBS
   8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8146 /* end confdefs.h.  */
   8147 
   8148 /* Override any GCC internal prototype to avoid an error.
   8149    Use char because int might match the return type of a GCC
   8150    builtin and then its argument prototype would still apply.  */
   8151 #ifdef __cplusplus
   8152 extern "C"
   8153 #endif
   8154 char gethostbyname ();
   8155 int
   8156 main ()
   8157 {
   8158 return gethostbyname ();
   8159   ;
   8160   return 0;
   8161 }
   8162 _ACEOF
   8163 for ac_lib in '' nsl; do
   8164   if test -z "$ac_lib"; then
   8165     ac_res="none required"
   8166   else
   8167     ac_res=-l$ac_lib
   8168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8169   fi
   8170   if ac_fn_c_try_link "$LINENO"; then :
   8171   ac_cv_search_gethostbyname=$ac_res
   8172 fi
   8173 rm -f core conftest.err conftest.$ac_objext \
   8174     conftest$ac_exeext
   8175   if ${ac_cv_search_gethostbyname+:} false; then :
   8176   break
   8177 fi
   8178 done
   8179 if ${ac_cv_search_gethostbyname+:} false; then :
   8180 
   8181 else
   8182   ac_cv_search_gethostbyname=no
   8183 fi
   8184 rm conftest.$ac_ext
   8185 LIBS=$ac_func_search_save_LIBS
   8186 fi
   8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
   8188 $as_echo "$ac_cv_search_gethostbyname" >&6; }
   8189 ac_res=$ac_cv_search_gethostbyname
   8190 if test "$ac_res" != no; then :
   8191   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8192 
   8193 fi
   8194 
   8195 
   8196 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
   8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
   8198 $as_echo_n "checking for library containing socketpair... " >&6; }
   8199 if ${ac_cv_search_socketpair+:} false; then :
   8200   $as_echo_n "(cached) " >&6
   8201 else
   8202   ac_func_search_save_LIBS=$LIBS
   8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8204 /* end confdefs.h.  */
   8205 
   8206 /* Override any GCC internal prototype to avoid an error.
   8207    Use char because int might match the return type of a GCC
   8208    builtin and then its argument prototype would still apply.  */
   8209 #ifdef __cplusplus
   8210 extern "C"
   8211 #endif
   8212 char socketpair ();
   8213 int
   8214 main ()
   8215 {
   8216 return socketpair ();
   8217   ;
   8218   return 0;
   8219 }
   8220 _ACEOF
   8221 for ac_lib in '' socket; do
   8222   if test -z "$ac_lib"; then
   8223     ac_res="none required"
   8224   else
   8225     ac_res=-l$ac_lib
   8226     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8227   fi
   8228   if ac_fn_c_try_link "$LINENO"; then :
   8229   ac_cv_search_socketpair=$ac_res
   8230 fi
   8231 rm -f core conftest.err conftest.$ac_objext \
   8232     conftest$ac_exeext
   8233   if ${ac_cv_search_socketpair+:} false; then :
   8234   break
   8235 fi
   8236 done
   8237 if ${ac_cv_search_socketpair+:} false; then :
   8238 
   8239 else
   8240   ac_cv_search_socketpair=no
   8241 fi
   8242 rm conftest.$ac_ext
   8243 LIBS=$ac_func_search_save_LIBS
   8244 fi
   8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
   8246 $as_echo "$ac_cv_search_socketpair" >&6; }
   8247 ac_res=$ac_cv_search_socketpair
   8248 if test "$ac_res" != no; then :
   8249   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8250 
   8251 fi
   8252 
   8253 
   8254 # Link in zlib if we can.  This allows us to read compressed debug sections.
   8255 
   8256   # Use the system's zlib library.
   8257   zlibdir="-L\$(top_builddir)/../zlib"
   8258   zlibinc="-I\$(top_srcdir)/../zlib"
   8259 
   8260 # Check whether --with-system-zlib was given.
   8261 if test "${with_system_zlib+set}" = set; then :
   8262   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
   8263     zlibdir=
   8264     zlibinc=
   8265   fi
   8266 
   8267 fi
   8268 
   8269 
   8270 
   8271 
   8272 
   8273 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
   8274 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
   8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
   8276 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
   8277 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
   8278   $as_echo_n "(cached) " >&6
   8279 else
   8280   ac_func_search_save_LIBS=$LIBS
   8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8282 /* end confdefs.h.  */
   8283 
   8284 /* Override any GCC internal prototype to avoid an error.
   8285    Use char because int might match the return type of a GCC
   8286    builtin and then its argument prototype would still apply.  */
   8287 #ifdef __cplusplus
   8288 extern "C"
   8289 #endif
   8290 char kinfo_getvmmap ();
   8291 int
   8292 main ()
   8293 {
   8294 return kinfo_getvmmap ();
   8295   ;
   8296   return 0;
   8297 }
   8298 _ACEOF
   8299 for ac_lib in '' util util-freebsd; do
   8300   if test -z "$ac_lib"; then
   8301     ac_res="none required"
   8302   else
   8303     ac_res=-l$ac_lib
   8304     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   8305   fi
   8306   if ac_fn_c_try_link "$LINENO"; then :
   8307   ac_cv_search_kinfo_getvmmap=$ac_res
   8308 fi
   8309 rm -f core conftest.err conftest.$ac_objext \
   8310     conftest$ac_exeext
   8311   if ${ac_cv_search_kinfo_getvmmap+:} false; then :
   8312   break
   8313 fi
   8314 done
   8315 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
   8316 
   8317 else
   8318   ac_cv_search_kinfo_getvmmap=no
   8319 fi
   8320 rm conftest.$ac_ext
   8321 LIBS=$ac_func_search_save_LIBS
   8322 fi
   8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
   8324 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
   8325 ac_res=$ac_cv_search_kinfo_getvmmap
   8326 if test "$ac_res" != no; then :
   8327   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   8328 
   8329 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
   8330 
   8331 fi
   8332 
   8333 
   8334 
   8335       if test "X$prefix" = "XNONE"; then
   8336     acl_final_prefix="$ac_default_prefix"
   8337   else
   8338     acl_final_prefix="$prefix"
   8339   fi
   8340   if test "X$exec_prefix" = "XNONE"; then
   8341     acl_final_exec_prefix='${prefix}'
   8342   else
   8343     acl_final_exec_prefix="$exec_prefix"
   8344   fi
   8345   acl_save_prefix="$prefix"
   8346   prefix="$acl_final_prefix"
   8347   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   8348   prefix="$acl_save_prefix"
   8349 
   8350 
   8351 # Check whether --with-gnu-ld was given.
   8352 if test "${with_gnu_ld+set}" = set; then :
   8353   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   8354 else
   8355   with_gnu_ld=no
   8356 fi
   8357 
   8358 # Prepare PATH_SEPARATOR.
   8359 # The user is always right.
   8360 if test "${PATH_SEPARATOR+set}" != set; then
   8361   echo "#! /bin/sh" >conf$$.sh
   8362   echo  "exit 0"   >>conf$$.sh
   8363   chmod +x conf$$.sh
   8364   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   8365     PATH_SEPARATOR=';'
   8366   else
   8367     PATH_SEPARATOR=:
   8368   fi
   8369   rm -f conf$$.sh
   8370 fi
   8371 ac_prog=ld
   8372 if test "$GCC" = yes; then
   8373   # Check if gcc -print-prog-name=ld gives a path.
   8374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
   8375 $as_echo_n "checking for ld used by GCC... " >&6; }
   8376   case $host in
   8377   *-*-mingw*)
   8378     # gcc leaves a trailing carriage return which upsets mingw
   8379     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   8380   *)
   8381     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   8382   esac
   8383   case $ac_prog in
   8384     # Accept absolute paths.
   8385     [\\/]* | [A-Za-z]:[\\/]*)
   8386       re_direlt='/[^/][^/]*/\.\./'
   8387       # Canonicalize the path of ld
   8388       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   8389       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   8390 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   8391       done
   8392       test -z "$LD" && LD="$ac_prog"
   8393       ;;
   8394   "")
   8395     # If it fails, then pretend we aren't using GCC.
   8396     ac_prog=ld
   8397     ;;
   8398   *)
   8399     # If it is relative, then search for the first ld in PATH.
   8400     with_gnu_ld=unknown
   8401     ;;
   8402   esac
   8403 elif test "$with_gnu_ld" = yes; then
   8404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   8405 $as_echo_n "checking for GNU ld... " >&6; }
   8406 else
   8407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   8408 $as_echo_n "checking for non-GNU ld... " >&6; }
   8409 fi
   8410 if ${acl_cv_path_LD+:} false; then :
   8411   $as_echo_n "(cached) " >&6
   8412 else
   8413   if test -z "$LD"; then
   8414   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   8415   for ac_dir in $PATH; do
   8416     test -z "$ac_dir" && ac_dir=.
   8417     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   8418       acl_cv_path_LD="$ac_dir/$ac_prog"
   8419       # Check to see if the program is GNU ld.  I'd rather use --version,
   8420       # but apparently some GNU ld's only accept -v.
   8421       # Break only if it was the GNU/non-GNU ld that we prefer.
   8422       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
   8423 	test "$with_gnu_ld" != no && break
   8424       else
   8425 	test "$with_gnu_ld" != yes && break
   8426       fi
   8427     fi
   8428   done
   8429   IFS="$ac_save_ifs"
   8430 else
   8431   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   8432 fi
   8433 fi
   8434 
   8435 LD="$acl_cv_path_LD"
   8436 if test -n "$LD"; then
   8437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   8438 $as_echo "$LD" >&6; }
   8439 else
   8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8441 $as_echo "no" >&6; }
   8442 fi
   8443 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   8445 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   8446 if ${acl_cv_prog_gnu_ld+:} false; then :
   8447   $as_echo_n "(cached) " >&6
   8448 else
   8449   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   8450 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   8451   acl_cv_prog_gnu_ld=yes
   8452 else
   8453   acl_cv_prog_gnu_ld=no
   8454 fi
   8455 fi
   8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
   8457 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   8458 with_gnu_ld=$acl_cv_prog_gnu_ld
   8459 
   8460 
   8461 
   8462                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
   8463 $as_echo_n "checking for shared library run path origin... " >&6; }
   8464 if ${acl_cv_rpath+:} false; then :
   8465   $as_echo_n "(cached) " >&6
   8466 else
   8467 
   8468     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   8469     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   8470     . ./conftest.sh
   8471     rm -f ./conftest.sh
   8472     acl_cv_rpath=done
   8473 
   8474 fi
   8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
   8476 $as_echo "$acl_cv_rpath" >&6; }
   8477   wl="$acl_cv_wl"
   8478   libext="$acl_cv_libext"
   8479   shlibext="$acl_cv_shlibext"
   8480   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   8481   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   8482   hardcode_direct="$acl_cv_hardcode_direct"
   8483   hardcode_minus_L="$acl_cv_hardcode_minus_L"
   8484     # Check whether --enable-rpath was given.
   8485 if test "${enable_rpath+set}" = set; then :
   8486   enableval=$enable_rpath; :
   8487 else
   8488   enable_rpath=yes
   8489 fi
   8490 
   8491 
   8492 
   8493 
   8494 
   8495 
   8496 
   8497 
   8498     use_additional=yes
   8499 
   8500   acl_save_prefix="$prefix"
   8501   prefix="$acl_final_prefix"
   8502   acl_save_exec_prefix="$exec_prefix"
   8503   exec_prefix="$acl_final_exec_prefix"
   8504 
   8505     eval additional_includedir=\"$includedir\"
   8506     eval additional_libdir=\"$libdir\"
   8507 
   8508   exec_prefix="$acl_save_exec_prefix"
   8509   prefix="$acl_save_prefix"
   8510 
   8511 
   8512 # Check whether --with-libiconv-prefix was given.
   8513 if test "${with_libiconv_prefix+set}" = set; then :
   8514   withval=$with_libiconv_prefix;
   8515     if test "X$withval" = "Xno"; then
   8516       use_additional=no
   8517     else
   8518       if test "X$withval" = "X"; then
   8519 
   8520   acl_save_prefix="$prefix"
   8521   prefix="$acl_final_prefix"
   8522   acl_save_exec_prefix="$exec_prefix"
   8523   exec_prefix="$acl_final_exec_prefix"
   8524 
   8525           eval additional_includedir=\"$includedir\"
   8526           eval additional_libdir=\"$libdir\"
   8527 
   8528   exec_prefix="$acl_save_exec_prefix"
   8529   prefix="$acl_save_prefix"
   8530 
   8531       else
   8532         additional_includedir="$withval/include"
   8533         additional_libdir="$withval/lib"
   8534       fi
   8535     fi
   8536 
   8537 fi
   8538 
   8539 
   8540 # Check whether --with-libiconv-type was given.
   8541 if test "${with_libiconv_type+set}" = set; then :
   8542   withval=$with_libiconv_type;  with_libiconv_type=$withval
   8543 else
   8544    with_libiconv_type=auto
   8545 fi
   8546 
   8547   lib_type=`eval echo \$with_libiconv_type`
   8548 
   8549       LIBICONV=
   8550   LTLIBICONV=
   8551   INCICONV=
   8552   rpathdirs=
   8553   ltrpathdirs=
   8554   names_already_handled=
   8555   names_next_round='iconv '
   8556   while test -n "$names_next_round"; do
   8557     names_this_round="$names_next_round"
   8558     names_next_round=
   8559     for name in $names_this_round; do
   8560       already_handled=
   8561       for n in $names_already_handled; do
   8562         if test "$n" = "$name"; then
   8563           already_handled=yes
   8564           break
   8565         fi
   8566       done
   8567       if test -z "$already_handled"; then
   8568         names_already_handled="$names_already_handled $name"
   8569                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   8570         eval value=\"\$HAVE_LIB$uppername\"
   8571         if test -n "$value"; then
   8572           if test "$value" = yes; then
   8573             eval value=\"\$LIB$uppername\"
   8574             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
   8575             eval value=\"\$LTLIB$uppername\"
   8576             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
   8577           else
   8578                                     :
   8579           fi
   8580         else
   8581                               found_dir=
   8582           found_la=
   8583           found_so=
   8584           found_a=
   8585           if test $use_additional = yes; then
   8586             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   8587               found_dir="$additional_libdir"
   8588               found_so="$additional_libdir/lib$name.$shlibext"
   8589               if test -f "$additional_libdir/lib$name.la"; then
   8590                 found_la="$additional_libdir/lib$name.la"
   8591               fi
   8592             elif test x$lib_type != xshared; then
   8593               if test -f "$additional_libdir/lib$name.$libext"; then
   8594                 found_dir="$additional_libdir"
   8595                 found_a="$additional_libdir/lib$name.$libext"
   8596                 if test -f "$additional_libdir/lib$name.la"; then
   8597                   found_la="$additional_libdir/lib$name.la"
   8598                 fi
   8599               fi
   8600             fi
   8601           fi
   8602           if test "X$found_dir" = "X"; then
   8603             for x in $LDFLAGS $LTLIBICONV; do
   8604 
   8605   acl_save_prefix="$prefix"
   8606   prefix="$acl_final_prefix"
   8607   acl_save_exec_prefix="$exec_prefix"
   8608   exec_prefix="$acl_final_exec_prefix"
   8609   eval x=\"$x\"
   8610   exec_prefix="$acl_save_exec_prefix"
   8611   prefix="$acl_save_prefix"
   8612 
   8613               case "$x" in
   8614                 -L*)
   8615                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   8616                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   8617                     found_dir="$dir"
   8618                     found_so="$dir/lib$name.$shlibext"
   8619                     if test -f "$dir/lib$name.la"; then
   8620                       found_la="$dir/lib$name.la"
   8621                     fi
   8622                   elif test x$lib_type != xshared; then
   8623                     if test -f "$dir/lib$name.$libext"; then
   8624                       found_dir="$dir"
   8625                       found_a="$dir/lib$name.$libext"
   8626                       if test -f "$dir/lib$name.la"; then
   8627                         found_la="$dir/lib$name.la"
   8628                       fi
   8629                     fi
   8630                   fi
   8631                   ;;
   8632               esac
   8633               if test "X$found_dir" != "X"; then
   8634                 break
   8635               fi
   8636             done
   8637           fi
   8638           if test "X$found_dir" != "X"; then
   8639                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
   8640             if test "X$found_so" != "X"; then
   8641                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   8642                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   8643               else
   8644                                                                                 haveit=
   8645                 for x in $ltrpathdirs; do
   8646                   if test "X$x" = "X$found_dir"; then
   8647                     haveit=yes
   8648                     break
   8649                   fi
   8650                 done
   8651                 if test -z "$haveit"; then
   8652                   ltrpathdirs="$ltrpathdirs $found_dir"
   8653                 fi
   8654                                 if test "$hardcode_direct" = yes; then
   8655                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   8656                 else
   8657                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   8658                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   8659                                                             haveit=
   8660                     for x in $rpathdirs; do
   8661                       if test "X$x" = "X$found_dir"; then
   8662                         haveit=yes
   8663                         break
   8664                       fi
   8665                     done
   8666                     if test -z "$haveit"; then
   8667                       rpathdirs="$rpathdirs $found_dir"
   8668                     fi
   8669                   else
   8670                                                                                 haveit=
   8671                     for x in $LDFLAGS $LIBICONV; do
   8672 
   8673   acl_save_prefix="$prefix"
   8674   prefix="$acl_final_prefix"
   8675   acl_save_exec_prefix="$exec_prefix"
   8676   exec_prefix="$acl_final_exec_prefix"
   8677   eval x=\"$x\"
   8678   exec_prefix="$acl_save_exec_prefix"
   8679   prefix="$acl_save_prefix"
   8680 
   8681                       if test "X$x" = "X-L$found_dir"; then
   8682                         haveit=yes
   8683                         break
   8684                       fi
   8685                     done
   8686                     if test -z "$haveit"; then
   8687                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
   8688                     fi
   8689                     if test "$hardcode_minus_L" != no; then
   8690                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   8691                     else
   8692                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   8693                     fi
   8694                   fi
   8695                 fi
   8696               fi
   8697             else
   8698               if test "X$found_a" != "X"; then
   8699                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
   8700               else
   8701                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
   8702               fi
   8703             fi
   8704                         additional_includedir=
   8705             case "$found_dir" in
   8706               */lib | */lib/)
   8707                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   8708                 additional_includedir="$basedir/include"
   8709                 ;;
   8710             esac
   8711             if test "X$additional_includedir" != "X"; then
   8712                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   8713                 haveit=
   8714                 if test "X$additional_includedir" = "X/usr/local/include"; then
   8715                   if test -n "$GCC"; then
   8716                     case $host_os in
   8717                       linux*) haveit=yes;;
   8718                     esac
   8719                   fi
   8720                 fi
   8721                 if test -z "$haveit"; then
   8722                   for x in $CPPFLAGS $INCICONV; do
   8723 
   8724   acl_save_prefix="$prefix"
   8725   prefix="$acl_final_prefix"
   8726   acl_save_exec_prefix="$exec_prefix"
   8727   exec_prefix="$acl_final_exec_prefix"
   8728   eval x=\"$x\"
   8729   exec_prefix="$acl_save_exec_prefix"
   8730   prefix="$acl_save_prefix"
   8731 
   8732                     if test "X$x" = "X-I$additional_includedir"; then
   8733                       haveit=yes
   8734                       break
   8735                     fi
   8736                   done
   8737                   if test -z "$haveit"; then
   8738                     if test -d "$additional_includedir"; then
   8739                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
   8740                     fi
   8741                   fi
   8742                 fi
   8743               fi
   8744             fi
   8745                         if test -n "$found_la"; then
   8746                                                         save_libdir="$libdir"
   8747               case "$found_la" in
   8748                 */* | *\\*) . "$found_la" ;;
   8749                 *) . "./$found_la" ;;
   8750               esac
   8751               libdir="$save_libdir"
   8752                             for dep in $dependency_libs; do
   8753                 case "$dep" in
   8754                   -L*)
   8755                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   8756                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   8757                       haveit=
   8758                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   8759                         if test -n "$GCC"; then
   8760                           case $host_os in
   8761                             linux*) haveit=yes;;
   8762                           esac
   8763                         fi
   8764                       fi
   8765                       if test -z "$haveit"; then
   8766                         haveit=
   8767                         for x in $LDFLAGS $LIBICONV; do
   8768 
   8769   acl_save_prefix="$prefix"
   8770   prefix="$acl_final_prefix"
   8771   acl_save_exec_prefix="$exec_prefix"
   8772   exec_prefix="$acl_final_exec_prefix"
   8773   eval x=\"$x\"
   8774   exec_prefix="$acl_save_exec_prefix"
   8775   prefix="$acl_save_prefix"
   8776 
   8777                           if test "X$x" = "X-L$additional_libdir"; then
   8778                             haveit=yes
   8779                             break
   8780                           fi
   8781                         done
   8782                         if test -z "$haveit"; then
   8783                           if test -d "$additional_libdir"; then
   8784                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
   8785                           fi
   8786                         fi
   8787                         haveit=
   8788                         for x in $LDFLAGS $LTLIBICONV; do
   8789 
   8790   acl_save_prefix="$prefix"
   8791   prefix="$acl_final_prefix"
   8792   acl_save_exec_prefix="$exec_prefix"
   8793   exec_prefix="$acl_final_exec_prefix"
   8794   eval x=\"$x\"
   8795   exec_prefix="$acl_save_exec_prefix"
   8796   prefix="$acl_save_prefix"
   8797 
   8798                           if test "X$x" = "X-L$additional_libdir"; then
   8799                             haveit=yes
   8800                             break
   8801                           fi
   8802                         done
   8803                         if test -z "$haveit"; then
   8804                           if test -d "$additional_libdir"; then
   8805                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
   8806                           fi
   8807                         fi
   8808                       fi
   8809                     fi
   8810                     ;;
   8811                   -R*)
   8812                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   8813                     if test "$enable_rpath" != no; then
   8814                                                                   haveit=
   8815                       for x in $rpathdirs; do
   8816                         if test "X$x" = "X$dir"; then
   8817                           haveit=yes
   8818                           break
   8819                         fi
   8820                       done
   8821                       if test -z "$haveit"; then
   8822                         rpathdirs="$rpathdirs $dir"
   8823                       fi
   8824                                                                   haveit=
   8825                       for x in $ltrpathdirs; do
   8826                         if test "X$x" = "X$dir"; then
   8827                           haveit=yes
   8828                           break
   8829                         fi
   8830                       done
   8831                       if test -z "$haveit"; then
   8832                         ltrpathdirs="$ltrpathdirs $dir"
   8833                       fi
   8834                     fi
   8835                     ;;
   8836                   -l*)
   8837                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   8838                     ;;
   8839                   *.la)
   8840                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   8841                     ;;
   8842                   *)
   8843                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
   8844                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
   8845                     ;;
   8846                 esac
   8847               done
   8848             fi
   8849           else
   8850                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   8851               LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   8852               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
   8853             else
   8854               LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
   8855               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
   8856             fi
   8857           fi
   8858         fi
   8859       fi
   8860     done
   8861   done
   8862   if test "X$rpathdirs" != "X"; then
   8863     if test -n "$hardcode_libdir_separator"; then
   8864                         alldirs=
   8865       for found_dir in $rpathdirs; do
   8866         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   8867       done
   8868             acl_save_libdir="$libdir"
   8869       libdir="$alldirs"
   8870       eval flag=\"$hardcode_libdir_flag_spec\"
   8871       libdir="$acl_save_libdir"
   8872       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   8873     else
   8874             for found_dir in $rpathdirs; do
   8875         acl_save_libdir="$libdir"
   8876         libdir="$found_dir"
   8877         eval flag=\"$hardcode_libdir_flag_spec\"
   8878         libdir="$acl_save_libdir"
   8879         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   8880       done
   8881     fi
   8882   fi
   8883   if test "X$ltrpathdirs" != "X"; then
   8884             for found_dir in $ltrpathdirs; do
   8885       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
   8886     done
   8887   fi
   8888 
   8889 
   8890 
   8891 
   8892 
   8893 
   8894 
   8895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
   8896 $as_echo_n "checking for iconv... " >&6; }
   8897 if ${am_cv_func_iconv+:} false; then :
   8898   $as_echo_n "(cached) " >&6
   8899 else
   8900 
   8901     am_cv_func_iconv="no, consider installing GNU libiconv"
   8902     am_cv_lib_iconv=no
   8903                     am_save_CPPFLAGS="$CPPFLAGS"
   8904     CPPFLAGS="$CPPFLAGS $INCICONV"
   8905     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8906 /* end confdefs.h.  */
   8907 #include <stdlib.h>
   8908 #include <iconv.h>
   8909 int
   8910 main ()
   8911 {
   8912 iconv_t cd = iconv_open("","");
   8913        iconv(cd,NULL,NULL,NULL,NULL);
   8914        iconv_close(cd);
   8915   ;
   8916   return 0;
   8917 }
   8918 _ACEOF
   8919 if ac_fn_c_try_link "$LINENO"; then :
   8920   am_cv_func_iconv=yes
   8921 fi
   8922 rm -f core conftest.err conftest.$ac_objext \
   8923     conftest$ac_exeext conftest.$ac_ext
   8924     CPPFLAGS="$am_save_CPPFLAGS"
   8925 
   8926     if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
   8927       for _libs in .libs _libs; do
   8928         am_save_CPPFLAGS="$CPPFLAGS"
   8929         am_save_LIBS="$LIBS"
   8930         CPPFLAGS="$CPPFLAGS -I../libiconv/include"
   8931         LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
   8932         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8933 /* end confdefs.h.  */
   8934 #include <stdlib.h>
   8935 #include <iconv.h>
   8936 int
   8937 main ()
   8938 {
   8939 iconv_t cd = iconv_open("","");
   8940            iconv(cd,NULL,NULL,NULL,NULL);
   8941            iconv_close(cd);
   8942   ;
   8943   return 0;
   8944 }
   8945 _ACEOF
   8946 if ac_fn_c_try_link "$LINENO"; then :
   8947   INCICONV="-I../libiconv/include"
   8948           LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
   8949           LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
   8950           am_cv_lib_iconv=yes
   8951           am_cv_func_iconv=yes
   8952 fi
   8953 rm -f core conftest.err conftest.$ac_objext \
   8954     conftest$ac_exeext conftest.$ac_ext
   8955         CPPFLAGS="$am_save_CPPFLAGS"
   8956         LIBS="$am_save_LIBS"
   8957         if test "$am_cv_func_iconv" = "yes"; then
   8958           break
   8959         fi
   8960       done
   8961     fi
   8962 
   8963     if test "$am_cv_func_iconv" != yes; then
   8964       am_save_CPPFLAGS="$CPPFLAGS"
   8965       am_save_LIBS="$LIBS"
   8966       CPPFLAGS="$CPPFLAGS $INCICONV"
   8967       LIBS="$LIBS $LIBICONV"
   8968       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8969 /* end confdefs.h.  */
   8970 #include <stdlib.h>
   8971 #include <iconv.h>
   8972 int
   8973 main ()
   8974 {
   8975 iconv_t cd = iconv_open("","");
   8976          iconv(cd,NULL,NULL,NULL,NULL);
   8977          iconv_close(cd);
   8978   ;
   8979   return 0;
   8980 }
   8981 _ACEOF
   8982 if ac_fn_c_try_link "$LINENO"; then :
   8983   am_cv_lib_iconv=yes
   8984         am_cv_func_iconv=yes
   8985 fi
   8986 rm -f core conftest.err conftest.$ac_objext \
   8987     conftest$ac_exeext conftest.$ac_ext
   8988       CPPFLAGS="$am_save_CPPFLAGS"
   8989       LIBS="$am_save_LIBS"
   8990     fi
   8991 
   8992 fi
   8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
   8994 $as_echo "$am_cv_func_iconv" >&6; }
   8995   if test "$am_cv_func_iconv" = yes; then
   8996 
   8997 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
   8998 
   8999   fi
   9000   if test "$am_cv_lib_iconv" = yes; then
   9001 
   9002   for element in $INCICONV; do
   9003     haveit=
   9004     for x in $CPPFLAGS; do
   9005 
   9006   acl_save_prefix="$prefix"
   9007   prefix="$acl_final_prefix"
   9008   acl_save_exec_prefix="$exec_prefix"
   9009   exec_prefix="$acl_final_exec_prefix"
   9010   eval x=\"$x\"
   9011   exec_prefix="$acl_save_exec_prefix"
   9012   prefix="$acl_save_prefix"
   9013 
   9014       if test "X$x" = "X$element"; then
   9015         haveit=yes
   9016         break
   9017       fi
   9018     done
   9019     if test -z "$haveit"; then
   9020       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   9021     fi
   9022   done
   9023 
   9024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
   9025 $as_echo_n "checking how to link with libiconv... " >&6; }
   9026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
   9027 $as_echo "$LIBICONV" >&6; }
   9028   else
   9029     LIBICONV=
   9030     LTLIBICONV=
   9031   fi
   9032 
   9033 
   9034 
   9035   if test "$am_cv_func_iconv" = yes; then
   9036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
   9037 $as_echo_n "checking for iconv declaration... " >&6; }
   9038     if ${am_cv_proto_iconv+:} false; then :
   9039   $as_echo_n "(cached) " >&6
   9040 else
   9041 
   9042       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9043 /* end confdefs.h.  */
   9044 
   9045 #include <stdlib.h>
   9046 #include <iconv.h>
   9047 extern
   9048 #ifdef __cplusplus
   9049 "C"
   9050 #endif
   9051 #if defined(__STDC__) || defined(__cplusplus)
   9052 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
   9053 #else
   9054 size_t iconv();
   9055 #endif
   9056 
   9057 int
   9058 main ()
   9059 {
   9060 
   9061   ;
   9062   return 0;
   9063 }
   9064 _ACEOF
   9065 if ac_fn_c_try_compile "$LINENO"; then :
   9066   am_cv_proto_iconv_arg1=""
   9067 else
   9068   am_cv_proto_iconv_arg1="const"
   9069 fi
   9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9071       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);"
   9072 fi
   9073 
   9074     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
   9075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
   9076          }$am_cv_proto_iconv" >&5
   9077 $as_echo "${ac_t:-
   9078          }$am_cv_proto_iconv" >&6; }
   9079 
   9080 cat >>confdefs.h <<_ACEOF
   9081 #define ICONV_CONST $am_cv_proto_iconv_arg1
   9082 _ACEOF
   9083 
   9084   fi
   9085 
   9086 
   9087 # GDB may fork/exec the iconv program to get the list of supported character
   9088 # sets.  Allow the user to specify where to find it.
   9089 # There are several factors affecting the choice of option name:
   9090 # - There is already --with-libiconv-prefix but we can't use it, it specifies
   9091 #   the build-time location of libiconv files.
   9092 # - The program we need to find is iconv, which comes with glibc.  The user
   9093 #   doesn't necessarily have libiconv installed.  Therefore naming this
   9094 #   --with-libiconv-foo feels wrong.
   9095 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
   9096 #   defined to work on directories not files (though it really doesn't know
   9097 #   the difference).
   9098 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
   9099 #   with --with-libiconv-prefix.
   9100 # Putting these together is why the option name is --with-iconv-bin.
   9101 
   9102 
   9103 # Check whether --with-iconv-bin was given.
   9104 if test "${with_iconv_bin+set}" = set; then :
   9105   withval=$with_iconv_bin; iconv_bin="${withval}"
   9106 
   9107 cat >>confdefs.h <<_ACEOF
   9108 #define ICONV_BIN "${iconv_bin}"
   9109 _ACEOF
   9110 
   9111 
   9112   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   9113      if test "x$prefix" = xNONE; then
   9114      	test_prefix=/usr/local
   9115      else
   9116 	test_prefix=$prefix
   9117      fi
   9118   else
   9119      test_prefix=$exec_prefix
   9120   fi
   9121   value=0
   9122   case ${iconv_bin} in
   9123      "${test_prefix}"|"${test_prefix}/"*|\
   9124 	'${exec_prefix}'|'${exec_prefix}/'*)
   9125      value=1
   9126      ;;
   9127   esac
   9128 
   9129 cat >>confdefs.h <<_ACEOF
   9130 #define ICONV_BIN_RELOCATABLE $value
   9131 _ACEOF
   9132 
   9133 
   9134 
   9135 fi
   9136 
   9137 
   9138 # For the TUI, we need enhanced curses functionality.
   9139 if test x"$enable_tui" != xno; then
   9140   prefer_curses=yes
   9141 fi
   9142 
   9143 curses_found=no
   9144 if test x"$prefer_curses" = xyes; then
   9145   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
   9146   # curses library because the latter might not provide all the
   9147   # functionality we need.  However, this leads to problems on systems
   9148   # where the linker searches /usr/local/lib, but the compiler doesn't
   9149   # search /usr/local/include, if ncurses is installed in /usr/local.  A
   9150   # default installation of ncurses on alpha*-dec-osf* will lead to such
   9151   # a situation.
   9152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
   9153 $as_echo_n "checking for library containing waddstr... " >&6; }
   9154 if ${ac_cv_search_waddstr+:} false; then :
   9155   $as_echo_n "(cached) " >&6
   9156 else
   9157   ac_func_search_save_LIBS=$LIBS
   9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9159 /* end confdefs.h.  */
   9160 
   9161 /* Override any GCC internal prototype to avoid an error.
   9162    Use char because int might match the return type of a GCC
   9163    builtin and then its argument prototype would still apply.  */
   9164 #ifdef __cplusplus
   9165 extern "C"
   9166 #endif
   9167 char waddstr ();
   9168 int
   9169 main ()
   9170 {
   9171 return waddstr ();
   9172   ;
   9173   return 0;
   9174 }
   9175 _ACEOF
   9176 for ac_lib in '' ncursesw ncurses cursesX curses; do
   9177   if test -z "$ac_lib"; then
   9178     ac_res="none required"
   9179   else
   9180     ac_res=-l$ac_lib
   9181     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9182   fi
   9183   if ac_fn_c_try_link "$LINENO"; then :
   9184   ac_cv_search_waddstr=$ac_res
   9185 fi
   9186 rm -f core conftest.err conftest.$ac_objext \
   9187     conftest$ac_exeext
   9188   if ${ac_cv_search_waddstr+:} false; then :
   9189   break
   9190 fi
   9191 done
   9192 if ${ac_cv_search_waddstr+:} false; then :
   9193 
   9194 else
   9195   ac_cv_search_waddstr=no
   9196 fi
   9197 rm conftest.$ac_ext
   9198 LIBS=$ac_func_search_save_LIBS
   9199 fi
   9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
   9201 $as_echo "$ac_cv_search_waddstr" >&6; }
   9202 ac_res=$ac_cv_search_waddstr
   9203 if test "$ac_res" != no; then :
   9204   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9205 
   9206 fi
   9207 
   9208 
   9209   if test "$ac_cv_search_waddstr" != no; then
   9210     curses_found=yes
   9211   fi
   9212 fi
   9213 
   9214 # Check whether we should enable the TUI, but only do so if we really
   9215 # can.
   9216 if test x"$enable_tui" != xno; then
   9217   if test -d "$srcdir/tui"; then
   9218     if test "$curses_found" != no; then
   9219       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
   9220       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
   9221       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
   9222       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
   9223     else
   9224       if test x"$enable_tui" = xyes; then
   9225 	as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
   9226       else
   9227 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
   9228 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
   9229       fi
   9230     fi
   9231   fi
   9232 fi
   9233 
   9234 # Since GDB uses Readline, we need termcap functionality.  In many
   9235 # cases this will be provided by the curses library, but some systems
   9236 # have a separate termcap library, or no curses library at all.
   9237 
   9238 case $host_os in
   9239   cygwin*)
   9240     if test -d "$srcdir/libtermcap"; then
   9241       LIBS="../libtermcap/libtermcap.a $LIBS"
   9242       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
   9243     fi ;;
   9244   go32* | *djgpp*)
   9245     ac_cv_search_tgetent="none required"
   9246     ;;
   9247 esac
   9248 
   9249 # These are the libraries checked by Readline.
   9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
   9251 $as_echo_n "checking for library containing tgetent... " >&6; }
   9252 if ${ac_cv_search_tgetent+:} false; then :
   9253   $as_echo_n "(cached) " >&6
   9254 else
   9255   ac_func_search_save_LIBS=$LIBS
   9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9257 /* end confdefs.h.  */
   9258 
   9259 /* Override any GCC internal prototype to avoid an error.
   9260    Use char because int might match the return type of a GCC
   9261    builtin and then its argument prototype would still apply.  */
   9262 #ifdef __cplusplus
   9263 extern "C"
   9264 #endif
   9265 char tgetent ();
   9266 int
   9267 main ()
   9268 {
   9269 return tgetent ();
   9270   ;
   9271   return 0;
   9272 }
   9273 _ACEOF
   9274 for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
   9275   if test -z "$ac_lib"; then
   9276     ac_res="none required"
   9277   else
   9278     ac_res=-l$ac_lib
   9279     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9280   fi
   9281   if ac_fn_c_try_link "$LINENO"; then :
   9282   ac_cv_search_tgetent=$ac_res
   9283 fi
   9284 rm -f core conftest.err conftest.$ac_objext \
   9285     conftest$ac_exeext
   9286   if ${ac_cv_search_tgetent+:} false; then :
   9287   break
   9288 fi
   9289 done
   9290 if ${ac_cv_search_tgetent+:} false; then :
   9291 
   9292 else
   9293   ac_cv_search_tgetent=no
   9294 fi
   9295 rm conftest.$ac_ext
   9296 LIBS=$ac_func_search_save_LIBS
   9297 fi
   9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
   9299 $as_echo "$ac_cv_search_tgetent" >&6; }
   9300 ac_res=$ac_cv_search_tgetent
   9301 if test "$ac_res" != no; then :
   9302   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9303 
   9304 fi
   9305 
   9306 
   9307 if test "$ac_cv_search_tgetent" = no; then
   9308   CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
   9309 fi
   9310 
   9311 
   9312 # Check whether --with-system-readline was given.
   9313 if test "${with_system_readline+set}" = set; then :
   9314   withval=$with_system_readline;
   9315 fi
   9316 
   9317 
   9318 if test "$with_system_readline" = yes; then
   9319    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
   9320 $as_echo_n "checking whether system readline is new enough... " >&6; }
   9321 if ${gdb_cv_readline_ok+:} false; then :
   9322   $as_echo_n "(cached) " >&6
   9323 else
   9324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9325 /* end confdefs.h.  */
   9326 #include <stdio.h>
   9327 #include <readline/readline.h>
   9328 int
   9329 main ()
   9330 {
   9331 #if RL_VERSION_MAJOR < 7
   9332 # error "readline version 7 required"
   9333 #endif
   9334   ;
   9335   return 0;
   9336 }
   9337 _ACEOF
   9338 if ac_fn_c_try_compile "$LINENO"; then :
   9339   gdb_cv_readline_ok=yes
   9340 else
   9341   gdb_cv_readline_ok=no
   9342 fi
   9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9344 fi
   9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
   9346 $as_echo "$gdb_cv_readline_ok" >&6; }
   9347   if test "$gdb_cv_readline_ok" != yes; then
   9348     as_fn_error $? "system readline is not new enough" "$LINENO" 5
   9349   fi
   9350 
   9351   READLINE=-lreadline
   9352   READLINE_DEPS=
   9353   READLINE_CFLAGS=
   9354   READLINE_TEXI_INCFLAG=
   9355 else
   9356   READLINE='$(READLINE_DIR)/libreadline.a'
   9357   READLINE_DEPS='$(READLINE)'
   9358   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
   9359   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
   9360 fi
   9361 
   9362 
   9363 
   9364 
   9365 
   9366 # Generate jit-reader.h
   9367 
   9368 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
   9369 TARGET_PTR=
   9370 
   9371 # The cast to long int works around a bug in the HP C Compiler
   9372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   9374 # This bug is HP SR number 8606223364.
   9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
   9376 $as_echo_n "checking size of unsigned long long... " >&6; }
   9377 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
   9378   $as_echo_n "(cached) " >&6
   9379 else
   9380   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
   9381 
   9382 else
   9383   if test "$ac_cv_type_unsigned_long_long" = yes; then
   9384      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9386 as_fn_error 77 "cannot compute sizeof (unsigned long long)
   9387 See \`config.log' for more details" "$LINENO" 5; }
   9388    else
   9389      ac_cv_sizeof_unsigned_long_long=0
   9390    fi
   9391 fi
   9392 
   9393 fi
   9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
   9395 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
   9396 
   9397 
   9398 
   9399 cat >>confdefs.h <<_ACEOF
   9400 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
   9401 _ACEOF
   9402 
   9403 
   9404 # The cast to long int works around a bug in the HP C Compiler
   9405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   9407 # This bug is HP SR number 8606223364.
   9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
   9409 $as_echo_n "checking size of unsigned long... " >&6; }
   9410 if ${ac_cv_sizeof_unsigned_long+:} false; then :
   9411   $as_echo_n "(cached) " >&6
   9412 else
   9413   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
   9414 
   9415 else
   9416   if test "$ac_cv_type_unsigned_long" = yes; then
   9417      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9419 as_fn_error 77 "cannot compute sizeof (unsigned long)
   9420 See \`config.log' for more details" "$LINENO" 5; }
   9421    else
   9422      ac_cv_sizeof_unsigned_long=0
   9423    fi
   9424 fi
   9425 
   9426 fi
   9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
   9428 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
   9429 
   9430 
   9431 
   9432 cat >>confdefs.h <<_ACEOF
   9433 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
   9434 _ACEOF
   9435 
   9436 
   9437 # The cast to long int works around a bug in the HP C Compiler
   9438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   9439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   9440 # This bug is HP SR number 8606223364.
   9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
   9442 $as_echo_n "checking size of unsigned __int128... " >&6; }
   9443 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
   9444   $as_echo_n "(cached) " >&6
   9445 else
   9446   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
   9447 
   9448 else
   9449   if test "$ac_cv_type_unsigned___int128" = yes; then
   9450      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   9451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   9452 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
   9453 See \`config.log' for more details" "$LINENO" 5; }
   9454    else
   9455      ac_cv_sizeof_unsigned___int128=0
   9456    fi
   9457 fi
   9458 
   9459 fi
   9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
   9461 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
   9462 
   9463 
   9464 
   9465 cat >>confdefs.h <<_ACEOF
   9466 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
   9467 _ACEOF
   9468 
   9469 
   9470 
   9471 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
   9472   TARGET_PTR="unsigned long"
   9473 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
   9474   TARGET_PTR="unsigned long long"
   9475 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
   9476   TARGET_PTR="unsigned __int128"
   9477 else
   9478   TARGET_PTR="unsigned long"
   9479 fi
   9480 
   9481 
   9482 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
   9483 
   9484 
   9485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   9486 $as_echo_n "checking for library containing dlopen... " >&6; }
   9487 if ${ac_cv_search_dlopen+:} false; then :
   9488   $as_echo_n "(cached) " >&6
   9489 else
   9490   ac_func_search_save_LIBS=$LIBS
   9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9492 /* end confdefs.h.  */
   9493 
   9494 /* Override any GCC internal prototype to avoid an error.
   9495    Use char because int might match the return type of a GCC
   9496    builtin and then its argument prototype would still apply.  */
   9497 #ifdef __cplusplus
   9498 extern "C"
   9499 #endif
   9500 char dlopen ();
   9501 int
   9502 main ()
   9503 {
   9504 return dlopen ();
   9505   ;
   9506   return 0;
   9507 }
   9508 _ACEOF
   9509 for ac_lib in '' dl; do
   9510   if test -z "$ac_lib"; then
   9511     ac_res="none required"
   9512   else
   9513     ac_res=-l$ac_lib
   9514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   9515   fi
   9516   if ac_fn_c_try_link "$LINENO"; then :
   9517   ac_cv_search_dlopen=$ac_res
   9518 fi
   9519 rm -f core conftest.err conftest.$ac_objext \
   9520     conftest$ac_exeext
   9521   if ${ac_cv_search_dlopen+:} false; then :
   9522   break
   9523 fi
   9524 done
   9525 if ${ac_cv_search_dlopen+:} false; then :
   9526 
   9527 else
   9528   ac_cv_search_dlopen=no
   9529 fi
   9530 rm conftest.$ac_ext
   9531 LIBS=$ac_func_search_save_LIBS
   9532 fi
   9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   9534 $as_echo "$ac_cv_search_dlopen" >&6; }
   9535 ac_res=$ac_cv_search_dlopen
   9536 if test "$ac_res" != no; then :
   9537   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   9538 
   9539 fi
   9540 
   9541 
   9542 
   9543 
   9544 # Check whether --with-jit-reader-dir was given.
   9545 if test "${with_jit_reader_dir+set}" = set; then :
   9546   withval=$with_jit_reader_dir;
   9547     JIT_READER_DIR=$withval
   9548 else
   9549   JIT_READER_DIR=${libdir}/gdb
   9550 fi
   9551 
   9552 
   9553   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   9554   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   9555   ac_define_dir=`eval echo $JIT_READER_DIR`
   9556   ac_define_dir=`eval echo $ac_define_dir`
   9557 
   9558 cat >>confdefs.h <<_ACEOF
   9559 #define JIT_READER_DIR "$ac_define_dir"
   9560 _ACEOF
   9561 
   9562 
   9563 
   9564 
   9565   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   9566      if test "x$prefix" = xNONE; then
   9567      	test_prefix=/usr/local
   9568      else
   9569 	test_prefix=$prefix
   9570      fi
   9571   else
   9572      test_prefix=$exec_prefix
   9573   fi
   9574   value=0
   9575   case ${ac_define_dir} in
   9576      "${test_prefix}"|"${test_prefix}/"*|\
   9577 	'${exec_prefix}'|'${exec_prefix}/'*)
   9578      value=1
   9579      ;;
   9580   esac
   9581 
   9582 cat >>confdefs.h <<_ACEOF
   9583 #define JIT_READER_DIR_RELOCATABLE $value
   9584 _ACEOF
   9585 
   9586 
   9587 
   9588 
   9589 
   9590 # Check whether --with-expat was given.
   9591 if test "${with_expat+set}" = set; then :
   9592   withval=$with_expat;
   9593 else
   9594   with_expat=auto
   9595 fi
   9596 
   9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
   9598 $as_echo_n "checking whether to use expat... " >&6; }
   9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
   9600 $as_echo "$with_expat" >&6; }
   9601 
   9602 if test "${with_expat}" = no; then
   9603   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
   9604 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
   9605   HAVE_LIBEXPAT=no
   9606 else
   9607 
   9608 
   9609 
   9610 
   9611 
   9612 
   9613 
   9614 
   9615     use_additional=yes
   9616 
   9617   acl_save_prefix="$prefix"
   9618   prefix="$acl_final_prefix"
   9619   acl_save_exec_prefix="$exec_prefix"
   9620   exec_prefix="$acl_final_exec_prefix"
   9621 
   9622     eval additional_includedir=\"$includedir\"
   9623     eval additional_libdir=\"$libdir\"
   9624 
   9625   exec_prefix="$acl_save_exec_prefix"
   9626   prefix="$acl_save_prefix"
   9627 
   9628 
   9629 # Check whether --with-libexpat-prefix was given.
   9630 if test "${with_libexpat_prefix+set}" = set; then :
   9631   withval=$with_libexpat_prefix;
   9632     if test "X$withval" = "Xno"; then
   9633       use_additional=no
   9634     else
   9635       if test "X$withval" = "X"; then
   9636 
   9637   acl_save_prefix="$prefix"
   9638   prefix="$acl_final_prefix"
   9639   acl_save_exec_prefix="$exec_prefix"
   9640   exec_prefix="$acl_final_exec_prefix"
   9641 
   9642           eval additional_includedir=\"$includedir\"
   9643           eval additional_libdir=\"$libdir\"
   9644 
   9645   exec_prefix="$acl_save_exec_prefix"
   9646   prefix="$acl_save_prefix"
   9647 
   9648       else
   9649         additional_includedir="$withval/include"
   9650         additional_libdir="$withval/lib"
   9651       fi
   9652     fi
   9653 
   9654 fi
   9655 
   9656 
   9657 # Check whether --with-libexpat-type was given.
   9658 if test "${with_libexpat_type+set}" = set; then :
   9659   withval=$with_libexpat_type;  with_libexpat_type=$withval
   9660 else
   9661    with_libexpat_type=auto
   9662 fi
   9663 
   9664   lib_type=`eval echo \$with_libexpat_type`
   9665 
   9666       LIBEXPAT=
   9667   LTLIBEXPAT=
   9668   INCEXPAT=
   9669   rpathdirs=
   9670   ltrpathdirs=
   9671   names_already_handled=
   9672   names_next_round='expat '
   9673   while test -n "$names_next_round"; do
   9674     names_this_round="$names_next_round"
   9675     names_next_round=
   9676     for name in $names_this_round; do
   9677       already_handled=
   9678       for n in $names_already_handled; do
   9679         if test "$n" = "$name"; then
   9680           already_handled=yes
   9681           break
   9682         fi
   9683       done
   9684       if test -z "$already_handled"; then
   9685         names_already_handled="$names_already_handled $name"
   9686                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   9687         eval value=\"\$HAVE_LIB$uppername\"
   9688         if test -n "$value"; then
   9689           if test "$value" = yes; then
   9690             eval value=\"\$LIB$uppername\"
   9691             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
   9692             eval value=\"\$LTLIB$uppername\"
   9693             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
   9694           else
   9695                                     :
   9696           fi
   9697         else
   9698                               found_dir=
   9699           found_la=
   9700           found_so=
   9701           found_a=
   9702           if test $use_additional = yes; then
   9703             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   9704               found_dir="$additional_libdir"
   9705               found_so="$additional_libdir/lib$name.$shlibext"
   9706               if test -f "$additional_libdir/lib$name.la"; then
   9707                 found_la="$additional_libdir/lib$name.la"
   9708               fi
   9709             elif test x$lib_type != xshared; then
   9710               if test -f "$additional_libdir/lib$name.$libext"; then
   9711                 found_dir="$additional_libdir"
   9712                 found_a="$additional_libdir/lib$name.$libext"
   9713                 if test -f "$additional_libdir/lib$name.la"; then
   9714                   found_la="$additional_libdir/lib$name.la"
   9715                 fi
   9716               fi
   9717             fi
   9718           fi
   9719           if test "X$found_dir" = "X"; then
   9720             for x in $LDFLAGS $LTLIBEXPAT; do
   9721 
   9722   acl_save_prefix="$prefix"
   9723   prefix="$acl_final_prefix"
   9724   acl_save_exec_prefix="$exec_prefix"
   9725   exec_prefix="$acl_final_exec_prefix"
   9726   eval x=\"$x\"
   9727   exec_prefix="$acl_save_exec_prefix"
   9728   prefix="$acl_save_prefix"
   9729 
   9730               case "$x" in
   9731                 -L*)
   9732                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   9733                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   9734                     found_dir="$dir"
   9735                     found_so="$dir/lib$name.$shlibext"
   9736                     if test -f "$dir/lib$name.la"; then
   9737                       found_la="$dir/lib$name.la"
   9738                     fi
   9739                   elif test x$lib_type != xshared; then
   9740                     if test -f "$dir/lib$name.$libext"; then
   9741                       found_dir="$dir"
   9742                       found_a="$dir/lib$name.$libext"
   9743                       if test -f "$dir/lib$name.la"; then
   9744                         found_la="$dir/lib$name.la"
   9745                       fi
   9746                     fi
   9747                   fi
   9748                   ;;
   9749               esac
   9750               if test "X$found_dir" != "X"; then
   9751                 break
   9752               fi
   9753             done
   9754           fi
   9755           if test "X$found_dir" != "X"; then
   9756                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
   9757             if test "X$found_so" != "X"; then
   9758                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   9759                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   9760               else
   9761                                                                                 haveit=
   9762                 for x in $ltrpathdirs; do
   9763                   if test "X$x" = "X$found_dir"; then
   9764                     haveit=yes
   9765                     break
   9766                   fi
   9767                 done
   9768                 if test -z "$haveit"; then
   9769                   ltrpathdirs="$ltrpathdirs $found_dir"
   9770                 fi
   9771                                 if test "$hardcode_direct" = yes; then
   9772                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   9773                 else
   9774                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   9775                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   9776                                                             haveit=
   9777                     for x in $rpathdirs; do
   9778                       if test "X$x" = "X$found_dir"; then
   9779                         haveit=yes
   9780                         break
   9781                       fi
   9782                     done
   9783                     if test -z "$haveit"; then
   9784                       rpathdirs="$rpathdirs $found_dir"
   9785                     fi
   9786                   else
   9787                                                                                 haveit=
   9788                     for x in $LDFLAGS $LIBEXPAT; do
   9789 
   9790   acl_save_prefix="$prefix"
   9791   prefix="$acl_final_prefix"
   9792   acl_save_exec_prefix="$exec_prefix"
   9793   exec_prefix="$acl_final_exec_prefix"
   9794   eval x=\"$x\"
   9795   exec_prefix="$acl_save_exec_prefix"
   9796   prefix="$acl_save_prefix"
   9797 
   9798                       if test "X$x" = "X-L$found_dir"; then
   9799                         haveit=yes
   9800                         break
   9801                       fi
   9802                     done
   9803                     if test -z "$haveit"; then
   9804                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
   9805                     fi
   9806                     if test "$hardcode_minus_L" != no; then
   9807                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   9808                     else
   9809                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   9810                     fi
   9811                   fi
   9812                 fi
   9813               fi
   9814             else
   9815               if test "X$found_a" != "X"; then
   9816                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
   9817               else
   9818                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
   9819               fi
   9820             fi
   9821                         additional_includedir=
   9822             case "$found_dir" in
   9823               */lib | */lib/)
   9824                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   9825                 additional_includedir="$basedir/include"
   9826                 ;;
   9827             esac
   9828             if test "X$additional_includedir" != "X"; then
   9829                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   9830                 haveit=
   9831                 if test "X$additional_includedir" = "X/usr/local/include"; then
   9832                   if test -n "$GCC"; then
   9833                     case $host_os in
   9834                       linux*) haveit=yes;;
   9835                     esac
   9836                   fi
   9837                 fi
   9838                 if test -z "$haveit"; then
   9839                   for x in $CPPFLAGS $INCEXPAT; do
   9840 
   9841   acl_save_prefix="$prefix"
   9842   prefix="$acl_final_prefix"
   9843   acl_save_exec_prefix="$exec_prefix"
   9844   exec_prefix="$acl_final_exec_prefix"
   9845   eval x=\"$x\"
   9846   exec_prefix="$acl_save_exec_prefix"
   9847   prefix="$acl_save_prefix"
   9848 
   9849                     if test "X$x" = "X-I$additional_includedir"; then
   9850                       haveit=yes
   9851                       break
   9852                     fi
   9853                   done
   9854                   if test -z "$haveit"; then
   9855                     if test -d "$additional_includedir"; then
   9856                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
   9857                     fi
   9858                   fi
   9859                 fi
   9860               fi
   9861             fi
   9862                         if test -n "$found_la"; then
   9863                                                         save_libdir="$libdir"
   9864               case "$found_la" in
   9865                 */* | *\\*) . "$found_la" ;;
   9866                 *) . "./$found_la" ;;
   9867               esac
   9868               libdir="$save_libdir"
   9869                             for dep in $dependency_libs; do
   9870                 case "$dep" in
   9871                   -L*)
   9872                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   9873                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   9874                       haveit=
   9875                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   9876                         if test -n "$GCC"; then
   9877                           case $host_os in
   9878                             linux*) haveit=yes;;
   9879                           esac
   9880                         fi
   9881                       fi
   9882                       if test -z "$haveit"; then
   9883                         haveit=
   9884                         for x in $LDFLAGS $LIBEXPAT; do
   9885 
   9886   acl_save_prefix="$prefix"
   9887   prefix="$acl_final_prefix"
   9888   acl_save_exec_prefix="$exec_prefix"
   9889   exec_prefix="$acl_final_exec_prefix"
   9890   eval x=\"$x\"
   9891   exec_prefix="$acl_save_exec_prefix"
   9892   prefix="$acl_save_prefix"
   9893 
   9894                           if test "X$x" = "X-L$additional_libdir"; then
   9895                             haveit=yes
   9896                             break
   9897                           fi
   9898                         done
   9899                         if test -z "$haveit"; then
   9900                           if test -d "$additional_libdir"; then
   9901                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
   9902                           fi
   9903                         fi
   9904                         haveit=
   9905                         for x in $LDFLAGS $LTLIBEXPAT; do
   9906 
   9907   acl_save_prefix="$prefix"
   9908   prefix="$acl_final_prefix"
   9909   acl_save_exec_prefix="$exec_prefix"
   9910   exec_prefix="$acl_final_exec_prefix"
   9911   eval x=\"$x\"
   9912   exec_prefix="$acl_save_exec_prefix"
   9913   prefix="$acl_save_prefix"
   9914 
   9915                           if test "X$x" = "X-L$additional_libdir"; then
   9916                             haveit=yes
   9917                             break
   9918                           fi
   9919                         done
   9920                         if test -z "$haveit"; then
   9921                           if test -d "$additional_libdir"; then
   9922                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
   9923                           fi
   9924                         fi
   9925                       fi
   9926                     fi
   9927                     ;;
   9928                   -R*)
   9929                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   9930                     if test "$enable_rpath" != no; then
   9931                                                                   haveit=
   9932                       for x in $rpathdirs; do
   9933                         if test "X$x" = "X$dir"; then
   9934                           haveit=yes
   9935                           break
   9936                         fi
   9937                       done
   9938                       if test -z "$haveit"; then
   9939                         rpathdirs="$rpathdirs $dir"
   9940                       fi
   9941                                                                   haveit=
   9942                       for x in $ltrpathdirs; do
   9943                         if test "X$x" = "X$dir"; then
   9944                           haveit=yes
   9945                           break
   9946                         fi
   9947                       done
   9948                       if test -z "$haveit"; then
   9949                         ltrpathdirs="$ltrpathdirs $dir"
   9950                       fi
   9951                     fi
   9952                     ;;
   9953                   -l*)
   9954                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   9955                     ;;
   9956                   *.la)
   9957                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   9958                     ;;
   9959                   *)
   9960                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
   9961                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
   9962                     ;;
   9963                 esac
   9964               done
   9965             fi
   9966           else
   9967                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   9968               LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   9969               LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
   9970             else
   9971               LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l:lib$name.$libext"
   9972               LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l:lib$name.$libext"
   9973             fi
   9974           fi
   9975         fi
   9976       fi
   9977     done
   9978   done
   9979   if test "X$rpathdirs" != "X"; then
   9980     if test -n "$hardcode_libdir_separator"; then
   9981                         alldirs=
   9982       for found_dir in $rpathdirs; do
   9983         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   9984       done
   9985             acl_save_libdir="$libdir"
   9986       libdir="$alldirs"
   9987       eval flag=\"$hardcode_libdir_flag_spec\"
   9988       libdir="$acl_save_libdir"
   9989       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   9990     else
   9991             for found_dir in $rpathdirs; do
   9992         acl_save_libdir="$libdir"
   9993         libdir="$found_dir"
   9994         eval flag=\"$hardcode_libdir_flag_spec\"
   9995         libdir="$acl_save_libdir"
   9996         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   9997       done
   9998     fi
   9999   fi
   10000   if test "X$ltrpathdirs" != "X"; then
   10001             for found_dir in $ltrpathdirs; do
   10002       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
   10003     done
   10004   fi
   10005 
   10006 
   10007         ac_save_CPPFLAGS="$CPPFLAGS"
   10008 
   10009   for element in $INCEXPAT; do
   10010     haveit=
   10011     for x in $CPPFLAGS; do
   10012 
   10013   acl_save_prefix="$prefix"
   10014   prefix="$acl_final_prefix"
   10015   acl_save_exec_prefix="$exec_prefix"
   10016   exec_prefix="$acl_final_exec_prefix"
   10017   eval x=\"$x\"
   10018   exec_prefix="$acl_save_exec_prefix"
   10019   prefix="$acl_save_prefix"
   10020 
   10021       if test "X$x" = "X$element"; then
   10022         haveit=yes
   10023         break
   10024       fi
   10025     done
   10026     if test -z "$haveit"; then
   10027       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   10028     fi
   10029   done
   10030 
   10031 
   10032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
   10033 $as_echo_n "checking for libexpat... " >&6; }
   10034 if ${ac_cv_libexpat+:} false; then :
   10035   $as_echo_n "(cached) " >&6
   10036 else
   10037 
   10038     ac_save_LIBS="$LIBS"
   10039     LIBS="$LIBS $LIBEXPAT"
   10040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10041 /* end confdefs.h.  */
   10042 #include "expat.h"
   10043 int
   10044 main ()
   10045 {
   10046 XML_Parser p = XML_ParserCreate (0);
   10047   ;
   10048   return 0;
   10049 }
   10050 _ACEOF
   10051 if ac_fn_c_try_link "$LINENO"; then :
   10052   ac_cv_libexpat=yes
   10053 else
   10054   ac_cv_libexpat=no
   10055 fi
   10056 rm -f core conftest.err conftest.$ac_objext \
   10057     conftest$ac_exeext conftest.$ac_ext
   10058     LIBS="$ac_save_LIBS"
   10059 
   10060 fi
   10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
   10062 $as_echo "$ac_cv_libexpat" >&6; }
   10063   if test "$ac_cv_libexpat" = yes; then
   10064     HAVE_LIBEXPAT=yes
   10065 
   10066 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
   10067 
   10068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
   10069 $as_echo_n "checking how to link with libexpat... " >&6; }
   10070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
   10071 $as_echo "$LIBEXPAT" >&6; }
   10072   else
   10073     HAVE_LIBEXPAT=no
   10074             CPPFLAGS="$ac_save_CPPFLAGS"
   10075     LIBEXPAT=
   10076     LTLIBEXPAT=
   10077   fi
   10078 
   10079 
   10080 
   10081 
   10082 
   10083 
   10084   if test "$HAVE_LIBEXPAT" != yes; then
   10085     if test "$with_expat" = yes; then
   10086       as_fn_error $? "expat is missing or unusable" "$LINENO" 5
   10087     else
   10088       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
   10089 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
   10090     fi
   10091   else
   10092     save_LIBS=$LIBS
   10093     LIBS="$LIBS $LIBEXPAT"
   10094     for ac_func in XML_StopParser
   10095 do :
   10096   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
   10097 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
   10098   cat >>confdefs.h <<_ACEOF
   10099 #define HAVE_XML_STOPPARSER 1
   10100 _ACEOF
   10101 
   10102 fi
   10103 done
   10104 
   10105     LIBS=$save_LIBS
   10106   fi
   10107 fi
   10108 
   10109 
   10110 # Check whether --with-mpfr was given.
   10111 if test "${with_mpfr+set}" = set; then :
   10112   withval=$with_mpfr;
   10113 else
   10114   with_mpfr=auto
   10115 fi
   10116 
   10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
   10118 $as_echo_n "checking whether to use MPFR... " >&6; }
   10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
   10120 $as_echo "$with_mpfr" >&6; }
   10121 
   10122 if test "${with_mpfr}" = no; then
   10123   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
   10124 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
   10125   HAVE_LIBMPFR=no
   10126 else
   10127 
   10128 
   10129 
   10130 
   10131 
   10132 
   10133 
   10134 
   10135     use_additional=yes
   10136 
   10137   acl_save_prefix="$prefix"
   10138   prefix="$acl_final_prefix"
   10139   acl_save_exec_prefix="$exec_prefix"
   10140   exec_prefix="$acl_final_exec_prefix"
   10141 
   10142     eval additional_includedir=\"$includedir\"
   10143     eval additional_libdir=\"$libdir\"
   10144 
   10145   exec_prefix="$acl_save_exec_prefix"
   10146   prefix="$acl_save_prefix"
   10147 
   10148 
   10149 # Check whether --with-libmpfr-prefix was given.
   10150 if test "${with_libmpfr_prefix+set}" = set; then :
   10151   withval=$with_libmpfr_prefix;
   10152     if test "X$withval" = "Xno"; then
   10153       use_additional=no
   10154     else
   10155       if test "X$withval" = "X"; then
   10156 
   10157   acl_save_prefix="$prefix"
   10158   prefix="$acl_final_prefix"
   10159   acl_save_exec_prefix="$exec_prefix"
   10160   exec_prefix="$acl_final_exec_prefix"
   10161 
   10162           eval additional_includedir=\"$includedir\"
   10163           eval additional_libdir=\"$libdir\"
   10164 
   10165   exec_prefix="$acl_save_exec_prefix"
   10166   prefix="$acl_save_prefix"
   10167 
   10168       else
   10169         additional_includedir="$withval/include"
   10170         additional_libdir="$withval/lib"
   10171       fi
   10172     fi
   10173 
   10174 fi
   10175 
   10176 
   10177 # Check whether --with-libmpfr-type was given.
   10178 if test "${with_libmpfr_type+set}" = set; then :
   10179   withval=$with_libmpfr_type;  with_libmpfr_type=$withval
   10180 else
   10181    with_libmpfr_type=auto
   10182 fi
   10183 
   10184   lib_type=`eval echo \$with_libmpfr_type`
   10185 
   10186       LIBMPFR=
   10187   LTLIBMPFR=
   10188   INCMPFR=
   10189   rpathdirs=
   10190   ltrpathdirs=
   10191   names_already_handled=
   10192   names_next_round='mpfr gmp'
   10193   while test -n "$names_next_round"; do
   10194     names_this_round="$names_next_round"
   10195     names_next_round=
   10196     for name in $names_this_round; do
   10197       already_handled=
   10198       for n in $names_already_handled; do
   10199         if test "$n" = "$name"; then
   10200           already_handled=yes
   10201           break
   10202         fi
   10203       done
   10204       if test -z "$already_handled"; then
   10205         names_already_handled="$names_already_handled $name"
   10206                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   10207         eval value=\"\$HAVE_LIB$uppername\"
   10208         if test -n "$value"; then
   10209           if test "$value" = yes; then
   10210             eval value=\"\$LIB$uppername\"
   10211             test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
   10212             eval value=\"\$LTLIB$uppername\"
   10213             test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
   10214           else
   10215                                     :
   10216           fi
   10217         else
   10218                               found_dir=
   10219           found_la=
   10220           found_so=
   10221           found_a=
   10222           if test $use_additional = yes; then
   10223             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   10224               found_dir="$additional_libdir"
   10225               found_so="$additional_libdir/lib$name.$shlibext"
   10226               if test -f "$additional_libdir/lib$name.la"; then
   10227                 found_la="$additional_libdir/lib$name.la"
   10228               fi
   10229             elif test x$lib_type != xshared; then
   10230               if test -f "$additional_libdir/lib$name.$libext"; then
   10231                 found_dir="$additional_libdir"
   10232                 found_a="$additional_libdir/lib$name.$libext"
   10233                 if test -f "$additional_libdir/lib$name.la"; then
   10234                   found_la="$additional_libdir/lib$name.la"
   10235                 fi
   10236               fi
   10237             fi
   10238           fi
   10239           if test "X$found_dir" = "X"; then
   10240             for x in $LDFLAGS $LTLIBMPFR; do
   10241 
   10242   acl_save_prefix="$prefix"
   10243   prefix="$acl_final_prefix"
   10244   acl_save_exec_prefix="$exec_prefix"
   10245   exec_prefix="$acl_final_exec_prefix"
   10246   eval x=\"$x\"
   10247   exec_prefix="$acl_save_exec_prefix"
   10248   prefix="$acl_save_prefix"
   10249 
   10250               case "$x" in
   10251                 -L*)
   10252                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   10253                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   10254                     found_dir="$dir"
   10255                     found_so="$dir/lib$name.$shlibext"
   10256                     if test -f "$dir/lib$name.la"; then
   10257                       found_la="$dir/lib$name.la"
   10258                     fi
   10259                   elif test x$lib_type != xshared; then
   10260                     if test -f "$dir/lib$name.$libext"; then
   10261                       found_dir="$dir"
   10262                       found_a="$dir/lib$name.$libext"
   10263                       if test -f "$dir/lib$name.la"; then
   10264                         found_la="$dir/lib$name.la"
   10265                       fi
   10266                     fi
   10267                   fi
   10268                   ;;
   10269               esac
   10270               if test "X$found_dir" != "X"; then
   10271                 break
   10272               fi
   10273             done
   10274           fi
   10275           if test "X$found_dir" != "X"; then
   10276                         LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
   10277             if test "X$found_so" != "X"; then
   10278                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   10279                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
   10280               else
   10281                                                                                 haveit=
   10282                 for x in $ltrpathdirs; do
   10283                   if test "X$x" = "X$found_dir"; then
   10284                     haveit=yes
   10285                     break
   10286                   fi
   10287                 done
   10288                 if test -z "$haveit"; then
   10289                   ltrpathdirs="$ltrpathdirs $found_dir"
   10290                 fi
   10291                                 if test "$hardcode_direct" = yes; then
   10292                                                       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
   10293                 else
   10294                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   10295                                                             LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
   10296                                                             haveit=
   10297                     for x in $rpathdirs; do
   10298                       if test "X$x" = "X$found_dir"; then
   10299                         haveit=yes
   10300                         break
   10301                       fi
   10302                     done
   10303                     if test -z "$haveit"; then
   10304                       rpathdirs="$rpathdirs $found_dir"
   10305                     fi
   10306                   else
   10307                                                                                 haveit=
   10308                     for x in $LDFLAGS $LIBMPFR; do
   10309 
   10310   acl_save_prefix="$prefix"
   10311   prefix="$acl_final_prefix"
   10312   acl_save_exec_prefix="$exec_prefix"
   10313   exec_prefix="$acl_final_exec_prefix"
   10314   eval x=\"$x\"
   10315   exec_prefix="$acl_save_exec_prefix"
   10316   prefix="$acl_save_prefix"
   10317 
   10318                       if test "X$x" = "X-L$found_dir"; then
   10319                         haveit=yes
   10320                         break
   10321                       fi
   10322                     done
   10323                     if test -z "$haveit"; then
   10324                       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
   10325                     fi
   10326                     if test "$hardcode_minus_L" != no; then
   10327                                                                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
   10328                     else
   10329                                                                                                                                                                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
   10330                     fi
   10331                   fi
   10332                 fi
   10333               fi
   10334             else
   10335               if test "X$found_a" != "X"; then
   10336                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
   10337               else
   10338                                                 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
   10339               fi
   10340             fi
   10341                         additional_includedir=
   10342             case "$found_dir" in
   10343               */lib | */lib/)
   10344                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   10345                 additional_includedir="$basedir/include"
   10346                 ;;
   10347             esac
   10348             if test "X$additional_includedir" != "X"; then
   10349                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   10350                 haveit=
   10351                 if test "X$additional_includedir" = "X/usr/local/include"; then
   10352                   if test -n "$GCC"; then
   10353                     case $host_os in
   10354                       linux*) haveit=yes;;
   10355                     esac
   10356                   fi
   10357                 fi
   10358                 if test -z "$haveit"; then
   10359                   for x in $CPPFLAGS $INCMPFR; do
   10360 
   10361   acl_save_prefix="$prefix"
   10362   prefix="$acl_final_prefix"
   10363   acl_save_exec_prefix="$exec_prefix"
   10364   exec_prefix="$acl_final_exec_prefix"
   10365   eval x=\"$x\"
   10366   exec_prefix="$acl_save_exec_prefix"
   10367   prefix="$acl_save_prefix"
   10368 
   10369                     if test "X$x" = "X-I$additional_includedir"; then
   10370                       haveit=yes
   10371                       break
   10372                     fi
   10373                   done
   10374                   if test -z "$haveit"; then
   10375                     if test -d "$additional_includedir"; then
   10376                                             INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
   10377                     fi
   10378                   fi
   10379                 fi
   10380               fi
   10381             fi
   10382                         if test -n "$found_la"; then
   10383                                                         save_libdir="$libdir"
   10384               case "$found_la" in
   10385                 */* | *\\*) . "$found_la" ;;
   10386                 *) . "./$found_la" ;;
   10387               esac
   10388               libdir="$save_libdir"
   10389                             for dep in $dependency_libs; do
   10390                 case "$dep" in
   10391                   -L*)
   10392                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   10393                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   10394                       haveit=
   10395                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   10396                         if test -n "$GCC"; then
   10397                           case $host_os in
   10398                             linux*) haveit=yes;;
   10399                           esac
   10400                         fi
   10401                       fi
   10402                       if test -z "$haveit"; then
   10403                         haveit=
   10404                         for x in $LDFLAGS $LIBMPFR; do
   10405 
   10406   acl_save_prefix="$prefix"
   10407   prefix="$acl_final_prefix"
   10408   acl_save_exec_prefix="$exec_prefix"
   10409   exec_prefix="$acl_final_exec_prefix"
   10410   eval x=\"$x\"
   10411   exec_prefix="$acl_save_exec_prefix"
   10412   prefix="$acl_save_prefix"
   10413 
   10414                           if test "X$x" = "X-L$additional_libdir"; then
   10415                             haveit=yes
   10416                             break
   10417                           fi
   10418                         done
   10419                         if test -z "$haveit"; then
   10420                           if test -d "$additional_libdir"; then
   10421                                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
   10422                           fi
   10423                         fi
   10424                         haveit=
   10425                         for x in $LDFLAGS $LTLIBMPFR; do
   10426 
   10427   acl_save_prefix="$prefix"
   10428   prefix="$acl_final_prefix"
   10429   acl_save_exec_prefix="$exec_prefix"
   10430   exec_prefix="$acl_final_exec_prefix"
   10431   eval x=\"$x\"
   10432   exec_prefix="$acl_save_exec_prefix"
   10433   prefix="$acl_save_prefix"
   10434 
   10435                           if test "X$x" = "X-L$additional_libdir"; then
   10436                             haveit=yes
   10437                             break
   10438                           fi
   10439                         done
   10440                         if test -z "$haveit"; then
   10441                           if test -d "$additional_libdir"; then
   10442                                                         LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
   10443                           fi
   10444                         fi
   10445                       fi
   10446                     fi
   10447                     ;;
   10448                   -R*)
   10449                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   10450                     if test "$enable_rpath" != no; then
   10451                                                                   haveit=
   10452                       for x in $rpathdirs; do
   10453                         if test "X$x" = "X$dir"; then
   10454                           haveit=yes
   10455                           break
   10456                         fi
   10457                       done
   10458                       if test -z "$haveit"; then
   10459                         rpathdirs="$rpathdirs $dir"
   10460                       fi
   10461                                                                   haveit=
   10462                       for x in $ltrpathdirs; do
   10463                         if test "X$x" = "X$dir"; then
   10464                           haveit=yes
   10465                           break
   10466                         fi
   10467                       done
   10468                       if test -z "$haveit"; then
   10469                         ltrpathdirs="$ltrpathdirs $dir"
   10470                       fi
   10471                     fi
   10472                     ;;
   10473                   -l*)
   10474                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   10475                     ;;
   10476                   *.la)
   10477                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   10478                     ;;
   10479                   *)
   10480                                         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
   10481                     LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
   10482                     ;;
   10483                 esac
   10484               done
   10485             fi
   10486           else
   10487                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   10488               LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
   10489               LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
   10490             else
   10491               LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l:lib$name.$libext"
   10492               LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l:lib$name.$libext"
   10493             fi
   10494           fi
   10495         fi
   10496       fi
   10497     done
   10498   done
   10499   if test "X$rpathdirs" != "X"; then
   10500     if test -n "$hardcode_libdir_separator"; then
   10501                         alldirs=
   10502       for found_dir in $rpathdirs; do
   10503         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   10504       done
   10505             acl_save_libdir="$libdir"
   10506       libdir="$alldirs"
   10507       eval flag=\"$hardcode_libdir_flag_spec\"
   10508       libdir="$acl_save_libdir"
   10509       LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
   10510     else
   10511             for found_dir in $rpathdirs; do
   10512         acl_save_libdir="$libdir"
   10513         libdir="$found_dir"
   10514         eval flag=\"$hardcode_libdir_flag_spec\"
   10515         libdir="$acl_save_libdir"
   10516         LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
   10517       done
   10518     fi
   10519   fi
   10520   if test "X$ltrpathdirs" != "X"; then
   10521             for found_dir in $ltrpathdirs; do
   10522       LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
   10523     done
   10524   fi
   10525 
   10526 
   10527         ac_save_CPPFLAGS="$CPPFLAGS"
   10528 
   10529   for element in $INCMPFR; do
   10530     haveit=
   10531     for x in $CPPFLAGS; do
   10532 
   10533   acl_save_prefix="$prefix"
   10534   prefix="$acl_final_prefix"
   10535   acl_save_exec_prefix="$exec_prefix"
   10536   exec_prefix="$acl_final_exec_prefix"
   10537   eval x=\"$x\"
   10538   exec_prefix="$acl_save_exec_prefix"
   10539   prefix="$acl_save_prefix"
   10540 
   10541       if test "X$x" = "X$element"; then
   10542         haveit=yes
   10543         break
   10544       fi
   10545     done
   10546     if test -z "$haveit"; then
   10547       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   10548     fi
   10549   done
   10550 
   10551 
   10552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
   10553 $as_echo_n "checking for libmpfr... " >&6; }
   10554 if ${ac_cv_libmpfr+:} false; then :
   10555   $as_echo_n "(cached) " >&6
   10556 else
   10557 
   10558     ac_save_LIBS="$LIBS"
   10559     LIBS="$LIBS $LIBMPFR"
   10560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10561 /* end confdefs.h.  */
   10562 #include <mpfr.h>
   10563 int
   10564 main ()
   10565 {
   10566 mpfr_exp_t exp; mpfr_t x;
   10567 			 mpfr_frexp (&exp, x, x, MPFR_RNDN);
   10568   ;
   10569   return 0;
   10570 }
   10571 _ACEOF
   10572 if ac_fn_c_try_link "$LINENO"; then :
   10573   ac_cv_libmpfr=yes
   10574 else
   10575   ac_cv_libmpfr=no
   10576 fi
   10577 rm -f core conftest.err conftest.$ac_objext \
   10578     conftest$ac_exeext conftest.$ac_ext
   10579     LIBS="$ac_save_LIBS"
   10580 
   10581 fi
   10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
   10583 $as_echo "$ac_cv_libmpfr" >&6; }
   10584   if test "$ac_cv_libmpfr" = yes; then
   10585     HAVE_LIBMPFR=yes
   10586 
   10587 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
   10588 
   10589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
   10590 $as_echo_n "checking how to link with libmpfr... " >&6; }
   10591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
   10592 $as_echo "$LIBMPFR" >&6; }
   10593   else
   10594     HAVE_LIBMPFR=no
   10595             CPPFLAGS="$ac_save_CPPFLAGS"
   10596     LIBMPFR=
   10597     LTLIBMPFR=
   10598   fi
   10599 
   10600 
   10601 
   10602 
   10603 
   10604 
   10605   if test "$HAVE_LIBMPFR" != yes; then
   10606     if test "$with_mpfr" = yes; then
   10607       as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
   10608     else
   10609       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
   10610 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
   10611     fi
   10612   fi
   10613 fi
   10614 
   10615 # --------------------- #
   10616 # Check for libpython.  #
   10617 # --------------------- #
   10618 
   10619 
   10620 
   10621 
   10622 
   10623 
   10624 # Check whether --with-python was given.
   10625 if test "${with_python+set}" = set; then :
   10626   withval=$with_python;
   10627 else
   10628   with_python=auto
   10629 fi
   10630 
   10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
   10632 $as_echo_n "checking whether to use python... " >&6; }
   10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
   10634 $as_echo "$with_python" >&6; }
   10635 
   10636 if test "${with_python}" = no; then
   10637   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
   10638 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
   10639   have_libpython=no
   10640 else
   10641   case "${with_python}" in
   10642   [\\/]* | ?:[\\/]*)
   10643     if test -d "${with_python}"; then
   10644       # Assume the python binary is ${with_python}/bin/python.
   10645       python_prog="${with_python}/bin/python"
   10646       python_prefix=
   10647       # If python does not exit ${with_python}/bin, then try in
   10648       # ${with_python}.  On Windows/MinGW, this is where the Python
   10649       # executable is.
   10650       if test ! -x "${python_prog}"; then
   10651         python_prog="${with_python}/python"
   10652         python_prefix=
   10653       fi
   10654       if test ! -x "${python_prog}"; then
   10655         # Fall back to gdb 7.0/7.1 behaviour.
   10656         python_prog=missing
   10657         python_prefix=${with_python}
   10658       fi
   10659     elif test -x "${with_python}"; then
   10660       # While we can't run python compiled for $host (unless host == build),
   10661       # the user could write a script that provides the needed information,
   10662       # so we support that.
   10663       python_prog=${with_python}
   10664       python_prefix=
   10665     else
   10666       as_fn_error $? "invalid value for --with-python" "$LINENO" 5
   10667     fi
   10668     ;;
   10669   */*)
   10670     # Disallow --with-python=foo/bar.
   10671     as_fn_error $? "invalid value for --with-python" "$LINENO" 5
   10672     ;;
   10673   *)
   10674     # The user has either specified auto, yes, or the name of the python
   10675     # program assumed to be in $PATH.
   10676     python_prefix=
   10677     case "${with_python}" in
   10678     yes | auto)
   10679       if test "${build}" = "${host}"; then
   10680         # Extract the first word of "python", so it can be a program name with args.
   10681 set dummy python; ac_word=$2
   10682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10683 $as_echo_n "checking for $ac_word... " >&6; }
   10684 if ${ac_cv_path_python_prog_path+:} false; then :
   10685   $as_echo_n "(cached) " >&6
   10686 else
   10687   case $python_prog_path in
   10688   [\\/]* | ?:[\\/]*)
   10689   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   10690   ;;
   10691   *)
   10692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10693 for as_dir in $PATH
   10694 do
   10695   IFS=$as_save_IFS
   10696   test -z "$as_dir" && as_dir=.
   10697     for ac_exec_ext in '' $ac_executable_extensions; do
   10698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10699     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   10700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10701     break 2
   10702   fi
   10703 done
   10704   done
   10705 IFS=$as_save_IFS
   10706 
   10707   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   10708   ;;
   10709 esac
   10710 fi
   10711 python_prog_path=$ac_cv_path_python_prog_path
   10712 if test -n "$python_prog_path"; then
   10713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   10714 $as_echo "$python_prog_path" >&6; }
   10715 else
   10716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10717 $as_echo "no" >&6; }
   10718 fi
   10719 
   10720 
   10721         if test "${python_prog_path}" = missing; then
   10722           python_prog=missing
   10723         else
   10724           python_prog=${python_prog_path}
   10725         fi
   10726       else
   10727         # Not much we can do except assume the cross-compiler will find the
   10728         # right files.
   10729         python_prog=missing
   10730       fi
   10731       ;;
   10732     *)
   10733       # While we can't run python compiled for $host (unless host == build),
   10734       # the user could write a script that provides the needed information,
   10735       # so we support that.
   10736       python_prog="${with_python}"
   10737       # Extract the first word of "${python_prog}", so it can be a program name with args.
   10738 set dummy ${python_prog}; ac_word=$2
   10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   10740 $as_echo_n "checking for $ac_word... " >&6; }
   10741 if ${ac_cv_path_python_prog_path+:} false; then :
   10742   $as_echo_n "(cached) " >&6
   10743 else
   10744   case $python_prog_path in
   10745   [\\/]* | ?:[\\/]*)
   10746   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   10747   ;;
   10748   *)
   10749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10750 for as_dir in $PATH
   10751 do
   10752   IFS=$as_save_IFS
   10753   test -z "$as_dir" && as_dir=.
   10754     for ac_exec_ext in '' $ac_executable_extensions; do
   10755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   10756     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   10757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   10758     break 2
   10759   fi
   10760 done
   10761   done
   10762 IFS=$as_save_IFS
   10763 
   10764   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   10765   ;;
   10766 esac
   10767 fi
   10768 python_prog_path=$ac_cv_path_python_prog_path
   10769 if test -n "$python_prog_path"; then
   10770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   10771 $as_echo "$python_prog_path" >&6; }
   10772 else
   10773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10774 $as_echo "no" >&6; }
   10775 fi
   10776 
   10777 
   10778       if test "${python_prog_path}" = missing; then
   10779         as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
   10780       fi
   10781       ;;
   10782     esac
   10783   esac
   10784 
   10785   if test "${python_prog}" != missing; then
   10786     # We have a python program to use, but it may be too old.
   10787     # Don't flag an error for --with-python=auto (the default).
   10788     have_python_config=yes
   10789     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
   10790     if test $? != 0; then
   10791       have_python_config=failed
   10792       if test "${with_python}" != auto; then
   10793         as_fn_error $? "failure running python-config --includes" "$LINENO" 5
   10794       fi
   10795     fi
   10796     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
   10797     if test $? != 0; then
   10798       have_python_config=failed
   10799       if test "${with_python}" != auto; then
   10800         as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
   10801       fi
   10802     fi
   10803     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
   10804     if test $? != 0; then
   10805       have_python_config=failed
   10806       if test "${with_python}" != auto; then
   10807         as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
   10808       fi
   10809     fi
   10810   else
   10811     # We do not have a python executable we can use to determine where
   10812     # to find the Python headers and libs.  We cannot guess the include
   10813     # path from the python_prefix either, because that include path
   10814     # depends on the Python version.  So, there is nothing much we can
   10815     # do except assume that the compiler will be able to find those files.
   10816     python_includes=
   10817     python_libs=
   10818     have_python_config=no
   10819   fi
   10820 
   10821   # If we have python-config, only try the configuration it provides.
   10822   # Otherwise fallback on the old way of trying different versions of
   10823   # python in turn.
   10824 
   10825   have_libpython=no
   10826   if test "${have_python_config}" = yes; then
   10827 
   10828 
   10829   new_CPPFLAGS=${python_includes}
   10830   new_LIBS=${python_libs}
   10831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
   10832 $as_echo_n "checking for python... " >&6; }
   10833   save_CPPFLAGS=$CPPFLAGS
   10834   save_LIBS=$LIBS
   10835   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   10836   LIBS="$new_LIBS $LIBS"
   10837   found_usable_python=no
   10838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10839 /* end confdefs.h.  */
   10840 #include "Python.h"
   10841 int
   10842 main ()
   10843 {
   10844 Py_Initialize ();
   10845   ;
   10846   return 0;
   10847 }
   10848 _ACEOF
   10849 if ac_fn_c_try_link "$LINENO"; then :
   10850   have_libpython=yes
   10851                   found_usable_python=yes
   10852                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   10853                   PYTHON_LIBS=$new_LIBS
   10854 fi
   10855 rm -f core conftest.err conftest.$ac_objext \
   10856     conftest$ac_exeext conftest.$ac_ext
   10857   CPPFLAGS=$save_CPPFLAGS
   10858   LIBS=$save_LIBS
   10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   10860 $as_echo "${found_usable_python}" >&6; }
   10861 
   10862   elif test "${have_python_config}" != failed; then
   10863     if test "${have_libpython}" = no; then
   10864 
   10865 
   10866   new_CPPFLAGS=${python_includes}
   10867   new_LIBS="-lpython2.7 ${python_libs}"
   10868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
   10869 $as_echo_n "checking for python... " >&6; }
   10870   save_CPPFLAGS=$CPPFLAGS
   10871   save_LIBS=$LIBS
   10872   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   10873   LIBS="$new_LIBS $LIBS"
   10874   found_usable_python=no
   10875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10876 /* end confdefs.h.  */
   10877 #include "Python.h"
   10878 int
   10879 main ()
   10880 {
   10881 Py_Initialize ();
   10882   ;
   10883   return 0;
   10884 }
   10885 _ACEOF
   10886 if ac_fn_c_try_link "$LINENO"; then :
   10887   have_libpython=yes
   10888                   found_usable_python=yes
   10889                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   10890                   PYTHON_LIBS=$new_LIBS
   10891 fi
   10892 rm -f core conftest.err conftest.$ac_objext \
   10893     conftest$ac_exeext conftest.$ac_ext
   10894   CPPFLAGS=$save_CPPFLAGS
   10895   LIBS=$save_LIBS
   10896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   10897 $as_echo "${found_usable_python}" >&6; }
   10898 
   10899     fi
   10900     if test "${have_libpython}" = no; then
   10901 
   10902 
   10903   new_CPPFLAGS=${python_includes}
   10904   new_LIBS="-lpython2.6 ${python_libs}"
   10905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
   10906 $as_echo_n "checking for python... " >&6; }
   10907   save_CPPFLAGS=$CPPFLAGS
   10908   save_LIBS=$LIBS
   10909   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   10910   LIBS="$new_LIBS $LIBS"
   10911   found_usable_python=no
   10912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10913 /* end confdefs.h.  */
   10914 #include "Python.h"
   10915 int
   10916 main ()
   10917 {
   10918 Py_Initialize ();
   10919   ;
   10920   return 0;
   10921 }
   10922 _ACEOF
   10923 if ac_fn_c_try_link "$LINENO"; then :
   10924   have_libpython=yes
   10925                   found_usable_python=yes
   10926                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   10927                   PYTHON_LIBS=$new_LIBS
   10928 fi
   10929 rm -f core conftest.err conftest.$ac_objext \
   10930     conftest$ac_exeext conftest.$ac_ext
   10931   CPPFLAGS=$save_CPPFLAGS
   10932   LIBS=$save_LIBS
   10933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   10934 $as_echo "${found_usable_python}" >&6; }
   10935 
   10936     fi
   10937   fi
   10938 
   10939   if test "${have_libpython}" = no; then
   10940     case "${with_python}" in
   10941     yes)
   10942       as_fn_error $? "python is missing or unusable" "$LINENO" 5
   10943       ;;
   10944     auto)
   10945       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
   10946 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
   10947       ;;
   10948     *)
   10949       as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
   10950       ;;
   10951     esac
   10952   else
   10953     if test -n "${python_prefix}"; then
   10954 
   10955 cat >>confdefs.h <<_ACEOF
   10956 #define WITH_PYTHON_PATH "${python_prefix}"
   10957 _ACEOF
   10958 
   10959 
   10960   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   10961      if test "x$prefix" = xNONE; then
   10962      	test_prefix=/usr/local
   10963      else
   10964 	test_prefix=$prefix
   10965      fi
   10966   else
   10967      test_prefix=$exec_prefix
   10968   fi
   10969   value=0
   10970   case ${python_prefix} in
   10971      "${test_prefix}"|"${test_prefix}/"*|\
   10972 	'${exec_prefix}'|'${exec_prefix}/'*)
   10973      value=1
   10974      ;;
   10975   esac
   10976 
   10977 cat >>confdefs.h <<_ACEOF
   10978 #define PYTHON_PATH_RELOCATABLE $value
   10979 _ACEOF
   10980 
   10981 
   10982     fi
   10983   fi
   10984 fi
   10985 
   10986 
   10987 # Check whether --with-python-libdir was given.
   10988 if test "${with_python_libdir+set}" = set; then :
   10989   withval=$with_python_libdir;
   10990 else
   10991 
   10992     # If no python libdir is specified then select one based on
   10993     # python's prefix path.
   10994     if test -n "${python_prefix}"; then
   10995       with_python_libdir=${python_prefix}/lib
   10996     fi
   10997 
   10998 fi
   10999 
   11000 
   11001 if test "${have_libpython}" != no; then
   11002 
   11003 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
   11004 
   11005   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
   11006   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
   11007   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
   11008   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
   11009   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
   11010 
   11011   if test -n "${with_python_libdir}"; then
   11012 
   11013 cat >>confdefs.h <<_ACEOF
   11014 #define WITH_PYTHON_LIBDIR "${with_python_libdir}"
   11015 _ACEOF
   11016 
   11017 
   11018   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   11019      if test "x$prefix" = xNONE; then
   11020      	test_prefix=/usr/local
   11021      else
   11022 	test_prefix=$prefix
   11023      fi
   11024   else
   11025      test_prefix=$exec_prefix
   11026   fi
   11027   value=0
   11028   case ${with_python_libdir} in
   11029      "${test_prefix}"|"${test_prefix}/"*|\
   11030 	'${exec_prefix}'|'${exec_prefix}/'*)
   11031      value=1
   11032      ;;
   11033   esac
   11034 
   11035 cat >>confdefs.h <<_ACEOF
   11036 #define PYTHON_LIBDIR_RELOCATABLE $value
   11037 _ACEOF
   11038 
   11039 
   11040   fi
   11041 
   11042   # Flags needed to compile Python code (taken from python-config --cflags).
   11043   # We cannot call python-config directly because it will output whatever was
   11044   # used when compiling the Python interpreter itself, including flags which
   11045   # would make the python-related objects be compiled differently from the
   11046   # rest of GDB (e.g., -O2 and -fPIC).
   11047   if test "${GCC}" = yes; then
   11048     tentative_python_cflags="-fno-strict-aliasing -fwrapv"
   11049     # Python headers recommend -DNDEBUG, but it's unclear if that just
   11050     # refers to building Python itself.  In release mode, though, it
   11051     # doesn't hurt for the Python code in gdb to follow.
   11052     $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
   11053   fi
   11054 
   11055   if test "x${tentative_python_cflags}" != x; then
   11056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
   11057 $as_echo_n "checking compiler flags for python code... " >&6; }
   11058     for flag in ${tentative_python_cflags}; do
   11059       # Check that the compiler accepts it
   11060       saved_CFLAGS="$CFLAGS"
   11061       CFLAGS="$CFLAGS $flag"
   11062       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11063 /* end confdefs.h.  */
   11064 
   11065 int
   11066 main ()
   11067 {
   11068 
   11069   ;
   11070   return 0;
   11071 }
   11072 _ACEOF
   11073 if ac_fn_c_try_compile "$LINENO"; then :
   11074   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
   11075 fi
   11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11077       CFLAGS="$saved_CFLAGS"
   11078     done
   11079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
   11080 $as_echo "${PYTHON_CFLAGS}" >&6; }
   11081   fi
   11082 
   11083   # On x64 Windows, Python's include headers, and pyconfig.h in
   11084   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
   11085   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
   11086   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
   11087   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
   11088   # The issue was reported to the Python community, but still isn't
   11089   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
   11090 
   11091   case "$gdb_host" in
   11092     mingw64)
   11093            if test "${GCC}" = yes; then
   11094              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
   11095            fi
   11096            ;;
   11097   esac
   11098 else
   11099   # Even if Python support is not compiled in, we need to have this file
   11100   # included so that the "python" command, et.al., still exists.
   11101   CONFIG_OBS="$CONFIG_OBS python/python.o"
   11102   CONFIG_SRCS="$CONFIG_SRCS python/python.c"
   11103 fi
   11104 
   11105 # Work around Python http://bugs.python.org/issue10112.  See also
   11106 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
   11107 # no effect.  Note that the only test after this that uses Python is
   11108 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
   11109 # run without -export-dynamic too.
   11110 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
   11111 
   11112 
   11113 
   11114 
   11115  if test "${have_libpython}" != no; then
   11116   HAVE_PYTHON_TRUE=
   11117   HAVE_PYTHON_FALSE='#'
   11118 else
   11119   HAVE_PYTHON_TRUE='#'
   11120   HAVE_PYTHON_FALSE=
   11121 fi
   11122 
   11123 
   11124 # -------------------- #
   11125 # Check for libguile.  #
   11126 # -------------------- #
   11127 
   11128 
   11129 
   11130 
   11131 
   11132 
   11133 # Check whether --with-guile was given.
   11134 if test "${with_guile+set}" = set; then :
   11135   withval=$with_guile;
   11136 else
   11137   with_guile=auto
   11138 fi
   11139 
   11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
   11141 $as_echo_n "checking whether to use guile... " >&6; }
   11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
   11143 $as_echo "$with_guile" >&6; }
   11144 
   11145 # Extract the first word of "pkg-config", so it can be a program name with args.
   11146 set dummy pkg-config; ac_word=$2
   11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11148 $as_echo_n "checking for $ac_word... " >&6; }
   11149 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
   11150   $as_echo_n "(cached) " >&6
   11151 else
   11152   case $pkg_config_prog_path in
   11153   [\\/]* | ?:[\\/]*)
   11154   ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
   11155   ;;
   11156   *)
   11157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11158 for as_dir in $PATH
   11159 do
   11160   IFS=$as_save_IFS
   11161   test -z "$as_dir" && as_dir=.
   11162     for ac_exec_ext in '' $ac_executable_extensions; do
   11163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11164     ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
   11165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11166     break 2
   11167   fi
   11168 done
   11169   done
   11170 IFS=$as_save_IFS
   11171 
   11172   test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
   11173   ;;
   11174 esac
   11175 fi
   11176 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
   11177 if test -n "$pkg_config_prog_path"; then
   11178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
   11179 $as_echo "$pkg_config_prog_path" >&6; }
   11180 else
   11181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11182 $as_echo "no" >&6; }
   11183 fi
   11184 
   11185 
   11186 
   11187 try_guile_versions="guile-3.0 guile-2.2 guile-2.0"
   11188 have_libguile=no
   11189 case "${with_guile}" in
   11190 no)
   11191   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
   11192 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
   11193   ;;
   11194 auto)
   11195   if test "${pkg_config_prog_path}" = "missing"; then
   11196     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
   11197 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
   11198   else
   11199 
   11200   pkg_config=${pkg_config_prog_path}
   11201   guile_version_list=${try_guile_versions}
   11202   flag_errors=no
   11203 
   11204   found_usable_guile=checking
   11205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   11206 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   11207   for guile_version in ${guile_version_list}; do
   11208     ${pkg_config} --exists ${guile_version} 2>/dev/null
   11209     if test $? != 0; then
   11210       continue
   11211     fi
   11212             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   11213     if test $? != 0; then
   11214       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   11215     fi
   11216     new_LIBS=`${pkg_config} --libs ${guile_version}`
   11217     if test $? != 0; then
   11218       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   11219     fi
   11220         found_usable_guile=${guile_version}
   11221     break
   11222   done
   11223   if test "${found_usable_guile}" = "checking"; then
   11224     if test "${flag_errors}" = "yes"; then
   11225       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   11226     else
   11227       found_usable_guile=no
   11228     fi
   11229   fi
   11230       if test "${found_usable_guile}" != no; then
   11231     save_CPPFLAGS=$CPPFLAGS
   11232     save_LIBS=$LIBS
   11233     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   11234     LIBS="$LIBS $new_LIBS"
   11235     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11236 /* end confdefs.h.  */
   11237 #include "libguile.h"
   11238 int
   11239 main ()
   11240 {
   11241 scm_init_guile ();
   11242   ;
   11243   return 0;
   11244 }
   11245 _ACEOF
   11246 if ac_fn_c_try_link "$LINENO"; then :
   11247   have_libguile=yes
   11248                     GUILE_CPPFLAGS=$new_CPPFLAGS
   11249                     GUILE_LIBS=$new_LIBS
   11250 else
   11251   found_usable_guile=no
   11252 fi
   11253 rm -f core conftest.err conftest.$ac_objext \
   11254     conftest$ac_exeext conftest.$ac_ext
   11255         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   11256 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
   11257 
   11258 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   11259 
   11260 
   11261 fi
   11262 
   11263     CPPFLAGS=$save_CPPFLAGS
   11264     LIBS=$save_LIBS
   11265     if test "${found_usable_guile}" = no; then
   11266       if test "${flag_errors}" = yes; then
   11267         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   11269 as_fn_error $? "linking guile version ${guile_version} test program failed
   11270 See \`config.log' for more details" "$LINENO" 5; }
   11271       fi
   11272     fi
   11273   fi
   11274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   11275 $as_echo "${found_usable_guile}" >&6; }
   11276 
   11277   fi
   11278   ;;
   11279 yes)
   11280   if test "${pkg_config_prog_path}" = "missing"; then
   11281     as_fn_error $? "pkg-config not found" "$LINENO" 5
   11282   fi
   11283 
   11284   pkg_config=${pkg_config_prog_path}
   11285   guile_version_list=${try_guile_versions}
   11286   flag_errors=yes
   11287 
   11288   found_usable_guile=checking
   11289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   11290 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   11291   for guile_version in ${guile_version_list}; do
   11292     ${pkg_config} --exists ${guile_version} 2>/dev/null
   11293     if test $? != 0; then
   11294       continue
   11295     fi
   11296             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   11297     if test $? != 0; then
   11298       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   11299     fi
   11300     new_LIBS=`${pkg_config} --libs ${guile_version}`
   11301     if test $? != 0; then
   11302       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   11303     fi
   11304         found_usable_guile=${guile_version}
   11305     break
   11306   done
   11307   if test "${found_usable_guile}" = "checking"; then
   11308     if test "${flag_errors}" = "yes"; then
   11309       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   11310     else
   11311       found_usable_guile=no
   11312     fi
   11313   fi
   11314       if test "${found_usable_guile}" != no; then
   11315     save_CPPFLAGS=$CPPFLAGS
   11316     save_LIBS=$LIBS
   11317     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   11318     LIBS="$LIBS $new_LIBS"
   11319     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11320 /* end confdefs.h.  */
   11321 #include "libguile.h"
   11322 int
   11323 main ()
   11324 {
   11325 scm_init_guile ();
   11326   ;
   11327   return 0;
   11328 }
   11329 _ACEOF
   11330 if ac_fn_c_try_link "$LINENO"; then :
   11331   have_libguile=yes
   11332                     GUILE_CPPFLAGS=$new_CPPFLAGS
   11333                     GUILE_LIBS=$new_LIBS
   11334 else
   11335   found_usable_guile=no
   11336 fi
   11337 rm -f core conftest.err conftest.$ac_objext \
   11338     conftest$ac_exeext conftest.$ac_ext
   11339         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   11340 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
   11341 
   11342 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   11343 
   11344 
   11345 fi
   11346 
   11347     CPPFLAGS=$save_CPPFLAGS
   11348     LIBS=$save_LIBS
   11349     if test "${found_usable_guile}" = no; then
   11350       if test "${flag_errors}" = yes; then
   11351         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   11353 as_fn_error $? "linking guile version ${guile_version} test program failed
   11354 See \`config.log' for more details" "$LINENO" 5; }
   11355       fi
   11356     fi
   11357   fi
   11358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   11359 $as_echo "${found_usable_guile}" >&6; }
   11360 
   11361   ;;
   11362 [\\/]* | ?:[\\/]*)
   11363   if test -x "${with_guile}"; then
   11364 
   11365   pkg_config=${with_guile}
   11366   guile_version_list=${try_guile_versions}
   11367   flag_errors=yes
   11368 
   11369   found_usable_guile=checking
   11370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   11371 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   11372   for guile_version in ${guile_version_list}; do
   11373     ${pkg_config} --exists ${guile_version} 2>/dev/null
   11374     if test $? != 0; then
   11375       continue
   11376     fi
   11377             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   11378     if test $? != 0; then
   11379       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   11380     fi
   11381     new_LIBS=`${pkg_config} --libs ${guile_version}`
   11382     if test $? != 0; then
   11383       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   11384     fi
   11385         found_usable_guile=${guile_version}
   11386     break
   11387   done
   11388   if test "${found_usable_guile}" = "checking"; then
   11389     if test "${flag_errors}" = "yes"; then
   11390       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   11391     else
   11392       found_usable_guile=no
   11393     fi
   11394   fi
   11395       if test "${found_usable_guile}" != no; then
   11396     save_CPPFLAGS=$CPPFLAGS
   11397     save_LIBS=$LIBS
   11398     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   11399     LIBS="$LIBS $new_LIBS"
   11400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11401 /* end confdefs.h.  */
   11402 #include "libguile.h"
   11403 int
   11404 main ()
   11405 {
   11406 scm_init_guile ();
   11407   ;
   11408   return 0;
   11409 }
   11410 _ACEOF
   11411 if ac_fn_c_try_link "$LINENO"; then :
   11412   have_libguile=yes
   11413                     GUILE_CPPFLAGS=$new_CPPFLAGS
   11414                     GUILE_LIBS=$new_LIBS
   11415 else
   11416   found_usable_guile=no
   11417 fi
   11418 rm -f core conftest.err conftest.$ac_objext \
   11419     conftest$ac_exeext conftest.$ac_ext
   11420         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   11421 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
   11422 
   11423 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   11424 
   11425 
   11426 fi
   11427 
   11428     CPPFLAGS=$save_CPPFLAGS
   11429     LIBS=$save_LIBS
   11430     if test "${found_usable_guile}" = no; then
   11431       if test "${flag_errors}" = yes; then
   11432         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   11434 as_fn_error $? "linking guile version ${guile_version} test program failed
   11435 See \`config.log' for more details" "$LINENO" 5; }
   11436       fi
   11437     fi
   11438   fi
   11439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   11440 $as_echo "${found_usable_guile}" >&6; }
   11441 
   11442   else
   11443     as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
   11444   fi
   11445   ;;
   11446 "" | */*)
   11447   # Disallow --with=guile="" and --with-guile=foo/bar.
   11448   as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
   11449   ;;
   11450 *)
   11451   # A space separate list of guile versions to try, in order.
   11452   if test "${pkg_config_prog_path}" = "missing"; then
   11453     as_fn_error $? "pkg-config not found" "$LINENO" 5
   11454   fi
   11455 
   11456   pkg_config=${pkg_config_prog_path}
   11457   guile_version_list=${with_guile}
   11458   flag_errors=yes
   11459 
   11460   found_usable_guile=checking
   11461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
   11462 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
   11463   for guile_version in ${guile_version_list}; do
   11464     ${pkg_config} --exists ${guile_version} 2>/dev/null
   11465     if test $? != 0; then
   11466       continue
   11467     fi
   11468             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
   11469     if test $? != 0; then
   11470       as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
   11471     fi
   11472     new_LIBS=`${pkg_config} --libs ${guile_version}`
   11473     if test $? != 0; then
   11474       as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
   11475     fi
   11476         found_usable_guile=${guile_version}
   11477     break
   11478   done
   11479   if test "${found_usable_guile}" = "checking"; then
   11480     if test "${flag_errors}" = "yes"; then
   11481       as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
   11482     else
   11483       found_usable_guile=no
   11484     fi
   11485   fi
   11486       if test "${found_usable_guile}" != no; then
   11487     save_CPPFLAGS=$CPPFLAGS
   11488     save_LIBS=$LIBS
   11489     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   11490     LIBS="$LIBS $new_LIBS"
   11491     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11492 /* end confdefs.h.  */
   11493 #include "libguile.h"
   11494 int
   11495 main ()
   11496 {
   11497 scm_init_guile ();
   11498   ;
   11499   return 0;
   11500 }
   11501 _ACEOF
   11502 if ac_fn_c_try_link "$LINENO"; then :
   11503   have_libguile=yes
   11504                     GUILE_CPPFLAGS=$new_CPPFLAGS
   11505                     GUILE_LIBS=$new_LIBS
   11506 else
   11507   found_usable_guile=no
   11508 fi
   11509 rm -f core conftest.err conftest.$ac_objext \
   11510     conftest$ac_exeext conftest.$ac_ext
   11511         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
   11512 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
   11513 
   11514 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
   11515 
   11516 
   11517 fi
   11518 
   11519     CPPFLAGS=$save_CPPFLAGS
   11520     LIBS=$save_LIBS
   11521     if test "${found_usable_guile}" = no; then
   11522       if test "${flag_errors}" = yes; then
   11523         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   11525 as_fn_error $? "linking guile version ${guile_version} test program failed
   11526 See \`config.log' for more details" "$LINENO" 5; }
   11527       fi
   11528     fi
   11529   fi
   11530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
   11531 $as_echo "${found_usable_guile}" >&6; }
   11532 
   11533   ;;
   11534 esac
   11535 
   11536 if test "${have_libguile}" != no; then
   11537     case "${with_guile}" in
   11538   [\\/]* | ?:[\\/]*)
   11539 
   11540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
   11541 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
   11542 if ${ac_cv_guild_program_name+:} false; then :
   11543   $as_echo_n "(cached) " >&6
   11544 else
   11545   ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
   11546 
   11547      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
   11548      # the 'guild' and 'bindir' variables.  In that case, try to guess
   11549      # what the program name is, at the risk of getting it wrong if
   11550      # Guile was configured with '--program-suffix' or similar.
   11551      if test "x$ac_cv_guild_program_name" = "x"; then
   11552        guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
   11553        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
   11554      fi
   11555 
   11556 fi
   11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
   11558 $as_echo "$ac_cv_guild_program_name" >&6; }
   11559 
   11560   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
   11561     as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
   11562   fi
   11563 
   11564   GUILD="$ac_cv_guild_program_name"
   11565 
   11566 
   11567     ;;
   11568   *)
   11569 
   11570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
   11571 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
   11572 if ${ac_cv_guild_program_name+:} false; then :
   11573   $as_echo_n "(cached) " >&6
   11574 else
   11575   ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
   11576 
   11577      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
   11578      # the 'guild' and 'bindir' variables.  In that case, try to guess
   11579      # what the program name is, at the risk of getting it wrong if
   11580      # Guile was configured with '--program-suffix' or similar.
   11581      if test "x$ac_cv_guild_program_name" = "x"; then
   11582        guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
   11583        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
   11584      fi
   11585 
   11586 fi
   11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
   11588 $as_echo "$ac_cv_guild_program_name" >&6; }
   11589 
   11590   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
   11591     as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
   11592   fi
   11593 
   11594   GUILD="$ac_cv_guild_program_name"
   11595 
   11596 
   11597     ;;
   11598   esac
   11599 
   11600 
   11601   if test "$cross_compiling" = no; then
   11602     GUILD_TARGET_FLAG=
   11603   else
   11604     GUILD_TARGET_FLAG="--target=$host"
   11605   fi
   11606 
   11607 
   11608 
   11609 
   11610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
   11611 $as_echo_n "checking whether guild supports this host... " >&6; }
   11612 if ${ac_cv_guild_ok+:} false; then :
   11613   $as_echo_n "(cached) " >&6
   11614 else
   11615   echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
   11616      if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
   11617        ac_cv_guild_ok=yes
   11618      else
   11619        ac_cv_guild_ok=no
   11620      fi
   11621 fi
   11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
   11623 $as_echo "$ac_cv_guild_ok" >&6; }
   11624 
   11625     if test "$ac_cv_guild_ok" = no; then
   11626     have_libguile=no
   11627     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
   11628 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
   11629   fi
   11630 fi
   11631 
   11632 if test "${have_libguile}" != no; then
   11633 
   11634 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
   11635 
   11636   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
   11637   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
   11638   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
   11639   CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
   11640   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
   11641 
   11642     save_LIBS="$LIBS"
   11643   save_CPPFLAGS="$CPPFLAGS"
   11644   LIBS="$GUILE_LIBS"
   11645   CPPFLAGS="$GUILE_CPPFLAGS"
   11646   for ac_func in scm_new_smob
   11647 do :
   11648   ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
   11649 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
   11650   cat >>confdefs.h <<_ACEOF
   11651 #define HAVE_SCM_NEW_SMOB 1
   11652 _ACEOF
   11653 
   11654 fi
   11655 done
   11656 
   11657   LIBS="$save_LIBS"
   11658   CPPFLAGS="$save_CPPFLAGS"
   11659 else
   11660   # Even if Guile support is not compiled in, we need to have these files
   11661   # included.
   11662   CONFIG_OBS="$CONFIG_OBS guile/guile.o"
   11663   CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
   11664 fi
   11665 
   11666 
   11667  if test "${have_libguile}" != no; then
   11668   HAVE_GUILE_TRUE=
   11669   HAVE_GUILE_FALSE='#'
   11670 else
   11671   HAVE_GUILE_TRUE='#'
   11672   HAVE_GUILE_FALSE=
   11673 fi
   11674 
   11675 
   11676 # ---------------------------- #
   11677 # Check for source highlight.  #
   11678 # ---------------------------- #
   11679 
   11680 SRCHIGH_LIBS=
   11681 SRCHIGH_CFLAGS=
   11682 
   11683 # Check whether --enable-source-highlight was given.
   11684 if test "${enable_source_highlight+set}" = set; then :
   11685   enableval=$enable_source_highlight; case "${enableval}" in
   11686   yes)  enable_source_highlight=yes ;;
   11687   no)   enable_source_highlight=no  ;;
   11688   *)    as_fn_error $? "bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
   11689 esac
   11690 else
   11691   enable_source_highlight=auto
   11692 fi
   11693 
   11694 
   11695 if test "${enable_source_highlight}" != "no"; then
   11696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
   11697 $as_echo_n "checking for the source-highlight library... " >&6; }
   11698   if test "${pkg_config_prog_path}" = "missing"; then
   11699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
   11700 $as_echo "no - pkg-config not found" >&6; }
   11701     if test "${enable_source_highlight}" = "yes"; then
   11702       as_fn_error $? "pkg-config was not found in your system" "$LINENO" 5
   11703     fi
   11704   else
   11705     case "$LDFLAGS" in
   11706       *static-libstdc*)
   11707         as_fn_error $? "source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
   11708         ;;
   11709     esac
   11710 
   11711     if ${pkg_config_prog_path} --exists source-highlight; then
   11712       SRCHIGH_CFLAGS=`${pkg_config_prog_path} --cflags source-highlight`
   11713       SRCHIGH_LIBS=`${pkg_config_prog_path} --libs source-highlight`
   11714 
   11715 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
   11716 
   11717       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11718 $as_echo "yes" >&6; }
   11719     else
   11720       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11721 $as_echo "no" >&6; }
   11722       if test "${enable_source_highlight}" = "yes"; then
   11723         as_fn_error $? "source-highlight was not found in your system" "$LINENO" 5
   11724       fi
   11725     fi
   11726   fi
   11727 fi
   11728 
   11729 
   11730 
   11731 # ------------------------- #
   11732 # Checks for header files.  #
   11733 # ------------------------- #
   11734 
   11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   11736 $as_echo_n "checking for ANSI C header files... " >&6; }
   11737 if ${ac_cv_header_stdc+:} false; then :
   11738   $as_echo_n "(cached) " >&6
   11739 else
   11740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11741 /* end confdefs.h.  */
   11742 #include <stdlib.h>
   11743 #include <stdarg.h>
   11744 #include <string.h>
   11745 #include <float.h>
   11746 
   11747 int
   11748 main ()
   11749 {
   11750 
   11751   ;
   11752   return 0;
   11753 }
   11754 _ACEOF
   11755 if ac_fn_c_try_compile "$LINENO"; then :
   11756   ac_cv_header_stdc=yes
   11757 else
   11758   ac_cv_header_stdc=no
   11759 fi
   11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11761 
   11762 if test $ac_cv_header_stdc = yes; then
   11763   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   11764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11765 /* end confdefs.h.  */
   11766 #include <string.h>
   11767 
   11768 _ACEOF
   11769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11770   $EGREP "memchr" >/dev/null 2>&1; then :
   11771 
   11772 else
   11773   ac_cv_header_stdc=no
   11774 fi
   11775 rm -f conftest*
   11776 
   11777 fi
   11778 
   11779 if test $ac_cv_header_stdc = yes; then
   11780   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   11781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11782 /* end confdefs.h.  */
   11783 #include <stdlib.h>
   11784 
   11785 _ACEOF
   11786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11787   $EGREP "free" >/dev/null 2>&1; then :
   11788 
   11789 else
   11790   ac_cv_header_stdc=no
   11791 fi
   11792 rm -f conftest*
   11793 
   11794 fi
   11795 
   11796 if test $ac_cv_header_stdc = yes; then
   11797   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   11798   if test "$cross_compiling" = yes; then :
   11799   :
   11800 else
   11801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11802 /* end confdefs.h.  */
   11803 #include <ctype.h>
   11804 #include <stdlib.h>
   11805 #if ((' ' & 0x0FF) == 0x020)
   11806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   11807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   11808 #else
   11809 # define ISLOWER(c) \
   11810 		   (('a' <= (c) && (c) <= 'i') \
   11811 		     || ('j' <= (c) && (c) <= 'r') \
   11812 		     || ('s' <= (c) && (c) <= 'z'))
   11813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   11814 #endif
   11815 
   11816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   11817 int
   11818 main ()
   11819 {
   11820   int i;
   11821   for (i = 0; i < 256; i++)
   11822     if (XOR (islower (i), ISLOWER (i))
   11823 	|| toupper (i) != TOUPPER (i))
   11824       return 2;
   11825   return 0;
   11826 }
   11827 _ACEOF
   11828 if ac_fn_c_try_run "$LINENO"; then :
   11829 
   11830 else
   11831   ac_cv_header_stdc=no
   11832 fi
   11833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11834   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11835 fi
   11836 
   11837 fi
   11838 fi
   11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   11840 $as_echo "$ac_cv_header_stdc" >&6; }
   11841 if test $ac_cv_header_stdc = yes; then
   11842 
   11843 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   11844 
   11845 fi
   11846 
   11847 # elf_hp.h is for HP/UX 64-bit shared library support.
   11848 for ac_header in nlist.h machine/reg.h \
   11849                   thread_db.h \
   11850 		  sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
   11851 		  sys/resource.h sys/ptrace.h ptrace.h \
   11852 		  sys/reg.h sys/debugreg.h \
   11853 		  termios.h elf_hp.h
   11854 do :
   11855   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11856 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   11857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   11858   cat >>confdefs.h <<_ACEOF
   11859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11860 _ACEOF
   11861 
   11862 fi
   11863 
   11864 done
   11865 
   11866 for ac_header in sys/user.h
   11867 do :
   11868   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
   11869 # include <sys/param.h>
   11870 #endif
   11871 
   11872 "
   11873 if test "x$ac_cv_header_sys_user_h" = xyes; then :
   11874   cat >>confdefs.h <<_ACEOF
   11875 #define HAVE_SYS_USER_H 1
   11876 _ACEOF
   11877 
   11878 fi
   11879 
   11880 done
   11881 
   11882 
   11883 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
   11884 do :
   11885   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   11886 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   11887 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   11888   cat >>confdefs.h <<_ACEOF
   11889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   11890 _ACEOF
   11891 
   11892 fi
   11893 
   11894 done
   11895 
   11896 for ac_header in term.h
   11897 do :
   11898   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
   11899 # include <curses.h>
   11900 #endif
   11901 
   11902 "
   11903 if test "x$ac_cv_header_term_h" = xyes; then :
   11904   cat >>confdefs.h <<_ACEOF
   11905 #define HAVE_TERM_H 1
   11906 _ACEOF
   11907 
   11908 fi
   11909 
   11910 done
   11911 
   11912 
   11913 for ac_header in sys/socket.h
   11914 do :
   11915   ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
   11916 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
   11917   cat >>confdefs.h <<_ACEOF
   11918 #define HAVE_SYS_SOCKET_H 1
   11919 _ACEOF
   11920 
   11921 fi
   11922 
   11923 done
   11924 
   11925 for ac_header in ws2tcpip.h
   11926 do :
   11927   ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default"
   11928 if test "x$ac_cv_header_ws2tcpip_h" = xyes; then :
   11929   cat >>confdefs.h <<_ACEOF
   11930 #define HAVE_WS2TCPIP_H 1
   11931 _ACEOF
   11932 
   11933 fi
   11934 
   11935 done
   11936 
   11937 
   11938 # ------------------------- #
   11939 # Checks for declarations.  #
   11940 # ------------------------- #
   11941 
   11942 
   11943   # Check for presence and size of long long.
   11944   ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   11945 if test "x$ac_cv_type_long_long" = xyes; then :
   11946 
   11947 cat >>confdefs.h <<_ACEOF
   11948 #define HAVE_LONG_LONG 1
   11949 _ACEOF
   11950 
   11951 # The cast to long int works around a bug in the HP C Compiler
   11952 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   11953 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   11954 # This bug is HP SR number 8606223364.
   11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   11956 $as_echo_n "checking size of long long... " >&6; }
   11957 if ${ac_cv_sizeof_long_long+:} false; then :
   11958   $as_echo_n "(cached) " >&6
   11959 else
   11960   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   11961 
   11962 else
   11963   if test "$ac_cv_type_long_long" = yes; then
   11964      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   11965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   11966 as_fn_error 77 "cannot compute sizeof (long long)
   11967 See \`config.log' for more details" "$LINENO" 5; }
   11968    else
   11969      ac_cv_sizeof_long_long=0
   11970    fi
   11971 fi
   11972 
   11973 fi
   11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   11975 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   11976 
   11977 
   11978 
   11979 cat >>confdefs.h <<_ACEOF
   11980 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   11981 _ACEOF
   11982 
   11983 
   11984 fi
   11985 
   11986 
   11987   as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
   11988 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
   11989 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
   11990   ac_have_decl=1
   11991 else
   11992   ac_have_decl=0
   11993 fi
   11994 
   11995 cat >>confdefs.h <<_ACEOF
   11996 #define HAVE_DECL_BASENAME $ac_have_decl
   11997 _ACEOF
   11998 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
   11999 if test "x$ac_cv_have_decl_ffs" = xyes; then :
   12000   ac_have_decl=1
   12001 else
   12002   ac_have_decl=0
   12003 fi
   12004 
   12005 cat >>confdefs.h <<_ACEOF
   12006 #define HAVE_DECL_FFS $ac_have_decl
   12007 _ACEOF
   12008 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
   12009 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
   12010   ac_have_decl=1
   12011 else
   12012   ac_have_decl=0
   12013 fi
   12014 
   12015 cat >>confdefs.h <<_ACEOF
   12016 #define HAVE_DECL_ASPRINTF $ac_have_decl
   12017 _ACEOF
   12018 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
   12019 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
   12020   ac_have_decl=1
   12021 else
   12022   ac_have_decl=0
   12023 fi
   12024 
   12025 cat >>confdefs.h <<_ACEOF
   12026 #define HAVE_DECL_VASPRINTF $ac_have_decl
   12027 _ACEOF
   12028 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   12029 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
   12030   ac_have_decl=1
   12031 else
   12032   ac_have_decl=0
   12033 fi
   12034 
   12035 cat >>confdefs.h <<_ACEOF
   12036 #define HAVE_DECL_SNPRINTF $ac_have_decl
   12037 _ACEOF
   12038 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
   12039 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
   12040   ac_have_decl=1
   12041 else
   12042   ac_have_decl=0
   12043 fi
   12044 
   12045 cat >>confdefs.h <<_ACEOF
   12046 #define HAVE_DECL_VSNPRINTF $ac_have_decl
   12047 _ACEOF
   12048 
   12049   ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
   12050 if test "x$ac_cv_have_decl_strtol" = xyes; then :
   12051   ac_have_decl=1
   12052 else
   12053   ac_have_decl=0
   12054 fi
   12055 
   12056 cat >>confdefs.h <<_ACEOF
   12057 #define HAVE_DECL_STRTOL $ac_have_decl
   12058 _ACEOF
   12059 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
   12060 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
   12061   ac_have_decl=1
   12062 else
   12063   ac_have_decl=0
   12064 fi
   12065 
   12066 cat >>confdefs.h <<_ACEOF
   12067 #define HAVE_DECL_STRTOUL $ac_have_decl
   12068 _ACEOF
   12069 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
   12070 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
   12071   ac_have_decl=1
   12072 else
   12073   ac_have_decl=0
   12074 fi
   12075 
   12076 cat >>confdefs.h <<_ACEOF
   12077 #define HAVE_DECL_STRTOLL $ac_have_decl
   12078 _ACEOF
   12079 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
   12080 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
   12081   ac_have_decl=1
   12082 else
   12083   ac_have_decl=0
   12084 fi
   12085 
   12086 cat >>confdefs.h <<_ACEOF
   12087 #define HAVE_DECL_STRTOULL $ac_have_decl
   12088 _ACEOF
   12089 
   12090   ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
   12091 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
   12092   ac_have_decl=1
   12093 else
   12094   ac_have_decl=0
   12095 fi
   12096 
   12097 cat >>confdefs.h <<_ACEOF
   12098 #define HAVE_DECL_STRVERSCMP $ac_have_decl
   12099 _ACEOF
   12100 
   12101 
   12102 
   12103 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   12104 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
   12105   ac_have_decl=1
   12106 else
   12107   ac_have_decl=0
   12108 fi
   12109 
   12110 cat >>confdefs.h <<_ACEOF
   12111 #define HAVE_DECL_SNPRINTF $ac_have_decl
   12112 _ACEOF
   12113 
   12114 
   12115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
   12116 $as_echo_n "checking for LC_MESSAGES... " >&6; }
   12117 if ${am_cv_val_LC_MESSAGES+:} false; then :
   12118   $as_echo_n "(cached) " >&6
   12119 else
   12120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12121 /* end confdefs.h.  */
   12122 #include <locale.h>
   12123 int
   12124 main ()
   12125 {
   12126 return LC_MESSAGES
   12127   ;
   12128   return 0;
   12129 }
   12130 _ACEOF
   12131 if ac_fn_c_try_link "$LINENO"; then :
   12132   am_cv_val_LC_MESSAGES=yes
   12133 else
   12134   am_cv_val_LC_MESSAGES=no
   12135 fi
   12136 rm -f core conftest.err conftest.$ac_objext \
   12137     conftest$ac_exeext conftest.$ac_ext
   12138 fi
   12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
   12140 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
   12141   if test $am_cv_val_LC_MESSAGES = yes; then
   12142 
   12143 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
   12144 
   12145   fi
   12146 
   12147 
   12148 # ------------------ #
   12149 # Checks for types.  #
   12150 # ------------------ #
   12151 
   12152 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
   12153 #if HAVE_SYS_SOCKET_H
   12154 # include <sys/socket.h>
   12155 #elif HAVE_WS2TCPIP_H
   12156 # include <ws2tcpip.h>
   12157 #endif
   12158 
   12159 "
   12160 if test "x$ac_cv_type_socklen_t" = xyes; then :
   12161 
   12162 cat >>confdefs.h <<_ACEOF
   12163 #define HAVE_SOCKLEN_T 1
   12164 _ACEOF
   12165 
   12166 
   12167 fi
   12168 
   12169 
   12170 # ------------------------------------- #
   12171 # Checks for compiler characteristics.  #
   12172 # ------------------------------------- #
   12173 
   12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   12175 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   12176 if ${ac_cv_c_const+:} false; then :
   12177   $as_echo_n "(cached) " >&6
   12178 else
   12179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12180 /* end confdefs.h.  */
   12181 
   12182 int
   12183 main ()
   12184 {
   12185 
   12186 #ifndef __cplusplus
   12187   /* Ultrix mips cc rejects this sort of thing.  */
   12188   typedef int charset[2];
   12189   const charset cs = { 0, 0 };
   12190   /* SunOS 4.1.1 cc rejects this.  */
   12191   char const *const *pcpcc;
   12192   char **ppc;
   12193   /* NEC SVR4.0.2 mips cc rejects this.  */
   12194   struct point {int x, y;};
   12195   static struct point const zero = {0,0};
   12196   /* AIX XL C 1.02.0.0 rejects this.
   12197      It does not let you subtract one const X* pointer from another in
   12198      an arm of an if-expression whose if-part is not a constant
   12199      expression */
   12200   const char *g = "string";
   12201   pcpcc = &g + (g ? g-g : 0);
   12202   /* HPUX 7.0 cc rejects these. */
   12203   ++pcpcc;
   12204   ppc = (char**) pcpcc;
   12205   pcpcc = (char const *const *) ppc;
   12206   { /* SCO 3.2v4 cc rejects this sort of thing.  */
   12207     char tx;
   12208     char *t = &tx;
   12209     char const *s = 0 ? (char *) 0 : (char const *) 0;
   12210 
   12211     *t++ = 0;
   12212     if (s) return 0;
   12213   }
   12214   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   12215     int x[] = {25, 17};
   12216     const int *foo = &x[0];
   12217     ++foo;
   12218   }
   12219   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   12220     typedef const int *iptr;
   12221     iptr p = 0;
   12222     ++p;
   12223   }
   12224   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
   12225        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   12226     struct s { int j; const int *ap[3]; } bx;
   12227     struct s *b = &bx; b->j = 5;
   12228   }
   12229   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   12230     const int foo = 10;
   12231     if (!foo) return 0;
   12232   }
   12233   return !cs[0] && !zero.x;
   12234 #endif
   12235 
   12236   ;
   12237   return 0;
   12238 }
   12239 _ACEOF
   12240 if ac_fn_c_try_compile "$LINENO"; then :
   12241   ac_cv_c_const=yes
   12242 else
   12243   ac_cv_c_const=no
   12244 fi
   12245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12246 fi
   12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   12248 $as_echo "$ac_cv_c_const" >&6; }
   12249 if test $ac_cv_c_const = no; then
   12250 
   12251 $as_echo "#define const /**/" >>confdefs.h
   12252 
   12253 fi
   12254 
   12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   12256 $as_echo_n "checking for inline... " >&6; }
   12257 if ${ac_cv_c_inline+:} false; then :
   12258   $as_echo_n "(cached) " >&6
   12259 else
   12260   ac_cv_c_inline=no
   12261 for ac_kw in inline __inline__ __inline; do
   12262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12263 /* end confdefs.h.  */
   12264 #ifndef __cplusplus
   12265 typedef int foo_t;
   12266 static $ac_kw foo_t static_foo () {return 0; }
   12267 $ac_kw foo_t foo () {return 0; }
   12268 #endif
   12269 
   12270 _ACEOF
   12271 if ac_fn_c_try_compile "$LINENO"; then :
   12272   ac_cv_c_inline=$ac_kw
   12273 fi
   12274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12275   test "$ac_cv_c_inline" != no && break
   12276 done
   12277 
   12278 fi
   12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   12280 $as_echo "$ac_cv_c_inline" >&6; }
   12281 
   12282 case $ac_cv_c_inline in
   12283   inline | yes) ;;
   12284   *)
   12285     case $ac_cv_c_inline in
   12286       no) ac_val=;;
   12287       *) ac_val=$ac_cv_c_inline;;
   12288     esac
   12289     cat >>confdefs.h <<_ACEOF
   12290 #ifndef __cplusplus
   12291 #define inline $ac_val
   12292 #endif
   12293 _ACEOF
   12294     ;;
   12295 esac
   12296 
   12297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   12298 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   12299 if ${ac_cv_c_bigendian+:} false; then :
   12300   $as_echo_n "(cached) " >&6
   12301 else
   12302   ac_cv_c_bigendian=unknown
   12303     # See if we're dealing with a universal compiler.
   12304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12305 /* end confdefs.h.  */
   12306 #ifndef __APPLE_CC__
   12307 	       not a universal capable compiler
   12308 	     #endif
   12309 	     typedef int dummy;
   12310 
   12311 _ACEOF
   12312 if ac_fn_c_try_compile "$LINENO"; then :
   12313 
   12314 	# Check for potential -arch flags.  It is not universal unless
   12315 	# there are at least two -arch flags with different values.
   12316 	ac_arch=
   12317 	ac_prev=
   12318 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   12319 	 if test -n "$ac_prev"; then
   12320 	   case $ac_word in
   12321 	     i?86 | x86_64 | ppc | ppc64)
   12322 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   12323 		 ac_arch=$ac_word
   12324 	       else
   12325 		 ac_cv_c_bigendian=universal
   12326 		 break
   12327 	       fi
   12328 	       ;;
   12329 	   esac
   12330 	   ac_prev=
   12331 	 elif test "x$ac_word" = "x-arch"; then
   12332 	   ac_prev=arch
   12333 	 fi
   12334        done
   12335 fi
   12336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12337     if test $ac_cv_c_bigendian = unknown; then
   12338       # See if sys/param.h defines the BYTE_ORDER macro.
   12339       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12340 /* end confdefs.h.  */
   12341 #include <sys/types.h>
   12342 	     #include <sys/param.h>
   12343 
   12344 int
   12345 main ()
   12346 {
   12347 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   12348 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   12349 		     && LITTLE_ENDIAN)
   12350 	      bogus endian macros
   12351 	     #endif
   12352 
   12353   ;
   12354   return 0;
   12355 }
   12356 _ACEOF
   12357 if ac_fn_c_try_compile "$LINENO"; then :
   12358   # It does; now see whether it defined to BIG_ENDIAN or not.
   12359 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12360 /* end confdefs.h.  */
   12361 #include <sys/types.h>
   12362 		#include <sys/param.h>
   12363 
   12364 int
   12365 main ()
   12366 {
   12367 #if BYTE_ORDER != BIG_ENDIAN
   12368 		 not big endian
   12369 		#endif
   12370 
   12371   ;
   12372   return 0;
   12373 }
   12374 _ACEOF
   12375 if ac_fn_c_try_compile "$LINENO"; then :
   12376   ac_cv_c_bigendian=yes
   12377 else
   12378   ac_cv_c_bigendian=no
   12379 fi
   12380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12381 fi
   12382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12383     fi
   12384     if test $ac_cv_c_bigendian = unknown; then
   12385       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   12386       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12387 /* end confdefs.h.  */
   12388 #include <limits.h>
   12389 
   12390 int
   12391 main ()
   12392 {
   12393 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   12394 	      bogus endian macros
   12395 	     #endif
   12396 
   12397   ;
   12398   return 0;
   12399 }
   12400 _ACEOF
   12401 if ac_fn_c_try_compile "$LINENO"; then :
   12402   # It does; now see whether it defined to _BIG_ENDIAN or not.
   12403 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12404 /* end confdefs.h.  */
   12405 #include <limits.h>
   12406 
   12407 int
   12408 main ()
   12409 {
   12410 #ifndef _BIG_ENDIAN
   12411 		 not big endian
   12412 		#endif
   12413 
   12414   ;
   12415   return 0;
   12416 }
   12417 _ACEOF
   12418 if ac_fn_c_try_compile "$LINENO"; then :
   12419   ac_cv_c_bigendian=yes
   12420 else
   12421   ac_cv_c_bigendian=no
   12422 fi
   12423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12424 fi
   12425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12426     fi
   12427     if test $ac_cv_c_bigendian = unknown; then
   12428       # Compile a test program.
   12429       if test "$cross_compiling" = yes; then :
   12430   # Try to guess by grepping values from an object file.
   12431 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12432 /* end confdefs.h.  */
   12433 short int ascii_mm[] =
   12434 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   12435 		short int ascii_ii[] =
   12436 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   12437 		int use_ascii (int i) {
   12438 		  return ascii_mm[i] + ascii_ii[i];
   12439 		}
   12440 		short int ebcdic_ii[] =
   12441 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   12442 		short int ebcdic_mm[] =
   12443 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   12444 		int use_ebcdic (int i) {
   12445 		  return ebcdic_mm[i] + ebcdic_ii[i];
   12446 		}
   12447 		extern int foo;
   12448 
   12449 int
   12450 main ()
   12451 {
   12452 return use_ascii (foo) == use_ebcdic (foo);
   12453   ;
   12454   return 0;
   12455 }
   12456 _ACEOF
   12457 if ac_fn_c_try_compile "$LINENO"; then :
   12458   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   12459 	      ac_cv_c_bigendian=yes
   12460 	    fi
   12461 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   12462 	      if test "$ac_cv_c_bigendian" = unknown; then
   12463 		ac_cv_c_bigendian=no
   12464 	      else
   12465 		# finding both strings is unlikely to happen, but who knows?
   12466 		ac_cv_c_bigendian=unknown
   12467 	      fi
   12468 	    fi
   12469 fi
   12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12471 else
   12472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12473 /* end confdefs.h.  */
   12474 $ac_includes_default
   12475 int
   12476 main ()
   12477 {
   12478 
   12479 	     /* Are we little or big endian?  From Harbison&Steele.  */
   12480 	     union
   12481 	     {
   12482 	       long int l;
   12483 	       char c[sizeof (long int)];
   12484 	     } u;
   12485 	     u.l = 1;
   12486 	     return u.c[sizeof (long int) - 1] == 1;
   12487 
   12488   ;
   12489   return 0;
   12490 }
   12491 _ACEOF
   12492 if ac_fn_c_try_run "$LINENO"; then :
   12493   ac_cv_c_bigendian=no
   12494 else
   12495   ac_cv_c_bigendian=yes
   12496 fi
   12497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12498   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12499 fi
   12500 
   12501     fi
   12502 fi
   12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   12504 $as_echo "$ac_cv_c_bigendian" >&6; }
   12505  case $ac_cv_c_bigendian in #(
   12506    yes)
   12507      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   12508 ;; #(
   12509    no)
   12510       ;; #(
   12511    universal)
   12512 
   12513 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   12514 
   12515      ;; #(
   12516    *)
   12517      as_fn_error $? "unknown endianness
   12518  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   12519  esac
   12520 
   12521 
   12522 # ------------------------------ #
   12523 # Checks for library functions.  #
   12524 # ------------------------------ #
   12525 
   12526 for ac_func in getuid getgid \
   12527 		pipe pread pread64 pwrite resize_term \
   12528 		getpgid setsid \
   12529 		sigaction sigsetmask socketpair \
   12530 		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
   12531 		setrlimit getrlimit posix_madvise waitpid \
   12532 		use_default_colors
   12533 do :
   12534   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12535 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   12536 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   12537   cat >>confdefs.h <<_ACEOF
   12538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12539 _ACEOF
   12540 
   12541 fi
   12542 done
   12543 
   12544 
   12545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   12546 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   12547 if ${am_cv_langinfo_codeset+:} false; then :
   12548   $as_echo_n "(cached) " >&6
   12549 else
   12550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12551 /* end confdefs.h.  */
   12552 #include <langinfo.h>
   12553 int
   12554 main ()
   12555 {
   12556 char* cs = nl_langinfo(CODESET);
   12557   ;
   12558   return 0;
   12559 }
   12560 _ACEOF
   12561 if ac_fn_c_try_link "$LINENO"; then :
   12562   am_cv_langinfo_codeset=yes
   12563 else
   12564   am_cv_langinfo_codeset=no
   12565 fi
   12566 rm -f core conftest.err conftest.$ac_objext \
   12567     conftest$ac_exeext conftest.$ac_ext
   12568 
   12569 fi
   12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   12571 $as_echo "$am_cv_langinfo_codeset" >&6; }
   12572   if test $am_cv_langinfo_codeset = yes; then
   12573 
   12574 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   12575 
   12576   fi
   12577 
   12578 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   12579 if test "x$ac_cv_type_size_t" = xyes; then :
   12580 
   12581 else
   12582 
   12583 cat >>confdefs.h <<_ACEOF
   12584 #define size_t unsigned int
   12585 _ACEOF
   12586 
   12587 fi
   12588 
   12589 
   12590 
   12591 
   12592   for ac_header in $ac_header_list
   12593 do :
   12594   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   12595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   12596 "
   12597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   12598   cat >>confdefs.h <<_ACEOF
   12599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   12600 _ACEOF
   12601 
   12602 fi
   12603 
   12604 done
   12605 
   12606 
   12607 
   12608 
   12609 
   12610 
   12611 
   12612 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   12613 if test "x$ac_cv_type_pid_t" = xyes; then :
   12614 
   12615 else
   12616 
   12617 cat >>confdefs.h <<_ACEOF
   12618 #define pid_t int
   12619 _ACEOF
   12620 
   12621 fi
   12622 
   12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   12624 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   12625 if ${ac_cv_path_SED+:} false; then :
   12626   $as_echo_n "(cached) " >&6
   12627 else
   12628             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   12629      for ac_i in 1 2 3 4 5 6 7; do
   12630        ac_script="$ac_script$as_nl$ac_script"
   12631      done
   12632      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   12633      { ac_script=; unset ac_script;}
   12634      if test -z "$SED"; then
   12635   ac_path_SED_found=false
   12636   # Loop through the user's path and test for each of PROGNAME-LIST
   12637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12638 for as_dir in $PATH
   12639 do
   12640   IFS=$as_save_IFS
   12641   test -z "$as_dir" && as_dir=.
   12642     for ac_prog in sed gsed; do
   12643     for ac_exec_ext in '' $ac_executable_extensions; do
   12644       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   12645       as_fn_executable_p "$ac_path_SED" || continue
   12646 # Check for GNU ac_path_SED and select it if it is found.
   12647   # Check for GNU $ac_path_SED
   12648 case `"$ac_path_SED" --version 2>&1` in
   12649 *GNU*)
   12650   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   12651 *)
   12652   ac_count=0
   12653   $as_echo_n 0123456789 >"conftest.in"
   12654   while :
   12655   do
   12656     cat "conftest.in" "conftest.in" >"conftest.tmp"
   12657     mv "conftest.tmp" "conftest.in"
   12658     cp "conftest.in" "conftest.nl"
   12659     $as_echo '' >> "conftest.nl"
   12660     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   12661     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   12662     as_fn_arith $ac_count + 1 && ac_count=$as_val
   12663     if test $ac_count -gt ${ac_path_SED_max-0}; then
   12664       # Best one so far, save it but keep looking for a better one
   12665       ac_cv_path_SED="$ac_path_SED"
   12666       ac_path_SED_max=$ac_count
   12667     fi
   12668     # 10*(2^10) chars as input seems more than enough
   12669     test $ac_count -gt 10 && break
   12670   done
   12671   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   12672 esac
   12673 
   12674       $ac_path_SED_found && break 3
   12675     done
   12676   done
   12677   done
   12678 IFS=$as_save_IFS
   12679   if test -z "$ac_cv_path_SED"; then
   12680     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   12681   fi
   12682 else
   12683   ac_cv_path_SED=$SED
   12684 fi
   12685 
   12686 fi
   12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   12688 $as_echo "$ac_cv_path_SED" >&6; }
   12689  SED="$ac_cv_path_SED"
   12690   rm -f conftest.sed
   12691 
   12692 
   12693   # Set the 'development' global.
   12694   . $srcdir/../bfd/development.sh
   12695 
   12696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   12697 $as_echo_n "checking for ANSI C header files... " >&6; }
   12698 if ${ac_cv_header_stdc+:} false; then :
   12699   $as_echo_n "(cached) " >&6
   12700 else
   12701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12702 /* end confdefs.h.  */
   12703 #include <stdlib.h>
   12704 #include <stdarg.h>
   12705 #include <string.h>
   12706 #include <float.h>
   12707 
   12708 int
   12709 main ()
   12710 {
   12711 
   12712   ;
   12713   return 0;
   12714 }
   12715 _ACEOF
   12716 if ac_fn_c_try_compile "$LINENO"; then :
   12717   ac_cv_header_stdc=yes
   12718 else
   12719   ac_cv_header_stdc=no
   12720 fi
   12721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12722 
   12723 if test $ac_cv_header_stdc = yes; then
   12724   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   12725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12726 /* end confdefs.h.  */
   12727 #include <string.h>
   12728 
   12729 _ACEOF
   12730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12731   $EGREP "memchr" >/dev/null 2>&1; then :
   12732 
   12733 else
   12734   ac_cv_header_stdc=no
   12735 fi
   12736 rm -f conftest*
   12737 
   12738 fi
   12739 
   12740 if test $ac_cv_header_stdc = yes; then
   12741   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   12742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12743 /* end confdefs.h.  */
   12744 #include <stdlib.h>
   12745 
   12746 _ACEOF
   12747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12748   $EGREP "free" >/dev/null 2>&1; then :
   12749 
   12750 else
   12751   ac_cv_header_stdc=no
   12752 fi
   12753 rm -f conftest*
   12754 
   12755 fi
   12756 
   12757 if test $ac_cv_header_stdc = yes; then
   12758   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   12759   if test "$cross_compiling" = yes; then :
   12760   :
   12761 else
   12762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12763 /* end confdefs.h.  */
   12764 #include <ctype.h>
   12765 #include <stdlib.h>
   12766 #if ((' ' & 0x0FF) == 0x020)
   12767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   12768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   12769 #else
   12770 # define ISLOWER(c) \
   12771 		   (('a' <= (c) && (c) <= 'i') \
   12772 		     || ('j' <= (c) && (c) <= 'r') \
   12773 		     || ('s' <= (c) && (c) <= 'z'))
   12774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   12775 #endif
   12776 
   12777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   12778 int
   12779 main ()
   12780 {
   12781   int i;
   12782   for (i = 0; i < 256; i++)
   12783     if (XOR (islower (i), ISLOWER (i))
   12784 	|| toupper (i) != TOUPPER (i))
   12785       return 2;
   12786   return 0;
   12787 }
   12788 _ACEOF
   12789 if ac_fn_c_try_run "$LINENO"; then :
   12790 
   12791 else
   12792   ac_cv_header_stdc=no
   12793 fi
   12794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12795   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12796 fi
   12797 
   12798 fi
   12799 fi
   12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   12801 $as_echo "$ac_cv_header_stdc" >&6; }
   12802 if test $ac_cv_header_stdc = yes; then
   12803 
   12804 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   12805 
   12806 fi
   12807 
   12808   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   12809 # for constant arguments.  Useless!
   12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   12811 $as_echo_n "checking for working alloca.h... " >&6; }
   12812 if ${ac_cv_working_alloca_h+:} false; then :
   12813   $as_echo_n "(cached) " >&6
   12814 else
   12815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12816 /* end confdefs.h.  */
   12817 #include <alloca.h>
   12818 int
   12819 main ()
   12820 {
   12821 char *p = (char *) alloca (2 * sizeof (int));
   12822 			  if (p) return 0;
   12823   ;
   12824   return 0;
   12825 }
   12826 _ACEOF
   12827 if ac_fn_c_try_link "$LINENO"; then :
   12828   ac_cv_working_alloca_h=yes
   12829 else
   12830   ac_cv_working_alloca_h=no
   12831 fi
   12832 rm -f core conftest.err conftest.$ac_objext \
   12833     conftest$ac_exeext conftest.$ac_ext
   12834 fi
   12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   12836 $as_echo "$ac_cv_working_alloca_h" >&6; }
   12837 if test $ac_cv_working_alloca_h = yes; then
   12838 
   12839 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   12840 
   12841 fi
   12842 
   12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   12844 $as_echo_n "checking for alloca... " >&6; }
   12845 if ${ac_cv_func_alloca_works+:} false; then :
   12846   $as_echo_n "(cached) " >&6
   12847 else
   12848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12849 /* end confdefs.h.  */
   12850 #ifdef __GNUC__
   12851 # define alloca __builtin_alloca
   12852 #else
   12853 # ifdef _MSC_VER
   12854 #  include <malloc.h>
   12855 #  define alloca _alloca
   12856 # else
   12857 #  ifdef HAVE_ALLOCA_H
   12858 #   include <alloca.h>
   12859 #  else
   12860 #   ifdef _AIX
   12861  #pragma alloca
   12862 #   else
   12863 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   12864 void *alloca (size_t);
   12865 #    endif
   12866 #   endif
   12867 #  endif
   12868 # endif
   12869 #endif
   12870 
   12871 int
   12872 main ()
   12873 {
   12874 char *p = (char *) alloca (1);
   12875 				    if (p) return 0;
   12876   ;
   12877   return 0;
   12878 }
   12879 _ACEOF
   12880 if ac_fn_c_try_link "$LINENO"; then :
   12881   ac_cv_func_alloca_works=yes
   12882 else
   12883   ac_cv_func_alloca_works=no
   12884 fi
   12885 rm -f core conftest.err conftest.$ac_objext \
   12886     conftest$ac_exeext conftest.$ac_ext
   12887 fi
   12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   12889 $as_echo "$ac_cv_func_alloca_works" >&6; }
   12890 
   12891 if test $ac_cv_func_alloca_works = yes; then
   12892 
   12893 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   12894 
   12895 else
   12896   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   12897 # that cause trouble.  Some versions do not even contain alloca or
   12898 # contain a buggy version.  If you still want to use their alloca,
   12899 # use ar to extract alloca.o from them instead of compiling alloca.c.
   12900 
   12901 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   12902 
   12903 $as_echo "#define C_ALLOCA 1" >>confdefs.h
   12904 
   12905 
   12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
   12907 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   12908 if ${ac_cv_os_cray+:} false; then :
   12909   $as_echo_n "(cached) " >&6
   12910 else
   12911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12912 /* end confdefs.h.  */
   12913 #if defined CRAY && ! defined CRAY2
   12914 webecray
   12915 #else
   12916 wenotbecray
   12917 #endif
   12918 
   12919 _ACEOF
   12920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12921   $EGREP "webecray" >/dev/null 2>&1; then :
   12922   ac_cv_os_cray=yes
   12923 else
   12924   ac_cv_os_cray=no
   12925 fi
   12926 rm -f conftest*
   12927 
   12928 fi
   12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   12930 $as_echo "$ac_cv_os_cray" >&6; }
   12931 if test $ac_cv_os_cray = yes; then
   12932   for ac_func in _getb67 GETB67 getb67; do
   12933     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12934 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   12935 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   12936 
   12937 cat >>confdefs.h <<_ACEOF
   12938 #define CRAY_STACKSEG_END $ac_func
   12939 _ACEOF
   12940 
   12941     break
   12942 fi
   12943 
   12944   done
   12945 fi
   12946 
   12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   12948 $as_echo_n "checking stack direction for C alloca... " >&6; }
   12949 if ${ac_cv_c_stack_direction+:} false; then :
   12950   $as_echo_n "(cached) " >&6
   12951 else
   12952   if test "$cross_compiling" = yes; then :
   12953   ac_cv_c_stack_direction=0
   12954 else
   12955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12956 /* end confdefs.h.  */
   12957 $ac_includes_default
   12958 int
   12959 find_stack_direction (int *addr, int depth)
   12960 {
   12961   int dir, dummy = 0;
   12962   if (! addr)
   12963     addr = &dummy;
   12964   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
   12965   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
   12966   return dir + dummy;
   12967 }
   12968 
   12969 int
   12970 main (int argc, char **argv)
   12971 {
   12972   return find_stack_direction (0, argc + !argv + 20) < 0;
   12973 }
   12974 _ACEOF
   12975 if ac_fn_c_try_run "$LINENO"; then :
   12976   ac_cv_c_stack_direction=1
   12977 else
   12978   ac_cv_c_stack_direction=-1
   12979 fi
   12980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12981   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12982 fi
   12983 
   12984 fi
   12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   12986 $as_echo "$ac_cv_c_stack_direction" >&6; }
   12987 cat >>confdefs.h <<_ACEOF
   12988 #define STACK_DIRECTION $ac_cv_c_stack_direction
   12989 _ACEOF
   12990 
   12991 
   12992 fi
   12993 
   12994 
   12995   WIN32APILIBS=
   12996   case ${host} in
   12997     *mingw32*)
   12998 
   12999 $as_echo "#define USE_WIN32API 1" >>confdefs.h
   13000 
   13001       WIN32APILIBS="-lws2_32"
   13002       ;;
   13003   esac
   13004 
   13005 
   13006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   13007 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   13008 if ${am_cv_langinfo_codeset+:} false; then :
   13009   $as_echo_n "(cached) " >&6
   13010 else
   13011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13012 /* end confdefs.h.  */
   13013 #include <langinfo.h>
   13014 int
   13015 main ()
   13016 {
   13017 char* cs = nl_langinfo(CODESET);
   13018   ;
   13019   return 0;
   13020 }
   13021 _ACEOF
   13022 if ac_fn_c_try_link "$LINENO"; then :
   13023   am_cv_langinfo_codeset=yes
   13024 else
   13025   am_cv_langinfo_codeset=no
   13026 fi
   13027 rm -f core conftest.err conftest.$ac_objext \
   13028     conftest$ac_exeext conftest.$ac_ext
   13029 
   13030 fi
   13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   13032 $as_echo "$am_cv_langinfo_codeset" >&6; }
   13033   if test $am_cv_langinfo_codeset = yes; then
   13034 
   13035 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   13036 
   13037   fi
   13038 
   13039 
   13040   for ac_header in linux/perf_event.h locale.h memory.h signal.h 		   sys/resource.h sys/socket.h 		   sys/un.h sys/wait.h 		   thread_db.h wait.h 		   termios.h 		   dlfcn.h 		   linux/elf.h proc_service.h 		   poll.h sys/poll.h sys/select.h
   13041 do :
   13042   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13044 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13045   cat >>confdefs.h <<_ACEOF
   13046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13047 _ACEOF
   13048 
   13049 fi
   13050 
   13051 done
   13052 
   13053 
   13054 
   13055 for ac_func in getpagesize
   13056 do :
   13057   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   13058 if test "x$ac_cv_func_getpagesize" = xyes; then :
   13059   cat >>confdefs.h <<_ACEOF
   13060 #define HAVE_GETPAGESIZE 1
   13061 _ACEOF
   13062 
   13063 fi
   13064 done
   13065 
   13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
   13067 $as_echo_n "checking for working mmap... " >&6; }
   13068 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
   13069   $as_echo_n "(cached) " >&6
   13070 else
   13071   if test "$cross_compiling" = yes; then :
   13072   ac_cv_func_mmap_fixed_mapped=no
   13073 else
   13074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13075 /* end confdefs.h.  */
   13076 $ac_includes_default
   13077 /* malloc might have been renamed as rpl_malloc. */
   13078 #undef malloc
   13079 
   13080 /* Thanks to Mike Haertel and Jim Avera for this test.
   13081    Here is a matrix of mmap possibilities:
   13082 	mmap private not fixed
   13083 	mmap private fixed at somewhere currently unmapped
   13084 	mmap private fixed at somewhere already mapped
   13085 	mmap shared not fixed
   13086 	mmap shared fixed at somewhere currently unmapped
   13087 	mmap shared fixed at somewhere already mapped
   13088    For private mappings, we should verify that changes cannot be read()
   13089    back from the file, nor mmap's back from the file at a different
   13090    address.  (There have been systems where private was not correctly
   13091    implemented like the infamous i386 svr4.0, and systems where the
   13092    VM page cache was not coherent with the file system buffer cache
   13093    like early versions of FreeBSD and possibly contemporary NetBSD.)
   13094    For shared mappings, we should conversely verify that changes get
   13095    propagated back to all the places they're supposed to be.
   13096 
   13097    Grep wants private fixed already mapped.
   13098    The main things grep needs to know about mmap are:
   13099    * does it exist and is it safe to write into the mmap'd area
   13100    * how to use it (BSD variants)  */
   13101 
   13102 #include <fcntl.h>
   13103 #include <sys/mman.h>
   13104 
   13105 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
   13106 char *malloc ();
   13107 #endif
   13108 
   13109 /* This mess was copied from the GNU getpagesize.h.  */
   13110 #ifndef HAVE_GETPAGESIZE
   13111 # ifdef _SC_PAGESIZE
   13112 #  define getpagesize() sysconf(_SC_PAGESIZE)
   13113 # else /* no _SC_PAGESIZE */
   13114 #  ifdef HAVE_SYS_PARAM_H
   13115 #   include <sys/param.h>
   13116 #   ifdef EXEC_PAGESIZE
   13117 #    define getpagesize() EXEC_PAGESIZE
   13118 #   else /* no EXEC_PAGESIZE */
   13119 #    ifdef NBPG
   13120 #     define getpagesize() NBPG * CLSIZE
   13121 #     ifndef CLSIZE
   13122 #      define CLSIZE 1
   13123 #     endif /* no CLSIZE */
   13124 #    else /* no NBPG */
   13125 #     ifdef NBPC
   13126 #      define getpagesize() NBPC
   13127 #     else /* no NBPC */
   13128 #      ifdef PAGESIZE
   13129 #       define getpagesize() PAGESIZE
   13130 #      endif /* PAGESIZE */
   13131 #     endif /* no NBPC */
   13132 #    endif /* no NBPG */
   13133 #   endif /* no EXEC_PAGESIZE */
   13134 #  else /* no HAVE_SYS_PARAM_H */
   13135 #   define getpagesize() 8192	/* punt totally */
   13136 #  endif /* no HAVE_SYS_PARAM_H */
   13137 # endif /* no _SC_PAGESIZE */
   13138 
   13139 #endif /* no HAVE_GETPAGESIZE */
   13140 
   13141 int
   13142 main ()
   13143 {
   13144   char *data, *data2, *data3;
   13145   const char *cdata2;
   13146   int i, pagesize;
   13147   int fd, fd2;
   13148 
   13149   pagesize = getpagesize ();
   13150 
   13151   /* First, make a file with some known garbage in it. */
   13152   data = (char *) malloc (pagesize);
   13153   if (!data)
   13154     return 1;
   13155   for (i = 0; i < pagesize; ++i)
   13156     *(data + i) = rand ();
   13157   umask (0);
   13158   fd = creat ("conftest.mmap", 0600);
   13159   if (fd < 0)
   13160     return 2;
   13161   if (write (fd, data, pagesize) != pagesize)
   13162     return 3;
   13163   close (fd);
   13164 
   13165   /* Next, check that the tail of a page is zero-filled.  File must have
   13166      non-zero length, otherwise we risk SIGBUS for entire page.  */
   13167   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
   13168   if (fd2 < 0)
   13169     return 4;
   13170   cdata2 = "";
   13171   if (write (fd2, cdata2, 1) != 1)
   13172     return 5;
   13173   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
   13174   if (data2 == MAP_FAILED)
   13175     return 6;
   13176   for (i = 0; i < pagesize; ++i)
   13177     if (*(data2 + i))
   13178       return 7;
   13179   close (fd2);
   13180   if (munmap (data2, pagesize))
   13181     return 8;
   13182 
   13183   /* Next, try to mmap the file at a fixed address which already has
   13184      something else allocated at it.  If we can, also make sure that
   13185      we see the same garbage.  */
   13186   fd = open ("conftest.mmap", O_RDWR);
   13187   if (fd < 0)
   13188     return 9;
   13189   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   13190 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   13191     return 10;
   13192   for (i = 0; i < pagesize; ++i)
   13193     if (*(data + i) != *(data2 + i))
   13194       return 11;
   13195 
   13196   /* Finally, make sure that changes to the mapped area do not
   13197      percolate back to the file as seen by read().  (This is a bug on
   13198      some variants of i386 svr4.0.)  */
   13199   for (i = 0; i < pagesize; ++i)
   13200     *(data2 + i) = *(data2 + i) + 1;
   13201   data3 = (char *) malloc (pagesize);
   13202   if (!data3)
   13203     return 12;
   13204   if (read (fd, data3, pagesize) != pagesize)
   13205     return 13;
   13206   for (i = 0; i < pagesize; ++i)
   13207     if (*(data + i) != *(data3 + i))
   13208       return 14;
   13209   close (fd);
   13210   return 0;
   13211 }
   13212 _ACEOF
   13213 if ac_fn_c_try_run "$LINENO"; then :
   13214   ac_cv_func_mmap_fixed_mapped=yes
   13215 else
   13216   ac_cv_func_mmap_fixed_mapped=no
   13217 fi
   13218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13219   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13220 fi
   13221 
   13222 fi
   13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
   13224 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
   13225 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   13226 
   13227 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
   13228 
   13229 fi
   13230 rm -f conftest.mmap conftest.txt
   13231 
   13232   for ac_header in vfork.h
   13233 do :
   13234   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
   13235 if test "x$ac_cv_header_vfork_h" = xyes; then :
   13236   cat >>confdefs.h <<_ACEOF
   13237 #define HAVE_VFORK_H 1
   13238 _ACEOF
   13239 
   13240 fi
   13241 
   13242 done
   13243 
   13244 for ac_func in fork vfork
   13245 do :
   13246   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13248 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13249   cat >>confdefs.h <<_ACEOF
   13250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13251 _ACEOF
   13252 
   13253 fi
   13254 done
   13255 
   13256 if test "x$ac_cv_func_fork" = xyes; then
   13257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   13258 $as_echo_n "checking for working fork... " >&6; }
   13259 if ${ac_cv_func_fork_works+:} false; then :
   13260   $as_echo_n "(cached) " >&6
   13261 else
   13262   if test "$cross_compiling" = yes; then :
   13263   ac_cv_func_fork_works=cross
   13264 else
   13265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13266 /* end confdefs.h.  */
   13267 $ac_includes_default
   13268 int
   13269 main ()
   13270 {
   13271 
   13272 	  /* By Ruediger Kuhlmann. */
   13273 	  return fork () < 0;
   13274 
   13275   ;
   13276   return 0;
   13277 }
   13278 _ACEOF
   13279 if ac_fn_c_try_run "$LINENO"; then :
   13280   ac_cv_func_fork_works=yes
   13281 else
   13282   ac_cv_func_fork_works=no
   13283 fi
   13284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13285   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13286 fi
   13287 
   13288 fi
   13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   13290 $as_echo "$ac_cv_func_fork_works" >&6; }
   13291 
   13292 else
   13293   ac_cv_func_fork_works=$ac_cv_func_fork
   13294 fi
   13295 if test "x$ac_cv_func_fork_works" = xcross; then
   13296   case $host in
   13297     *-*-amigaos* | *-*-msdosdjgpp*)
   13298       # Override, as these systems have only a dummy fork() stub
   13299       ac_cv_func_fork_works=no
   13300       ;;
   13301     *)
   13302       ac_cv_func_fork_works=yes
   13303       ;;
   13304   esac
   13305   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   13306 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   13307 fi
   13308 ac_cv_func_vfork_works=$ac_cv_func_vfork
   13309 if test "x$ac_cv_func_vfork" = xyes; then
   13310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   13311 $as_echo_n "checking for working vfork... " >&6; }
   13312 if ${ac_cv_func_vfork_works+:} false; then :
   13313   $as_echo_n "(cached) " >&6
   13314 else
   13315   if test "$cross_compiling" = yes; then :
   13316   ac_cv_func_vfork_works=cross
   13317 else
   13318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13319 /* end confdefs.h.  */
   13320 /* Thanks to Paul Eggert for this test.  */
   13321 $ac_includes_default
   13322 #include <sys/wait.h>
   13323 #ifdef HAVE_VFORK_H
   13324 # include <vfork.h>
   13325 #endif
   13326 /* On some sparc systems, changes by the child to local and incoming
   13327    argument registers are propagated back to the parent.  The compiler
   13328    is told about this with #include <vfork.h>, but some compilers
   13329    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   13330    static variable whose address is put into a register that is
   13331    clobbered by the vfork.  */
   13332 static void
   13333 #ifdef __cplusplus
   13334 sparc_address_test (int arg)
   13335 # else
   13336 sparc_address_test (arg) int arg;
   13337 #endif
   13338 {
   13339   static pid_t child;
   13340   if (!child) {
   13341     child = vfork ();
   13342     if (child < 0) {
   13343       perror ("vfork");
   13344       _exit(2);
   13345     }
   13346     if (!child) {
   13347       arg = getpid();
   13348       write(-1, "", 0);
   13349       _exit (arg);
   13350     }
   13351   }
   13352 }
   13353 
   13354 int
   13355 main ()
   13356 {
   13357   pid_t parent = getpid ();
   13358   pid_t child;
   13359 
   13360   sparc_address_test (0);
   13361 
   13362   child = vfork ();
   13363 
   13364   if (child == 0) {
   13365     /* Here is another test for sparc vfork register problems.  This
   13366        test uses lots of local variables, at least as many local
   13367        variables as main has allocated so far including compiler
   13368        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   13369        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   13370        reuse the register of parent for one of the local variables,
   13371        since it will think that parent can't possibly be used any more
   13372        in this routine.  Assigning to the local variable will thus
   13373        munge parent in the parent process.  */
   13374     pid_t
   13375       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   13376       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   13377     /* Convince the compiler that p..p7 are live; otherwise, it might
   13378        use the same hardware register for all 8 local variables.  */
   13379     if (p != p1 || p != p2 || p != p3 || p != p4
   13380 	|| p != p5 || p != p6 || p != p7)
   13381       _exit(1);
   13382 
   13383     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   13384        from child file descriptors.  If the child closes a descriptor
   13385        before it execs or exits, this munges the parent's descriptor
   13386        as well.  Test for this by closing stdout in the child.  */
   13387     _exit(close(fileno(stdout)) != 0);
   13388   } else {
   13389     int status;
   13390     struct stat st;
   13391 
   13392     while (wait(&status) != child)
   13393       ;
   13394     return (
   13395 	 /* Was there some problem with vforking?  */
   13396 	 child < 0
   13397 
   13398 	 /* Did the child fail?  (This shouldn't happen.)  */
   13399 	 || status
   13400 
   13401 	 /* Did the vfork/compiler bug occur?  */
   13402 	 || parent != getpid()
   13403 
   13404 	 /* Did the file descriptor bug occur?  */
   13405 	 || fstat(fileno(stdout), &st) != 0
   13406 	 );
   13407   }
   13408 }
   13409 _ACEOF
   13410 if ac_fn_c_try_run "$LINENO"; then :
   13411   ac_cv_func_vfork_works=yes
   13412 else
   13413   ac_cv_func_vfork_works=no
   13414 fi
   13415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13416   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13417 fi
   13418 
   13419 fi
   13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   13421 $as_echo "$ac_cv_func_vfork_works" >&6; }
   13422 
   13423 fi;
   13424 if test "x$ac_cv_func_fork_works" = xcross; then
   13425   ac_cv_func_vfork_works=$ac_cv_func_vfork
   13426   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   13427 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   13428 fi
   13429 
   13430 if test "x$ac_cv_func_vfork_works" = xyes; then
   13431 
   13432 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   13433 
   13434 else
   13435 
   13436 $as_echo "#define vfork fork" >>confdefs.h
   13437 
   13438 fi
   13439 if test "x$ac_cv_func_fork_works" = xyes; then
   13440 
   13441 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   13442 
   13443 fi
   13444 
   13445   for ac_func in fdwalk getrlimit pipe pipe2 poll socketpair sigaction \
   13446 		  ptrace64 sbrk setns sigaltstack sigprocmask \
   13447 		  setpgid setpgrp getrusage getauxval
   13448 do :
   13449   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13451 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13452   cat >>confdefs.h <<_ACEOF
   13453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13454 _ACEOF
   13455 
   13456 fi
   13457 done
   13458 
   13459 
   13460       ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
   13461 "
   13462 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
   13463   ac_have_decl=1
   13464 else
   13465   ac_have_decl=0
   13466 fi
   13467 
   13468 cat >>confdefs.h <<_ACEOF
   13469 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
   13470 _ACEOF
   13471 
   13472 
   13473   if test "$cross_compiling" = yes; then :
   13474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13475 /* end confdefs.h.  */
   13476 #include <sys/personality.h>
   13477 int
   13478 main ()
   13479 {
   13480 
   13481   #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   13482   #       define ADDR_NO_RANDOMIZE 0x0040000
   13483   #      endif
   13484 	 /* Test the flag could be set and stays set.  */
   13485 	 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   13486 	 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   13487 	     return 1
   13488   ;
   13489   return 0;
   13490 }
   13491 _ACEOF
   13492 if ac_fn_c_try_link "$LINENO"; then :
   13493   have_personality=true
   13494 else
   13495   have_personality=false
   13496 fi
   13497 rm -f core conftest.err conftest.$ac_objext \
   13498     conftest$ac_exeext conftest.$ac_ext
   13499 else
   13500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13501 /* end confdefs.h.  */
   13502 #include <sys/personality.h>
   13503 int
   13504 main ()
   13505 {
   13506 
   13507   #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   13508   #       define ADDR_NO_RANDOMIZE 0x0040000
   13509   #      endif
   13510 	 /* Test the flag could be set and stays set.  */
   13511 	 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   13512 	 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   13513 	     return 1
   13514   ;
   13515   return 0;
   13516 }
   13517 _ACEOF
   13518 if ac_fn_c_try_run "$LINENO"; then :
   13519   have_personality=true
   13520 else
   13521   have_personality=false
   13522 fi
   13523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   13524   conftest.$ac_objext conftest.beam conftest.$ac_ext
   13525 fi
   13526 
   13527   if $have_personality
   13528   then
   13529 
   13530 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
   13531 
   13532   fi
   13533 
   13534   ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
   13535 if test "x$ac_cv_have_decl_strstr" = xyes; then :
   13536   ac_have_decl=1
   13537 else
   13538   ac_have_decl=0
   13539 fi
   13540 
   13541 cat >>confdefs.h <<_ACEOF
   13542 #define HAVE_DECL_STRSTR $ac_have_decl
   13543 _ACEOF
   13544 
   13545 
   13546   # ----------------------- #
   13547   # Checks for structures.  #
   13548   # ----------------------- #
   13549 
   13550   ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
   13551 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
   13552 
   13553 cat >>confdefs.h <<_ACEOF
   13554 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
   13555 _ACEOF
   13556 
   13557 
   13558 fi
   13559 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   13560 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
   13561 
   13562 cat >>confdefs.h <<_ACEOF
   13563 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   13564 _ACEOF
   13565 
   13566 
   13567 fi
   13568 
   13569 
   13570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
   13571 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
   13572 if ${ac_cv_search_kinfo_getfile+:} false; then :
   13573   $as_echo_n "(cached) " >&6
   13574 else
   13575   ac_func_search_save_LIBS=$LIBS
   13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13577 /* end confdefs.h.  */
   13578 
   13579 /* Override any GCC internal prototype to avoid an error.
   13580    Use char because int might match the return type of a GCC
   13581    builtin and then its argument prototype would still apply.  */
   13582 #ifdef __cplusplus
   13583 extern "C"
   13584 #endif
   13585 char kinfo_getfile ();
   13586 int
   13587 main ()
   13588 {
   13589 return kinfo_getfile ();
   13590   ;
   13591   return 0;
   13592 }
   13593 _ACEOF
   13594 for ac_lib in '' util util-freebsd; do
   13595   if test -z "$ac_lib"; then
   13596     ac_res="none required"
   13597   else
   13598     ac_res=-l$ac_lib
   13599     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   13600   fi
   13601   if ac_fn_c_try_link "$LINENO"; then :
   13602   ac_cv_search_kinfo_getfile=$ac_res
   13603 fi
   13604 rm -f core conftest.err conftest.$ac_objext \
   13605     conftest$ac_exeext
   13606   if ${ac_cv_search_kinfo_getfile+:} false; then :
   13607   break
   13608 fi
   13609 done
   13610 if ${ac_cv_search_kinfo_getfile+:} false; then :
   13611 
   13612 else
   13613   ac_cv_search_kinfo_getfile=no
   13614 fi
   13615 rm conftest.$ac_ext
   13616 LIBS=$ac_func_search_save_LIBS
   13617 fi
   13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
   13619 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
   13620 ac_res=$ac_cv_search_kinfo_getfile
   13621 if test "$ac_res" != no; then :
   13622   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   13623 
   13624 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
   13625 
   13626 fi
   13627 
   13628 
   13629   # Check for std::thread.  This does not work on some platforms, like
   13630   # mingw and DJGPP.
   13631   ac_ext=cpp
   13632 ac_cpp='$CXXCPP $CPPFLAGS'
   13633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   13636 
   13637 
   13638 
   13639 
   13640 
   13641 ac_ext=c
   13642 ac_cpp='$CPP $CPPFLAGS'
   13643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   13644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   13645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   13646 
   13647 ax_pthread_ok=no
   13648 
   13649 # We used to check for pthread.h first, but this fails if pthread.h
   13650 # requires special compiler flags (e.g. on Tru64 or Sequent).
   13651 # It gets checked for in the link test anyway.
   13652 
   13653 # First of all, check if the user has set any of the PTHREAD_LIBS,
   13654 # etcetera environment variables, and if threads linking works using
   13655 # them:
   13656 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   13657         ax_pthread_save_CC="$CC"
   13658         ax_pthread_save_CFLAGS="$CFLAGS"
   13659         ax_pthread_save_LIBS="$LIBS"
   13660         if test "x$PTHREAD_CC" != "x"; then :
   13661   CC="$PTHREAD_CC"
   13662 fi
   13663         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   13664         LIBS="$PTHREAD_LIBS $LIBS"
   13665         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   13666 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   13667         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13668 /* end confdefs.h.  */
   13669 
   13670 /* Override any GCC internal prototype to avoid an error.
   13671    Use char because int might match the return type of a GCC
   13672    builtin and then its argument prototype would still apply.  */
   13673 #ifdef __cplusplus
   13674 extern "C"
   13675 #endif
   13676 char pthread_join ();
   13677 int
   13678 main ()
   13679 {
   13680 return pthread_join ();
   13681   ;
   13682   return 0;
   13683 }
   13684 _ACEOF
   13685 if ac_fn_c_try_link "$LINENO"; then :
   13686   ax_pthread_ok=yes
   13687 fi
   13688 rm -f core conftest.err conftest.$ac_objext \
   13689     conftest$ac_exeext conftest.$ac_ext
   13690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   13691 $as_echo "$ax_pthread_ok" >&6; }
   13692         if test "x$ax_pthread_ok" = "xno"; then
   13693                 PTHREAD_LIBS=""
   13694                 PTHREAD_CFLAGS=""
   13695         fi
   13696         CC="$ax_pthread_save_CC"
   13697         CFLAGS="$ax_pthread_save_CFLAGS"
   13698         LIBS="$ax_pthread_save_LIBS"
   13699 fi
   13700 
   13701 # We must check for the threads library under a number of different
   13702 # names; the ordering is very important because some systems
   13703 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   13704 # libraries is broken (non-POSIX).
   13705 
   13706 # Create a list of thread flags to try.  Items starting with a "-" are
   13707 # C compiler flags, and other items are library names, except for "none"
   13708 # which indicates that we try without any flags at all, and "pthread-config"
   13709 # which is a program returning the flags for the Pth emulation library.
   13710 
   13711 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   13712 
   13713 # The ordering *is* (sometimes) important.  Some notes on the
   13714 # individual items follow:
   13715 
   13716 # pthreads: AIX (must check this before -lpthread)
   13717 # none: in case threads are in libc; should be tried before -Kthread and
   13718 #       other compiler flags to prevent continual compiler warnings
   13719 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   13720 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   13721 #           (Note: HP C rejects this with "bad form for `-t' option")
   13722 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   13723 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   13724 #      doesn't hurt to check since this sometimes defines pthreads and
   13725 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   13726 #      is present but should not be used directly; and before -mthreads,
   13727 #      because the compiler interprets this as "-mt" + "-hreads")
   13728 # -mthreads: Mingw32/gcc, Lynx/gcc
   13729 # pthread: Linux, etcetera
   13730 # --thread-safe: KAI C++
   13731 # pthread-config: use pthread-config program (for GNU Pth library)
   13732 
   13733 case $host_os in
   13734 
   13735         freebsd*)
   13736 
   13737         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   13738         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   13739 
   13740         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   13741         ;;
   13742 
   13743         hpux*)
   13744 
   13745         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   13746         # multi-threading and also sets -lpthread."
   13747 
   13748         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   13749         ;;
   13750 
   13751         openedition*)
   13752 
   13753         # IBM z/OS requires a feature-test macro to be defined in order to
   13754         # enable POSIX threads at all, so give the user a hint if this is
   13755         # not set. (We don't define these ourselves, as they can affect
   13756         # other portions of the system API in unpredictable ways.)
   13757 
   13758         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13759 /* end confdefs.h.  */
   13760 
   13761 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   13762              AX_PTHREAD_ZOS_MISSING
   13763 #            endif
   13764 
   13765 _ACEOF
   13766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13767   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   13768   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   13769 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   13770 fi
   13771 rm -f conftest*
   13772 
   13773         ;;
   13774 
   13775         solaris*)
   13776 
   13777         # On Solaris (at least, for some versions), libc contains stubbed
   13778         # (non-functional) versions of the pthreads routines, so link-based
   13779         # tests will erroneously succeed. (N.B.: The stubs are missing
   13780         # pthread_cleanup_push, or rather a function called by this macro,
   13781         # so we could check for that, but who knows whether they'll stub
   13782         # that too in a future libc.)  So we'll check first for the
   13783         # standard Solaris way of linking pthreads (-mt -lpthread).
   13784 
   13785         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   13786         ;;
   13787 esac
   13788 
   13789 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   13790 
   13791 if test "x$GCC" = "xyes"; then :
   13792   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   13793 fi
   13794 
   13795 # The presence of a feature test macro requesting re-entrant function
   13796 # definitions is, on some systems, a strong hint that pthreads support is
   13797 # correctly enabled
   13798 
   13799 case $host_os in
   13800         darwin* | hpux* | linux* | osf* | solaris*)
   13801         ax_pthread_check_macro="_REENTRANT"
   13802         ;;
   13803 
   13804         aix*)
   13805         ax_pthread_check_macro="_THREAD_SAFE"
   13806         ;;
   13807 
   13808         *)
   13809         ax_pthread_check_macro="--"
   13810         ;;
   13811 esac
   13812 if test "x$ax_pthread_check_macro" = "x--"; then :
   13813   ax_pthread_check_cond=0
   13814 else
   13815   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   13816 fi
   13817 
   13818 # Are we compiling with Clang?
   13819 
   13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   13821 $as_echo_n "checking whether $CC is Clang... " >&6; }
   13822 if ${ax_cv_PTHREAD_CLANG+:} false; then :
   13823   $as_echo_n "(cached) " >&6
   13824 else
   13825   ax_cv_PTHREAD_CLANG=no
   13826      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   13827      if test "x$GCC" = "xyes"; then
   13828         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13829 /* end confdefs.h.  */
   13830 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   13831 #            if defined(__clang__) && defined(__llvm__)
   13832              AX_PTHREAD_CC_IS_CLANG
   13833 #            endif
   13834 
   13835 _ACEOF
   13836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   13837   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   13838   ax_cv_PTHREAD_CLANG=yes
   13839 fi
   13840 rm -f conftest*
   13841 
   13842      fi
   13843 
   13844 fi
   13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   13846 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   13847 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   13848 
   13849 ax_pthread_clang_warning=no
   13850 
   13851 # Clang needs special handling, because older versions handle the -pthread
   13852 # option in a rather... idiosyncratic way
   13853 
   13854 if test "x$ax_pthread_clang" = "xyes"; then
   13855 
   13856         # Clang takes -pthread; it has never supported any other flag
   13857 
   13858         # (Note 1: This will need to be revisited if a system that Clang
   13859         # supports has POSIX threads in a separate library.  This tends not
   13860         # to be the way of modern systems, but it's conceivable.)
   13861 
   13862         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   13863         # to get POSIX threads support; the API is always present and
   13864         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   13865         # -pthread does define _REENTRANT, and while the Darwin headers
   13866         # ignore this macro, third-party headers might not.)
   13867 
   13868         PTHREAD_CFLAGS="-pthread"
   13869         PTHREAD_LIBS=
   13870 
   13871         ax_pthread_ok=yes
   13872 
   13873         # However, older versions of Clang make a point of warning the user
   13874         # that, in an invocation where only linking and no compilation is
   13875         # taking place, the -pthread option has no effect ("argument unused
   13876         # during compilation").  They expect -pthread to be passed in only
   13877         # when source code is being compiled.
   13878         #
   13879         # Problem is, this is at odds with the way Automake and most other
   13880         # C build frameworks function, which is that the same flags used in
   13881         # compilation (CFLAGS) are also used in linking.  Many systems
   13882         # supported by AX_PTHREAD require exactly this for POSIX threads
   13883         # support, and in fact it is often not straightforward to specify a
   13884         # flag that is used only in the compilation phase and not in
   13885         # linking.  Such a scenario is extremely rare in practice.
   13886         #
   13887         # Even though use of the -pthread flag in linking would only print
   13888         # a warning, this can be a nuisance for well-run software projects
   13889         # that build with -Werror.  So if the active version of Clang has
   13890         # this misfeature, we search for an option to squash it.
   13891 
   13892         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   13893 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   13894 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   13895   $as_echo_n "(cached) " >&6
   13896 else
   13897   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   13898              # Create an alternate version of $ac_link that compiles and
   13899              # links in two steps (.c -> .o, .o -> exe) instead of one
   13900              # (.c -> exe), because the warning occurs only in the second
   13901              # step
   13902              ax_pthread_save_ac_link="$ac_link"
   13903              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   13904              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   13905              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   13906              ax_pthread_save_CFLAGS="$CFLAGS"
   13907              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   13908                 if test "x$ax_pthread_try" = "xunknown"; then :
   13909   break
   13910 fi
   13911                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   13912                 ac_link="$ax_pthread_save_ac_link"
   13913                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13914 /* end confdefs.h.  */
   13915 int main(void){return 0;}
   13916 _ACEOF
   13917 if ac_fn_c_try_link "$LINENO"; then :
   13918   ac_link="$ax_pthread_2step_ac_link"
   13919                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13920 /* end confdefs.h.  */
   13921 int main(void){return 0;}
   13922 _ACEOF
   13923 if ac_fn_c_try_link "$LINENO"; then :
   13924   break
   13925 fi
   13926 rm -f core conftest.err conftest.$ac_objext \
   13927     conftest$ac_exeext conftest.$ac_ext
   13928 
   13929 fi
   13930 rm -f core conftest.err conftest.$ac_objext \
   13931     conftest$ac_exeext conftest.$ac_ext
   13932              done
   13933              ac_link="$ax_pthread_save_ac_link"
   13934              CFLAGS="$ax_pthread_save_CFLAGS"
   13935              if test "x$ax_pthread_try" = "x"; then :
   13936   ax_pthread_try=no
   13937 fi
   13938              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   13939 
   13940 fi
   13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   13942 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   13943 
   13944         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   13945                 no | unknown) ;;
   13946                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   13947         esac
   13948 
   13949 fi # $ax_pthread_clang = yes
   13950 
   13951 if test "x$ax_pthread_ok" = "xno"; then
   13952 for ax_pthread_try_flag in $ax_pthread_flags; do
   13953 
   13954         case $ax_pthread_try_flag in
   13955                 none)
   13956                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   13957 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   13958                 ;;
   13959 
   13960                 -mt,pthread)
   13961                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   13962 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   13963                 PTHREAD_CFLAGS="-mt"
   13964                 PTHREAD_LIBS="-lpthread"
   13965                 ;;
   13966 
   13967                 -*)
   13968                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   13969 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   13970                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   13971                 ;;
   13972 
   13973                 pthread-config)
   13974                 # Extract the first word of "pthread-config", so it can be a program name with args.
   13975 set dummy pthread-config; ac_word=$2
   13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   13977 $as_echo_n "checking for $ac_word... " >&6; }
   13978 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   13979   $as_echo_n "(cached) " >&6
   13980 else
   13981   if test -n "$ax_pthread_config"; then
   13982   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   13983 else
   13984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   13985 for as_dir in $PATH
   13986 do
   13987   IFS=$as_save_IFS
   13988   test -z "$as_dir" && as_dir=.
   13989     for ac_exec_ext in '' $ac_executable_extensions; do
   13990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   13991     ac_cv_prog_ax_pthread_config="yes"
   13992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   13993     break 2
   13994   fi
   13995 done
   13996   done
   13997 IFS=$as_save_IFS
   13998 
   13999   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   14000 fi
   14001 fi
   14002 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   14003 if test -n "$ax_pthread_config"; then
   14004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   14005 $as_echo "$ax_pthread_config" >&6; }
   14006 else
   14007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14008 $as_echo "no" >&6; }
   14009 fi
   14010 
   14011 
   14012                 if test "x$ax_pthread_config" = "xno"; then :
   14013   continue
   14014 fi
   14015                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   14016                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   14017                 ;;
   14018 
   14019                 *)
   14020                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   14021 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   14022                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   14023                 ;;
   14024         esac
   14025 
   14026         ax_pthread_save_CFLAGS="$CFLAGS"
   14027         ax_pthread_save_LIBS="$LIBS"
   14028         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14029         LIBS="$PTHREAD_LIBS $LIBS"
   14030 
   14031         # Check for various functions.  We must include pthread.h,
   14032         # since some functions may be macros.  (On the Sequent, we
   14033         # need a special flag -Kthread to make this header compile.)
   14034         # We check for pthread_join because it is in -lpthread on IRIX
   14035         # while pthread_create is in libc.  We check for pthread_attr_init
   14036         # due to DEC craziness with -lpthreads.  We check for
   14037         # pthread_cleanup_push because it is one of the few pthread
   14038         # functions on Solaris that doesn't have a non-functional libc stub.
   14039         # We try pthread_create on general principles.
   14040 
   14041         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14042 /* end confdefs.h.  */
   14043 #include <pthread.h>
   14044 #                       if $ax_pthread_check_cond
   14045 #                        error "$ax_pthread_check_macro must be defined"
   14046 #                       endif
   14047                         static void routine(void *a) { a = 0; }
   14048                         static void *start_routine(void *a) { return a; }
   14049 int
   14050 main ()
   14051 {
   14052 pthread_t th; pthread_attr_t attr;
   14053                         pthread_create(&th, 0, start_routine, 0);
   14054                         pthread_join(th, 0);
   14055                         pthread_attr_init(&attr);
   14056                         pthread_cleanup_push(routine, 0);
   14057                         pthread_cleanup_pop(0) /* ; */
   14058   ;
   14059   return 0;
   14060 }
   14061 _ACEOF
   14062 if ac_fn_c_try_link "$LINENO"; then :
   14063   ax_pthread_ok=yes
   14064 fi
   14065 rm -f core conftest.err conftest.$ac_objext \
   14066     conftest$ac_exeext conftest.$ac_ext
   14067 
   14068         CFLAGS="$ax_pthread_save_CFLAGS"
   14069         LIBS="$ax_pthread_save_LIBS"
   14070 
   14071         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   14072 $as_echo "$ax_pthread_ok" >&6; }
   14073         if test "x$ax_pthread_ok" = "xyes"; then :
   14074   break
   14075 fi
   14076 
   14077         PTHREAD_LIBS=""
   14078         PTHREAD_CFLAGS=""
   14079 done
   14080 fi
   14081 
   14082 # Various other checks:
   14083 if test "x$ax_pthread_ok" = "xyes"; then
   14084         ax_pthread_save_CFLAGS="$CFLAGS"
   14085         ax_pthread_save_LIBS="$LIBS"
   14086         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   14087         LIBS="$PTHREAD_LIBS $LIBS"
   14088 
   14089         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   14090         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   14091 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   14092 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   14093   $as_echo_n "(cached) " >&6
   14094 else
   14095   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   14096              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   14097                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14098 /* end confdefs.h.  */
   14099 #include <pthread.h>
   14100 int
   14101 main ()
   14102 {
   14103 int attr = $ax_pthread_attr; return attr /* ; */
   14104   ;
   14105   return 0;
   14106 }
   14107 _ACEOF
   14108 if ac_fn_c_try_link "$LINENO"; then :
   14109   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   14110 fi
   14111 rm -f core conftest.err conftest.$ac_objext \
   14112     conftest$ac_exeext conftest.$ac_ext
   14113              done
   14114 
   14115 fi
   14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   14117 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   14118         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   14119                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   14120                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   14121 
   14122 cat >>confdefs.h <<_ACEOF
   14123 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   14124 _ACEOF
   14125 
   14126                ax_pthread_joinable_attr_defined=yes
   14127 
   14128 fi
   14129 
   14130         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   14131 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   14132 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   14133   $as_echo_n "(cached) " >&6
   14134 else
   14135   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   14136              case $host_os in
   14137              solaris*)
   14138              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   14139              ;;
   14140              esac
   14141 
   14142 fi
   14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   14144 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   14145         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   14146                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   14147   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   14148                ax_pthread_special_flags_added=yes
   14149 fi
   14150 
   14151         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   14152 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   14153 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   14154   $as_echo_n "(cached) " >&6
   14155 else
   14156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14157 /* end confdefs.h.  */
   14158 #include <pthread.h>
   14159 int
   14160 main ()
   14161 {
   14162 int i = PTHREAD_PRIO_INHERIT;
   14163   ;
   14164   return 0;
   14165 }
   14166 _ACEOF
   14167 if ac_fn_c_try_link "$LINENO"; then :
   14168   ax_cv_PTHREAD_PRIO_INHERIT=yes
   14169 else
   14170   ax_cv_PTHREAD_PRIO_INHERIT=no
   14171 fi
   14172 rm -f core conftest.err conftest.$ac_objext \
   14173     conftest$ac_exeext conftest.$ac_ext
   14174 
   14175 fi
   14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   14177 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   14178         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   14179                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   14180 
   14181 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   14182 
   14183                ax_pthread_prio_inherit_defined=yes
   14184 
   14185 fi
   14186 
   14187         CFLAGS="$ax_pthread_save_CFLAGS"
   14188         LIBS="$ax_pthread_save_LIBS"
   14189 
   14190         # More AIX lossage: compile with *_r variant
   14191         if test "x$GCC" != "xyes"; then
   14192             case $host_os in
   14193                 aix*)
   14194                 case "x/$CC" in #(
   14195   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   14196     #handle absolute path differently from PATH based program lookup
   14197                      case "x$CC" in #(
   14198   x/*) :
   14199     if as_fn_executable_p ${CC}_r; then :
   14200   PTHREAD_CC="${CC}_r"
   14201 fi ;; #(
   14202   *) :
   14203     for ac_prog in ${CC}_r
   14204 do
   14205   # Extract the first word of "$ac_prog", so it can be a program name with args.
   14206 set dummy $ac_prog; ac_word=$2
   14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   14208 $as_echo_n "checking for $ac_word... " >&6; }
   14209 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   14210   $as_echo_n "(cached) " >&6
   14211 else
   14212   if test -n "$PTHREAD_CC"; then
   14213   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   14214 else
   14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14216 for as_dir in $PATH
   14217 do
   14218   IFS=$as_save_IFS
   14219   test -z "$as_dir" && as_dir=.
   14220     for ac_exec_ext in '' $ac_executable_extensions; do
   14221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   14222     ac_cv_prog_PTHREAD_CC="$ac_prog"
   14223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   14224     break 2
   14225   fi
   14226 done
   14227   done
   14228 IFS=$as_save_IFS
   14229 
   14230 fi
   14231 fi
   14232 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   14233 if test -n "$PTHREAD_CC"; then
   14234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   14235 $as_echo "$PTHREAD_CC" >&6; }
   14236 else
   14237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14238 $as_echo "no" >&6; }
   14239 fi
   14240 
   14241 
   14242   test -n "$PTHREAD_CC" && break
   14243 done
   14244 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   14245  ;;
   14246 esac ;; #(
   14247   *) :
   14248      ;;
   14249 esac
   14250                 ;;
   14251             esac
   14252         fi
   14253 fi
   14254 
   14255 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   14256 
   14257 
   14258 
   14259 
   14260 
   14261 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   14262 if test "x$ax_pthread_ok" = "xyes"; then
   14263         threads=yes
   14264         :
   14265 else
   14266         ax_pthread_ok=no
   14267         threads=no
   14268 fi
   14269 ac_ext=cpp
   14270 ac_cpp='$CXXCPP $CPPFLAGS'
   14271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   14274 
   14275 
   14276   if test "$threads" = "yes"; then
   14277     save_LIBS="$LIBS"
   14278     LIBS="$PTHREAD_LIBS $LIBS"
   14279     save_CXXFLAGS="$CXXFLAGS"
   14280     CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
   14281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
   14282 $as_echo_n "checking for std::thread... " >&6; }
   14283 if ${gdb_cv_cxx_std_thread+:} false; then :
   14284   $as_echo_n "(cached) " >&6
   14285 else
   14286   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14287 /* end confdefs.h.  */
   14288 #include <thread>
   14289       void callback() { }
   14290 int
   14291 main ()
   14292 {
   14293 std::thread t(callback);
   14294   ;
   14295   return 0;
   14296 }
   14297 _ACEOF
   14298 if ac_fn_cxx_try_compile "$LINENO"; then :
   14299   gdb_cv_cxx_std_thread=yes
   14300 else
   14301   gdb_cv_cxx_std_thread=no
   14302 fi
   14303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14304 fi
   14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
   14306 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
   14307 
   14308     # This check must be here, while LIBS includes any necessary
   14309     # threading library.
   14310     for ac_func in pthread_sigmask pthread_setname_np
   14311 do :
   14312   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   14313 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
   14314 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   14315   cat >>confdefs.h <<_ACEOF
   14316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   14317 _ACEOF
   14318 
   14319 fi
   14320 done
   14321 
   14322 
   14323     LIBS="$save_LIBS"
   14324     CXXFLAGS="$save_CXXFLAGS"
   14325   fi
   14326   if test "$gdb_cv_cxx_std_thread" = "yes"; then
   14327 
   14328 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
   14329 
   14330   fi
   14331   ac_ext=c
   14332 ac_cpp='$CPP $CPPFLAGS'
   14333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14336 
   14337 
   14338       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
   14339 $as_echo_n "checking for sigsetjmp... " >&6; }
   14340 if ${gdb_cv_func_sigsetjmp+:} false; then :
   14341   $as_echo_n "(cached) " >&6
   14342 else
   14343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14344 /* end confdefs.h.  */
   14345 
   14346   #include <setjmp.h>
   14347 
   14348 int
   14349 main ()
   14350 {
   14351 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
   14352   ;
   14353   return 0;
   14354 }
   14355 _ACEOF
   14356 if ac_fn_c_try_compile "$LINENO"; then :
   14357   gdb_cv_func_sigsetjmp=yes
   14358 else
   14359   gdb_cv_func_sigsetjmp=no
   14360 fi
   14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14362 fi
   14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
   14364 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
   14365   if test "$gdb_cv_func_sigsetjmp" = "yes"; then
   14366 
   14367 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
   14368 
   14369   fi
   14370 
   14371 
   14372 # Check whether --with-intel_pt was given.
   14373 if test "${with_intel_pt+set}" = set; then :
   14374   withval=$with_intel_pt;
   14375 else
   14376   with_intel_pt=auto
   14377 fi
   14378 
   14379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
   14380 $as_echo_n "checking whether to use intel pt... " >&6; }
   14381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
   14382 $as_echo "$with_intel_pt" >&6; }
   14383 
   14384   if test "${with_intel_pt}" = no; then
   14385     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
   14386 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
   14387     HAVE_LIBIPT=no
   14388   else
   14389     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14390 /* end confdefs.h.  */
   14391 
   14392   #include <linux/perf_event.h>
   14393   #ifndef PERF_ATTR_SIZE_VER5
   14394   # error
   14395   #endif
   14396 
   14397 _ACEOF
   14398 if ac_fn_c_try_cpp "$LINENO"; then :
   14399   perf_event=yes
   14400 else
   14401   perf_event=no
   14402 fi
   14403 rm -f conftest.err conftest.i conftest.$ac_ext
   14404     if test "$perf_event" != yes; then
   14405       if test "$with_intel_pt" = yes; then
   14406 	as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
   14407       else
   14408 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
   14409 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
   14410       fi
   14411     fi
   14412 
   14413 
   14414 
   14415 
   14416 
   14417 
   14418 
   14419 
   14420 
   14421     use_additional=yes
   14422 
   14423   acl_save_prefix="$prefix"
   14424   prefix="$acl_final_prefix"
   14425   acl_save_exec_prefix="$exec_prefix"
   14426   exec_prefix="$acl_final_exec_prefix"
   14427 
   14428     eval additional_includedir=\"$includedir\"
   14429     eval additional_libdir=\"$libdir\"
   14430 
   14431   exec_prefix="$acl_save_exec_prefix"
   14432   prefix="$acl_save_prefix"
   14433 
   14434 
   14435 # Check whether --with-libipt-prefix was given.
   14436 if test "${with_libipt_prefix+set}" = set; then :
   14437   withval=$with_libipt_prefix;
   14438     if test "X$withval" = "Xno"; then
   14439       use_additional=no
   14440     else
   14441       if test "X$withval" = "X"; then
   14442 
   14443   acl_save_prefix="$prefix"
   14444   prefix="$acl_final_prefix"
   14445   acl_save_exec_prefix="$exec_prefix"
   14446   exec_prefix="$acl_final_exec_prefix"
   14447 
   14448           eval additional_includedir=\"$includedir\"
   14449           eval additional_libdir=\"$libdir\"
   14450 
   14451   exec_prefix="$acl_save_exec_prefix"
   14452   prefix="$acl_save_prefix"
   14453 
   14454       else
   14455         additional_includedir="$withval/include"
   14456         additional_libdir="$withval/lib"
   14457       fi
   14458     fi
   14459 
   14460 fi
   14461 
   14462 
   14463 # Check whether --with-libipt-type was given.
   14464 if test "${with_libipt_type+set}" = set; then :
   14465   withval=$with_libipt_type;  with_libipt_type=$withval
   14466 else
   14467    with_libipt_type=auto
   14468 fi
   14469 
   14470   lib_type=`eval echo \$with_libipt_type`
   14471 
   14472       LIBIPT=
   14473   LTLIBIPT=
   14474   INCIPT=
   14475   rpathdirs=
   14476   ltrpathdirs=
   14477   names_already_handled=
   14478   names_next_round='ipt '
   14479   while test -n "$names_next_round"; do
   14480     names_this_round="$names_next_round"
   14481     names_next_round=
   14482     for name in $names_this_round; do
   14483       already_handled=
   14484       for n in $names_already_handled; do
   14485         if test "$n" = "$name"; then
   14486           already_handled=yes
   14487           break
   14488         fi
   14489       done
   14490       if test -z "$already_handled"; then
   14491         names_already_handled="$names_already_handled $name"
   14492                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   14493         eval value=\"\$HAVE_LIB$uppername\"
   14494         if test -n "$value"; then
   14495           if test "$value" = yes; then
   14496             eval value=\"\$LIB$uppername\"
   14497             test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
   14498             eval value=\"\$LTLIB$uppername\"
   14499             test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
   14500           else
   14501                                     :
   14502           fi
   14503         else
   14504                               found_dir=
   14505           found_la=
   14506           found_so=
   14507           found_a=
   14508           if test $use_additional = yes; then
   14509             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   14510               found_dir="$additional_libdir"
   14511               found_so="$additional_libdir/lib$name.$shlibext"
   14512               if test -f "$additional_libdir/lib$name.la"; then
   14513                 found_la="$additional_libdir/lib$name.la"
   14514               fi
   14515             elif test x$lib_type != xshared; then
   14516               if test -f "$additional_libdir/lib$name.$libext"; then
   14517                 found_dir="$additional_libdir"
   14518                 found_a="$additional_libdir/lib$name.$libext"
   14519                 if test -f "$additional_libdir/lib$name.la"; then
   14520                   found_la="$additional_libdir/lib$name.la"
   14521                 fi
   14522               fi
   14523             fi
   14524           fi
   14525           if test "X$found_dir" = "X"; then
   14526             for x in $LDFLAGS $LTLIBIPT; do
   14527 
   14528   acl_save_prefix="$prefix"
   14529   prefix="$acl_final_prefix"
   14530   acl_save_exec_prefix="$exec_prefix"
   14531   exec_prefix="$acl_final_exec_prefix"
   14532   eval x=\"$x\"
   14533   exec_prefix="$acl_save_exec_prefix"
   14534   prefix="$acl_save_prefix"
   14535 
   14536               case "$x" in
   14537                 -L*)
   14538                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   14539                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   14540                     found_dir="$dir"
   14541                     found_so="$dir/lib$name.$shlibext"
   14542                     if test -f "$dir/lib$name.la"; then
   14543                       found_la="$dir/lib$name.la"
   14544                     fi
   14545                   elif test x$lib_type != xshared; then
   14546                     if test -f "$dir/lib$name.$libext"; then
   14547                       found_dir="$dir"
   14548                       found_a="$dir/lib$name.$libext"
   14549                       if test -f "$dir/lib$name.la"; then
   14550                         found_la="$dir/lib$name.la"
   14551                       fi
   14552                     fi
   14553                   fi
   14554                   ;;
   14555               esac
   14556               if test "X$found_dir" != "X"; then
   14557                 break
   14558               fi
   14559             done
   14560           fi
   14561           if test "X$found_dir" != "X"; then
   14562                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
   14563             if test "X$found_so" != "X"; then
   14564                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   14565                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   14566               else
   14567                                                                                 haveit=
   14568                 for x in $ltrpathdirs; do
   14569                   if test "X$x" = "X$found_dir"; then
   14570                     haveit=yes
   14571                     break
   14572                   fi
   14573                 done
   14574                 if test -z "$haveit"; then
   14575                   ltrpathdirs="$ltrpathdirs $found_dir"
   14576                 fi
   14577                                 if test "$hardcode_direct" = yes; then
   14578                                                       LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   14579                 else
   14580                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   14581                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   14582                                                             haveit=
   14583                     for x in $rpathdirs; do
   14584                       if test "X$x" = "X$found_dir"; then
   14585                         haveit=yes
   14586                         break
   14587                       fi
   14588                     done
   14589                     if test -z "$haveit"; then
   14590                       rpathdirs="$rpathdirs $found_dir"
   14591                     fi
   14592                   else
   14593                                                                                 haveit=
   14594                     for x in $LDFLAGS $LIBIPT; do
   14595 
   14596   acl_save_prefix="$prefix"
   14597   prefix="$acl_final_prefix"
   14598   acl_save_exec_prefix="$exec_prefix"
   14599   exec_prefix="$acl_final_exec_prefix"
   14600   eval x=\"$x\"
   14601   exec_prefix="$acl_save_exec_prefix"
   14602   prefix="$acl_save_prefix"
   14603 
   14604                       if test "X$x" = "X-L$found_dir"; then
   14605                         haveit=yes
   14606                         break
   14607                       fi
   14608                     done
   14609                     if test -z "$haveit"; then
   14610                       LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
   14611                     fi
   14612                     if test "$hardcode_minus_L" != no; then
   14613                                                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   14614                     else
   14615                                                                                                                                                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   14616                     fi
   14617                   fi
   14618                 fi
   14619               fi
   14620             else
   14621               if test "X$found_a" != "X"; then
   14622                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
   14623               else
   14624                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
   14625               fi
   14626             fi
   14627                         additional_includedir=
   14628             case "$found_dir" in
   14629               */lib | */lib/)
   14630                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   14631                 additional_includedir="$basedir/include"
   14632                 ;;
   14633             esac
   14634             if test "X$additional_includedir" != "X"; then
   14635                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   14636                 haveit=
   14637                 if test "X$additional_includedir" = "X/usr/local/include"; then
   14638                   if test -n "$GCC"; then
   14639                     case $host_os in
   14640                       linux*) haveit=yes;;
   14641                     esac
   14642                   fi
   14643                 fi
   14644                 if test -z "$haveit"; then
   14645                   for x in $CPPFLAGS $INCIPT; do
   14646 
   14647   acl_save_prefix="$prefix"
   14648   prefix="$acl_final_prefix"
   14649   acl_save_exec_prefix="$exec_prefix"
   14650   exec_prefix="$acl_final_exec_prefix"
   14651   eval x=\"$x\"
   14652   exec_prefix="$acl_save_exec_prefix"
   14653   prefix="$acl_save_prefix"
   14654 
   14655                     if test "X$x" = "X-I$additional_includedir"; then
   14656                       haveit=yes
   14657                       break
   14658                     fi
   14659                   done
   14660                   if test -z "$haveit"; then
   14661                     if test -d "$additional_includedir"; then
   14662                                             INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
   14663                     fi
   14664                   fi
   14665                 fi
   14666               fi
   14667             fi
   14668                         if test -n "$found_la"; then
   14669                                                         save_libdir="$libdir"
   14670               case "$found_la" in
   14671                 */* | *\\*) . "$found_la" ;;
   14672                 *) . "./$found_la" ;;
   14673               esac
   14674               libdir="$save_libdir"
   14675                             for dep in $dependency_libs; do
   14676                 case "$dep" in
   14677                   -L*)
   14678                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   14679                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   14680                       haveit=
   14681                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   14682                         if test -n "$GCC"; then
   14683                           case $host_os in
   14684                             linux*) haveit=yes;;
   14685                           esac
   14686                         fi
   14687                       fi
   14688                       if test -z "$haveit"; then
   14689                         haveit=
   14690                         for x in $LDFLAGS $LIBIPT; do
   14691 
   14692   acl_save_prefix="$prefix"
   14693   prefix="$acl_final_prefix"
   14694   acl_save_exec_prefix="$exec_prefix"
   14695   exec_prefix="$acl_final_exec_prefix"
   14696   eval x=\"$x\"
   14697   exec_prefix="$acl_save_exec_prefix"
   14698   prefix="$acl_save_prefix"
   14699 
   14700                           if test "X$x" = "X-L$additional_libdir"; then
   14701                             haveit=yes
   14702                             break
   14703                           fi
   14704                         done
   14705                         if test -z "$haveit"; then
   14706                           if test -d "$additional_libdir"; then
   14707                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
   14708                           fi
   14709                         fi
   14710                         haveit=
   14711                         for x in $LDFLAGS $LTLIBIPT; do
   14712 
   14713   acl_save_prefix="$prefix"
   14714   prefix="$acl_final_prefix"
   14715   acl_save_exec_prefix="$exec_prefix"
   14716   exec_prefix="$acl_final_exec_prefix"
   14717   eval x=\"$x\"
   14718   exec_prefix="$acl_save_exec_prefix"
   14719   prefix="$acl_save_prefix"
   14720 
   14721                           if test "X$x" = "X-L$additional_libdir"; then
   14722                             haveit=yes
   14723                             break
   14724                           fi
   14725                         done
   14726                         if test -z "$haveit"; then
   14727                           if test -d "$additional_libdir"; then
   14728                                                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
   14729                           fi
   14730                         fi
   14731                       fi
   14732                     fi
   14733                     ;;
   14734                   -R*)
   14735                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   14736                     if test "$enable_rpath" != no; then
   14737                                                                   haveit=
   14738                       for x in $rpathdirs; do
   14739                         if test "X$x" = "X$dir"; then
   14740                           haveit=yes
   14741                           break
   14742                         fi
   14743                       done
   14744                       if test -z "$haveit"; then
   14745                         rpathdirs="$rpathdirs $dir"
   14746                       fi
   14747                                                                   haveit=
   14748                       for x in $ltrpathdirs; do
   14749                         if test "X$x" = "X$dir"; then
   14750                           haveit=yes
   14751                           break
   14752                         fi
   14753                       done
   14754                       if test -z "$haveit"; then
   14755                         ltrpathdirs="$ltrpathdirs $dir"
   14756                       fi
   14757                     fi
   14758                     ;;
   14759                   -l*)
   14760                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   14761                     ;;
   14762                   *.la)
   14763                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   14764                     ;;
   14765                   *)
   14766                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
   14767                     LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
   14768                     ;;
   14769                 esac
   14770               done
   14771             fi
   14772           else
   14773                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   14774               LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   14775               LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
   14776             else
   14777               LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
   14778               LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
   14779             fi
   14780           fi
   14781         fi
   14782       fi
   14783     done
   14784   done
   14785   if test "X$rpathdirs" != "X"; then
   14786     if test -n "$hardcode_libdir_separator"; then
   14787                         alldirs=
   14788       for found_dir in $rpathdirs; do
   14789         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   14790       done
   14791             acl_save_libdir="$libdir"
   14792       libdir="$alldirs"
   14793       eval flag=\"$hardcode_libdir_flag_spec\"
   14794       libdir="$acl_save_libdir"
   14795       LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   14796     else
   14797             for found_dir in $rpathdirs; do
   14798         acl_save_libdir="$libdir"
   14799         libdir="$found_dir"
   14800         eval flag=\"$hardcode_libdir_flag_spec\"
   14801         libdir="$acl_save_libdir"
   14802         LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   14803       done
   14804     fi
   14805   fi
   14806   if test "X$ltrpathdirs" != "X"; then
   14807             for found_dir in $ltrpathdirs; do
   14808       LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
   14809     done
   14810   fi
   14811 
   14812 
   14813         ac_save_CPPFLAGS="$CPPFLAGS"
   14814 
   14815   for element in $INCIPT; do
   14816     haveit=
   14817     for x in $CPPFLAGS; do
   14818 
   14819   acl_save_prefix="$prefix"
   14820   prefix="$acl_final_prefix"
   14821   acl_save_exec_prefix="$exec_prefix"
   14822   exec_prefix="$acl_final_exec_prefix"
   14823   eval x=\"$x\"
   14824   exec_prefix="$acl_save_exec_prefix"
   14825   prefix="$acl_save_prefix"
   14826 
   14827       if test "X$x" = "X$element"; then
   14828         haveit=yes
   14829         break
   14830       fi
   14831     done
   14832     if test -z "$haveit"; then
   14833       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   14834     fi
   14835   done
   14836 
   14837 
   14838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
   14839 $as_echo_n "checking for libipt... " >&6; }
   14840 if ${ac_cv_libipt+:} false; then :
   14841   $as_echo_n "(cached) " >&6
   14842 else
   14843 
   14844     ac_save_LIBS="$LIBS"
   14845     LIBS="$LIBS $LIBIPT"
   14846     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14847 /* end confdefs.h.  */
   14848 #include "intel-pt.h"
   14849 int
   14850 main ()
   14851 {
   14852 pt_insn_alloc_decoder (0);
   14853   ;
   14854   return 0;
   14855 }
   14856 _ACEOF
   14857 if ac_fn_c_try_link "$LINENO"; then :
   14858   ac_cv_libipt=yes
   14859 else
   14860   ac_cv_libipt=no
   14861 fi
   14862 rm -f core conftest.err conftest.$ac_objext \
   14863     conftest$ac_exeext conftest.$ac_ext
   14864     LIBS="$ac_save_LIBS"
   14865 
   14866 fi
   14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
   14868 $as_echo "$ac_cv_libipt" >&6; }
   14869   if test "$ac_cv_libipt" = yes; then
   14870     HAVE_LIBIPT=yes
   14871 
   14872 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
   14873 
   14874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
   14875 $as_echo_n "checking how to link with libipt... " >&6; }
   14876     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
   14877 $as_echo "$LIBIPT" >&6; }
   14878   else
   14879     HAVE_LIBIPT=no
   14880             CPPFLAGS="$ac_save_CPPFLAGS"
   14881     LIBIPT=
   14882     LTLIBIPT=
   14883   fi
   14884 
   14885 
   14886 
   14887 
   14888 
   14889 
   14890     if test "$HAVE_LIBIPT" != yes; then
   14891       if test "$with_intel_pt" = yes; then
   14892 	as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
   14893       else
   14894 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
   14895 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
   14896       fi
   14897     else
   14898       save_LIBS=$LIBS
   14899       LIBS="$LIBS $LIBIPT"
   14900       for ac_func in pt_insn_event
   14901 do :
   14902   ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
   14903 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
   14904   cat >>confdefs.h <<_ACEOF
   14905 #define HAVE_PT_INSN_EVENT 1
   14906 _ACEOF
   14907 
   14908 fi
   14909 done
   14910 
   14911       ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
   14912 "
   14913 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
   14914 
   14915 cat >>confdefs.h <<_ACEOF
   14916 #define HAVE_STRUCT_PT_INSN_ENABLED 1
   14917 _ACEOF
   14918 
   14919 
   14920 fi
   14921 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
   14922 "
   14923 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
   14924 
   14925 cat >>confdefs.h <<_ACEOF
   14926 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
   14927 _ACEOF
   14928 
   14929 
   14930 fi
   14931 
   14932       LIBS=$save_LIBS
   14933     fi
   14934   fi
   14935 
   14936 
   14937 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
   14938 
   14939  for ac_header in sys/procfs.h
   14940 do :
   14941   ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
   14942 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
   14943   cat >>confdefs.h <<_ACEOF
   14944 #define HAVE_SYS_PROCFS_H 1
   14945 _ACEOF
   14946 
   14947 fi
   14948 
   14949 done
   14950 
   14951   if test "$ac_cv_header_sys_procfs_h" = yes; then
   14952 
   14953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
   14954 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
   14955  if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
   14956   $as_echo_n "(cached) " >&6
   14957 else
   14958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14959 /* end confdefs.h.  */
   14960 
   14961 #define _SYSCALL32
   14962 #include <sys/procfs.h>
   14963 int
   14964 main ()
   14965 {
   14966 gregset_t avar
   14967   ;
   14968   return 0;
   14969 }
   14970 _ACEOF
   14971 if ac_fn_c_try_compile "$LINENO"; then :
   14972   bfd_cv_have_sys_procfs_type_gregset_t=yes
   14973 else
   14974   bfd_cv_have_sys_procfs_type_gregset_t=no
   14975 
   14976 fi
   14977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14978 fi
   14979 
   14980  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
   14981 
   14982 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
   14983 
   14984  fi
   14985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
   14986 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
   14987 
   14988 
   14989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
   14990 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
   14991  if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
   14992   $as_echo_n "(cached) " >&6
   14993 else
   14994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14995 /* end confdefs.h.  */
   14996 
   14997 #define _SYSCALL32
   14998 #include <sys/procfs.h>
   14999 int
   15000 main ()
   15001 {
   15002 fpregset_t avar
   15003   ;
   15004   return 0;
   15005 }
   15006 _ACEOF
   15007 if ac_fn_c_try_compile "$LINENO"; then :
   15008   bfd_cv_have_sys_procfs_type_fpregset_t=yes
   15009 else
   15010   bfd_cv_have_sys_procfs_type_fpregset_t=no
   15011 
   15012 fi
   15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15014 fi
   15015 
   15016  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
   15017 
   15018 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
   15019 
   15020  fi
   15021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
   15022 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
   15023 
   15024 
   15025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
   15026 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
   15027  if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
   15028   $as_echo_n "(cached) " >&6
   15029 else
   15030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15031 /* end confdefs.h.  */
   15032 
   15033 #define _SYSCALL32
   15034 #include <sys/procfs.h>
   15035 int
   15036 main ()
   15037 {
   15038 prgregset_t avar
   15039   ;
   15040   return 0;
   15041 }
   15042 _ACEOF
   15043 if ac_fn_c_try_compile "$LINENO"; then :
   15044   bfd_cv_have_sys_procfs_type_prgregset_t=yes
   15045 else
   15046   bfd_cv_have_sys_procfs_type_prgregset_t=no
   15047 
   15048 fi
   15049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15050 fi
   15051 
   15052  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
   15053 
   15054 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
   15055 
   15056  fi
   15057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
   15058 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
   15059 
   15060 
   15061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
   15062 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
   15063  if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
   15064   $as_echo_n "(cached) " >&6
   15065 else
   15066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15067 /* end confdefs.h.  */
   15068 
   15069 #define _SYSCALL32
   15070 #include <sys/procfs.h>
   15071 int
   15072 main ()
   15073 {
   15074 prfpregset_t avar
   15075   ;
   15076   return 0;
   15077 }
   15078 _ACEOF
   15079 if ac_fn_c_try_compile "$LINENO"; then :
   15080   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
   15081 else
   15082   bfd_cv_have_sys_procfs_type_prfpregset_t=no
   15083 
   15084 fi
   15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15086 fi
   15087 
   15088  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   15089 
   15090 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
   15091 
   15092  fi
   15093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
   15094 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
   15095 
   15096 
   15097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
   15098 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
   15099  if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
   15100   $as_echo_n "(cached) " >&6
   15101 else
   15102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15103 /* end confdefs.h.  */
   15104 
   15105 #define _SYSCALL32
   15106 #include <sys/procfs.h>
   15107 int
   15108 main ()
   15109 {
   15110 prgregset32_t avar
   15111   ;
   15112   return 0;
   15113 }
   15114 _ACEOF
   15115 if ac_fn_c_try_compile "$LINENO"; then :
   15116   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
   15117 else
   15118   bfd_cv_have_sys_procfs_type_prgregset32_t=no
   15119 
   15120 fi
   15121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15122 fi
   15123 
   15124  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
   15125 
   15126 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
   15127 
   15128  fi
   15129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
   15130 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
   15131 
   15132 
   15133  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
   15134 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
   15135  if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
   15136   $as_echo_n "(cached) " >&6
   15137 else
   15138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15139 /* end confdefs.h.  */
   15140 
   15141 #define _SYSCALL32
   15142 #include <sys/procfs.h>
   15143 int
   15144 main ()
   15145 {
   15146 lwpid_t avar
   15147   ;
   15148   return 0;
   15149 }
   15150 _ACEOF
   15151 if ac_fn_c_try_compile "$LINENO"; then :
   15152   bfd_cv_have_sys_procfs_type_lwpid_t=yes
   15153 else
   15154   bfd_cv_have_sys_procfs_type_lwpid_t=no
   15155 
   15156 fi
   15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15158 fi
   15159 
   15160  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
   15161 
   15162 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
   15163 
   15164  fi
   15165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
   15166 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
   15167 
   15168 
   15169  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
   15170 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
   15171  if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
   15172   $as_echo_n "(cached) " >&6
   15173 else
   15174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15175 /* end confdefs.h.  */
   15176 
   15177 #define _SYSCALL32
   15178 #include <sys/procfs.h>
   15179 int
   15180 main ()
   15181 {
   15182 psaddr_t avar
   15183   ;
   15184   return 0;
   15185 }
   15186 _ACEOF
   15187 if ac_fn_c_try_compile "$LINENO"; then :
   15188   bfd_cv_have_sys_procfs_type_psaddr_t=yes
   15189 else
   15190   bfd_cv_have_sys_procfs_type_psaddr_t=no
   15191 
   15192 fi
   15193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15194 fi
   15195 
   15196  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
   15197 
   15198 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
   15199 
   15200  fi
   15201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
   15202 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
   15203 
   15204 
   15205  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
   15206 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
   15207  if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
   15208   $as_echo_n "(cached) " >&6
   15209 else
   15210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15211 /* end confdefs.h.  */
   15212 
   15213 #define _SYSCALL32
   15214 #include <sys/procfs.h>
   15215 int
   15216 main ()
   15217 {
   15218 elf_fpregset_t avar
   15219   ;
   15220   return 0;
   15221 }
   15222 _ACEOF
   15223 if ac_fn_c_try_compile "$LINENO"; then :
   15224   bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
   15225 else
   15226   bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
   15227 
   15228 fi
   15229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15230 fi
   15231 
   15232  if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
   15233 
   15234 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
   15235 
   15236  fi
   15237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
   15238 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
   15239 
   15240   fi
   15241 
   15242 
   15243 # Check the return and argument types of ptrace.
   15244 
   15245 
   15246 for ac_header in sys/ptrace.h ptrace.h
   15247 do :
   15248   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   15249 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   15250 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   15251   cat >>confdefs.h <<_ACEOF
   15252 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   15253 _ACEOF
   15254 
   15255 fi
   15256 
   15257 done
   15258 
   15259 
   15260 gdb_ptrace_headers='
   15261 #include <sys/types.h>
   15262 #if HAVE_SYS_PTRACE_H
   15263 # include <sys/ptrace.h>
   15264 #endif
   15265 #if HAVE_UNISTD_H
   15266 # include <unistd.h>
   15267 #endif
   15268 '
   15269 
   15270 # Check return type.  Varargs (used on GNU/Linux) conflict with the
   15271 # empty argument list, so check for that explicitly.
   15272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
   15273 $as_echo_n "checking return type of ptrace... " >&6; }
   15274 if ${gdb_cv_func_ptrace_ret+:} false; then :
   15275   $as_echo_n "(cached) " >&6
   15276 else
   15277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15278 /* end confdefs.h.  */
   15279 $gdb_ptrace_headers
   15280 int
   15281 main ()
   15282 {
   15283 extern long ptrace (enum __ptrace_request, ...);
   15284   ;
   15285   return 0;
   15286 }
   15287 _ACEOF
   15288 if ac_fn_c_try_compile "$LINENO"; then :
   15289   gdb_cv_func_ptrace_ret='long'
   15290 else
   15291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15292 /* end confdefs.h.  */
   15293 $gdb_ptrace_headers
   15294 int
   15295 main ()
   15296 {
   15297 extern int ptrace ();
   15298   ;
   15299   return 0;
   15300 }
   15301 _ACEOF
   15302 if ac_fn_c_try_compile "$LINENO"; then :
   15303   gdb_cv_func_ptrace_ret='int'
   15304 else
   15305   gdb_cv_func_ptrace_ret='long'
   15306 fi
   15307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15308 fi
   15309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15310 fi
   15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
   15312 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
   15313 
   15314 cat >>confdefs.h <<_ACEOF
   15315 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
   15316 _ACEOF
   15317 
   15318 # Check argument types.
   15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
   15320 $as_echo_n "checking types of arguments for ptrace... " >&6; }
   15321 if ${gdb_cv_func_ptrace_args+:} false; then :
   15322   $as_echo_n "(cached) " >&6
   15323 else
   15324 
   15325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15326 /* end confdefs.h.  */
   15327 $gdb_ptrace_headers
   15328 int
   15329 main ()
   15330 {
   15331 extern long ptrace (enum __ptrace_request, ...);
   15332   ;
   15333   return 0;
   15334 }
   15335 _ACEOF
   15336 if ac_fn_c_try_compile "$LINENO"; then :
   15337   gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
   15338 else
   15339 
   15340 for gdb_arg1 in 'int' 'long'; do
   15341  for gdb_arg2 in 'pid_t' 'int' 'long'; do
   15342   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
   15343    for gdb_arg4 in 'int' 'long' 'void *'; do
   15344      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15345 /* end confdefs.h.  */
   15346 $gdb_ptrace_headers
   15347 int
   15348 main ()
   15349 {
   15350 
   15351 extern $gdb_cv_func_ptrace_ret
   15352   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
   15353 
   15354   ;
   15355   return 0;
   15356 }
   15357 _ACEOF
   15358 if ac_fn_c_try_compile "$LINENO"; then :
   15359   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
   15360     break 4;
   15361 fi
   15362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15363     for gdb_arg5 in 'int *' 'int' 'long'; do
   15364      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15365 /* end confdefs.h.  */
   15366 $gdb_ptrace_headers
   15367 int
   15368 main ()
   15369 {
   15370 
   15371 extern $gdb_cv_func_ptrace_ret
   15372   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
   15373 
   15374   ;
   15375   return 0;
   15376 }
   15377 _ACEOF
   15378 if ac_fn_c_try_compile "$LINENO"; then :
   15379 
   15380 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
   15381     break 5;
   15382 fi
   15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15384     done
   15385    done
   15386   done
   15387  done
   15388 done
   15389 # Provide a safe default value.
   15390 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   15391 
   15392 fi
   15393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15394 fi
   15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
   15396 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
   15397 ac_save_IFS=$IFS; IFS=','
   15398 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
   15399 IFS=$ac_save_IFS
   15400 shift
   15401 
   15402 cat >>confdefs.h <<_ACEOF
   15403 #define PTRACE_TYPE_ARG1 $1
   15404 _ACEOF
   15405 
   15406 
   15407 cat >>confdefs.h <<_ACEOF
   15408 #define PTRACE_TYPE_ARG3 $3
   15409 _ACEOF
   15410 
   15411 
   15412 cat >>confdefs.h <<_ACEOF
   15413 #define PTRACE_TYPE_ARG4 $4
   15414 _ACEOF
   15415 
   15416 if test -n "$5"; then
   15417 
   15418 cat >>confdefs.h <<_ACEOF
   15419 #define PTRACE_TYPE_ARG5 $5
   15420 _ACEOF
   15421 
   15422 fi
   15423 
   15424 
   15425 if test "$cross_compiling" = no; then
   15426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   15427 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   15428 if ${ac_cv_func_setpgrp_void+:} false; then :
   15429   $as_echo_n "(cached) " >&6
   15430 else
   15431   if test "$cross_compiling" = yes; then :
   15432   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
   15433 else
   15434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15435 /* end confdefs.h.  */
   15436 $ac_includes_default
   15437 int
   15438 main ()
   15439 {
   15440 /* If this system has a BSD-style setpgrp which takes arguments,
   15441   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
   15442   exit successfully. */
   15443   return setpgrp (1,1) != -1;
   15444   ;
   15445   return 0;
   15446 }
   15447 _ACEOF
   15448 if ac_fn_c_try_run "$LINENO"; then :
   15449   ac_cv_func_setpgrp_void=no
   15450 else
   15451   ac_cv_func_setpgrp_void=yes
   15452 fi
   15453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15454   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15455 fi
   15456 
   15457 fi
   15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   15459 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   15460 if test $ac_cv_func_setpgrp_void = yes; then
   15461 
   15462 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   15463 
   15464 fi
   15465 
   15466 else
   15467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   15468 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   15469 if ${ac_cv_func_setpgrp_void+:} false; then :
   15470   $as_echo_n "(cached) " >&6
   15471 else
   15472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15473 /* end confdefs.h.  */
   15474 
   15475 #include <unistd.h>
   15476 
   15477 int
   15478 main ()
   15479 {
   15480 
   15481   if (setpgrp(1,1) == -1)
   15482     exit (0);
   15483   else
   15484     exit (1);
   15485 
   15486   ;
   15487   return 0;
   15488 }
   15489 _ACEOF
   15490 if ac_fn_c_try_compile "$LINENO"; then :
   15491   ac_cv_func_setpgrp_void=no
   15492 else
   15493   ac_cv_func_setpgrp_void=yes
   15494 fi
   15495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15496 fi
   15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   15498 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   15499 if test "$ac_cv_func_setpgrp_void" = yes; then
   15500   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   15501 
   15502 fi
   15503 fi
   15504 
   15505 # Assume we'll default to using the included libiberty regex.
   15506 gdb_use_included_regex=yes
   15507 
   15508 # However, if the system regex is GNU regex, then default to *not*
   15509 # using the included regex.
   15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
   15511 $as_echo_n "checking for GNU regex... " >&6; }
   15512 if ${gdb_cv_have_gnu_regex+:} false; then :
   15513   $as_echo_n "(cached) " >&6
   15514 else
   15515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15516 /* end confdefs.h.  */
   15517 #include <gnu-versions.h>
   15518 int
   15519 main ()
   15520 {
   15521 #define REGEX_INTERFACE_VERSION 1
   15522 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
   15523 # error "Version mismatch"
   15524 #endif
   15525   ;
   15526   return 0;
   15527 }
   15528 _ACEOF
   15529 if ac_fn_c_try_compile "$LINENO"; then :
   15530   gdb_cv_have_gnu_regex=yes
   15531 else
   15532   gdb_cv_have_gnu_regex=no
   15533 fi
   15534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15535 fi
   15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
   15537 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
   15538 if test "$gdb_cv_have_gnu_regex" = yes; then
   15539   gdb_use_included_regex=no
   15540 fi
   15541 
   15542 
   15543 # Check whether --with-included-regex was given.
   15544 if test "${with_included_regex+set}" = set; then :
   15545   withval=$with_included_regex; gdb_with_regex=$withval
   15546 else
   15547   gdb_with_regex=$gdb_use_included_regex
   15548 fi
   15549 
   15550 if test "$gdb_with_regex" = yes; then
   15551 
   15552 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
   15553 
   15554 fi
   15555 
   15556 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
   15557 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
   15558 #include <sys/proc.h>
   15559 
   15560 "
   15561 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
   15562 
   15563 cat >>confdefs.h <<_ACEOF
   15564 #define HAVE_STRUCT_THREAD_TD_PCB 1
   15565 _ACEOF
   15566 
   15567 
   15568 fi
   15569 
   15570 
   15571 # See if <sys/lwp.h> defines `struct lwp`.
   15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
   15573 $as_echo_n "checking for struct lwp... " >&6; }
   15574 if ${gdb_cv_struct_lwp+:} false; then :
   15575   $as_echo_n "(cached) " >&6
   15576 else
   15577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15578 /* end confdefs.h.  */
   15579 #include <sys/param.h>
   15580 #define _KMEMUSER
   15581 #include <sys/lwp.h>
   15582 int
   15583 main ()
   15584 {
   15585 struct lwp l;
   15586   ;
   15587   return 0;
   15588 }
   15589 _ACEOF
   15590 if ac_fn_c_try_compile "$LINENO"; then :
   15591   gdb_cv_struct_lwp=yes
   15592 else
   15593   gdb_cv_struct_lwp=no
   15594 fi
   15595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15596 fi
   15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
   15598 $as_echo "$gdb_cv_struct_lwp" >&6; }
   15599 if test "$gdb_cv_struct_lwp" = yes; then
   15600 
   15601 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
   15602 
   15603 fi
   15604 
   15605 # See if <machine/reg.h> degines `struct reg'.
   15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
   15607 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
   15608 if ${gdb_cv_struct_reg+:} false; then :
   15609   $as_echo_n "(cached) " >&6
   15610 else
   15611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15612 /* end confdefs.h.  */
   15613 #include <sys/types.h>
   15614 #include <machine/reg.h>
   15615 int
   15616 main ()
   15617 {
   15618 struct reg r;
   15619   ;
   15620   return 0;
   15621 }
   15622 _ACEOF
   15623 if ac_fn_c_try_compile "$LINENO"; then :
   15624   gdb_cv_struct_reg=yes
   15625 else
   15626   gdb_cv_struct_reg=no
   15627 fi
   15628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15629 fi
   15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
   15631 $as_echo "$gdb_cv_struct_reg" >&6; }
   15632 if test "$gdb_cv_struct_reg" = yes; then
   15633 
   15634 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
   15635 
   15636 fi
   15637 
   15638 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
   15639 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
   15640 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
   15641 #include <machine/reg.h>
   15642 "
   15643 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
   15644 
   15645 cat >>confdefs.h <<_ACEOF
   15646 #define HAVE_STRUCT_REG_R_FS 1
   15647 _ACEOF
   15648 
   15649 
   15650 fi
   15651 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
   15652 #include <machine/reg.h>
   15653 "
   15654 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
   15655 
   15656 cat >>confdefs.h <<_ACEOF
   15657 #define HAVE_STRUCT_REG_R_GS 1
   15658 _ACEOF
   15659 
   15660 
   15661 fi
   15662 
   15663 
   15664 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
   15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
   15666 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
   15667 if ${gdb_cv_have_ptrace_getregs+:} false; then :
   15668   $as_echo_n "(cached) " >&6
   15669 else
   15670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15671 /* end confdefs.h.  */
   15672 #include <sys/ptrace.h>
   15673 int
   15674 main ()
   15675 {
   15676 PTRACE_GETREGS;
   15677   ;
   15678   return 0;
   15679 }
   15680 _ACEOF
   15681 if ac_fn_c_try_compile "$LINENO"; then :
   15682   gdb_cv_have_ptrace_getregs=yes
   15683 else
   15684   gdb_cv_have_ptrace_getregs=no
   15685 fi
   15686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15687 fi
   15688 
   15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
   15690 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
   15691 if test "$gdb_cv_have_ptrace_getregs" = yes; then
   15692 
   15693 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
   15694 
   15695 fi
   15696 
   15697 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
   15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
   15699 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
   15700 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
   15701   $as_echo_n "(cached) " >&6
   15702 else
   15703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15704 /* end confdefs.h.  */
   15705 #include <sys/ptrace.h>
   15706 int
   15707 main ()
   15708 {
   15709 PTRACE_GETFPXREGS;
   15710   ;
   15711   return 0;
   15712 }
   15713 _ACEOF
   15714 if ac_fn_c_try_compile "$LINENO"; then :
   15715   gdb_cv_have_ptrace_getfpxregs=yes
   15716 else
   15717   gdb_cv_have_ptrace_getfpxregs=no
   15718 fi
   15719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15720 fi
   15721 
   15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
   15723 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
   15724 if test "$gdb_cv_have_ptrace_getfpxregs" = yes; then
   15725 
   15726 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
   15727 
   15728 fi
   15729 
   15730 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
   15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
   15732 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
   15733 if ${gdb_cv_have_pt_getdbregs+:} false; then :
   15734   $as_echo_n "(cached) " >&6
   15735 else
   15736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15737 /* end confdefs.h.  */
   15738 #include <sys/types.h>
   15739 #include <sys/ptrace.h>
   15740 int
   15741 main ()
   15742 {
   15743 PT_GETDBREGS;
   15744   ;
   15745   return 0;
   15746 }
   15747 _ACEOF
   15748 if ac_fn_c_try_compile "$LINENO"; then :
   15749   gdb_cv_have_pt_getdbregs=yes
   15750 else
   15751   gdb_cv_have_pt_getdbregs=no
   15752 fi
   15753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15754 fi
   15755 
   15756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
   15757 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
   15758 if test "$gdb_cv_have_pt_getdbregs" = yes; then
   15759 
   15760 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
   15761 
   15762 fi
   15763 
   15764 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
   15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
   15766 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
   15767 if ${gdb_cv_have_pt_getxmmregs+:} false; then :
   15768   $as_echo_n "(cached) " >&6
   15769 else
   15770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15771 /* end confdefs.h.  */
   15772 #include <sys/types.h>
   15773 #include <sys/ptrace.h>
   15774 int
   15775 main ()
   15776 {
   15777 PT_GETXMMREGS;
   15778   ;
   15779   return 0;
   15780 }
   15781 _ACEOF
   15782 if ac_fn_c_try_compile "$LINENO"; then :
   15783   gdb_cv_have_pt_getxmmregs=yes
   15784 else
   15785   gdb_cv_have_pt_getxmmregs=no
   15786 fi
   15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15788 fi
   15789 
   15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
   15791 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
   15792 if test "$gdb_cv_have_pt_getxmmregs" = yes; then
   15793 
   15794 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
   15795 
   15796 fi
   15797 
   15798 # See if <sys/ptrace.h> supports LWP names on FreeBSD
   15799 # Older FreeBSD versions don't have the pl_tdname member of
   15800 # `struct ptrace_lwpinfo'.
   15801 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
   15802 "
   15803 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
   15804 
   15805 cat >>confdefs.h <<_ACEOF
   15806 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
   15807 _ACEOF
   15808 
   15809 
   15810 fi
   15811 
   15812 
   15813 # See if <sys/ptrace.h> supports syscall fields on FreeBSD.  The
   15814 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
   15815 # FreeBSD 10.3.
   15816 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>
   15817 "
   15818 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
   15819 
   15820 cat >>confdefs.h <<_ACEOF
   15821 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
   15822 _ACEOF
   15823 
   15824 
   15825 fi
   15826 
   15827 
   15828 # Check if the compiler supports the `long long' type.
   15829 
   15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
   15831 $as_echo_n "checking for long long support in compiler... " >&6; }
   15832 if ${gdb_cv_c_long_long+:} false; then :
   15833   $as_echo_n "(cached) " >&6
   15834 else
   15835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15836 /* end confdefs.h.  */
   15837 extern long long foo;
   15838 int
   15839 main ()
   15840 {
   15841 switch (foo & 2) { case 0: return 1; }
   15842   ;
   15843   return 0;
   15844 }
   15845 _ACEOF
   15846 if ac_fn_c_try_compile "$LINENO"; then :
   15847   gdb_cv_c_long_long=yes
   15848 else
   15849   gdb_cv_c_long_long=no
   15850 fi
   15851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15852 fi
   15853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
   15854 $as_echo "$gdb_cv_c_long_long" >&6; }
   15855 if test "$gdb_cv_c_long_long" != yes; then
   15856   # libdecnumber requires long long.
   15857   as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
   15858 fi
   15859 
   15860 # Check if the compiler and runtime support printing long longs.
   15861 
   15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
   15863 $as_echo_n "checking for long long support in printf... " >&6; }
   15864 if ${gdb_cv_printf_has_long_long+:} false; then :
   15865   $as_echo_n "(cached) " >&6
   15866 else
   15867   if test "$cross_compiling" = yes; then :
   15868   gdb_cv_printf_has_long_long=no
   15869 else
   15870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15871 /* end confdefs.h.  */
   15872 $ac_includes_default
   15873 int
   15874 main ()
   15875 {
   15876 char buf[32];
   15877   long long l = 0;
   15878   l = (l << 16) + 0x0123;
   15879   l = (l << 16) + 0x4567;
   15880   l = (l << 16) + 0x89ab;
   15881   l = (l << 16) + 0xcdef;
   15882   sprintf (buf, "0x%016llx", l);
   15883   return (strcmp ("0x0123456789abcdef", buf));
   15884   ;
   15885   return 0;
   15886 }
   15887 _ACEOF
   15888 if ac_fn_c_try_run "$LINENO"; then :
   15889   gdb_cv_printf_has_long_long=yes
   15890 else
   15891   gdb_cv_printf_has_long_long=no
   15892 fi
   15893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15894   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15895 fi
   15896 
   15897 fi
   15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
   15899 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
   15900 if test "$gdb_cv_printf_has_long_long" = yes; then
   15901 
   15902 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
   15903 
   15904 fi
   15905 
   15906 # Check if the compiler and runtime support printing decfloats.
   15907 
   15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
   15909 $as_echo_n "checking for decfloat support in printf... " >&6; }
   15910 if ${gdb_cv_printf_has_decfloat+:} false; then :
   15911   $as_echo_n "(cached) " >&6
   15912 else
   15913   if test "$cross_compiling" = yes; then :
   15914   gdb_cv_printf_has_decfloat=no
   15915 else
   15916   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15917 /* end confdefs.h.  */
   15918 $ac_includes_default
   15919 int
   15920 main ()
   15921 {
   15922 char buf[64];
   15923   _Decimal32 d32 = 1.2345df;
   15924   _Decimal64 d64 = 1.2345dd;
   15925   _Decimal128 d128 = 1.2345dl;
   15926   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
   15927   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
   15928   ;
   15929   return 0;
   15930 }
   15931 _ACEOF
   15932 if ac_fn_c_try_run "$LINENO"; then :
   15933   gdb_cv_printf_has_decfloat=yes
   15934 else
   15935   gdb_cv_printf_has_decfloat=no
   15936 fi
   15937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   15938   conftest.$ac_objext conftest.beam conftest.$ac_ext
   15939 fi
   15940 
   15941 fi
   15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
   15943 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
   15944 if test "$gdb_cv_printf_has_decfloat" = yes; then
   15945 
   15946 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
   15947 
   15948 fi
   15949 
   15950 # Check if the compiler supports the `long double' type.  We can't use
   15951 # AC_C_LONG_DOUBLE because that one does additional checks on the
   15952 # constants defined in <float.h> that fail on some systems,
   15953 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
   15954 
   15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
   15956 $as_echo_n "checking for long double support in compiler... " >&6; }
   15957 if ${gdb_cv_c_long_double+:} false; then :
   15958   $as_echo_n "(cached) " >&6
   15959 else
   15960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15961 /* end confdefs.h.  */
   15962 long double foo;
   15963 _ACEOF
   15964 if ac_fn_c_try_compile "$LINENO"; then :
   15965   gdb_cv_c_long_double=yes
   15966 else
   15967   gdb_cv_c_long_double=no
   15968 fi
   15969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   15970 fi
   15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
   15972 $as_echo "$gdb_cv_c_long_double" >&6; }
   15973 if test "$gdb_cv_c_long_double" = yes; then
   15974 
   15975 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
   15976 
   15977 fi
   15978 
   15979 # Check if the compiler and runtime support printing long doubles.
   15980 
   15981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
   15982 $as_echo_n "checking for long double support in printf... " >&6; }
   15983 if ${gdb_cv_printf_has_long_double+:} false; then :
   15984   $as_echo_n "(cached) " >&6
   15985 else
   15986   if test "$cross_compiling" = yes; then :
   15987   gdb_cv_printf_has_long_double=no
   15988 else
   15989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   15990 /* end confdefs.h.  */
   15991 $ac_includes_default
   15992 int
   15993 main ()
   15994 {
   15995 char buf[16];
   15996   long double f = 3.141592653;
   15997   sprintf (buf, "%Lg", f);
   15998   return (strncmp ("3.14159", buf, 7));
   15999   ;
   16000   return 0;
   16001 }
   16002 _ACEOF
   16003 if ac_fn_c_try_run "$LINENO"; then :
   16004   gdb_cv_printf_has_long_double=yes
   16005 else
   16006   gdb_cv_printf_has_long_double=no
   16007 fi
   16008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16009   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16010 fi
   16011 
   16012 fi
   16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
   16014 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
   16015 if test "$gdb_cv_printf_has_long_double" = yes; then
   16016 
   16017 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
   16018 
   16019 fi
   16020 
   16021 # Check if the compiler and runtime support scanning long doubles.
   16022 
   16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
   16024 $as_echo_n "checking for long double support in scanf... " >&6; }
   16025 if ${gdb_cv_scanf_has_long_double+:} false; then :
   16026   $as_echo_n "(cached) " >&6
   16027 else
   16028   if test "$cross_compiling" = yes; then :
   16029   gdb_cv_scanf_has_long_double=no
   16030 else
   16031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16032 /* end confdefs.h.  */
   16033 #include <stdio.h>
   16034 int
   16035 main ()
   16036 {
   16037 char *buf = "3.141592653";
   16038   long double f = 0;
   16039   sscanf (buf, "%Lg", &f);
   16040   return !(f > 3.14159 && f < 3.14160);
   16041   ;
   16042   return 0;
   16043 }
   16044 _ACEOF
   16045 if ac_fn_c_try_run "$LINENO"; then :
   16046   gdb_cv_scanf_has_long_double=yes
   16047 else
   16048   gdb_cv_scanf_has_long_double=no
   16049 fi
   16050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16051   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16052 fi
   16053 
   16054 fi
   16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
   16056 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
   16057 if test "$gdb_cv_scanf_has_long_double" = yes; then
   16058 
   16059 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
   16060 
   16061 fi
   16062 
   16063 case ${host_os} in
   16064 aix*)
   16065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
   16066 $as_echo_n "checking for -bbigtoc option... " >&6; }
   16067 if ${gdb_cv_bigtoc+:} false; then :
   16068   $as_echo_n "(cached) " >&6
   16069 else
   16070 
   16071     SAVE_LDFLAGS=$LDFLAGS
   16072 
   16073     case $GCC in
   16074     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
   16075     *) gdb_cv_bigtoc=-bbigtoc ;;
   16076     esac
   16077 
   16078     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
   16079     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16080 /* end confdefs.h.  */
   16081 
   16082 int
   16083 main ()
   16084 {
   16085 int i;
   16086   ;
   16087   return 0;
   16088 }
   16089 _ACEOF
   16090 if ac_fn_c_try_link "$LINENO"; then :
   16091 
   16092 else
   16093   gdb_cv_bigtoc=
   16094 fi
   16095 rm -f core conftest.err conftest.$ac_objext \
   16096     conftest$ac_exeext conftest.$ac_ext
   16097     LDFLAGS="${SAVE_LDFLAGS}"
   16098 
   16099 fi
   16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
   16101 $as_echo "$gdb_cv_bigtoc" >&6; }
   16102   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
   16103   ;;
   16104 esac
   16105 
   16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
   16107 $as_echo_n "checking for the dynamic export flag... " >&6; }
   16108 dynamic_list=false
   16109 if test "${gdb_native}" = yes; then
   16110    # The dynamically loaded libthread_db needs access to symbols in the gdb
   16111    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
   16112    # may not be supported there.
   16113    old_LDFLAGS="$LDFLAGS"
   16114    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
   16115    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
   16116    LDFLAGS="$LDFLAGS $RDYNAMIC"
   16117    if test "${have_libpython}" = no; then
   16118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16119 /* end confdefs.h.  */
   16120 
   16121 int
   16122 main ()
   16123 {
   16124 
   16125   ;
   16126   return 0;
   16127 }
   16128 _ACEOF
   16129 if ac_fn_c_try_link "$LINENO"; then :
   16130   dynamic_list=true
   16131 fi
   16132 rm -f core conftest.err conftest.$ac_objext \
   16133     conftest$ac_exeext conftest.$ac_ext
   16134    else
   16135      # Workaround http://bugs.python.org/issue4434 where static
   16136      # libpythonX.Y.a would get its symbols required for
   16137      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
   16138      # Problem does not happen for the recommended libpythonX.Y.so linkage.
   16139 
   16140      # Note the workaround for Python
   16141      # http://bugs.python.org/issue10112 earlier has removed
   16142      # -export-dynamic from PYTHON_LIBS.  That's exactly what we want
   16143      # here too, as otherwise it'd make this -Wl,--dynamic-list test
   16144      # always pass.
   16145      old_CFLAGS="$CFLAGS"
   16146      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
   16147      old_LIBS="$LIBS"
   16148      LIBS="$LIBS $PYTHON_LIBS"
   16149      old_CPPFLAGS="$CPPFLAGS"
   16150      CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
   16151      if test "$cross_compiling" = yes; then :
   16152   true
   16153 else
   16154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16155 /* end confdefs.h.  */
   16156 #include "Python.h"
   16157 int
   16158 main ()
   16159 {
   16160 int err;
   16161           Py_Initialize ();
   16162           err = PyRun_SimpleString ("import itertools\n");
   16163           Py_Finalize ();
   16164           return err == 0 ? 0 : 1;
   16165   ;
   16166   return 0;
   16167 }
   16168 _ACEOF
   16169 if ac_fn_c_try_run "$LINENO"; then :
   16170   dynamic_list=true
   16171 fi
   16172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   16173   conftest.$ac_objext conftest.beam conftest.$ac_ext
   16174 fi
   16175 
   16176      LIBS="$old_LIBS"
   16177      CFLAGS="$old_CFLAGS"
   16178      CPPFLAGS="$old_CPPFLAGS"
   16179    fi
   16180    LDFLAGS="$old_LDFLAGS"
   16181 fi
   16182 if $dynamic_list; then
   16183   found="-Wl,--dynamic-list"
   16184   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
   16185 else
   16186   found="-rdynamic"
   16187   RDYNAMIC="-rdynamic"
   16188 fi
   16189 
   16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
   16191 $as_echo "$found" >&6; }
   16192 
   16193 
   16194 if test "${build}" = "${host}" -a "${host}" = "${target}" ; then
   16195    case ${host_os} in
   16196    aix*)
   16197       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
   16198 $as_echo_n "checking for AiX thread debugging library... " >&6; }
   16199       if ${gdb_cv_have_aix_thread_debug+:} false; then :
   16200   $as_echo_n "(cached) " >&6
   16201 else
   16202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16203 /* end confdefs.h.  */
   16204 #include <sys/pthdebug.h>
   16205 int
   16206 main ()
   16207 {
   16208 #ifndef PTHDB_VERSION_3
   16209                                     #error
   16210                                     #endif
   16211   ;
   16212   return 0;
   16213 }
   16214 _ACEOF
   16215 if ac_fn_c_try_compile "$LINENO"; then :
   16216   gdb_cv_have_aix_thread_debug=yes
   16217 else
   16218   gdb_cv_have_aix_thread_debug=no
   16219 fi
   16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16221 fi
   16222 
   16223       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
   16224 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
   16225       if test "$gdb_cv_have_aix_thread_debug" = yes; then
   16226          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
   16227          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
   16228          LIBS="$LIBS -lpthdebug"
   16229 
   16230          # Older versions of AIX do not provide the declaration for
   16231          # the getthrds function (it appears that it was introduced
   16232          # with AIX 6.x).
   16233          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
   16234 "
   16235 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
   16236   ac_have_decl=1
   16237 else
   16238   ac_have_decl=0
   16239 fi
   16240 
   16241 cat >>confdefs.h <<_ACEOF
   16242 #define HAVE_DECL_GETTHRDS $ac_have_decl
   16243 _ACEOF
   16244 
   16245       fi
   16246       ;;
   16247    esac
   16248 
   16249 fi
   16250 
   16251 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
   16252    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
   16253 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
   16254 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
   16255   $as_echo_n "(cached) " >&6
   16256 else
   16257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16258 /* end confdefs.h.  */
   16259 #include <thread_db.h>
   16260 int
   16261 main ()
   16262 {
   16263 int i = TD_NOTALLOC;
   16264   ;
   16265   return 0;
   16266 }
   16267 _ACEOF
   16268 if ac_fn_c_try_compile "$LINENO"; then :
   16269   gdb_cv_thread_db_h_has_td_notalloc=yes
   16270 else
   16271   gdb_cv_thread_db_h_has_td_notalloc=no
   16272 
   16273 fi
   16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16275 
   16276 fi
   16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
   16278 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
   16279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
   16280 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
   16281 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
   16282   $as_echo_n "(cached) " >&6
   16283 else
   16284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16285 /* end confdefs.h.  */
   16286 #include <thread_db.h>
   16287 int
   16288 main ()
   16289 {
   16290 int i = TD_VERSION;
   16291   ;
   16292   return 0;
   16293 }
   16294 _ACEOF
   16295 if ac_fn_c_try_compile "$LINENO"; then :
   16296   gdb_cv_thread_db_h_has_td_version=yes
   16297 else
   16298   gdb_cv_thread_db_h_has_td_version=no
   16299 
   16300 fi
   16301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16302 
   16303 fi
   16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
   16305 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
   16306    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
   16307 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
   16308 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
   16309   $as_echo_n "(cached) " >&6
   16310 else
   16311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16312 /* end confdefs.h.  */
   16313 #include <thread_db.h>
   16314 int
   16315 main ()
   16316 {
   16317 int i = TD_NOTLS;
   16318   ;
   16319   return 0;
   16320 }
   16321 _ACEOF
   16322 if ac_fn_c_try_compile "$LINENO"; then :
   16323   gdb_cv_thread_db_h_has_td_notls=yes
   16324 else
   16325   gdb_cv_thread_db_h_has_td_notls=no
   16326 
   16327 fi
   16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16329 
   16330 fi
   16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
   16332 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
   16333 fi
   16334 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
   16335 
   16336 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
   16337 
   16338 fi
   16339 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
   16340 
   16341 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
   16342 
   16343 fi
   16344 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
   16345 
   16346 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
   16347 
   16348 fi
   16349 
   16350 case $host_os in
   16351   go32* | *djgpp*)
   16352     gdbinit=gdb.ini
   16353     ;;
   16354   *)
   16355     gdbinit=.gdbinit
   16356     ;;
   16357 esac
   16358 
   16359 cat >>confdefs.h <<_ACEOF
   16360 #define GDBINIT "$gdbinit"
   16361 _ACEOF
   16362 
   16363 
   16364 
   16365 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
   16366 # except that the argument to --with-sysroot is optional.
   16367 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
   16368 if test "x$with_sysroot" = xyes; then
   16369   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
   16370 fi
   16371 
   16372 # Check whether --with-sysroot was given.
   16373 if test "${with_sysroot+set}" = set; then :
   16374   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
   16375 else
   16376   TARGET_SYSTEM_ROOT=
   16377 fi
   16378 
   16379 
   16380   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   16381   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   16382   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
   16383   ac_define_dir=`eval echo $ac_define_dir`
   16384 
   16385 cat >>confdefs.h <<_ACEOF
   16386 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
   16387 _ACEOF
   16388 
   16389 
   16390 
   16391 
   16392   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   16393      if test "x$prefix" = xNONE; then
   16394      	test_prefix=/usr/local
   16395      else
   16396 	test_prefix=$prefix
   16397      fi
   16398   else
   16399      test_prefix=$exec_prefix
   16400   fi
   16401   value=0
   16402   case ${ac_define_dir} in
   16403      "${test_prefix}"|"${test_prefix}/"*|\
   16404 	'${exec_prefix}'|'${exec_prefix}/'*)
   16405      value=1
   16406      ;;
   16407   esac
   16408 
   16409 cat >>confdefs.h <<_ACEOF
   16410 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
   16411 _ACEOF
   16412 
   16413 
   16414 
   16415 
   16416 
   16417 # Check whether --with-system-gdbinit was given.
   16418 if test "${with_system_gdbinit+set}" = set; then :
   16419   withval=$with_system_gdbinit;
   16420     SYSTEM_GDBINIT=$withval
   16421 else
   16422   SYSTEM_GDBINIT=
   16423 fi
   16424 
   16425 
   16426   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   16427   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   16428   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
   16429   ac_define_dir=`eval echo $ac_define_dir`
   16430 
   16431 cat >>confdefs.h <<_ACEOF
   16432 #define SYSTEM_GDBINIT "$ac_define_dir"
   16433 _ACEOF
   16434 
   16435 
   16436 
   16437 
   16438   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   16439      if test "x$prefix" = xNONE; then
   16440      	test_prefix=/usr/local
   16441      else
   16442 	test_prefix=$prefix
   16443      fi
   16444   else
   16445      test_prefix=$exec_prefix
   16446   fi
   16447   value=0
   16448   case ${ac_define_dir} in
   16449      "${test_prefix}"|"${test_prefix}/"*|\
   16450 	'${exec_prefix}'|'${exec_prefix}/'*)
   16451      value=1
   16452      ;;
   16453   esac
   16454 
   16455 cat >>confdefs.h <<_ACEOF
   16456 #define SYSTEM_GDBINIT_RELOCATABLE $value
   16457 _ACEOF
   16458 
   16459 
   16460 
   16461 
   16462 
   16463 # Check whether --with-system-gdbinit-dir was given.
   16464 if test "${with_system_gdbinit_dir+set}" = set; then :
   16465   withval=$with_system_gdbinit_dir;
   16466     SYSTEM_GDBINIT_DIR=$withval
   16467 else
   16468   SYSTEM_GDBINIT_DIR=
   16469 fi
   16470 
   16471 
   16472   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   16473   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   16474   ac_define_dir=`eval echo $SYSTEM_GDBINIT_DIR`
   16475   ac_define_dir=`eval echo $ac_define_dir`
   16476 
   16477 cat >>confdefs.h <<_ACEOF
   16478 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
   16479 _ACEOF
   16480 
   16481 
   16482 
   16483 
   16484   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   16485      if test "x$prefix" = xNONE; then
   16486      	test_prefix=/usr/local
   16487      else
   16488 	test_prefix=$prefix
   16489      fi
   16490   else
   16491      test_prefix=$exec_prefix
   16492   fi
   16493   value=0
   16494   case ${ac_define_dir} in
   16495      "${test_prefix}"|"${test_prefix}/"*|\
   16496 	'${exec_prefix}'|'${exec_prefix}/'*)
   16497      value=1
   16498      ;;
   16499   esac
   16500 
   16501 cat >>confdefs.h <<_ACEOF
   16502 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
   16503 _ACEOF
   16504 
   16505 
   16506 
   16507 
   16508 
   16509 # Check whether --enable-werror was given.
   16510 if test "${enable_werror+set}" = set; then :
   16511   enableval=$enable_werror; case "${enableval}" in
   16512      yes | y) ERROR_ON_WARNING="yes" ;;
   16513      no | n)  ERROR_ON_WARNING="no" ;;
   16514      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
   16515    esac
   16516 fi
   16517 
   16518 
   16519 # Enable -Werror by default when using gcc.  Turn it off for releases.
   16520 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
   16521     ERROR_ON_WARNING=yes
   16522 fi
   16523 
   16524 WERROR_CFLAGS=""
   16525 if test "${ERROR_ON_WARNING}" = yes ; then
   16526     WERROR_CFLAGS="-Werror"
   16527 fi
   16528 
   16529 # The options we'll try to enable.
   16530 build_warnings="-Wall -Wpointer-arith \
   16531 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
   16532 -Wno-switch -Wno-char-subscripts \
   16533 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
   16534 -Wno-sign-compare -Wno-error=maybe-uninitialized \
   16535 -Wno-mismatched-tags \
   16536 -Wno-error=deprecated-register \
   16537 -Wsuggest-override \
   16538 -Wimplicit-fallthrough=3 \
   16539 -Wduplicated-cond \
   16540 -Wshadow=local \
   16541 -Wdeprecated-copy \
   16542 -Wdeprecated-copy-dtor \
   16543 -Wredundant-move \
   16544 -Wmissing-declarations \
   16545 -Wmissing-prototypes \
   16546 -Wstrict-null-sentinel \
   16547 "
   16548 
   16549 case "${host}" in
   16550   *-*-mingw32*)
   16551     # Enable -Wno-format by default when using gcc on mingw since many
   16552     # GCC versions complain about %I64.
   16553     build_warnings="$build_warnings -Wno-format" ;;
   16554   *-*-solaris*)
   16555     # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
   16556     # doesn't understand.
   16557     build_warnings="$build_warnings -Wno-unknown-pragmas"
   16558     # Solaris 11 <unistd.h> marks vfork deprecated.
   16559     build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
   16560   *)
   16561     # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
   16562     # but there's a special case for this below.
   16563     build_warnings="$build_warnings -Wformat-nonliteral" ;;
   16564 esac
   16565 
   16566 # Check whether --enable-build-warnings was given.
   16567 if test "${enable_build_warnings+set}" = set; then :
   16568   enableval=$enable_build_warnings; case "${enableval}" in
   16569   yes)	;;
   16570   no)	build_warnings="-w";;
   16571   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   16572         build_warnings="${build_warnings} ${t}";;
   16573   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   16574         build_warnings="${t} ${build_warnings}";;
   16575   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   16576 esac
   16577 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   16578   echo "Setting compiler warning flags = $build_warnings" 6>&1
   16579 fi
   16580 fi
   16581 # Check whether --enable-gdb-build-warnings was given.
   16582 if test "${enable_gdb_build_warnings+set}" = set; then :
   16583   enableval=$enable_gdb_build_warnings; case "${enableval}" in
   16584   yes)	;;
   16585   no)	build_warnings="-w";;
   16586   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   16587         build_warnings="${build_warnings} ${t}";;
   16588   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   16589         build_warnings="${t} ${build_warnings}";;
   16590   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   16591 esac
   16592 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   16593   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
   16594 fi
   16595 fi
   16596 
   16597 # The set of warnings supported by a C++ compiler is not the same as
   16598 # of the C compiler.
   16599 ac_ext=cpp
   16600 ac_cpp='$CXXCPP $CPPFLAGS'
   16601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   16604 
   16605 
   16606 WARN_CFLAGS=""
   16607 if test "x${build_warnings}" != x -a "x$GCC" = xyes
   16608 then
   16609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
   16610 $as_echo_n "checking compiler warning flags... " >&6; }
   16611     # Separate out the -Werror flag as some files just cannot be
   16612     # compiled with it enabled.
   16613     for w in ${build_warnings}; do
   16614 	# GCC does not complain about -Wno-unknown-warning.  Invert
   16615 	# and test -Wunknown-warning instead.
   16616 	case $w in
   16617 	-Wno-*)
   16618 		wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
   16619         -Wformat-nonliteral)
   16620 		# gcc requires -Wformat before -Wformat-nonliteral
   16621 		# will work, so stick them together.
   16622 		w="-Wformat $w"
   16623 		wtest="$w"
   16624 		;;
   16625 	*)
   16626 		wtest=$w ;;
   16627 	esac
   16628 
   16629 	case $w in
   16630 	-Werr*) WERROR_CFLAGS=-Werror ;;
   16631 	*)
   16632 	    # Check whether GCC accepts it.
   16633 	    saved_CFLAGS="$CFLAGS"
   16634 	    CFLAGS="$CFLAGS -Werror $wtest"
   16635 	    saved_CXXFLAGS="$CXXFLAGS"
   16636 	    CXXFLAGS="$CXXFLAGS -Werror $wtest"
   16637 	    if test "x$w" = "x-Wunused-variable"; then
   16638 	      # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
   16639 	      # fixed in GCC 4.9.  This test is derived from the gdb
   16640 	      # source code that triggered this bug in GCC.
   16641 	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16642 /* end confdefs.h.  */
   16643 struct scoped_restore_base {};
   16644                  struct scoped_restore_tmpl : public scoped_restore_base {
   16645 		   ~scoped_restore_tmpl() {}
   16646 		 };
   16647 int
   16648 main ()
   16649 {
   16650 const scoped_restore_base &b = scoped_restore_tmpl();
   16651   ;
   16652   return 0;
   16653 }
   16654 _ACEOF
   16655 if ac_fn_cxx_try_compile "$LINENO"; then :
   16656   WARN_CFLAGS="${WARN_CFLAGS} $w"
   16657 fi
   16658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16659 	    else
   16660 	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16661 /* end confdefs.h.  */
   16662 
   16663 int
   16664 main ()
   16665 {
   16666 
   16667   ;
   16668   return 0;
   16669 }
   16670 _ACEOF
   16671 if ac_fn_cxx_try_compile "$LINENO"; then :
   16672   WARN_CFLAGS="${WARN_CFLAGS} $w"
   16673 fi
   16674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   16675 	    fi
   16676 	    CFLAGS="$saved_CFLAGS"
   16677 	    CXXFLAGS="$saved_CXXFLAGS"
   16678 	esac
   16679     done
   16680     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
   16681 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
   16682 fi
   16683 
   16684 
   16685 
   16686 ac_ext=c
   16687 ac_cpp='$CPP $CPPFLAGS'
   16688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16691 
   16692 
   16693 
   16694 # Check whether --enable-ubsan was given.
   16695 if test "${enable_ubsan+set}" = set; then :
   16696   enableval=$enable_ubsan;
   16697 else
   16698   enable_ubsan=no
   16699 fi
   16700 
   16701 if test "x$enable_ubsan" = xauto; then
   16702   if $development; then
   16703     enable_ubsan=yes
   16704   fi
   16705 fi
   16706 ac_ext=cpp
   16707 ac_cpp='$CXXCPP $CPPFLAGS'
   16708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   16711 
   16712 if test "x$enable_ubsan" = xyes; then
   16713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
   16714 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
   16715   saved_CXXFLAGS="$CXXFLAGS"
   16716   CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
   16717         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16718 /* end confdefs.h.  */
   16719 
   16720 int
   16721 main ()
   16722 {
   16723 
   16724   ;
   16725   return 0;
   16726 }
   16727 _ACEOF
   16728 if ac_fn_cxx_try_link "$LINENO"; then :
   16729   enable_ubsan=yes
   16730 else
   16731   enable_ubsan=no
   16732 fi
   16733 rm -f core conftest.err conftest.$ac_objext \
   16734     conftest$ac_exeext conftest.$ac_ext
   16735   CXXFLAGS="$saved_CXXFLAGS"
   16736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
   16737 $as_echo "$enable_ubsan" >&6; }
   16738   if test "x$enable_ubsan" = xyes; then
   16739     WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
   16740     CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
   16741   fi
   16742 fi
   16743 ac_ext=c
   16744 ac_cpp='$CPP $CPPFLAGS'
   16745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   16746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   16747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   16748 
   16749 
   16750 
   16751 # In the Cygwin environment, we need some additional flags.
   16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
   16753 $as_echo_n "checking for cygwin... " >&6; }
   16754 if ${gdb_cv_os_cygwin+:} false; then :
   16755   $as_echo_n "(cached) " >&6
   16756 else
   16757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16758 /* end confdefs.h.  */
   16759 
   16760 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
   16761 lose
   16762 #endif
   16763 _ACEOF
   16764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   16765   $EGREP "^lose$" >/dev/null 2>&1; then :
   16766   gdb_cv_os_cygwin=yes
   16767 else
   16768   gdb_cv_os_cygwin=no
   16769 fi
   16770 rm -f conftest*
   16771 
   16772 fi
   16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
   16774 $as_echo "$gdb_cv_os_cygwin" >&6; }
   16775 
   16776 
   16777 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
   16778 case ${host} in
   16779   *go32* ) SER_HARDWIRE=ser-go32.o ;;
   16780   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
   16781   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
   16782   *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
   16783 esac
   16784 
   16785 
   16786 # libreadline needs libuser32.a in a cygwin environment
   16787 WIN32LIBS=
   16788 if test x"$gdb_cv_os_cygwin" = xyes; then
   16789     WIN32LIBS="-luser32"
   16790     case "${target}" in
   16791 	*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
   16792 	;;
   16793     esac
   16794 fi
   16795 
   16796 # The ser-tcp.c module requires sockets.
   16797 # Note that WIN32APILIBS is set by GDB_AC_COMMON.
   16798 WIN32LIBS="$WIN32LIBS $WIN32APILIBS"
   16799 
   16800 # Add ELF support to GDB, but only if BFD includes ELF support.
   16801 
   16802   OLD_CFLAGS=$CFLAGS
   16803   OLD_LDFLAGS=$LDFLAGS
   16804   OLD_LIBS=$LIBS
   16805   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   16806   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   16807   # always want our bfd.
   16808   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   16809   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
   16810   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
   16811   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   16812   LIBS="-lbfd -liberty -lz $intl $LIBS"
   16813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
   16814 $as_echo_n "checking for ELF support in BFD... " >&6; }
   16815 if ${gdb_cv_var_elf+:} false; then :
   16816   $as_echo_n "(cached) " >&6
   16817 else
   16818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16819 /* end confdefs.h.  */
   16820 #include <stdlib.h>
   16821   #include "bfd.h"
   16822   #include "elf-bfd.h"
   16823 
   16824 int
   16825 main ()
   16826 {
   16827 return bfd_get_elf_phdr_upper_bound (NULL);
   16828   ;
   16829   return 0;
   16830 }
   16831 _ACEOF
   16832 if ac_fn_c_try_link "$LINENO"; then :
   16833   gdb_cv_var_elf=yes
   16834 else
   16835   gdb_cv_var_elf=no
   16836 fi
   16837 rm -f core conftest.err conftest.$ac_objext \
   16838     conftest$ac_exeext conftest.$ac_ext
   16839 fi
   16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
   16841 $as_echo "$gdb_cv_var_elf" >&6; }
   16842   CFLAGS=$OLD_CFLAGS
   16843   LDFLAGS=$OLD_LDFLAGS
   16844   LIBS=$OLD_LIBS
   16845 if test "$gdb_cv_var_elf" = yes; then
   16846   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
   16847 
   16848 $as_echo "#define HAVE_ELF 1" >>confdefs.h
   16849 
   16850   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
   16851   if test "$plugins" = "yes"; then
   16852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   16853 $as_echo_n "checking for library containing dlopen... " >&6; }
   16854 if ${ac_cv_search_dlopen+:} false; then :
   16855   $as_echo_n "(cached) " >&6
   16856 else
   16857   ac_func_search_save_LIBS=$LIBS
   16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16859 /* end confdefs.h.  */
   16860 
   16861 /* Override any GCC internal prototype to avoid an error.
   16862    Use char because int might match the return type of a GCC
   16863    builtin and then its argument prototype would still apply.  */
   16864 #ifdef __cplusplus
   16865 extern "C"
   16866 #endif
   16867 char dlopen ();
   16868 int
   16869 main ()
   16870 {
   16871 return dlopen ();
   16872   ;
   16873   return 0;
   16874 }
   16875 _ACEOF
   16876 for ac_lib in '' dl; do
   16877   if test -z "$ac_lib"; then
   16878     ac_res="none required"
   16879   else
   16880     ac_res=-l$ac_lib
   16881     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   16882   fi
   16883   if ac_fn_c_try_link "$LINENO"; then :
   16884   ac_cv_search_dlopen=$ac_res
   16885 fi
   16886 rm -f core conftest.err conftest.$ac_objext \
   16887     conftest$ac_exeext
   16888   if ${ac_cv_search_dlopen+:} false; then :
   16889   break
   16890 fi
   16891 done
   16892 if ${ac_cv_search_dlopen+:} false; then :
   16893 
   16894 else
   16895   ac_cv_search_dlopen=no
   16896 fi
   16897 rm conftest.$ac_ext
   16898 LIBS=$ac_func_search_save_LIBS
   16899 fi
   16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   16901 $as_echo "$ac_cv_search_dlopen" >&6; }
   16902 ac_res=$ac_cv_search_dlopen
   16903 if test "$ac_res" != no; then :
   16904   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   16905 
   16906 fi
   16907 
   16908   fi
   16909 fi
   16910 
   16911 # Add macho support to GDB, but only if BFD includes it.
   16912 
   16913   OLD_CFLAGS=$CFLAGS
   16914   OLD_LDFLAGS=$LDFLAGS
   16915   OLD_LIBS=$LIBS
   16916   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   16917   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   16918   # always want our bfd.
   16919   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   16920   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
   16921   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
   16922   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   16923   LIBS="-lbfd -liberty -lz $intl $LIBS"
   16924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
   16925 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
   16926 if ${gdb_cv_var_macho+:} false; then :
   16927   $as_echo_n "(cached) " >&6
   16928 else
   16929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   16930 /* end confdefs.h.  */
   16931 #include <stdlib.h>
   16932   #include "bfd.h"
   16933   #include "mach-o.h"
   16934 
   16935 int
   16936 main ()
   16937 {
   16938 return bfd_mach_o_lookup_command (NULL, 0, NULL);
   16939   ;
   16940   return 0;
   16941 }
   16942 _ACEOF
   16943 if ac_fn_c_try_link "$LINENO"; then :
   16944   gdb_cv_var_macho=yes
   16945 else
   16946   gdb_cv_var_macho=no
   16947 fi
   16948 rm -f core conftest.err conftest.$ac_objext \
   16949     conftest$ac_exeext conftest.$ac_ext
   16950 fi
   16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
   16952 $as_echo "$gdb_cv_var_macho" >&6; }
   16953   CFLAGS=$OLD_CFLAGS
   16954   LDFLAGS=$OLD_LDFLAGS
   16955   LIBS=$OLD_LIBS
   16956 if test "$gdb_cv_var_macho" = yes; then
   16957   CONFIG_OBS="$CONFIG_OBS machoread.o"
   16958 fi
   16959 
   16960 # Add any host-specific objects to GDB.
   16961 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
   16962 
   16963 # If building on ELF, look for lzma support for embedded compressed debug info.
   16964 if test "$gdb_cv_var_elf" = yes; then
   16965 
   16966 # Check whether --with-lzma was given.
   16967 if test "${with_lzma+set}" = set; then :
   16968   withval=$with_lzma;
   16969 else
   16970   with_lzma=auto
   16971 fi
   16972 
   16973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
   16974 $as_echo_n "checking whether to use lzma... " >&6; }
   16975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
   16976 $as_echo "$with_lzma" >&6; }
   16977 
   16978   if test "${with_lzma}" != no; then
   16979 
   16980 
   16981 
   16982 
   16983 
   16984 
   16985 
   16986 
   16987     use_additional=yes
   16988 
   16989   acl_save_prefix="$prefix"
   16990   prefix="$acl_final_prefix"
   16991   acl_save_exec_prefix="$exec_prefix"
   16992   exec_prefix="$acl_final_exec_prefix"
   16993 
   16994     eval additional_includedir=\"$includedir\"
   16995     eval additional_libdir=\"$libdir\"
   16996 
   16997   exec_prefix="$acl_save_exec_prefix"
   16998   prefix="$acl_save_prefix"
   16999 
   17000 
   17001 # Check whether --with-liblzma-prefix was given.
   17002 if test "${with_liblzma_prefix+set}" = set; then :
   17003   withval=$with_liblzma_prefix;
   17004     if test "X$withval" = "Xno"; then
   17005       use_additional=no
   17006     else
   17007       if test "X$withval" = "X"; then
   17008 
   17009   acl_save_prefix="$prefix"
   17010   prefix="$acl_final_prefix"
   17011   acl_save_exec_prefix="$exec_prefix"
   17012   exec_prefix="$acl_final_exec_prefix"
   17013 
   17014           eval additional_includedir=\"$includedir\"
   17015           eval additional_libdir=\"$libdir\"
   17016 
   17017   exec_prefix="$acl_save_exec_prefix"
   17018   prefix="$acl_save_prefix"
   17019 
   17020       else
   17021         additional_includedir="$withval/include"
   17022         additional_libdir="$withval/lib"
   17023       fi
   17024     fi
   17025 
   17026 fi
   17027 
   17028 
   17029 # Check whether --with-liblzma-type was given.
   17030 if test "${with_liblzma_type+set}" = set; then :
   17031   withval=$with_liblzma_type;  with_liblzma_type=$withval
   17032 else
   17033    with_liblzma_type=auto
   17034 fi
   17035 
   17036   lib_type=`eval echo \$with_liblzma_type`
   17037 
   17038       LIBLZMA=
   17039   LTLIBLZMA=
   17040   INCLZMA=
   17041   rpathdirs=
   17042   ltrpathdirs=
   17043   names_already_handled=
   17044   names_next_round='lzma '
   17045   while test -n "$names_next_round"; do
   17046     names_this_round="$names_next_round"
   17047     names_next_round=
   17048     for name in $names_this_round; do
   17049       already_handled=
   17050       for n in $names_already_handled; do
   17051         if test "$n" = "$name"; then
   17052           already_handled=yes
   17053           break
   17054         fi
   17055       done
   17056       if test -z "$already_handled"; then
   17057         names_already_handled="$names_already_handled $name"
   17058                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   17059         eval value=\"\$HAVE_LIB$uppername\"
   17060         if test -n "$value"; then
   17061           if test "$value" = yes; then
   17062             eval value=\"\$LIB$uppername\"
   17063             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
   17064             eval value=\"\$LTLIB$uppername\"
   17065             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
   17066           else
   17067                                     :
   17068           fi
   17069         else
   17070                               found_dir=
   17071           found_la=
   17072           found_so=
   17073           found_a=
   17074           if test $use_additional = yes; then
   17075             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   17076               found_dir="$additional_libdir"
   17077               found_so="$additional_libdir/lib$name.$shlibext"
   17078               if test -f "$additional_libdir/lib$name.la"; then
   17079                 found_la="$additional_libdir/lib$name.la"
   17080               fi
   17081             elif test x$lib_type != xshared; then
   17082               if test -f "$additional_libdir/lib$name.$libext"; then
   17083                 found_dir="$additional_libdir"
   17084                 found_a="$additional_libdir/lib$name.$libext"
   17085                 if test -f "$additional_libdir/lib$name.la"; then
   17086                   found_la="$additional_libdir/lib$name.la"
   17087                 fi
   17088               fi
   17089             fi
   17090           fi
   17091           if test "X$found_dir" = "X"; then
   17092             for x in $LDFLAGS $LTLIBLZMA; do
   17093 
   17094   acl_save_prefix="$prefix"
   17095   prefix="$acl_final_prefix"
   17096   acl_save_exec_prefix="$exec_prefix"
   17097   exec_prefix="$acl_final_exec_prefix"
   17098   eval x=\"$x\"
   17099   exec_prefix="$acl_save_exec_prefix"
   17100   prefix="$acl_save_prefix"
   17101 
   17102               case "$x" in
   17103                 -L*)
   17104                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   17105                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   17106                     found_dir="$dir"
   17107                     found_so="$dir/lib$name.$shlibext"
   17108                     if test -f "$dir/lib$name.la"; then
   17109                       found_la="$dir/lib$name.la"
   17110                     fi
   17111                   elif test x$lib_type != xshared; then
   17112                     if test -f "$dir/lib$name.$libext"; then
   17113                       found_dir="$dir"
   17114                       found_a="$dir/lib$name.$libext"
   17115                       if test -f "$dir/lib$name.la"; then
   17116                         found_la="$dir/lib$name.la"
   17117                       fi
   17118                     fi
   17119                   fi
   17120                   ;;
   17121               esac
   17122               if test "X$found_dir" != "X"; then
   17123                 break
   17124               fi
   17125             done
   17126           fi
   17127           if test "X$found_dir" != "X"; then
   17128                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
   17129             if test "X$found_so" != "X"; then
   17130                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   17131                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   17132               else
   17133                                                                                 haveit=
   17134                 for x in $ltrpathdirs; do
   17135                   if test "X$x" = "X$found_dir"; then
   17136                     haveit=yes
   17137                     break
   17138                   fi
   17139                 done
   17140                 if test -z "$haveit"; then
   17141                   ltrpathdirs="$ltrpathdirs $found_dir"
   17142                 fi
   17143                                 if test "$hardcode_direct" = yes; then
   17144                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   17145                 else
   17146                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   17147                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   17148                                                             haveit=
   17149                     for x in $rpathdirs; do
   17150                       if test "X$x" = "X$found_dir"; then
   17151                         haveit=yes
   17152                         break
   17153                       fi
   17154                     done
   17155                     if test -z "$haveit"; then
   17156                       rpathdirs="$rpathdirs $found_dir"
   17157                     fi
   17158                   else
   17159                                                                                 haveit=
   17160                     for x in $LDFLAGS $LIBLZMA; do
   17161 
   17162   acl_save_prefix="$prefix"
   17163   prefix="$acl_final_prefix"
   17164   acl_save_exec_prefix="$exec_prefix"
   17165   exec_prefix="$acl_final_exec_prefix"
   17166   eval x=\"$x\"
   17167   exec_prefix="$acl_save_exec_prefix"
   17168   prefix="$acl_save_prefix"
   17169 
   17170                       if test "X$x" = "X-L$found_dir"; then
   17171                         haveit=yes
   17172                         break
   17173                       fi
   17174                     done
   17175                     if test -z "$haveit"; then
   17176                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
   17177                     fi
   17178                     if test "$hardcode_minus_L" != no; then
   17179                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   17180                     else
   17181                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   17182                     fi
   17183                   fi
   17184                 fi
   17185               fi
   17186             else
   17187               if test "X$found_a" != "X"; then
   17188                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
   17189               else
   17190                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
   17191               fi
   17192             fi
   17193                         additional_includedir=
   17194             case "$found_dir" in
   17195               */lib | */lib/)
   17196                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   17197                 additional_includedir="$basedir/include"
   17198                 ;;
   17199             esac
   17200             if test "X$additional_includedir" != "X"; then
   17201                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   17202                 haveit=
   17203                 if test "X$additional_includedir" = "X/usr/local/include"; then
   17204                   if test -n "$GCC"; then
   17205                     case $host_os in
   17206                       linux*) haveit=yes;;
   17207                     esac
   17208                   fi
   17209                 fi
   17210                 if test -z "$haveit"; then
   17211                   for x in $CPPFLAGS $INCLZMA; do
   17212 
   17213   acl_save_prefix="$prefix"
   17214   prefix="$acl_final_prefix"
   17215   acl_save_exec_prefix="$exec_prefix"
   17216   exec_prefix="$acl_final_exec_prefix"
   17217   eval x=\"$x\"
   17218   exec_prefix="$acl_save_exec_prefix"
   17219   prefix="$acl_save_prefix"
   17220 
   17221                     if test "X$x" = "X-I$additional_includedir"; then
   17222                       haveit=yes
   17223                       break
   17224                     fi
   17225                   done
   17226                   if test -z "$haveit"; then
   17227                     if test -d "$additional_includedir"; then
   17228                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
   17229                     fi
   17230                   fi
   17231                 fi
   17232               fi
   17233             fi
   17234                         if test -n "$found_la"; then
   17235                                                         save_libdir="$libdir"
   17236               case "$found_la" in
   17237                 */* | *\\*) . "$found_la" ;;
   17238                 *) . "./$found_la" ;;
   17239               esac
   17240               libdir="$save_libdir"
   17241                             for dep in $dependency_libs; do
   17242                 case "$dep" in
   17243                   -L*)
   17244                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   17245                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   17246                       haveit=
   17247                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   17248                         if test -n "$GCC"; then
   17249                           case $host_os in
   17250                             linux*) haveit=yes;;
   17251                           esac
   17252                         fi
   17253                       fi
   17254                       if test -z "$haveit"; then
   17255                         haveit=
   17256                         for x in $LDFLAGS $LIBLZMA; do
   17257 
   17258   acl_save_prefix="$prefix"
   17259   prefix="$acl_final_prefix"
   17260   acl_save_exec_prefix="$exec_prefix"
   17261   exec_prefix="$acl_final_exec_prefix"
   17262   eval x=\"$x\"
   17263   exec_prefix="$acl_save_exec_prefix"
   17264   prefix="$acl_save_prefix"
   17265 
   17266                           if test "X$x" = "X-L$additional_libdir"; then
   17267                             haveit=yes
   17268                             break
   17269                           fi
   17270                         done
   17271                         if test -z "$haveit"; then
   17272                           if test -d "$additional_libdir"; then
   17273                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
   17274                           fi
   17275                         fi
   17276                         haveit=
   17277                         for x in $LDFLAGS $LTLIBLZMA; do
   17278 
   17279   acl_save_prefix="$prefix"
   17280   prefix="$acl_final_prefix"
   17281   acl_save_exec_prefix="$exec_prefix"
   17282   exec_prefix="$acl_final_exec_prefix"
   17283   eval x=\"$x\"
   17284   exec_prefix="$acl_save_exec_prefix"
   17285   prefix="$acl_save_prefix"
   17286 
   17287                           if test "X$x" = "X-L$additional_libdir"; then
   17288                             haveit=yes
   17289                             break
   17290                           fi
   17291                         done
   17292                         if test -z "$haveit"; then
   17293                           if test -d "$additional_libdir"; then
   17294                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
   17295                           fi
   17296                         fi
   17297                       fi
   17298                     fi
   17299                     ;;
   17300                   -R*)
   17301                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   17302                     if test "$enable_rpath" != no; then
   17303                                                                   haveit=
   17304                       for x in $rpathdirs; do
   17305                         if test "X$x" = "X$dir"; then
   17306                           haveit=yes
   17307                           break
   17308                         fi
   17309                       done
   17310                       if test -z "$haveit"; then
   17311                         rpathdirs="$rpathdirs $dir"
   17312                       fi
   17313                                                                   haveit=
   17314                       for x in $ltrpathdirs; do
   17315                         if test "X$x" = "X$dir"; then
   17316                           haveit=yes
   17317                           break
   17318                         fi
   17319                       done
   17320                       if test -z "$haveit"; then
   17321                         ltrpathdirs="$ltrpathdirs $dir"
   17322                       fi
   17323                     fi
   17324                     ;;
   17325                   -l*)
   17326                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   17327                     ;;
   17328                   *.la)
   17329                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   17330                     ;;
   17331                   *)
   17332                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
   17333                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
   17334                     ;;
   17335                 esac
   17336               done
   17337             fi
   17338           else
   17339                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   17340               LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   17341               LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
   17342             else
   17343               LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l:lib$name.$libext"
   17344               LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l:lib$name.$libext"
   17345             fi
   17346           fi
   17347         fi
   17348       fi
   17349     done
   17350   done
   17351   if test "X$rpathdirs" != "X"; then
   17352     if test -n "$hardcode_libdir_separator"; then
   17353                         alldirs=
   17354       for found_dir in $rpathdirs; do
   17355         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   17356       done
   17357             acl_save_libdir="$libdir"
   17358       libdir="$alldirs"
   17359       eval flag=\"$hardcode_libdir_flag_spec\"
   17360       libdir="$acl_save_libdir"
   17361       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   17362     else
   17363             for found_dir in $rpathdirs; do
   17364         acl_save_libdir="$libdir"
   17365         libdir="$found_dir"
   17366         eval flag=\"$hardcode_libdir_flag_spec\"
   17367         libdir="$acl_save_libdir"
   17368         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   17369       done
   17370     fi
   17371   fi
   17372   if test "X$ltrpathdirs" != "X"; then
   17373             for found_dir in $ltrpathdirs; do
   17374       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
   17375     done
   17376   fi
   17377 
   17378 
   17379         ac_save_CPPFLAGS="$CPPFLAGS"
   17380 
   17381   for element in $INCLZMA; do
   17382     haveit=
   17383     for x in $CPPFLAGS; do
   17384 
   17385   acl_save_prefix="$prefix"
   17386   prefix="$acl_final_prefix"
   17387   acl_save_exec_prefix="$exec_prefix"
   17388   exec_prefix="$acl_final_exec_prefix"
   17389   eval x=\"$x\"
   17390   exec_prefix="$acl_save_exec_prefix"
   17391   prefix="$acl_save_prefix"
   17392 
   17393       if test "X$x" = "X$element"; then
   17394         haveit=yes
   17395         break
   17396       fi
   17397     done
   17398     if test -z "$haveit"; then
   17399       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   17400     fi
   17401   done
   17402 
   17403 
   17404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
   17405 $as_echo_n "checking for liblzma... " >&6; }
   17406 if ${ac_cv_liblzma+:} false; then :
   17407   $as_echo_n "(cached) " >&6
   17408 else
   17409 
   17410     ac_save_LIBS="$LIBS"
   17411     LIBS="$LIBS $LIBLZMA"
   17412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   17413 /* end confdefs.h.  */
   17414 #include "lzma.h"
   17415 int
   17416 main ()
   17417 {
   17418 lzma_index_iter iter;
   17419 			   lzma_index_iter_init (&iter, 0);
   17420 			   lzma_mf_is_supported (LZMA_MF_HC3);
   17421   ;
   17422   return 0;
   17423 }
   17424 _ACEOF
   17425 if ac_fn_c_try_link "$LINENO"; then :
   17426   ac_cv_liblzma=yes
   17427 else
   17428   ac_cv_liblzma=no
   17429 fi
   17430 rm -f core conftest.err conftest.$ac_objext \
   17431     conftest$ac_exeext conftest.$ac_ext
   17432     LIBS="$ac_save_LIBS"
   17433 
   17434 fi
   17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
   17436 $as_echo "$ac_cv_liblzma" >&6; }
   17437   if test "$ac_cv_liblzma" = yes; then
   17438     HAVE_LIBLZMA=yes
   17439 
   17440 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
   17441 
   17442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
   17443 $as_echo_n "checking how to link with liblzma... " >&6; }
   17444     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
   17445 $as_echo "$LIBLZMA" >&6; }
   17446   else
   17447     HAVE_LIBLZMA=no
   17448             CPPFLAGS="$ac_save_CPPFLAGS"
   17449     LIBLZMA=
   17450     LTLIBLZMA=
   17451   fi
   17452 
   17453 
   17454 
   17455 
   17456 
   17457 
   17458     if test "$HAVE_LIBLZMA" != yes; then
   17459       if test "$with_lzma" = yes; then
   17460         as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
   17461       fi
   17462     fi
   17463   fi
   17464 fi
   17465 
   17466 LIBGUI="../libgui/src/libgui.a"
   17467 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
   17468 
   17469 
   17470 
   17471 WIN32LDAPP=
   17472 
   17473 
   17474 
   17475 case "${host}" in
   17476 *-*-cygwin* | *-*-mingw* )
   17477     configdir="win"
   17478     ;;
   17479 *)
   17480     configdir="unix"
   17481     ;;
   17482 esac
   17483 
   17484 GDBTKLIBS=
   17485 if test "${enable_gdbtk}" = "yes"; then
   17486 
   17487     # Gdbtk must have an absolute path to srcdir in order to run
   17488     # properly when not installed.
   17489     here=`pwd`
   17490     cd ${srcdir}
   17491     GDBTK_SRC_DIR=`pwd`
   17492     cd $here
   17493 
   17494 
   17495     #
   17496     # Ok, lets find the tcl configuration
   17497     # First, look for one uninstalled.
   17498     # the alternative search directory is invoked by --with-tcl
   17499     #
   17500 
   17501     if test x"${no_tcl}" = x ; then
   17502 	# we reset no_tcl in case something fails here
   17503 	no_tcl=true
   17504 
   17505 # Check whether --with-tcl was given.
   17506 if test "${with_tcl+set}" = set; then :
   17507   withval=$with_tcl; with_tclconfig=${withval}
   17508 fi
   17509 
   17510 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
   17511 $as_echo_n "checking for Tcl configuration... " >&6; }
   17512 	if ${ac_cv_c_tclconfig+:} false; then :
   17513   $as_echo_n "(cached) " >&6
   17514 else
   17515 
   17516 
   17517 	    # First check to see if --with-tcl was specified.
   17518 	    case "${host}" in
   17519 		*-*-cygwin*) platDir="win" ;;
   17520 		*) platDir="unix" ;;
   17521 	    esac
   17522 	    if test x"${with_tclconfig}" != x ; then
   17523 		if test -f "${with_tclconfig}/tclConfig.sh" ; then
   17524 		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
   17525 		else
   17526 		    as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
   17527 		fi
   17528 	    fi
   17529 
   17530 	    # then check for a private Tcl installation
   17531 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   17532 		for i in \
   17533 			../tcl \
   17534 			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   17535 			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
   17536 			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
   17537 			../../tcl \
   17538 			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   17539 			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
   17540 			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
   17541 			../../../tcl \
   17542 			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   17543 			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
   17544 			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
   17545 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   17546 			ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   17547 			break
   17548 		    fi
   17549 		done
   17550 	    fi
   17551 
   17552 	    # on Darwin, check in Framework installation locations
   17553 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
   17554 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   17555 			`ls -d /Library/Frameworks 2>/dev/null` \
   17556 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   17557 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   17558 			; do
   17559 		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
   17560 			ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
   17561 			break
   17562 		    fi
   17563 		done
   17564 	    fi
   17565 
   17566 	    # check in a few common install locations
   17567 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   17568 		for i in `ls -d ${libdir} 2>/dev/null` \
   17569 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   17570 			`ls -d ${prefix}/lib 2>/dev/null` \
   17571 			`ls -d /usr/local/lib 2>/dev/null` \
   17572 			`ls -d /usr/contrib/lib 2>/dev/null` \
   17573 			`ls -d /usr/lib 2>/dev/null` \
   17574 			; do
   17575 		    if test -f "$i/tclConfig.sh" ; then
   17576 			ac_cv_c_tclconfig=`(cd $i; pwd)`
   17577 			break
   17578 		    fi
   17579 		done
   17580 	    fi
   17581 
   17582 	    # check in a few other private locations
   17583 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   17584 		for i in \
   17585 			${srcdir}/../tcl \
   17586 			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   17587 			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
   17588 			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
   17589 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   17590 		    ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   17591 		    break
   17592 		fi
   17593 		done
   17594 	    fi
   17595 
   17596 fi
   17597 
   17598 
   17599 	if test x"${ac_cv_c_tclconfig}" = x ; then
   17600 	    TCL_BIN_DIR="# no Tcl configs found"
   17601 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
   17602 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
   17603 	else
   17604 	    no_tcl=
   17605 	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
   17606 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
   17607 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   17608 	fi
   17609     fi
   17610 
   17611 
   17612     # If $no_tk is nonempty, then we can't do Tk, and there is no
   17613     # point to doing Tcl.
   17614 
   17615     #
   17616     # Ok, lets find the tk configuration
   17617     # First, look for one uninstalled.
   17618     # the alternative search directory is invoked by --with-tk
   17619     #
   17620 
   17621     if test x"${no_tk}" = x ; then
   17622 	# we reset no_tk in case something fails here
   17623 	no_tk=true
   17624 
   17625 # Check whether --with-tk was given.
   17626 if test "${with_tk+set}" = set; then :
   17627   withval=$with_tk; with_tkconfig=${withval}
   17628 fi
   17629 
   17630 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
   17631 $as_echo_n "checking for Tk configuration... " >&6; }
   17632 	if ${ac_cv_c_tkconfig+:} false; then :
   17633   $as_echo_n "(cached) " >&6
   17634 else
   17635 
   17636 
   17637 	    # First check to see if --with-tkconfig was specified.
   17638 	    if test x"${with_tkconfig}" != x ; then
   17639 		if test -f "${with_tkconfig}/tkConfig.sh" ; then
   17640 		    ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
   17641 		else
   17642 		    as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
   17643 		fi
   17644 	    fi
   17645 
   17646 	    # then check for a private Tk library
   17647 	    case "${host}" in
   17648 		*-*-cygwin*) platDir="win" ;;
   17649 		*) platDir="unix" ;;
   17650 	    esac
   17651 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   17652 		for i in \
   17653 			../tk \
   17654 			`ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   17655 			`ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
   17656 			`ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
   17657 			../../tk \
   17658 			`ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   17659 			`ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
   17660 			`ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
   17661 			../../../tk \
   17662 			`ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   17663 			`ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
   17664 			`ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
   17665 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   17666 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   17667 			break
   17668 		    fi
   17669 		done
   17670 	    fi
   17671 
   17672 	    # on Darwin, check in Framework installation locations
   17673 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
   17674 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   17675 			`ls -d /Library/Frameworks 2>/dev/null` \
   17676 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   17677 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   17678 			; do
   17679 		    if test -f "$i/Tk.framework/tkConfig.sh" ; then
   17680 			ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
   17681 			break
   17682 		    fi
   17683 		done
   17684 	    fi
   17685 
   17686 	    # check in a few common install locations
   17687 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   17688 		for i in `ls -d ${libdir} 2>/dev/null` \
   17689 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   17690 			`ls -d ${prefix}/lib 2>/dev/null` \
   17691 			`ls -d /usr/local/lib 2>/dev/null` \
   17692 			`ls -d /usr/contrib/lib 2>/dev/null` \
   17693 			`ls -d /usr/lib 2>/dev/null` \
   17694 			; do
   17695 		    if test -f "$i/tkConfig.sh" ; then
   17696 			ac_cv_c_tkconfig=`(cd $i; pwd)`
   17697 			break
   17698 		    fi
   17699 		done
   17700 	    fi
   17701 	    # check in a few other private locations
   17702 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   17703 		for i in \
   17704 			${srcdir}/../tk \
   17705 			`ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   17706 			`ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
   17707 			`ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
   17708 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   17709 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   17710 			break
   17711 		    fi
   17712 		done
   17713 	    fi
   17714 
   17715 fi
   17716 
   17717 
   17718 	if test x"${ac_cv_c_tkconfig}" = x ; then
   17719 	    TK_BIN_DIR="# no Tk configs found"
   17720 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
   17721 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
   17722 	else
   17723 	    no_tk=
   17724 	    TK_BIN_DIR=${ac_cv_c_tkconfig}
   17725 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
   17726 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   17727 	fi
   17728     fi
   17729 
   17730 
   17731     if test -z "${no_tcl}" -a -z "${no_tk}"; then
   17732 
   17733     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
   17734 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
   17735 
   17736     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
   17737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   17738 $as_echo "loading" >&6; }
   17739 	. ${TCL_BIN_DIR}/tclConfig.sh
   17740     else
   17741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
   17742 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   17743     fi
   17744 
   17745     # eval is required to do the TCL_DBGX substitution
   17746     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
   17747     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
   17748 
   17749     # If the TCL_BIN_DIR is the build directory (not the install directory),
   17750     # then set the common variable name to the value of the build variables.
   17751     # For example, the variable TCL_LIB_SPEC will be set to the value
   17752     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
   17753     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
   17754     # installed and uninstalled version of Tcl.
   17755     if test -f "${TCL_BIN_DIR}/Makefile" ; then
   17756         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
   17757         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
   17758         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
   17759     elif test "`uname -s`" = "Darwin"; then
   17760 	# If Tcl was built as a framework, attempt to use the libraries
   17761 	# from the framework at the given location so that linking works
   17762 	# against Tcl.framework installed in an arbitrary location.
   17763 	case ${TCL_DEFS} in
   17764 	    *TCL_FRAMEWORK*)
   17765 		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
   17766 		    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
   17767 			     "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
   17768 			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
   17769 			    TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
   17770 			    break
   17771 			fi
   17772 		    done
   17773 		fi
   17774 		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
   17775 		    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
   17776 		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
   17777 		fi
   17778 		;;
   17779 	esac
   17780     fi
   17781 
   17782     # eval is required to do the TCL_DBGX substitution
   17783     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
   17784     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
   17785     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
   17786     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
   17787 
   17788 
   17789 
   17790 
   17791 
   17792 
   17793 
   17794 
   17795 
   17796 
   17797 
   17798 
   17799 
   17800 
   17801 
   17802         # Check for in-tree tcl
   17803         here=`pwd`
   17804         cd ${srcdir}/..
   17805         topdir=`pwd`
   17806         cd ${here}
   17807 
   17808         intree="no"
   17809         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
   17810           intree="yes"
   17811         fi
   17812 
   17813         # Find Tcl private headers
   17814         if test x"${intree}" = xno; then
   17815 
   17816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
   17817 $as_echo_n "checking for Tcl private headers... " >&6; }
   17818   private_dir=""
   17819   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
   17820   if test -f ${dir}/tclInt.h ; then
   17821     private_dir=${dir}
   17822   fi
   17823 
   17824   if test x"${private_dir}" = x; then
   17825     as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
   17826   else
   17827     TCL_PRIVATE_INCLUDE="-I${private_dir}"
   17828     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   17829 $as_echo "${private_dir}" >&6; }
   17830   fi
   17831 
   17832 	  TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
   17833           TCL_LIBRARY="${TCL_LIB_SPEC}"
   17834           TCL_DEPS=""
   17835         else
   17836           # If building tcl in the same src tree, private headers
   17837           # are not needed, but we need to be sure to use the right
   17838           # headers library
   17839 	  TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
   17840           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
   17841           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
   17842         fi
   17843 
   17844 
   17845 
   17846 
   17847 
   17848     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
   17849 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
   17850 
   17851     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
   17852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   17853 $as_echo "loading" >&6; }
   17854 	. ${TK_BIN_DIR}/tkConfig.sh
   17855     else
   17856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
   17857 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   17858     fi
   17859 
   17860     # eval is required to do the TK_DBGX substitution
   17861     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
   17862     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
   17863 
   17864     # If the TK_BIN_DIR is the build directory (not the install directory),
   17865     # then set the common variable name to the value of the build variables.
   17866     # For example, the variable TK_LIB_SPEC will be set to the value
   17867     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
   17868     # instead of TK_BUILD_LIB_SPEC since it will work with both an
   17869     # installed and uninstalled version of Tcl.
   17870     if test -f "${TK_BIN_DIR}/Makefile" ; then
   17871         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
   17872         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
   17873         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
   17874     elif test "`uname -s`" = "Darwin"; then
   17875 	# If Tk was built as a framework, attempt to use the libraries
   17876 	# from the framework at the given location so that linking works
   17877 	# against Tk.framework installed in an arbitrary location.
   17878 	case ${TK_DEFS} in
   17879 	    *TK_FRAMEWORK*)
   17880 		if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
   17881 		    for i in "`cd ${TK_BIN_DIR}; pwd`" \
   17882 			     "`cd ${TK_BIN_DIR}/../..; pwd`"; do
   17883 			if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
   17884 			    TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
   17885 			    break
   17886 			fi
   17887 		    done
   17888 		fi
   17889 		if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
   17890 		    TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
   17891 		    TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
   17892 		fi
   17893 		;;
   17894 	esac
   17895     fi
   17896 
   17897     # eval is required to do the TK_DBGX substitution
   17898     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
   17899     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
   17900     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
   17901     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
   17902 
   17903 
   17904 
   17905 
   17906 
   17907 
   17908 
   17909 
   17910 
   17911 
   17912 
   17913 
   17914 
   17915 
   17916         # Check for in-tree Tk
   17917         intree="no"
   17918         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
   17919           intree="yes"
   17920         fi
   17921 
   17922         # Find Tk private headers
   17923         if test x"${intree}" = xno; then
   17924 
   17925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
   17926 $as_echo_n "checking for Tk private headers... " >&6; }
   17927   private_dir=""
   17928   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
   17929   if test -f ${dir}/tkInt.h; then
   17930     private_dir=${dir}
   17931   fi
   17932 
   17933   if test x"${private_dir}" = x; then
   17934     as_fn_error $? "could not find Tk private headers" "$LINENO" 5
   17935   else
   17936     TK_PRIVATE_INCLUDE="-I${private_dir}"
   17937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   17938 $as_echo "${private_dir}" >&6; }
   17939   fi
   17940 
   17941 	  TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
   17942 	  TK_LIBRARY=${TK_LIB_SPEC}
   17943           TK_DEPS=""
   17944         else
   17945           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
   17946           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
   17947           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
   17948         fi
   17949 
   17950 
   17951 
   17952 
   17953 
   17954         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
   17955 
   17956 	# Include some libraries that Tcl and Tk want.
   17957 	TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
   17958 	# Yes, the ordering seems wrong here.  But it isn't.
   17959 	# TK_LIBS is the list of libraries that need to be linked
   17960 	# after Tcl/Tk.  Note that this isn't put into LIBS.  If it
   17961 	# were in LIBS then any link tests after this point would
   17962 	# try to include things like `$(LIBGUI)', which wouldn't work.
   17963 	GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
   17964 
   17965         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
   17966         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
   17967         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
   17968 	CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
   17969 	CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
   17970 	CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
   17971 	CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
   17972 
   17973 	if test x"$gdb_cv_os_cygwin" = xyes; then
   17974 	  WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
   17975 	  WIN32LDAPP="-Wl,--subsystem,console"
   17976 	  CONFIG_OBS="${CONFIG_OBS} gdbres.o"
   17977 	fi
   17978 
   17979         subdirs="$subdirs gdbtk"
   17980 
   17981     fi
   17982 fi
   17983 
   17984 
   17985 
   17986 
   17987 
   17988 
   17989 
   17990 
   17991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
   17992 $as_echo_n "checking for X... " >&6; }
   17993 
   17994 
   17995 # Check whether --with-x was given.
   17996 if test "${with_x+set}" = set; then :
   17997   withval=$with_x;
   17998 fi
   17999 
   18000 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   18001 if test "x$with_x" = xno; then
   18002   # The user explicitly disabled X.
   18003   have_x=disabled
   18004 else
   18005   case $x_includes,$x_libraries in #(
   18006     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
   18007     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
   18008   $as_echo_n "(cached) " >&6
   18009 else
   18010   # One or both of the vars are not set, and there is no cached value.
   18011 ac_x_includes=no ac_x_libraries=no
   18012 rm -f -r conftest.dir
   18013 if mkdir conftest.dir; then
   18014   cd conftest.dir
   18015   cat >Imakefile <<'_ACEOF'
   18016 incroot:
   18017 	@echo incroot='${INCROOT}'
   18018 usrlibdir:
   18019 	@echo usrlibdir='${USRLIBDIR}'
   18020 libdir:
   18021 	@echo libdir='${LIBDIR}'
   18022 _ACEOF
   18023   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
   18024     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   18025     for ac_var in incroot usrlibdir libdir; do
   18026       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
   18027     done
   18028     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   18029     for ac_extension in a so sl dylib la dll; do
   18030       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
   18031 	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
   18032 	ac_im_usrlibdir=$ac_im_libdir; break
   18033       fi
   18034     done
   18035     # Screen out bogus values from the imake configuration.  They are
   18036     # bogus both because they are the default anyway, and because
   18037     # using them would break gcc on systems where it needs fixed includes.
   18038     case $ac_im_incroot in
   18039 	/usr/include) ac_x_includes= ;;
   18040 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   18041     esac
   18042     case $ac_im_usrlibdir in
   18043 	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
   18044 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   18045     esac
   18046   fi
   18047   cd ..
   18048   rm -f -r conftest.dir
   18049 fi
   18050 
   18051 # Standard set of common directories for X headers.
   18052 # Check X11 before X11Rn because it is often a symlink to the current release.
   18053 ac_x_header_dirs='
   18054 /usr/X11/include
   18055 /usr/X11R7/include
   18056 /usr/X11R6/include
   18057 /usr/X11R5/include
   18058 /usr/X11R4/include
   18059 
   18060 /usr/include/X11
   18061 /usr/include/X11R7
   18062 /usr/include/X11R6
   18063 /usr/include/X11R5
   18064 /usr/include/X11R4
   18065 
   18066 /usr/local/X11/include
   18067 /usr/local/X11R7/include
   18068 /usr/local/X11R6/include
   18069 /usr/local/X11R5/include
   18070 /usr/local/X11R4/include
   18071 
   18072 /usr/local/include/X11
   18073 /usr/local/include/X11R7
   18074 /usr/local/include/X11R6
   18075 /usr/local/include/X11R5
   18076 /usr/local/include/X11R4
   18077 
   18078 /usr/X386/include
   18079 /usr/x386/include
   18080 /usr/XFree86/include/X11
   18081 
   18082 /usr/include
   18083 /usr/local/include
   18084 /usr/unsupported/include
   18085 /usr/athena/include
   18086 /usr/local/x11r5/include
   18087 /usr/lpp/Xamples/include
   18088 
   18089 /usr/openwin/include
   18090 /usr/openwin/share/include'
   18091 
   18092 if test "$ac_x_includes" = no; then
   18093   # Guess where to find include files, by looking for Xlib.h.
   18094   # First, try using that file with no special directory specified.
   18095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18096 /* end confdefs.h.  */
   18097 #include <X11/Xlib.h>
   18098 _ACEOF
   18099 if ac_fn_c_try_cpp "$LINENO"; then :
   18100   # We can compile using X headers with no special include directory.
   18101 ac_x_includes=
   18102 else
   18103   for ac_dir in $ac_x_header_dirs; do
   18104   if test -r "$ac_dir/X11/Xlib.h"; then
   18105     ac_x_includes=$ac_dir
   18106     break
   18107   fi
   18108 done
   18109 fi
   18110 rm -f conftest.err conftest.i conftest.$ac_ext
   18111 fi # $ac_x_includes = no
   18112 
   18113 if test "$ac_x_libraries" = no; then
   18114   # Check for the libraries.
   18115   # See if we find them without any special options.
   18116   # Don't add to $LIBS permanently.
   18117   ac_save_LIBS=$LIBS
   18118   LIBS="-lX11 $LIBS"
   18119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18120 /* end confdefs.h.  */
   18121 #include <X11/Xlib.h>
   18122 int
   18123 main ()
   18124 {
   18125 XrmInitialize ()
   18126   ;
   18127   return 0;
   18128 }
   18129 _ACEOF
   18130 if ac_fn_c_try_link "$LINENO"; then :
   18131   LIBS=$ac_save_LIBS
   18132 # We can link X programs with no special library path.
   18133 ac_x_libraries=
   18134 else
   18135   LIBS=$ac_save_LIBS
   18136 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   18137 do
   18138   # Don't even attempt the hair of trying to link an X program!
   18139   for ac_extension in a so sl dylib la dll; do
   18140     if test -r "$ac_dir/libX11.$ac_extension"; then
   18141       ac_x_libraries=$ac_dir
   18142       break 2
   18143     fi
   18144   done
   18145 done
   18146 fi
   18147 rm -f core conftest.err conftest.$ac_objext \
   18148     conftest$ac_exeext conftest.$ac_ext
   18149 fi # $ac_x_libraries = no
   18150 
   18151 case $ac_x_includes,$ac_x_libraries in #(
   18152   no,* | *,no | *\'*)
   18153     # Didn't find X, or a directory has "'" in its name.
   18154     ac_cv_have_x="have_x=no";; #(
   18155   *)
   18156     # Record where we found X for the cache.
   18157     ac_cv_have_x="have_x=yes\
   18158 	ac_x_includes='$ac_x_includes'\
   18159 	ac_x_libraries='$ac_x_libraries'"
   18160 esac
   18161 fi
   18162 ;; #(
   18163     *) have_x=yes;;
   18164   esac
   18165   eval "$ac_cv_have_x"
   18166 fi # $with_x != no
   18167 
   18168 if test "$have_x" != yes; then
   18169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
   18170 $as_echo "$have_x" >&6; }
   18171   no_x=yes
   18172 else
   18173   # If each of the values was on the command line, it overrides each guess.
   18174   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   18175   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   18176   # Update the cache value to reflect the command line values.
   18177   ac_cv_have_x="have_x=yes\
   18178 	ac_x_includes='$x_includes'\
   18179 	ac_x_libraries='$x_libraries'"
   18180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
   18181 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
   18182 fi
   18183 
   18184 
   18185 # Unlike the sim directory, whether a simulator is linked is controlled by
   18186 # presence of a gdb_sim definition in the target configure.tgt entry.
   18187 # This code just checks for a few cases where we'd like to ignore those
   18188 # definitions, even when they're present in the '.mt' file.  These cases
   18189 # are when --disable-sim is specified, or if the simulator directory is
   18190 # not part of the source tree.
   18191 #
   18192 # Check whether --enable-sim was given.
   18193 if test "${enable_sim+set}" = set; then :
   18194   enableval=$enable_sim; echo "enable_sim = $enable_sim";
   18195  echo "enableval = ${enableval}";
   18196  case "${enableval}" in
   18197   yes) ignore_sim=false ;;
   18198   no)  ignore_sim=true ;;
   18199   *)   ignore_sim=false ;;
   18200  esac
   18201 else
   18202   ignore_sim=false
   18203 fi
   18204 
   18205 
   18206 if test ! -d "${srcdir}/../sim"; then
   18207   ignore_sim=true
   18208 fi
   18209 
   18210 SIM=
   18211 SIM_OBS=
   18212 if test "${ignore_sim}" = "false"; then
   18213   if test x"${gdb_sim}" != x ; then
   18214     SIM="${gdb_sim}"
   18215     SIM_OBS="remote-sim.o"
   18216 
   18217 $as_echo "#define WITH_SIM 1" >>confdefs.h
   18218 
   18219 
   18220     # Some tdep code should only be compiled in when the ppc sim is
   18221     # built.  PR sim/13418.
   18222     case $target in
   18223       powerpc*-*-*)
   18224 
   18225 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
   18226 
   18227 	;;
   18228     esac
   18229   fi
   18230 fi
   18231 
   18232 
   18233 
   18234 
   18235 
   18236 
   18237 
   18238 
   18239 
   18240 
   18241 
   18242 
   18243 
   18244 
   18245 # List of host floatformats.
   18246 
   18247 cat >>confdefs.h <<_ACEOF
   18248 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
   18249 _ACEOF
   18250 
   18251 
   18252 cat >>confdefs.h <<_ACEOF
   18253 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
   18254 _ACEOF
   18255 
   18256 
   18257 cat >>confdefs.h <<_ACEOF
   18258 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
   18259 _ACEOF
   18260 
   18261 
   18262 # target_subdir is used by the testsuite to find the target libraries.
   18263 target_subdir=
   18264 if test "${host}" != "${target}"; then
   18265     target_subdir="${target_alias}/"
   18266 fi
   18267 
   18268 
   18269 # Import nat definitions.
   18270 nat_makefile_frag=/dev/null
   18271 if test "${gdb_native}" = "yes"; then
   18272   . ${srcdir}/configure.nat
   18273   nativefile=$NAT_FILE
   18274 fi
   18275 
   18276 
   18277 
   18278 
   18279 
   18280 
   18281 
   18282 
   18283 
   18284 
   18285 
   18286 if test x"${gdb_osabi}" != x ; then
   18287 
   18288 cat >>confdefs.h <<_ACEOF
   18289 #define GDB_OSABI_DEFAULT $gdb_osabi
   18290 _ACEOF
   18291 
   18292 fi
   18293 
   18294 # Check for babeltrace and babeltrace-ctf
   18295 
   18296 # Check whether --with-babeltrace was given.
   18297 if test "${with_babeltrace+set}" = set; then :
   18298   withval=$with_babeltrace;
   18299 else
   18300   with_babeltrace=auto
   18301 fi
   18302 
   18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
   18304 $as_echo_n "checking whether to use babeltrace... " >&6; }
   18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
   18306 $as_echo "$with_babeltrace" >&6; }
   18307 
   18308 if test "x$with_babeltrace" = "xno"; then
   18309   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
   18310 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
   18311 else
   18312   # Append -Werror to CFLAGS so that configure can catch the warning
   18313   # "assignment from incompatible pointer type", which is related to
   18314   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
   18315   # in GDB, while babeltrace 1.0.3 is broken.
   18316   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
   18317   # safe to save and restore CFLAGS here.
   18318   saved_CFLAGS=$CFLAGS
   18319   CFLAGS="$CFLAGS -Werror"
   18320 
   18321 
   18322 
   18323 
   18324 
   18325 
   18326 
   18327 
   18328     use_additional=yes
   18329 
   18330   acl_save_prefix="$prefix"
   18331   prefix="$acl_final_prefix"
   18332   acl_save_exec_prefix="$exec_prefix"
   18333   exec_prefix="$acl_final_exec_prefix"
   18334 
   18335     eval additional_includedir=\"$includedir\"
   18336     eval additional_libdir=\"$libdir\"
   18337 
   18338   exec_prefix="$acl_save_exec_prefix"
   18339   prefix="$acl_save_prefix"
   18340 
   18341 
   18342 # Check whether --with-libbabeltrace-prefix was given.
   18343 if test "${with_libbabeltrace_prefix+set}" = set; then :
   18344   withval=$with_libbabeltrace_prefix;
   18345     if test "X$withval" = "Xno"; then
   18346       use_additional=no
   18347     else
   18348       if test "X$withval" = "X"; then
   18349 
   18350   acl_save_prefix="$prefix"
   18351   prefix="$acl_final_prefix"
   18352   acl_save_exec_prefix="$exec_prefix"
   18353   exec_prefix="$acl_final_exec_prefix"
   18354 
   18355           eval additional_includedir=\"$includedir\"
   18356           eval additional_libdir=\"$libdir\"
   18357 
   18358   exec_prefix="$acl_save_exec_prefix"
   18359   prefix="$acl_save_prefix"
   18360 
   18361       else
   18362         additional_includedir="$withval/include"
   18363         additional_libdir="$withval/lib"
   18364       fi
   18365     fi
   18366 
   18367 fi
   18368 
   18369 
   18370 # Check whether --with-libbabeltrace-type was given.
   18371 if test "${with_libbabeltrace_type+set}" = set; then :
   18372   withval=$with_libbabeltrace_type;  with_libbabeltrace_type=$withval
   18373 else
   18374    with_libbabeltrace_type=auto
   18375 fi
   18376 
   18377   lib_type=`eval echo \$with_libbabeltrace_type`
   18378 
   18379       LIBBABELTRACE=
   18380   LTLIBBABELTRACE=
   18381   INCBABELTRACE=
   18382   rpathdirs=
   18383   ltrpathdirs=
   18384   names_already_handled=
   18385   names_next_round='babeltrace babeltrace-ctf'
   18386   while test -n "$names_next_round"; do
   18387     names_this_round="$names_next_round"
   18388     names_next_round=
   18389     for name in $names_this_round; do
   18390       already_handled=
   18391       for n in $names_already_handled; do
   18392         if test "$n" = "$name"; then
   18393           already_handled=yes
   18394           break
   18395         fi
   18396       done
   18397       if test -z "$already_handled"; then
   18398         names_already_handled="$names_already_handled $name"
   18399                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   18400         eval value=\"\$HAVE_LIB$uppername\"
   18401         if test -n "$value"; then
   18402           if test "$value" = yes; then
   18403             eval value=\"\$LIB$uppername\"
   18404             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
   18405             eval value=\"\$LTLIB$uppername\"
   18406             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
   18407           else
   18408                                     :
   18409           fi
   18410         else
   18411                               found_dir=
   18412           found_la=
   18413           found_so=
   18414           found_a=
   18415           if test $use_additional = yes; then
   18416             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   18417               found_dir="$additional_libdir"
   18418               found_so="$additional_libdir/lib$name.$shlibext"
   18419               if test -f "$additional_libdir/lib$name.la"; then
   18420                 found_la="$additional_libdir/lib$name.la"
   18421               fi
   18422             elif test x$lib_type != xshared; then
   18423               if test -f "$additional_libdir/lib$name.$libext"; then
   18424                 found_dir="$additional_libdir"
   18425                 found_a="$additional_libdir/lib$name.$libext"
   18426                 if test -f "$additional_libdir/lib$name.la"; then
   18427                   found_la="$additional_libdir/lib$name.la"
   18428                 fi
   18429               fi
   18430             fi
   18431           fi
   18432           if test "X$found_dir" = "X"; then
   18433             for x in $LDFLAGS $LTLIBBABELTRACE; do
   18434 
   18435   acl_save_prefix="$prefix"
   18436   prefix="$acl_final_prefix"
   18437   acl_save_exec_prefix="$exec_prefix"
   18438   exec_prefix="$acl_final_exec_prefix"
   18439   eval x=\"$x\"
   18440   exec_prefix="$acl_save_exec_prefix"
   18441   prefix="$acl_save_prefix"
   18442 
   18443               case "$x" in
   18444                 -L*)
   18445                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   18446                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   18447                     found_dir="$dir"
   18448                     found_so="$dir/lib$name.$shlibext"
   18449                     if test -f "$dir/lib$name.la"; then
   18450                       found_la="$dir/lib$name.la"
   18451                     fi
   18452                   elif test x$lib_type != xshared; then
   18453                     if test -f "$dir/lib$name.$libext"; then
   18454                       found_dir="$dir"
   18455                       found_a="$dir/lib$name.$libext"
   18456                       if test -f "$dir/lib$name.la"; then
   18457                         found_la="$dir/lib$name.la"
   18458                       fi
   18459                     fi
   18460                   fi
   18461                   ;;
   18462               esac
   18463               if test "X$found_dir" != "X"; then
   18464                 break
   18465               fi
   18466             done
   18467           fi
   18468           if test "X$found_dir" != "X"; then
   18469                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
   18470             if test "X$found_so" != "X"; then
   18471                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   18472                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   18473               else
   18474                                                                                 haveit=
   18475                 for x in $ltrpathdirs; do
   18476                   if test "X$x" = "X$found_dir"; then
   18477                     haveit=yes
   18478                     break
   18479                   fi
   18480                 done
   18481                 if test -z "$haveit"; then
   18482                   ltrpathdirs="$ltrpathdirs $found_dir"
   18483                 fi
   18484                                 if test "$hardcode_direct" = yes; then
   18485                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   18486                 else
   18487                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   18488                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   18489                                                             haveit=
   18490                     for x in $rpathdirs; do
   18491                       if test "X$x" = "X$found_dir"; then
   18492                         haveit=yes
   18493                         break
   18494                       fi
   18495                     done
   18496                     if test -z "$haveit"; then
   18497                       rpathdirs="$rpathdirs $found_dir"
   18498                     fi
   18499                   else
   18500                                                                                 haveit=
   18501                     for x in $LDFLAGS $LIBBABELTRACE; do
   18502 
   18503   acl_save_prefix="$prefix"
   18504   prefix="$acl_final_prefix"
   18505   acl_save_exec_prefix="$exec_prefix"
   18506   exec_prefix="$acl_final_exec_prefix"
   18507   eval x=\"$x\"
   18508   exec_prefix="$acl_save_exec_prefix"
   18509   prefix="$acl_save_prefix"
   18510 
   18511                       if test "X$x" = "X-L$found_dir"; then
   18512                         haveit=yes
   18513                         break
   18514                       fi
   18515                     done
   18516                     if test -z "$haveit"; then
   18517                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
   18518                     fi
   18519                     if test "$hardcode_minus_L" != no; then
   18520                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   18521                     else
   18522                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   18523                     fi
   18524                   fi
   18525                 fi
   18526               fi
   18527             else
   18528               if test "X$found_a" != "X"; then
   18529                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
   18530               else
   18531                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
   18532               fi
   18533             fi
   18534                         additional_includedir=
   18535             case "$found_dir" in
   18536               */lib | */lib/)
   18537                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   18538                 additional_includedir="$basedir/include"
   18539                 ;;
   18540             esac
   18541             if test "X$additional_includedir" != "X"; then
   18542                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   18543                 haveit=
   18544                 if test "X$additional_includedir" = "X/usr/local/include"; then
   18545                   if test -n "$GCC"; then
   18546                     case $host_os in
   18547                       linux*) haveit=yes;;
   18548                     esac
   18549                   fi
   18550                 fi
   18551                 if test -z "$haveit"; then
   18552                   for x in $CPPFLAGS $INCBABELTRACE; do
   18553 
   18554   acl_save_prefix="$prefix"
   18555   prefix="$acl_final_prefix"
   18556   acl_save_exec_prefix="$exec_prefix"
   18557   exec_prefix="$acl_final_exec_prefix"
   18558   eval x=\"$x\"
   18559   exec_prefix="$acl_save_exec_prefix"
   18560   prefix="$acl_save_prefix"
   18561 
   18562                     if test "X$x" = "X-I$additional_includedir"; then
   18563                       haveit=yes
   18564                       break
   18565                     fi
   18566                   done
   18567                   if test -z "$haveit"; then
   18568                     if test -d "$additional_includedir"; then
   18569                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
   18570                     fi
   18571                   fi
   18572                 fi
   18573               fi
   18574             fi
   18575                         if test -n "$found_la"; then
   18576                                                         save_libdir="$libdir"
   18577               case "$found_la" in
   18578                 */* | *\\*) . "$found_la" ;;
   18579                 *) . "./$found_la" ;;
   18580               esac
   18581               libdir="$save_libdir"
   18582                             for dep in $dependency_libs; do
   18583                 case "$dep" in
   18584                   -L*)
   18585                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   18586                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   18587                       haveit=
   18588                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   18589                         if test -n "$GCC"; then
   18590                           case $host_os in
   18591                             linux*) haveit=yes;;
   18592                           esac
   18593                         fi
   18594                       fi
   18595                       if test -z "$haveit"; then
   18596                         haveit=
   18597                         for x in $LDFLAGS $LIBBABELTRACE; do
   18598 
   18599   acl_save_prefix="$prefix"
   18600   prefix="$acl_final_prefix"
   18601   acl_save_exec_prefix="$exec_prefix"
   18602   exec_prefix="$acl_final_exec_prefix"
   18603   eval x=\"$x\"
   18604   exec_prefix="$acl_save_exec_prefix"
   18605   prefix="$acl_save_prefix"
   18606 
   18607                           if test "X$x" = "X-L$additional_libdir"; then
   18608                             haveit=yes
   18609                             break
   18610                           fi
   18611                         done
   18612                         if test -z "$haveit"; then
   18613                           if test -d "$additional_libdir"; then
   18614                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
   18615                           fi
   18616                         fi
   18617                         haveit=
   18618                         for x in $LDFLAGS $LTLIBBABELTRACE; do
   18619 
   18620   acl_save_prefix="$prefix"
   18621   prefix="$acl_final_prefix"
   18622   acl_save_exec_prefix="$exec_prefix"
   18623   exec_prefix="$acl_final_exec_prefix"
   18624   eval x=\"$x\"
   18625   exec_prefix="$acl_save_exec_prefix"
   18626   prefix="$acl_save_prefix"
   18627 
   18628                           if test "X$x" = "X-L$additional_libdir"; then
   18629                             haveit=yes
   18630                             break
   18631                           fi
   18632                         done
   18633                         if test -z "$haveit"; then
   18634                           if test -d "$additional_libdir"; then
   18635                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
   18636                           fi
   18637                         fi
   18638                       fi
   18639                     fi
   18640                     ;;
   18641                   -R*)
   18642                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   18643                     if test "$enable_rpath" != no; then
   18644                                                                   haveit=
   18645                       for x in $rpathdirs; do
   18646                         if test "X$x" = "X$dir"; then
   18647                           haveit=yes
   18648                           break
   18649                         fi
   18650                       done
   18651                       if test -z "$haveit"; then
   18652                         rpathdirs="$rpathdirs $dir"
   18653                       fi
   18654                                                                   haveit=
   18655                       for x in $ltrpathdirs; do
   18656                         if test "X$x" = "X$dir"; then
   18657                           haveit=yes
   18658                           break
   18659                         fi
   18660                       done
   18661                       if test -z "$haveit"; then
   18662                         ltrpathdirs="$ltrpathdirs $dir"
   18663                       fi
   18664                     fi
   18665                     ;;
   18666                   -l*)
   18667                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   18668                     ;;
   18669                   *.la)
   18670                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   18671                     ;;
   18672                   *)
   18673                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
   18674                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
   18675                     ;;
   18676                 esac
   18677               done
   18678             fi
   18679           else
   18680                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   18681               LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   18682               LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
   18683             else
   18684               LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l:lib$name.$libext"
   18685               LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l:lib$name.$libext"
   18686             fi
   18687           fi
   18688         fi
   18689       fi
   18690     done
   18691   done
   18692   if test "X$rpathdirs" != "X"; then
   18693     if test -n "$hardcode_libdir_separator"; then
   18694                         alldirs=
   18695       for found_dir in $rpathdirs; do
   18696         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   18697       done
   18698             acl_save_libdir="$libdir"
   18699       libdir="$alldirs"
   18700       eval flag=\"$hardcode_libdir_flag_spec\"
   18701       libdir="$acl_save_libdir"
   18702       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   18703     else
   18704             for found_dir in $rpathdirs; do
   18705         acl_save_libdir="$libdir"
   18706         libdir="$found_dir"
   18707         eval flag=\"$hardcode_libdir_flag_spec\"
   18708         libdir="$acl_save_libdir"
   18709         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   18710       done
   18711     fi
   18712   fi
   18713   if test "X$ltrpathdirs" != "X"; then
   18714             for found_dir in $ltrpathdirs; do
   18715       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
   18716     done
   18717   fi
   18718 
   18719 
   18720         ac_save_CPPFLAGS="$CPPFLAGS"
   18721 
   18722   for element in $INCBABELTRACE; do
   18723     haveit=
   18724     for x in $CPPFLAGS; do
   18725 
   18726   acl_save_prefix="$prefix"
   18727   prefix="$acl_final_prefix"
   18728   acl_save_exec_prefix="$exec_prefix"
   18729   exec_prefix="$acl_final_exec_prefix"
   18730   eval x=\"$x\"
   18731   exec_prefix="$acl_save_exec_prefix"
   18732   prefix="$acl_save_prefix"
   18733 
   18734       if test "X$x" = "X$element"; then
   18735         haveit=yes
   18736         break
   18737       fi
   18738     done
   18739     if test -z "$haveit"; then
   18740       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   18741     fi
   18742   done
   18743 
   18744 
   18745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
   18746 $as_echo_n "checking for libbabeltrace... " >&6; }
   18747 if ${ac_cv_libbabeltrace+:} false; then :
   18748   $as_echo_n "(cached) " >&6
   18749 else
   18750 
   18751     ac_save_LIBS="$LIBS"
   18752     LIBS="$LIBS $LIBBABELTRACE"
   18753     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   18754 /* end confdefs.h.  */
   18755 #include <babeltrace/babeltrace.h>
   18756 			 #include <babeltrace/ctf/events.h>
   18757 			 #include <babeltrace/ctf/iterator.h>
   18758 int
   18759 main ()
   18760 {
   18761 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
   18762 			struct bt_ctf_event *event = NULL;
   18763 			const struct bt_definition *scope;
   18764 
   18765 			pos->type = BT_SEEK_BEGIN;
   18766 			bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
   18767 			scope = bt_ctf_get_top_level_scope (event,
   18768 			      				   BT_STREAM_EVENT_HEADER);
   18769 		        bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
   18770 
   18771   ;
   18772   return 0;
   18773 }
   18774 _ACEOF
   18775 if ac_fn_c_try_link "$LINENO"; then :
   18776   ac_cv_libbabeltrace=yes
   18777 else
   18778   ac_cv_libbabeltrace=no
   18779 fi
   18780 rm -f core conftest.err conftest.$ac_objext \
   18781     conftest$ac_exeext conftest.$ac_ext
   18782     LIBS="$ac_save_LIBS"
   18783 
   18784 fi
   18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
   18786 $as_echo "$ac_cv_libbabeltrace" >&6; }
   18787   if test "$ac_cv_libbabeltrace" = yes; then
   18788     HAVE_LIBBABELTRACE=yes
   18789 
   18790 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
   18791 
   18792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
   18793 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
   18794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
   18795 $as_echo "$LIBBABELTRACE" >&6; }
   18796   else
   18797     HAVE_LIBBABELTRACE=no
   18798             CPPFLAGS="$ac_save_CPPFLAGS"
   18799     LIBBABELTRACE=
   18800     LTLIBBABELTRACE=
   18801   fi
   18802 
   18803 
   18804 
   18805 
   18806 
   18807 
   18808   CFLAGS=$saved_CFLAGS
   18809 
   18810   if test "$HAVE_LIBBABELTRACE" != yes; then
   18811      if test "$with_babeltrace" = yes; then
   18812        as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
   18813      else
   18814        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
   18815 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
   18816      fi
   18817   fi
   18818 fi
   18819 
   18820 # Check for xxhash
   18821 
   18822 # Check whether --with-xxhash was given.
   18823 if test "${with_xxhash+set}" = set; then :
   18824   withval=$with_xxhash;
   18825 else
   18826   with_xxhash=auto
   18827 fi
   18828 
   18829 
   18830  # Check whether --enable-libctf was given.
   18831 if test "${enable_libctf+set}" = set; then :
   18832   enableval=$enable_libctf;
   18833       case "$enableval" in
   18834        yes|no) ;;
   18835        *) as_fn_error $? "Argument to enable/disable libctf must be yes or no" "$LINENO" 5 ;;
   18836       esac
   18837 
   18838 else
   18839   enable_libctf=yes
   18840 fi
   18841 
   18842 
   18843 if test x${enable_static} = xno; then
   18844   LIBCTF="-Wl,--rpath,../libctf/.libs ../libctf/.libs/libctf.so"
   18845   CTF_DEPS="../libctf/.libs/libctf.so"
   18846 else
   18847   LIBCTF="../libctf/.libs/libctf.a"
   18848   CTF_DEPS="$LIBCTF"
   18849 fi
   18850 if test "${enable_libctf}" = yes; then
   18851 
   18852 $as_echo "#define ENABLE_LIBCTF 1" >>confdefs.h
   18853 
   18854 else
   18855   LIBCTF=
   18856   CTF_DEPS=
   18857 fi
   18858 
   18859 
   18860 
   18861 
   18862 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
   18863 # empty version.
   18864 
   18865 if test "x$with_xxhash" != "xno"; then
   18866 
   18867 
   18868 
   18869 
   18870 
   18871 
   18872 
   18873 
   18874     use_additional=yes
   18875 
   18876   acl_save_prefix="$prefix"
   18877   prefix="$acl_final_prefix"
   18878   acl_save_exec_prefix="$exec_prefix"
   18879   exec_prefix="$acl_final_exec_prefix"
   18880 
   18881     eval additional_includedir=\"$includedir\"
   18882     eval additional_libdir=\"$libdir\"
   18883 
   18884   exec_prefix="$acl_save_exec_prefix"
   18885   prefix="$acl_save_prefix"
   18886 
   18887 
   18888 # Check whether --with-libxxhash-prefix was given.
   18889 if test "${with_libxxhash_prefix+set}" = set; then :
   18890   withval=$with_libxxhash_prefix;
   18891     if test "X$withval" = "Xno"; then
   18892       use_additional=no
   18893     else
   18894       if test "X$withval" = "X"; then
   18895 
   18896   acl_save_prefix="$prefix"
   18897   prefix="$acl_final_prefix"
   18898   acl_save_exec_prefix="$exec_prefix"
   18899   exec_prefix="$acl_final_exec_prefix"
   18900 
   18901           eval additional_includedir=\"$includedir\"
   18902           eval additional_libdir=\"$libdir\"
   18903 
   18904   exec_prefix="$acl_save_exec_prefix"
   18905   prefix="$acl_save_prefix"
   18906 
   18907       else
   18908         additional_includedir="$withval/include"
   18909         additional_libdir="$withval/lib"
   18910       fi
   18911     fi
   18912 
   18913 fi
   18914 
   18915 
   18916 # Check whether --with-libxxhash-type was given.
   18917 if test "${with_libxxhash_type+set}" = set; then :
   18918   withval=$with_libxxhash_type;  with_libxxhash_type=$withval
   18919 else
   18920    with_libxxhash_type=auto
   18921 fi
   18922 
   18923   lib_type=`eval echo \$with_libxxhash_type`
   18924 
   18925       LIBXXHASH=
   18926   LTLIBXXHASH=
   18927   INCXXHASH=
   18928   rpathdirs=
   18929   ltrpathdirs=
   18930   names_already_handled=
   18931   names_next_round='xxhash '
   18932   while test -n "$names_next_round"; do
   18933     names_this_round="$names_next_round"
   18934     names_next_round=
   18935     for name in $names_this_round; do
   18936       already_handled=
   18937       for n in $names_already_handled; do
   18938         if test "$n" = "$name"; then
   18939           already_handled=yes
   18940           break
   18941         fi
   18942       done
   18943       if test -z "$already_handled"; then
   18944         names_already_handled="$names_already_handled $name"
   18945                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   18946         eval value=\"\$HAVE_LIB$uppername\"
   18947         if test -n "$value"; then
   18948           if test "$value" = yes; then
   18949             eval value=\"\$LIB$uppername\"
   18950             test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
   18951             eval value=\"\$LTLIB$uppername\"
   18952             test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
   18953           else
   18954                                     :
   18955           fi
   18956         else
   18957                               found_dir=
   18958           found_la=
   18959           found_so=
   18960           found_a=
   18961           if test $use_additional = yes; then
   18962             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   18963               found_dir="$additional_libdir"
   18964               found_so="$additional_libdir/lib$name.$shlibext"
   18965               if test -f "$additional_libdir/lib$name.la"; then
   18966                 found_la="$additional_libdir/lib$name.la"
   18967               fi
   18968             elif test x$lib_type != xshared; then
   18969               if test -f "$additional_libdir/lib$name.$libext"; then
   18970                 found_dir="$additional_libdir"
   18971                 found_a="$additional_libdir/lib$name.$libext"
   18972                 if test -f "$additional_libdir/lib$name.la"; then
   18973                   found_la="$additional_libdir/lib$name.la"
   18974                 fi
   18975               fi
   18976             fi
   18977           fi
   18978           if test "X$found_dir" = "X"; then
   18979             for x in $LDFLAGS $LTLIBXXHASH; do
   18980 
   18981   acl_save_prefix="$prefix"
   18982   prefix="$acl_final_prefix"
   18983   acl_save_exec_prefix="$exec_prefix"
   18984   exec_prefix="$acl_final_exec_prefix"
   18985   eval x=\"$x\"
   18986   exec_prefix="$acl_save_exec_prefix"
   18987   prefix="$acl_save_prefix"
   18988 
   18989               case "$x" in
   18990                 -L*)
   18991                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   18992                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   18993                     found_dir="$dir"
   18994                     found_so="$dir/lib$name.$shlibext"
   18995                     if test -f "$dir/lib$name.la"; then
   18996                       found_la="$dir/lib$name.la"
   18997                     fi
   18998                   elif test x$lib_type != xshared; then
   18999                     if test -f "$dir/lib$name.$libext"; then
   19000                       found_dir="$dir"
   19001                       found_a="$dir/lib$name.$libext"
   19002                       if test -f "$dir/lib$name.la"; then
   19003                         found_la="$dir/lib$name.la"
   19004                       fi
   19005                     fi
   19006                   fi
   19007                   ;;
   19008               esac
   19009               if test "X$found_dir" != "X"; then
   19010                 break
   19011               fi
   19012             done
   19013           fi
   19014           if test "X$found_dir" != "X"; then
   19015                         LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
   19016             if test "X$found_so" != "X"; then
   19017                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   19018                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
   19019               else
   19020                                                                                 haveit=
   19021                 for x in $ltrpathdirs; do
   19022                   if test "X$x" = "X$found_dir"; then
   19023                     haveit=yes
   19024                     break
   19025                   fi
   19026                 done
   19027                 if test -z "$haveit"; then
   19028                   ltrpathdirs="$ltrpathdirs $found_dir"
   19029                 fi
   19030                                 if test "$hardcode_direct" = yes; then
   19031                                                       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
   19032                 else
   19033                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   19034                                                             LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
   19035                                                             haveit=
   19036                     for x in $rpathdirs; do
   19037                       if test "X$x" = "X$found_dir"; then
   19038                         haveit=yes
   19039                         break
   19040                       fi
   19041                     done
   19042                     if test -z "$haveit"; then
   19043                       rpathdirs="$rpathdirs $found_dir"
   19044                     fi
   19045                   else
   19046                                                                                 haveit=
   19047                     for x in $LDFLAGS $LIBXXHASH; do
   19048 
   19049   acl_save_prefix="$prefix"
   19050   prefix="$acl_final_prefix"
   19051   acl_save_exec_prefix="$exec_prefix"
   19052   exec_prefix="$acl_final_exec_prefix"
   19053   eval x=\"$x\"
   19054   exec_prefix="$acl_save_exec_prefix"
   19055   prefix="$acl_save_prefix"
   19056 
   19057                       if test "X$x" = "X-L$found_dir"; then
   19058                         haveit=yes
   19059                         break
   19060                       fi
   19061                     done
   19062                     if test -z "$haveit"; then
   19063                       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
   19064                     fi
   19065                     if test "$hardcode_minus_L" != no; then
   19066                                                                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
   19067                     else
   19068                                                                                                                                                                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
   19069                     fi
   19070                   fi
   19071                 fi
   19072               fi
   19073             else
   19074               if test "X$found_a" != "X"; then
   19075                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
   19076               else
   19077                                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
   19078               fi
   19079             fi
   19080                         additional_includedir=
   19081             case "$found_dir" in
   19082               */lib | */lib/)
   19083                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   19084                 additional_includedir="$basedir/include"
   19085                 ;;
   19086             esac
   19087             if test "X$additional_includedir" != "X"; then
   19088                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   19089                 haveit=
   19090                 if test "X$additional_includedir" = "X/usr/local/include"; then
   19091                   if test -n "$GCC"; then
   19092                     case $host_os in
   19093                       linux*) haveit=yes;;
   19094                     esac
   19095                   fi
   19096                 fi
   19097                 if test -z "$haveit"; then
   19098                   for x in $CPPFLAGS $INCXXHASH; do
   19099 
   19100   acl_save_prefix="$prefix"
   19101   prefix="$acl_final_prefix"
   19102   acl_save_exec_prefix="$exec_prefix"
   19103   exec_prefix="$acl_final_exec_prefix"
   19104   eval x=\"$x\"
   19105   exec_prefix="$acl_save_exec_prefix"
   19106   prefix="$acl_save_prefix"
   19107 
   19108                     if test "X$x" = "X-I$additional_includedir"; then
   19109                       haveit=yes
   19110                       break
   19111                     fi
   19112                   done
   19113                   if test -z "$haveit"; then
   19114                     if test -d "$additional_includedir"; then
   19115                                             INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
   19116                     fi
   19117                   fi
   19118                 fi
   19119               fi
   19120             fi
   19121                         if test -n "$found_la"; then
   19122                                                         save_libdir="$libdir"
   19123               case "$found_la" in
   19124                 */* | *\\*) . "$found_la" ;;
   19125                 *) . "./$found_la" ;;
   19126               esac
   19127               libdir="$save_libdir"
   19128                             for dep in $dependency_libs; do
   19129                 case "$dep" in
   19130                   -L*)
   19131                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   19132                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   19133                       haveit=
   19134                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   19135                         if test -n "$GCC"; then
   19136                           case $host_os in
   19137                             linux*) haveit=yes;;
   19138                           esac
   19139                         fi
   19140                       fi
   19141                       if test -z "$haveit"; then
   19142                         haveit=
   19143                         for x in $LDFLAGS $LIBXXHASH; do
   19144 
   19145   acl_save_prefix="$prefix"
   19146   prefix="$acl_final_prefix"
   19147   acl_save_exec_prefix="$exec_prefix"
   19148   exec_prefix="$acl_final_exec_prefix"
   19149   eval x=\"$x\"
   19150   exec_prefix="$acl_save_exec_prefix"
   19151   prefix="$acl_save_prefix"
   19152 
   19153                           if test "X$x" = "X-L$additional_libdir"; then
   19154                             haveit=yes
   19155                             break
   19156                           fi
   19157                         done
   19158                         if test -z "$haveit"; then
   19159                           if test -d "$additional_libdir"; then
   19160                                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
   19161                           fi
   19162                         fi
   19163                         haveit=
   19164                         for x in $LDFLAGS $LTLIBXXHASH; do
   19165 
   19166   acl_save_prefix="$prefix"
   19167   prefix="$acl_final_prefix"
   19168   acl_save_exec_prefix="$exec_prefix"
   19169   exec_prefix="$acl_final_exec_prefix"
   19170   eval x=\"$x\"
   19171   exec_prefix="$acl_save_exec_prefix"
   19172   prefix="$acl_save_prefix"
   19173 
   19174                           if test "X$x" = "X-L$additional_libdir"; then
   19175                             haveit=yes
   19176                             break
   19177                           fi
   19178                         done
   19179                         if test -z "$haveit"; then
   19180                           if test -d "$additional_libdir"; then
   19181                                                         LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
   19182                           fi
   19183                         fi
   19184                       fi
   19185                     fi
   19186                     ;;
   19187                   -R*)
   19188                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   19189                     if test "$enable_rpath" != no; then
   19190                                                                   haveit=
   19191                       for x in $rpathdirs; do
   19192                         if test "X$x" = "X$dir"; then
   19193                           haveit=yes
   19194                           break
   19195                         fi
   19196                       done
   19197                       if test -z "$haveit"; then
   19198                         rpathdirs="$rpathdirs $dir"
   19199                       fi
   19200                                                                   haveit=
   19201                       for x in $ltrpathdirs; do
   19202                         if test "X$x" = "X$dir"; then
   19203                           haveit=yes
   19204                           break
   19205                         fi
   19206                       done
   19207                       if test -z "$haveit"; then
   19208                         ltrpathdirs="$ltrpathdirs $dir"
   19209                       fi
   19210                     fi
   19211                     ;;
   19212                   -l*)
   19213                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   19214                     ;;
   19215                   *.la)
   19216                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   19217                     ;;
   19218                   *)
   19219                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
   19220                     LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
   19221                     ;;
   19222                 esac
   19223               done
   19224             fi
   19225           else
   19226                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   19227               LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
   19228               LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
   19229             else
   19230               LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
   19231               LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
   19232             fi
   19233           fi
   19234         fi
   19235       fi
   19236     done
   19237   done
   19238   if test "X$rpathdirs" != "X"; then
   19239     if test -n "$hardcode_libdir_separator"; then
   19240                         alldirs=
   19241       for found_dir in $rpathdirs; do
   19242         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   19243       done
   19244             acl_save_libdir="$libdir"
   19245       libdir="$alldirs"
   19246       eval flag=\"$hardcode_libdir_flag_spec\"
   19247       libdir="$acl_save_libdir"
   19248       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
   19249     else
   19250             for found_dir in $rpathdirs; do
   19251         acl_save_libdir="$libdir"
   19252         libdir="$found_dir"
   19253         eval flag=\"$hardcode_libdir_flag_spec\"
   19254         libdir="$acl_save_libdir"
   19255         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
   19256       done
   19257     fi
   19258   fi
   19259   if test "X$ltrpathdirs" != "X"; then
   19260             for found_dir in $ltrpathdirs; do
   19261       LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
   19262     done
   19263   fi
   19264 
   19265 
   19266         ac_save_CPPFLAGS="$CPPFLAGS"
   19267 
   19268   for element in $INCXXHASH; do
   19269     haveit=
   19270     for x in $CPPFLAGS; do
   19271 
   19272   acl_save_prefix="$prefix"
   19273   prefix="$acl_final_prefix"
   19274   acl_save_exec_prefix="$exec_prefix"
   19275   exec_prefix="$acl_final_exec_prefix"
   19276   eval x=\"$x\"
   19277   exec_prefix="$acl_save_exec_prefix"
   19278   prefix="$acl_save_prefix"
   19279 
   19280       if test "X$x" = "X$element"; then
   19281         haveit=yes
   19282         break
   19283       fi
   19284     done
   19285     if test -z "$haveit"; then
   19286       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   19287     fi
   19288   done
   19289 
   19290 
   19291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
   19292 $as_echo_n "checking for libxxhash... " >&6; }
   19293 if ${ac_cv_libxxhash+:} false; then :
   19294   $as_echo_n "(cached) " >&6
   19295 else
   19296 
   19297     ac_save_LIBS="$LIBS"
   19298     LIBS="$LIBS $LIBXXHASH"
   19299     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   19300 /* end confdefs.h.  */
   19301 #include <xxhash.h>
   19302 int
   19303 main ()
   19304 {
   19305 XXH32("foo", 3, 0);
   19306 
   19307   ;
   19308   return 0;
   19309 }
   19310 _ACEOF
   19311 if ac_fn_c_try_link "$LINENO"; then :
   19312   ac_cv_libxxhash=yes
   19313 else
   19314   ac_cv_libxxhash=no
   19315 fi
   19316 rm -f core conftest.err conftest.$ac_objext \
   19317     conftest$ac_exeext conftest.$ac_ext
   19318     LIBS="$ac_save_LIBS"
   19319 
   19320 fi
   19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
   19322 $as_echo "$ac_cv_libxxhash" >&6; }
   19323   if test "$ac_cv_libxxhash" = yes; then
   19324     HAVE_LIBXXHASH=yes
   19325 
   19326 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
   19327 
   19328     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
   19329 $as_echo_n "checking how to link with libxxhash... " >&6; }
   19330     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
   19331 $as_echo "$LIBXXHASH" >&6; }
   19332   else
   19333     HAVE_LIBXXHASH=no
   19334             CPPFLAGS="$ac_save_CPPFLAGS"
   19335     LIBXXHASH=
   19336     LTLIBXXHASH=
   19337   fi
   19338 
   19339 
   19340 
   19341 
   19342 
   19343 
   19344   if test "$HAVE_LIBXXHASH" != yes; then
   19345     if test "$with_xxhash" = yes; then
   19346       as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
   19347     fi
   19348   fi
   19349   if test "x$with_xxhash" = "xauto"; then
   19350     with_xxhash="$HAVE_LIBXXHASH"
   19351   fi
   19352 fi
   19353 
   19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
   19355 $as_echo_n "checking whether to use xxhash... " >&6; }
   19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
   19357 $as_echo "$with_xxhash" >&6; }
   19358 
   19359 NM_H=
   19360 rm -f nm.h
   19361 if test "${nativefile}" != ""; then
   19362     case "${nativefile}" in
   19363       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
   19364       * ) GDB_NM_FILE="${nativefile}"
   19365     esac
   19366     ac_config_links="$ac_config_links nm.h:$GDB_NM_FILE"
   19367 
   19368 
   19369 cat >>confdefs.h <<_ACEOF
   19370 #define GDB_NM_FILE "${GDB_NM_FILE}"
   19371 _ACEOF
   19372 
   19373     NM_H=nm.h
   19374 fi
   19375 
   19376 
   19377 
   19378 for ac_prog in xsltproc
   19379 do
   19380   # Extract the first word of "$ac_prog", so it can be a program name with args.
   19381 set dummy $ac_prog; ac_word=$2
   19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   19383 $as_echo_n "checking for $ac_word... " >&6; }
   19384 if ${ac_cv_path_XSLTPROC+:} false; then :
   19385   $as_echo_n "(cached) " >&6
   19386 else
   19387   case $XSLTPROC in
   19388   [\\/]* | ?:[\\/]*)
   19389   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
   19390   ;;
   19391   *)
   19392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19393 for as_dir in $PATH
   19394 do
   19395   IFS=$as_save_IFS
   19396   test -z "$as_dir" && as_dir=.
   19397     for ac_exec_ext in '' $ac_executable_extensions; do
   19398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   19399     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
   19400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   19401     break 2
   19402   fi
   19403 done
   19404   done
   19405 IFS=$as_save_IFS
   19406 
   19407   ;;
   19408 esac
   19409 fi
   19410 XSLTPROC=$ac_cv_path_XSLTPROC
   19411 if test -n "$XSLTPROC"; then
   19412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
   19413 $as_echo "$XSLTPROC" >&6; }
   19414 else
   19415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   19416 $as_echo "no" >&6; }
   19417 fi
   19418 
   19419 
   19420   test -n "$XSLTPROC" && break
   19421 done
   19422 test -n "$XSLTPROC" || XSLTPROC="missing"
   19423 
   19424 if test "x$USE_MAINTAINER_MODE" = xyes; then
   19425   if test "${XSLTPROC}" = missing; then
   19426     as_fn_error $? "unable to find xsltproc.  maintainer-mode requires xsltproc." "$LINENO" 5
   19427   fi
   19428 fi
   19429 
   19430 
   19431 
   19432 
   19433 
   19434 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
   19435 
   19436 
   19437 
   19438 # Check whether we will enable the inclusion of unit tests when
   19439 # compiling GDB.
   19440 #
   19441 # The default value of this option changes depending whether we're on
   19442 # development mode (in which case it's "true") or not (in which case
   19443 # it's "false").  The $development variable is set by the GDB_AC_COMMON
   19444 # macro, which must therefore be used before GDB_AC_SELFTEST.
   19445 
   19446 if test "x$development" != xtrue && test "x$development" != xfalse; then :
   19447   as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
   19448 fi
   19449 
   19450 # Check whether --enable-unit-tests was given.
   19451 if test "${enable_unit_tests+set}" = set; then :
   19452   enableval=$enable_unit_tests; case "${enableval}" in
   19453   yes)  enable_unittests=true  ;;
   19454   no)   enable_unittests=false ;;
   19455   *)    as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
   19456 esac
   19457 else
   19458   enable_unittests=$development
   19459 fi
   19460 
   19461 
   19462 if $enable_unittests; then
   19463 
   19464 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
   19465 
   19466 
   19467   CONFIG_OBS="$CONFIG_OBS \$(SELFTESTS_OBS)"
   19468   CONFIG_SRCS="$CONFIG_SRCS \$(SELFTESTS_SRCS)"
   19469 
   19470 fi
   19471 
   19472 
   19473 
   19474   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
   19475   GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
   19476   if test "x$GDB_TRANSFORM_NAME" = x; then
   19477      GDB_TRANSFORM_NAME=gdb
   19478   fi
   19479 
   19480 
   19481 
   19482   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
   19483   GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
   19484   if test "x$GCORE_TRANSFORM_NAME" = x; then
   19485      GCORE_TRANSFORM_NAME=gcore
   19486   fi
   19487 
   19488 
   19489 ac_config_files="$ac_config_files gcore"
   19490 
   19491 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
   19492 
   19493 
   19494 cat >confcache <<\_ACEOF
   19495 # This file is a shell script that caches the results of configure
   19496 # tests run on this system so they can be shared between configure
   19497 # scripts and configure runs, see configure's option --config-cache.
   19498 # It is not useful on other systems.  If it contains results you don't
   19499 # want to keep, you may remove or edit it.
   19500 #
   19501 # config.status only pays attention to the cache file if you give it
   19502 # the --recheck option to rerun configure.
   19503 #
   19504 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   19505 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   19506 # following values.
   19507 
   19508 _ACEOF
   19509 
   19510 # The following way of writing the cache mishandles newlines in values,
   19511 # but we know of no workaround that is simple, portable, and efficient.
   19512 # So, we kill variables containing newlines.
   19513 # Ultrix sh set writes to stderr and can't be redirected directly,
   19514 # and sets the high bit in the cache file unless we assign to the vars.
   19515 (
   19516   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   19517     eval ac_val=\$$ac_var
   19518     case $ac_val in #(
   19519     *${as_nl}*)
   19520       case $ac_var in #(
   19521       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   19522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   19523       esac
   19524       case $ac_var in #(
   19525       _ | IFS | as_nl) ;; #(
   19526       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   19527       *) { eval $ac_var=; unset $ac_var;} ;;
   19528       esac ;;
   19529     esac
   19530   done
   19531 
   19532   (set) 2>&1 |
   19533     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   19534     *${as_nl}ac_space=\ *)
   19535       # `set' does not quote correctly, so add quotes: double-quote
   19536       # substitution turns \\\\ into \\, and sed turns \\ into \.
   19537       sed -n \
   19538 	"s/'/'\\\\''/g;
   19539 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   19540       ;; #(
   19541     *)
   19542       # `set' quotes correctly as required by POSIX, so do not add quotes.
   19543       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   19544       ;;
   19545     esac |
   19546     sort
   19547 ) |
   19548   sed '
   19549      /^ac_cv_env_/b end
   19550      t clear
   19551      :clear
   19552      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   19553      t end
   19554      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   19555      :end' >>confcache
   19556 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   19557   if test -w "$cache_file"; then
   19558     if test "x$cache_file" != "x/dev/null"; then
   19559       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   19560 $as_echo "$as_me: updating cache $cache_file" >&6;}
   19561       if test ! -f "$cache_file" || test -h "$cache_file"; then
   19562 	cat confcache >"$cache_file"
   19563       else
   19564         case $cache_file in #(
   19565         */* | ?:*)
   19566 	  mv -f confcache "$cache_file"$$ &&
   19567 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   19568         *)
   19569 	  mv -f confcache "$cache_file" ;;
   19570 	esac
   19571       fi
   19572     fi
   19573   else
   19574     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   19575 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   19576   fi
   19577 fi
   19578 rm -f confcache
   19579 
   19580 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   19581 # Let make expand exec_prefix.
   19582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   19583 
   19584 DEFS=-DHAVE_CONFIG_H
   19585 
   19586 ac_libobjs=
   19587 ac_ltlibobjs=
   19588 U=
   19589 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   19590   # 1. Remove the extension, and $U if already installed.
   19591   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   19592   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   19593   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   19594   #    will be set to the directory where LIBOBJS objects are built.
   19595   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   19596   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   19597 done
   19598 LIBOBJS=$ac_libobjs
   19599 
   19600 LTLIBOBJS=$ac_ltlibobjs
   19601 
   19602 
   19603 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   19604   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   19605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19606 fi
   19607 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
   19608   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
   19609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19610 fi
   19611 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
   19612   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
   19613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   19614 fi
   19615 
   19616 
   19617 : "${CONFIG_STATUS=./config.status}"
   19618 ac_write_fail=0
   19619 ac_clean_files_save=$ac_clean_files
   19620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   19621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   19622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   19623 as_write_fail=0
   19624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   19625 #! $SHELL
   19626 # Generated by $as_me.
   19627 # Run this file to recreate the current configuration.
   19628 # Compiler output produced by configure, useful for debugging
   19629 # configure, is in config.log if it exists.
   19630 
   19631 debug=false
   19632 ac_cs_recheck=false
   19633 ac_cs_silent=false
   19634 
   19635 SHELL=\${CONFIG_SHELL-$SHELL}
   19636 export SHELL
   19637 _ASEOF
   19638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   19639 ## -------------------- ##
   19640 ## M4sh Initialization. ##
   19641 ## -------------------- ##
   19642 
   19643 # Be more Bourne compatible
   19644 DUALCASE=1; export DUALCASE # for MKS sh
   19645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   19646   emulate sh
   19647   NULLCMD=:
   19648   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   19649   # is contrary to our usage.  Disable this feature.
   19650   alias -g '${1+"$@"}'='"$@"'
   19651   setopt NO_GLOB_SUBST
   19652 else
   19653   case `(set -o) 2>/dev/null` in #(
   19654   *posix*) :
   19655     set -o posix ;; #(
   19656   *) :
   19657      ;;
   19658 esac
   19659 fi
   19660 
   19661 
   19662 as_nl='
   19663 '
   19664 export as_nl
   19665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   19666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   19667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   19668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   19669 # Prefer a ksh shell builtin over an external printf program on Solaris,
   19670 # but without wasting forks for bash or zsh.
   19671 if test -z "$BASH_VERSION$ZSH_VERSION" \
   19672     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   19673   as_echo='print -r --'
   19674   as_echo_n='print -rn --'
   19675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   19676   as_echo='printf %s\n'
   19677   as_echo_n='printf %s'
   19678 else
   19679   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   19680     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   19681     as_echo_n='/usr/ucb/echo -n'
   19682   else
   19683     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   19684     as_echo_n_body='eval
   19685       arg=$1;
   19686       case $arg in #(
   19687       *"$as_nl"*)
   19688 	expr "X$arg" : "X\\(.*\\)$as_nl";
   19689 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   19690       esac;
   19691       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   19692     '
   19693     export as_echo_n_body
   19694     as_echo_n='sh -c $as_echo_n_body as_echo'
   19695   fi
   19696   export as_echo_body
   19697   as_echo='sh -c $as_echo_body as_echo'
   19698 fi
   19699 
   19700 # The user is always right.
   19701 if test "${PATH_SEPARATOR+set}" != set; then
   19702   PATH_SEPARATOR=:
   19703   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   19704     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   19705       PATH_SEPARATOR=';'
   19706   }
   19707 fi
   19708 
   19709 
   19710 # IFS
   19711 # We need space, tab and new line, in precisely that order.  Quoting is
   19712 # there to prevent editors from complaining about space-tab.
   19713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   19714 # splitting by setting IFS to empty value.)
   19715 IFS=" ""	$as_nl"
   19716 
   19717 # Find who we are.  Look in the path if we contain no directory separator.
   19718 as_myself=
   19719 case $0 in #((
   19720   *[\\/]* ) as_myself=$0 ;;
   19721   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   19722 for as_dir in $PATH
   19723 do
   19724   IFS=$as_save_IFS
   19725   test -z "$as_dir" && as_dir=.
   19726     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   19727   done
   19728 IFS=$as_save_IFS
   19729 
   19730      ;;
   19731 esac
   19732 # We did not find ourselves, most probably we were run as `sh COMMAND'
   19733 # in which case we are not to be found in the path.
   19734 if test "x$as_myself" = x; then
   19735   as_myself=$0
   19736 fi
   19737 if test ! -f "$as_myself"; then
   19738   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   19739   exit 1
   19740 fi
   19741 
   19742 # Unset variables that we do not need and which cause bugs (e.g. in
   19743 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   19744 # suppresses any "Segmentation fault" message there.  '((' could
   19745 # trigger a bug in pdksh 5.2.14.
   19746 for as_var in BASH_ENV ENV MAIL MAILPATH
   19747 do eval test x\${$as_var+set} = xset \
   19748   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   19749 done
   19750 PS1='$ '
   19751 PS2='> '
   19752 PS4='+ '
   19753 
   19754 # NLS nuisances.
   19755 LC_ALL=C
   19756 export LC_ALL
   19757 LANGUAGE=C
   19758 export LANGUAGE
   19759 
   19760 # CDPATH.
   19761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   19762 
   19763 
   19764 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   19765 # ----------------------------------------
   19766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   19767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   19768 # script with STATUS, using 1 if that was 0.
   19769 as_fn_error ()
   19770 {
   19771   as_status=$1; test $as_status -eq 0 && as_status=1
   19772   if test "$4"; then
   19773     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   19774     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   19775   fi
   19776   $as_echo "$as_me: error: $2" >&2
   19777   as_fn_exit $as_status
   19778 } # as_fn_error
   19779 
   19780 
   19781 # as_fn_set_status STATUS
   19782 # -----------------------
   19783 # Set $? to STATUS, without forking.
   19784 as_fn_set_status ()
   19785 {
   19786   return $1
   19787 } # as_fn_set_status
   19788 
   19789 # as_fn_exit STATUS
   19790 # -----------------
   19791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   19792 as_fn_exit ()
   19793 {
   19794   set +e
   19795   as_fn_set_status $1
   19796   exit $1
   19797 } # as_fn_exit
   19798 
   19799 # as_fn_unset VAR
   19800 # ---------------
   19801 # Portably unset VAR.
   19802 as_fn_unset ()
   19803 {
   19804   { eval $1=; unset $1;}
   19805 }
   19806 as_unset=as_fn_unset
   19807 # as_fn_append VAR VALUE
   19808 # ----------------------
   19809 # Append the text in VALUE to the end of the definition contained in VAR. Take
   19810 # advantage of any shell optimizations that allow amortized linear growth over
   19811 # repeated appends, instead of the typical quadratic growth present in naive
   19812 # implementations.
   19813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   19814   eval 'as_fn_append ()
   19815   {
   19816     eval $1+=\$2
   19817   }'
   19818 else
   19819   as_fn_append ()
   19820   {
   19821     eval $1=\$$1\$2
   19822   }
   19823 fi # as_fn_append
   19824 
   19825 # as_fn_arith ARG...
   19826 # ------------------
   19827 # Perform arithmetic evaluation on the ARGs, and store the result in the
   19828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   19829 # must be portable across $(()) and expr.
   19830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   19831   eval 'as_fn_arith ()
   19832   {
   19833     as_val=$(( $* ))
   19834   }'
   19835 else
   19836   as_fn_arith ()
   19837   {
   19838     as_val=`expr "$@" || test $? -eq 1`
   19839   }
   19840 fi # as_fn_arith
   19841 
   19842 
   19843 if expr a : '\(a\)' >/dev/null 2>&1 &&
   19844    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   19845   as_expr=expr
   19846 else
   19847   as_expr=false
   19848 fi
   19849 
   19850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   19851   as_basename=basename
   19852 else
   19853   as_basename=false
   19854 fi
   19855 
   19856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   19857   as_dirname=dirname
   19858 else
   19859   as_dirname=false
   19860 fi
   19861 
   19862 as_me=`$as_basename -- "$0" ||
   19863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   19864 	 X"$0" : 'X\(//\)$' \| \
   19865 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   19866 $as_echo X/"$0" |
   19867     sed '/^.*\/\([^/][^/]*\)\/*$/{
   19868 	    s//\1/
   19869 	    q
   19870 	  }
   19871 	  /^X\/\(\/\/\)$/{
   19872 	    s//\1/
   19873 	    q
   19874 	  }
   19875 	  /^X\/\(\/\).*/{
   19876 	    s//\1/
   19877 	    q
   19878 	  }
   19879 	  s/.*/./; q'`
   19880 
   19881 # Avoid depending upon Character Ranges.
   19882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   19883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   19884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   19885 as_cr_digits='0123456789'
   19886 as_cr_alnum=$as_cr_Letters$as_cr_digits
   19887 
   19888 ECHO_C= ECHO_N= ECHO_T=
   19889 case `echo -n x` in #(((((
   19890 -n*)
   19891   case `echo 'xy\c'` in
   19892   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   19893   xy)  ECHO_C='\c';;
   19894   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   19895        ECHO_T='	';;
   19896   esac;;
   19897 *)
   19898   ECHO_N='-n';;
   19899 esac
   19900 
   19901 rm -f conf$$ conf$$.exe conf$$.file
   19902 if test -d conf$$.dir; then
   19903   rm -f conf$$.dir/conf$$.file
   19904 else
   19905   rm -f conf$$.dir
   19906   mkdir conf$$.dir 2>/dev/null
   19907 fi
   19908 if (echo >conf$$.file) 2>/dev/null; then
   19909   if ln -s conf$$.file conf$$ 2>/dev/null; then
   19910     as_ln_s='ln -s'
   19911     # ... but there are two gotchas:
   19912     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   19913     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   19914     # In both cases, we have to default to `cp -pR'.
   19915     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   19916       as_ln_s='cp -pR'
   19917   elif ln conf$$.file conf$$ 2>/dev/null; then
   19918     as_ln_s=ln
   19919   else
   19920     as_ln_s='cp -pR'
   19921   fi
   19922 else
   19923   as_ln_s='cp -pR'
   19924 fi
   19925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   19926 rmdir conf$$.dir 2>/dev/null
   19927 
   19928 
   19929 # as_fn_mkdir_p
   19930 # -------------
   19931 # Create "$as_dir" as a directory, including parents if necessary.
   19932 as_fn_mkdir_p ()
   19933 {
   19934 
   19935   case $as_dir in #(
   19936   -*) as_dir=./$as_dir;;
   19937   esac
   19938   test -d "$as_dir" || eval $as_mkdir_p || {
   19939     as_dirs=
   19940     while :; do
   19941       case $as_dir in #(
   19942       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   19943       *) as_qdir=$as_dir;;
   19944       esac
   19945       as_dirs="'$as_qdir' $as_dirs"
   19946       as_dir=`$as_dirname -- "$as_dir" ||
   19947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   19948 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   19949 	 X"$as_dir" : 'X\(//\)$' \| \
   19950 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   19951 $as_echo X"$as_dir" |
   19952     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   19953 	    s//\1/
   19954 	    q
   19955 	  }
   19956 	  /^X\(\/\/\)[^/].*/{
   19957 	    s//\1/
   19958 	    q
   19959 	  }
   19960 	  /^X\(\/\/\)$/{
   19961 	    s//\1/
   19962 	    q
   19963 	  }
   19964 	  /^X\(\/\).*/{
   19965 	    s//\1/
   19966 	    q
   19967 	  }
   19968 	  s/.*/./; q'`
   19969       test -d "$as_dir" && break
   19970     done
   19971     test -z "$as_dirs" || eval "mkdir $as_dirs"
   19972   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   19973 
   19974 
   19975 } # as_fn_mkdir_p
   19976 if mkdir -p . 2>/dev/null; then
   19977   as_mkdir_p='mkdir -p "$as_dir"'
   19978 else
   19979   test -d ./-p && rmdir ./-p
   19980   as_mkdir_p=false
   19981 fi
   19982 
   19983 
   19984 # as_fn_executable_p FILE
   19985 # -----------------------
   19986 # Test if FILE is an executable regular file.
   19987 as_fn_executable_p ()
   19988 {
   19989   test -f "$1" && test -x "$1"
   19990 } # as_fn_executable_p
   19991 as_test_x='test -x'
   19992 as_executable_p=as_fn_executable_p
   19993 
   19994 # Sed expression to map a string onto a valid CPP name.
   19995 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   19996 
   19997 # Sed expression to map a string onto a valid variable name.
   19998 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   19999 
   20000 
   20001 exec 6>&1
   20002 ## ----------------------------------- ##
   20003 ## Main body of $CONFIG_STATUS script. ##
   20004 ## ----------------------------------- ##
   20005 _ASEOF
   20006 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   20007 
   20008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20009 # Save the log message, to keep $0 and so on meaningful, and to
   20010 # report actual input values of CONFIG_FILES etc. instead of their
   20011 # values after options handling.
   20012 ac_log="
   20013 This file was extended by $as_me, which was
   20014 generated by GNU Autoconf 2.69.  Invocation command line was
   20015 
   20016   CONFIG_FILES    = $CONFIG_FILES
   20017   CONFIG_HEADERS  = $CONFIG_HEADERS
   20018   CONFIG_LINKS    = $CONFIG_LINKS
   20019   CONFIG_COMMANDS = $CONFIG_COMMANDS
   20020   $ $0 $@
   20021 
   20022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   20023 "
   20024 
   20025 _ACEOF
   20026 
   20027 case $ac_config_files in *"
   20028 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   20029 esac
   20030 
   20031 case $ac_config_headers in *"
   20032 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   20033 esac
   20034 
   20035 
   20036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20037 # Files that config.status was made for.
   20038 config_files="$ac_config_files"
   20039 config_headers="$ac_config_headers"
   20040 config_links="$ac_config_links"
   20041 config_commands="$ac_config_commands"
   20042 
   20043 _ACEOF
   20044 
   20045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20046 ac_cs_usage="\
   20047 \`$as_me' instantiates files and other configuration actions
   20048 from templates according to the current configuration.  Unless the files
   20049 and actions are specified as TAGs, all are instantiated by default.
   20050 
   20051 Usage: $0 [OPTION]... [TAG]...
   20052 
   20053   -h, --help       print this help, then exit
   20054   -V, --version    print version number and configuration settings, then exit
   20055       --config     print configuration, then exit
   20056   -q, --quiet, --silent
   20057                    do not print progress messages
   20058   -d, --debug      don't remove temporary files
   20059       --recheck    update $as_me by reconfiguring in the same conditions
   20060       --file=FILE[:TEMPLATE]
   20061                    instantiate the configuration file FILE
   20062       --header=FILE[:TEMPLATE]
   20063                    instantiate the configuration header FILE
   20064 
   20065 Configuration files:
   20066 $config_files
   20067 
   20068 Configuration headers:
   20069 $config_headers
   20070 
   20071 Configuration links:
   20072 $config_links
   20073 
   20074 Configuration commands:
   20075 $config_commands
   20076 
   20077 Report bugs to the package provider."
   20078 
   20079 _ACEOF
   20080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20081 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   20082 ac_cs_version="\\
   20083 config.status
   20084 configured by $0, generated by GNU Autoconf 2.69,
   20085   with options \\"\$ac_cs_config\\"
   20086 
   20087 Copyright (C) 2012 Free Software Foundation, Inc.
   20088 This config.status script is free software; the Free Software Foundation
   20089 gives unlimited permission to copy, distribute and modify it."
   20090 
   20091 ac_pwd='$ac_pwd'
   20092 srcdir='$srcdir'
   20093 INSTALL='$INSTALL'
   20094 AWK='$AWK'
   20095 test -n "\$AWK" || AWK=awk
   20096 _ACEOF
   20097 
   20098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20099 # The default lists apply if the user does not specify any file.
   20100 ac_need_defaults=:
   20101 while test $# != 0
   20102 do
   20103   case $1 in
   20104   --*=?*)
   20105     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   20106     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   20107     ac_shift=:
   20108     ;;
   20109   --*=)
   20110     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   20111     ac_optarg=
   20112     ac_shift=:
   20113     ;;
   20114   *)
   20115     ac_option=$1
   20116     ac_optarg=$2
   20117     ac_shift=shift
   20118     ;;
   20119   esac
   20120 
   20121   case $ac_option in
   20122   # Handling of the options.
   20123   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   20124     ac_cs_recheck=: ;;
   20125   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   20126     $as_echo "$ac_cs_version"; exit ;;
   20127   --config | --confi | --conf | --con | --co | --c )
   20128     $as_echo "$ac_cs_config"; exit ;;
   20129   --debug | --debu | --deb | --de | --d | -d )
   20130     debug=: ;;
   20131   --file | --fil | --fi | --f )
   20132     $ac_shift
   20133     case $ac_optarg in
   20134     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20135     '') as_fn_error $? "missing file argument" ;;
   20136     esac
   20137     as_fn_append CONFIG_FILES " '$ac_optarg'"
   20138     ac_need_defaults=false;;
   20139   --header | --heade | --head | --hea )
   20140     $ac_shift
   20141     case $ac_optarg in
   20142     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20143     esac
   20144     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   20145     ac_need_defaults=false;;
   20146   --he | --h)
   20147     # Conflict between --help and --header
   20148     as_fn_error $? "ambiguous option: \`$1'
   20149 Try \`$0 --help' for more information.";;
   20150   --help | --hel | -h )
   20151     $as_echo "$ac_cs_usage"; exit ;;
   20152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   20153   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   20154     ac_cs_silent=: ;;
   20155 
   20156   # This is an error.
   20157   -*) as_fn_error $? "unrecognized option: \`$1'
   20158 Try \`$0 --help' for more information." ;;
   20159 
   20160   *) as_fn_append ac_config_targets " $1"
   20161      ac_need_defaults=false ;;
   20162 
   20163   esac
   20164   shift
   20165 done
   20166 
   20167 ac_configure_extra_args=
   20168 
   20169 if $ac_cs_silent; then
   20170   exec 6>/dev/null
   20171   ac_configure_extra_args="$ac_configure_extra_args --silent"
   20172 fi
   20173 
   20174 _ACEOF
   20175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20176 if \$ac_cs_recheck; then
   20177   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   20178   shift
   20179   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   20180   CONFIG_SHELL='$SHELL'
   20181   export CONFIG_SHELL
   20182   exec "\$@"
   20183 fi
   20184 
   20185 _ACEOF
   20186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20187 exec 5>>config.log
   20188 {
   20189   echo
   20190   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   20191 ## Running $as_me. ##
   20192 _ASBOX
   20193   $as_echo "$ac_log"
   20194 } >&5
   20195 
   20196 _ACEOF
   20197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20198 #
   20199 # INIT-COMMANDS
   20200 #
   20201 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
   20202 GDB_NM_FILE=$GDB_NM_FILE
   20203 
   20204 _ACEOF
   20205 
   20206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20207 
   20208 # Handling of arguments.
   20209 for ac_config_target in $ac_config_targets
   20210 do
   20211   case $ac_config_target in
   20212     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
   20213     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
   20214     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
   20215     "nm.h") CONFIG_LINKS="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
   20216     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
   20217     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   20218     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
   20219     "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
   20220     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   20221     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
   20222 
   20223   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   20224   esac
   20225 done
   20226 
   20227 
   20228 # If the user did not use the arguments to specify the items to instantiate,
   20229 # then the envvar interface is used.  Set only those that are not.
   20230 # We use the long form for the default assignment because of an extremely
   20231 # bizarre bug on SunOS 4.1.3.
   20232 if $ac_need_defaults; then
   20233   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   20234   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   20235   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
   20236   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   20237 fi
   20238 
   20239 # Have a temporary directory for convenience.  Make it in the build tree
   20240 # simply because there is no reason against having it here, and in addition,
   20241 # creating and moving files from /tmp can sometimes cause problems.
   20242 # Hook for its removal unless debugging.
   20243 # Note that there is a small window in which the directory will not be cleaned:
   20244 # after its creation but before its name has been assigned to `$tmp'.
   20245 $debug ||
   20246 {
   20247   tmp= ac_tmp=
   20248   trap 'exit_status=$?
   20249   : "${ac_tmp:=$tmp}"
   20250   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   20251 ' 0
   20252   trap 'as_fn_exit 1' 1 2 13 15
   20253 }
   20254 # Create a (secure) tmp directory for tmp files.
   20255 
   20256 {
   20257   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   20258   test -d "$tmp"
   20259 }  ||
   20260 {
   20261   tmp=./conf$$-$RANDOM
   20262   (umask 077 && mkdir "$tmp")
   20263 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   20264 ac_tmp=$tmp
   20265 
   20266 # Set up the scripts for CONFIG_FILES section.
   20267 # No need to generate them if there are no CONFIG_FILES.
   20268 # This happens for instance with `./config.status config.h'.
   20269 if test -n "$CONFIG_FILES"; then
   20270 
   20271 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   20272   ac_cs_awk_getline=:
   20273   ac_cs_awk_pipe_init=
   20274   ac_cs_awk_read_file='
   20275       while ((getline aline < (F[key])) > 0)
   20276 	print(aline)
   20277       close(F[key])'
   20278   ac_cs_awk_pipe_fini=
   20279 else
   20280   ac_cs_awk_getline=false
   20281   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   20282   ac_cs_awk_read_file='
   20283       print "|#_!!_#|"
   20284       print "cat " F[key] " &&"
   20285       '$ac_cs_awk_pipe_init
   20286   # The final `:' finishes the AND list.
   20287   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   20288 fi
   20289 ac_cr=`echo X | tr X '\015'`
   20290 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   20291 # But we know of no other shell where ac_cr would be empty at this
   20292 # point, so we can use a bashism as a fallback.
   20293 if test "x$ac_cr" = x; then
   20294   eval ac_cr=\$\'\\r\'
   20295 fi
   20296 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   20297 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   20298   ac_cs_awk_cr='\\r'
   20299 else
   20300   ac_cs_awk_cr=$ac_cr
   20301 fi
   20302 
   20303 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   20304 _ACEOF
   20305 
   20306 # Create commands to substitute file output variables.
   20307 {
   20308   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   20309   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
   20310   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   20311   echo "_ACAWK" &&
   20312   echo "_ACEOF"
   20313 } >conf$$files.sh &&
   20314 . ./conf$$files.sh ||
   20315   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20316 rm -f conf$$files.sh
   20317 
   20318 {
   20319   echo "cat >conf$$subs.awk <<_ACEOF" &&
   20320   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   20321   echo "_ACEOF"
   20322 } >conf$$subs.sh ||
   20323   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20324 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   20325 ac_delim='%!_!# '
   20326 for ac_last_try in false false false false false :; do
   20327   . ./conf$$subs.sh ||
   20328     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20329 
   20330   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   20331   if test $ac_delim_n = $ac_delim_num; then
   20332     break
   20333   elif $ac_last_try; then
   20334     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   20335   else
   20336     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   20337   fi
   20338 done
   20339 rm -f conf$$subs.sh
   20340 
   20341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20342 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   20343 _ACEOF
   20344 sed -n '
   20345 h
   20346 s/^/S["/; s/!.*/"]=/
   20347 p
   20348 g
   20349 s/^[^!]*!//
   20350 :repl
   20351 t repl
   20352 s/'"$ac_delim"'$//
   20353 t delim
   20354 :nl
   20355 h
   20356 s/\(.\{148\}\)..*/\1/
   20357 t more1
   20358 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   20359 p
   20360 n
   20361 b repl
   20362 :more1
   20363 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   20364 p
   20365 g
   20366 s/.\{148\}//
   20367 t nl
   20368 :delim
   20369 h
   20370 s/\(.\{148\}\)..*/\1/
   20371 t more2
   20372 s/["\\]/\\&/g; s/^/"/; s/$/"/
   20373 p
   20374 b
   20375 :more2
   20376 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   20377 p
   20378 g
   20379 s/.\{148\}//
   20380 t delim
   20381 ' <conf$$subs.awk | sed '
   20382 /^[^""]/{
   20383   N
   20384   s/\n//
   20385 }
   20386 ' >>$CONFIG_STATUS || ac_write_fail=1
   20387 rm -f conf$$subs.awk
   20388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20389 _ACAWK
   20390 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   20391   for (key in S) S_is_set[key] = 1
   20392   FS = ""
   20393   \$ac_cs_awk_pipe_init
   20394 }
   20395 {
   20396   line = $ 0
   20397   nfields = split(line, field, "@")
   20398   substed = 0
   20399   len = length(field[1])
   20400   for (i = 2; i < nfields; i++) {
   20401     key = field[i]
   20402     keylen = length(key)
   20403     if (S_is_set[key]) {
   20404       value = S[key]
   20405       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   20406       len += length(value) + length(field[++i])
   20407       substed = 1
   20408     } else
   20409       len += 1 + keylen
   20410   }
   20411   if (nfields == 3 && !substed) {
   20412     key = field[2]
   20413     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   20414       \$ac_cs_awk_read_file
   20415       next
   20416     }
   20417   }
   20418   print line
   20419 }
   20420 \$ac_cs_awk_pipe_fini
   20421 _ACAWK
   20422 _ACEOF
   20423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20424 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   20425   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   20426 else
   20427   cat
   20428 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   20429   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   20430 _ACEOF
   20431 
   20432 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   20433 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   20434 # trailing colons and then remove the whole line if VPATH becomes empty
   20435 # (actually we leave an empty line to preserve line numbers).
   20436 if test "x$srcdir" = x.; then
   20437   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   20438 h
   20439 s///
   20440 s/^/:/
   20441 s/[	 ]*$/:/
   20442 s/:\$(srcdir):/:/g
   20443 s/:\${srcdir}:/:/g
   20444 s/:@srcdir@:/:/g
   20445 s/^:*//
   20446 s/:*$//
   20447 x
   20448 s/\(=[	 ]*\).*/\1/
   20449 G
   20450 s/\n//
   20451 s/^[^=]*=[	 ]*$//
   20452 }'
   20453 fi
   20454 
   20455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20456 fi # test -n "$CONFIG_FILES"
   20457 
   20458 # Set up the scripts for CONFIG_HEADERS section.
   20459 # No need to generate them if there are no CONFIG_HEADERS.
   20460 # This happens for instance with `./config.status Makefile'.
   20461 if test -n "$CONFIG_HEADERS"; then
   20462 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   20463 BEGIN {
   20464 _ACEOF
   20465 
   20466 # Transform confdefs.h into an awk script `defines.awk', embedded as
   20467 # here-document in config.status, that substitutes the proper values into
   20468 # config.h.in to produce config.h.
   20469 
   20470 # Create a delimiter string that does not exist in confdefs.h, to ease
   20471 # handling of long lines.
   20472 ac_delim='%!_!# '
   20473 for ac_last_try in false false :; do
   20474   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   20475   if test -z "$ac_tt"; then
   20476     break
   20477   elif $ac_last_try; then
   20478     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   20479   else
   20480     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   20481   fi
   20482 done
   20483 
   20484 # For the awk script, D is an array of macro values keyed by name,
   20485 # likewise P contains macro parameters if any.  Preserve backslash
   20486 # newline sequences.
   20487 
   20488 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   20489 sed -n '
   20490 s/.\{148\}/&'"$ac_delim"'/g
   20491 t rset
   20492 :rset
   20493 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   20494 t def
   20495 d
   20496 :def
   20497 s/\\$//
   20498 t bsnl
   20499 s/["\\]/\\&/g
   20500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   20501 D["\1"]=" \3"/p
   20502 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   20503 d
   20504 :bsnl
   20505 s/["\\]/\\&/g
   20506 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   20507 D["\1"]=" \3\\\\\\n"\\/p
   20508 t cont
   20509 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   20510 t cont
   20511 d
   20512 :cont
   20513 n
   20514 s/.\{148\}/&'"$ac_delim"'/g
   20515 t clear
   20516 :clear
   20517 s/\\$//
   20518 t bsnlc
   20519 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   20520 d
   20521 :bsnlc
   20522 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   20523 b cont
   20524 ' <confdefs.h | sed '
   20525 s/'"$ac_delim"'/"\\\
   20526 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   20527 
   20528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20529   for (key in D) D_is_set[key] = 1
   20530   FS = ""
   20531 }
   20532 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   20533   line = \$ 0
   20534   split(line, arg, " ")
   20535   if (arg[1] == "#") {
   20536     defundef = arg[2]
   20537     mac1 = arg[3]
   20538   } else {
   20539     defundef = substr(arg[1], 2)
   20540     mac1 = arg[2]
   20541   }
   20542   split(mac1, mac2, "(") #)
   20543   macro = mac2[1]
   20544   prefix = substr(line, 1, index(line, defundef) - 1)
   20545   if (D_is_set[macro]) {
   20546     # Preserve the white space surrounding the "#".
   20547     print prefix "define", macro P[macro] D[macro]
   20548     next
   20549   } else {
   20550     # Replace #undef with comments.  This is necessary, for example,
   20551     # in the case of _POSIX_SOURCE, which is predefined and required
   20552     # on some systems where configure will not decide to define it.
   20553     if (defundef == "undef") {
   20554       print "/*", prefix defundef, macro, "*/"
   20555       next
   20556     }
   20557   }
   20558 }
   20559 { print }
   20560 _ACAWK
   20561 _ACEOF
   20562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20563   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   20564 fi # test -n "$CONFIG_HEADERS"
   20565 
   20566 
   20567 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
   20568 shift
   20569 for ac_tag
   20570 do
   20571   case $ac_tag in
   20572   :[FHLC]) ac_mode=$ac_tag; continue;;
   20573   esac
   20574   case $ac_mode$ac_tag in
   20575   :[FHL]*:*);;
   20576   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   20577   :[FH]-) ac_tag=-:-;;
   20578   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   20579   esac
   20580   ac_save_IFS=$IFS
   20581   IFS=:
   20582   set x $ac_tag
   20583   IFS=$ac_save_IFS
   20584   shift
   20585   ac_file=$1
   20586   shift
   20587 
   20588   case $ac_mode in
   20589   :L) ac_source=$1;;
   20590   :[FH])
   20591     ac_file_inputs=
   20592     for ac_f
   20593     do
   20594       case $ac_f in
   20595       -) ac_f="$ac_tmp/stdin";;
   20596       *) # Look for the file first in the build tree, then in the source tree
   20597 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   20598 	 # because $ac_f cannot contain `:'.
   20599 	 test -f "$ac_f" ||
   20600 	   case $ac_f in
   20601 	   [\\/$]*) false;;
   20602 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   20603 	   esac ||
   20604 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   20605       esac
   20606       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   20607       as_fn_append ac_file_inputs " '$ac_f'"
   20608     done
   20609 
   20610     # Let's still pretend it is `configure' which instantiates (i.e., don't
   20611     # use $as_me), people would be surprised to read:
   20612     #    /* config.h.  Generated by config.status.  */
   20613     configure_input='Generated from '`
   20614 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   20615 	`' by configure.'
   20616     if test x"$ac_file" != x-; then
   20617       configure_input="$ac_file.  $configure_input"
   20618       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   20619 $as_echo "$as_me: creating $ac_file" >&6;}
   20620     fi
   20621     # Neutralize special characters interpreted by sed in replacement strings.
   20622     case $configure_input in #(
   20623     *\&* | *\|* | *\\* )
   20624        ac_sed_conf_input=`$as_echo "$configure_input" |
   20625        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   20626     *) ac_sed_conf_input=$configure_input;;
   20627     esac
   20628 
   20629     case $ac_tag in
   20630     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   20631       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   20632     esac
   20633     ;;
   20634   esac
   20635 
   20636   ac_dir=`$as_dirname -- "$ac_file" ||
   20637 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   20638 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   20639 	 X"$ac_file" : 'X\(//\)$' \| \
   20640 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   20641 $as_echo X"$ac_file" |
   20642     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   20643 	    s//\1/
   20644 	    q
   20645 	  }
   20646 	  /^X\(\/\/\)[^/].*/{
   20647 	    s//\1/
   20648 	    q
   20649 	  }
   20650 	  /^X\(\/\/\)$/{
   20651 	    s//\1/
   20652 	    q
   20653 	  }
   20654 	  /^X\(\/\).*/{
   20655 	    s//\1/
   20656 	    q
   20657 	  }
   20658 	  s/.*/./; q'`
   20659   as_dir="$ac_dir"; as_fn_mkdir_p
   20660   ac_builddir=.
   20661 
   20662 case "$ac_dir" in
   20663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20664 *)
   20665   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   20666   # A ".." for each directory in $ac_dir_suffix.
   20667   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   20668   case $ac_top_builddir_sub in
   20669   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20670   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   20671   esac ;;
   20672 esac
   20673 ac_abs_top_builddir=$ac_pwd
   20674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   20675 # for backward compatibility:
   20676 ac_top_builddir=$ac_top_build_prefix
   20677 
   20678 case $srcdir in
   20679   .)  # We are building in place.
   20680     ac_srcdir=.
   20681     ac_top_srcdir=$ac_top_builddir_sub
   20682     ac_abs_top_srcdir=$ac_pwd ;;
   20683   [\\/]* | ?:[\\/]* )  # Absolute name.
   20684     ac_srcdir=$srcdir$ac_dir_suffix;
   20685     ac_top_srcdir=$srcdir
   20686     ac_abs_top_srcdir=$srcdir ;;
   20687   *) # Relative name.
   20688     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   20689     ac_top_srcdir=$ac_top_build_prefix$srcdir
   20690     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   20691 esac
   20692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   20693 
   20694 
   20695   case $ac_mode in
   20696   :F)
   20697   #
   20698   # CONFIG_FILE
   20699   #
   20700 
   20701   case $INSTALL in
   20702   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   20703   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   20704   esac
   20705 _ACEOF
   20706 
   20707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20708 # If the template does not know about datarootdir, expand it.
   20709 # FIXME: This hack should be removed a few years after 2.60.
   20710 ac_datarootdir_hack=; ac_datarootdir_seen=
   20711 ac_sed_dataroot='
   20712 /datarootdir/ {
   20713   p
   20714   q
   20715 }
   20716 /@datadir@/p
   20717 /@docdir@/p
   20718 /@infodir@/p
   20719 /@localedir@/p
   20720 /@mandir@/p'
   20721 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   20722 *datarootdir*) ac_datarootdir_seen=yes;;
   20723 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   20724   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   20725 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   20726 _ACEOF
   20727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20728   ac_datarootdir_hack='
   20729   s&@datadir@&$datadir&g
   20730   s&@docdir@&$docdir&g
   20731   s&@infodir@&$infodir&g
   20732   s&@localedir@&$localedir&g
   20733   s&@mandir@&$mandir&g
   20734   s&\\\${datarootdir}&$datarootdir&g' ;;
   20735 esac
   20736 _ACEOF
   20737 
   20738 # Neutralize VPATH when `$srcdir' = `.'.
   20739 # Shell code in configure.ac might set extrasub.
   20740 # FIXME: do we really want to maintain this feature?
   20741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   20742 ac_sed_extra="$ac_vpsub
   20743 $extrasub
   20744 _ACEOF
   20745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   20746 :t
   20747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   20748 s|@configure_input@|$ac_sed_conf_input|;t t
   20749 s&@top_builddir@&$ac_top_builddir_sub&;t t
   20750 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   20751 s&@srcdir@&$ac_srcdir&;t t
   20752 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   20753 s&@top_srcdir@&$ac_top_srcdir&;t t
   20754 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   20755 s&@builddir@&$ac_builddir&;t t
   20756 s&@abs_builddir@&$ac_abs_builddir&;t t
   20757 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   20758 s&@INSTALL@&$ac_INSTALL&;t t
   20759 $ac_datarootdir_hack
   20760 "
   20761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   20762 if $ac_cs_awk_getline; then
   20763   $AWK -f "$ac_tmp/subs.awk"
   20764 else
   20765   $AWK -f "$ac_tmp/subs.awk" | $SHELL
   20766 fi \
   20767   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   20768 
   20769 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   20770   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   20771   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   20772       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   20773   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   20774 which seems to be undefined.  Please make sure it is defined" >&5
   20775 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   20776 which seems to be undefined.  Please make sure it is defined" >&2;}
   20777 
   20778   rm -f "$ac_tmp/stdin"
   20779   case $ac_file in
   20780   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   20781   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   20782   esac \
   20783   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   20784  ;;
   20785   :H)
   20786   #
   20787   # CONFIG_HEADER
   20788   #
   20789   if test x"$ac_file" != x-; then
   20790     {
   20791       $as_echo "/* $configure_input  */" \
   20792       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   20793     } >"$ac_tmp/config.h" \
   20794       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   20795     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   20796       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   20797 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   20798     else
   20799       rm -f "$ac_file"
   20800       mv "$ac_tmp/config.h" "$ac_file" \
   20801 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   20802     fi
   20803   else
   20804     $as_echo "/* $configure_input  */" \
   20805       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   20806       || as_fn_error $? "could not create -" "$LINENO" 5
   20807   fi
   20808  ;;
   20809   :L)
   20810   #
   20811   # CONFIG_LINK
   20812   #
   20813 
   20814   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
   20815     :
   20816   else
   20817     # Prefer the file from the source tree if names are identical.
   20818     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
   20819       ac_source=$srcdir/$ac_source
   20820     fi
   20821 
   20822     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
   20823 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
   20824 
   20825     if test ! -r "$ac_source"; then
   20826       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
   20827     fi
   20828     rm -f "$ac_file"
   20829 
   20830     # Try a relative symlink, then a hard link, then a copy.
   20831     case $ac_source in
   20832     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
   20833 	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
   20834     esac
   20835     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
   20836       ln "$ac_source" "$ac_file" 2>/dev/null ||
   20837       cp -p "$ac_source" "$ac_file" ||
   20838       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
   20839   fi
   20840  ;;
   20841   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   20842 $as_echo "$as_me: executing $ac_file commands" >&6;}
   20843  ;;
   20844   esac
   20845 
   20846 
   20847   case $ac_file$ac_mode in
   20848     "config.h":H) echo > stamp-h ;;
   20849     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
   20850     "nm.h":L) echo > stamp-nmh ;;
   20851     "gcore":F) chmod +x gcore ;;
   20852 
   20853   esac
   20854 done # for ac_tag
   20855 
   20856 
   20857 as_fn_exit 0
   20858 _ACEOF
   20859 ac_clean_files=$ac_clean_files_save
   20860 
   20861 test $ac_write_fail = 0 ||
   20862   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   20863 
   20864 
   20865 # configure is writing to config.log, and then calls config.status.
   20866 # config.status does its own redirection, appending to config.log.
   20867 # Unfortunately, on DOS this fails, as config.log is still kept open
   20868 # by configure, so config.status won't be able to write to it; its
   20869 # output is simply discarded.  So we exec the FD to /dev/null,
   20870 # effectively closing config.log, so it can be properly (re)opened and
   20871 # appended to by config.status.  When coming back to configure, we
   20872 # need to make the FD available again.
   20873 if test "$no_create" != yes; then
   20874   ac_cs_success=:
   20875   ac_config_status_args=
   20876   test "$silent" = yes &&
   20877     ac_config_status_args="$ac_config_status_args --quiet"
   20878   exec 5>/dev/null
   20879   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   20880   exec 5>>config.log
   20881   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   20882   # would make configure fail if this is the last instruction.
   20883   $ac_cs_success || as_fn_exit 1
   20884 fi
   20885 
   20886 #
   20887 # CONFIG_SUBDIRS section.
   20888 #
   20889 if test "$no_recursion" != yes; then
   20890 
   20891   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   20892   # so they do not pile up.
   20893   ac_sub_configure_args=
   20894   ac_prev=
   20895   eval "set x $ac_configure_args"
   20896   shift
   20897   for ac_arg
   20898   do
   20899     if test -n "$ac_prev"; then
   20900       ac_prev=
   20901       continue
   20902     fi
   20903     case $ac_arg in
   20904     -cache-file | --cache-file | --cache-fil | --cache-fi \
   20905     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   20906       ac_prev=cache_file ;;
   20907     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   20908     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   20909     | --c=*)
   20910       ;;
   20911     --config-cache | -C)
   20912       ;;
   20913     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   20914       ac_prev=srcdir ;;
   20915     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   20916       ;;
   20917     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   20918       ac_prev=prefix ;;
   20919     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   20920       ;;
   20921     --disable-option-checking)
   20922       ;;
   20923     *)
   20924       case $ac_arg in
   20925       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20926       esac
   20927       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   20928     esac
   20929   done
   20930 
   20931   # Always prepend --prefix to ensure using the same prefix
   20932   # in subdir configurations.
   20933   ac_arg="--prefix=$prefix"
   20934   case $ac_arg in
   20935   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   20936   esac
   20937   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   20938 
   20939   # Pass --silent
   20940   if test "$silent" = yes; then
   20941     ac_sub_configure_args="--silent $ac_sub_configure_args"
   20942   fi
   20943 
   20944   # Always prepend --disable-option-checking to silence warnings, since
   20945   # different subdirs can have different --enable and --with options.
   20946   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   20947 
   20948   ac_popdir=`pwd`
   20949   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   20950 
   20951     # Do not complain, so a configure script can configure whichever
   20952     # parts of a large source tree are present.
   20953     test -d "$srcdir/$ac_dir" || continue
   20954 
   20955     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   20956     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   20957     $as_echo "$ac_msg" >&6
   20958     as_dir="$ac_dir"; as_fn_mkdir_p
   20959     ac_builddir=.
   20960 
   20961 case "$ac_dir" in
   20962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20963 *)
   20964   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   20965   # A ".." for each directory in $ac_dir_suffix.
   20966   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   20967   case $ac_top_builddir_sub in
   20968   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   20969   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   20970   esac ;;
   20971 esac
   20972 ac_abs_top_builddir=$ac_pwd
   20973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   20974 # for backward compatibility:
   20975 ac_top_builddir=$ac_top_build_prefix
   20976 
   20977 case $srcdir in
   20978   .)  # We are building in place.
   20979     ac_srcdir=.
   20980     ac_top_srcdir=$ac_top_builddir_sub
   20981     ac_abs_top_srcdir=$ac_pwd ;;
   20982   [\\/]* | ?:[\\/]* )  # Absolute name.
   20983     ac_srcdir=$srcdir$ac_dir_suffix;
   20984     ac_top_srcdir=$srcdir
   20985     ac_abs_top_srcdir=$srcdir ;;
   20986   *) # Relative name.
   20987     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   20988     ac_top_srcdir=$ac_top_build_prefix$srcdir
   20989     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   20990 esac
   20991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   20992 
   20993 
   20994     cd "$ac_dir"
   20995 
   20996     # Check for guested configure; otherwise get Cygnus style configure.
   20997     if test -f "$ac_srcdir/configure.gnu"; then
   20998       ac_sub_configure=$ac_srcdir/configure.gnu
   20999     elif test -f "$ac_srcdir/configure"; then
   21000       ac_sub_configure=$ac_srcdir/configure
   21001     elif test -f "$ac_srcdir/configure.in"; then
   21002       # This should be Cygnus configure.
   21003       ac_sub_configure=$ac_aux_dir/configure
   21004     else
   21005       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
   21006 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   21007       ac_sub_configure=
   21008     fi
   21009 
   21010     # The recursion is here.
   21011     if test -n "$ac_sub_configure"; then
   21012       # Make the cache file name correct relative to the subdirectory.
   21013       case $cache_file in
   21014       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   21015       *) # Relative name.
   21016 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   21017       esac
   21018 
   21019       { $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
   21020 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   21021       # The eval makes quoting arguments work.
   21022       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   21023 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   21024 	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   21025     fi
   21026 
   21027     cd "$ac_popdir"
   21028   done
   21029 fi
   21030 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   21031   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   21032 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   21033 fi
   21034 
   21035