Home | History | Annotate | Line # | Download | only in gdbsupport
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.69 for gdbsupport 1.0.
      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='gdbsupport'
    579 PACKAGE_TARNAME='gdbsupport'
    580 PACKAGE_VERSION='1.0'
    581 PACKAGE_STRING='gdbsupport 1.0'
    582 PACKAGE_BUGREPORT=''
    583 PACKAGE_URL=''
    584 
    585 ac_unique_file="common-defs.h"
    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 gt_needs=
    623 ac_header_list=
    624 ac_subst_vars='am__EXEEXT_FALSE
    625 am__EXEEXT_TRUE
    626 LTLIBOBJS
    627 LIBOBJS
    628 CONFIG_STATUS_DEPENDENCIES
    629 WERROR_CFLAGS
    630 WARN_CFLAGS
    631 HAVE_PIPE_OR_PIPE2_FALSE
    632 HAVE_PIPE_OR_PIPE2_TRUE
    633 SELFTEST_FALSE
    634 SELFTEST_TRUE
    635 LTLIBXXHASH
    636 LIBXXHASH
    637 HAVE_LIBXXHASH
    638 LTLIBIPT
    639 LIBIPT
    640 HAVE_LIBIPT
    641 PTHREAD_CFLAGS
    642 PTHREAD_LIBS
    643 PTHREAD_CC
    644 ax_pthread_config
    645 SED
    646 ALLOCA
    647 CATOBJEXT
    648 GENCAT
    649 INSTOBJEXT
    650 DATADIRNAME
    651 CATALOGS
    652 INCINTL
    653 LIBINTL_DEP
    654 POSUB
    655 LTLIBINTL
    656 LIBINTL
    657 INTLLIBS
    658 LTLIBICONV
    659 LIBICONV
    660 INTL_MACOSX_LIBS
    661 MSGMERGE
    662 XGETTEXT
    663 GMSGFMT
    664 MSGFMT
    665 USE_NLS
    666 MKINSTALLDIRS
    667 CXX_DIALECT
    668 HAVE_CXX17
    669 LARGEFILE_CPPFLAGS
    670 EGREP
    671 GREP
    672 CPP
    673 RANLIB
    674 am__fastdepCXX_FALSE
    675 am__fastdepCXX_TRUE
    676 CXXDEPMODE
    677 ac_ct_CXX
    678 CXXFLAGS
    679 CXX
    680 am__fastdepCC_FALSE
    681 am__fastdepCC_TRUE
    682 CCDEPMODE
    683 am__nodep
    684 AMDEPBACKSLASH
    685 AMDEP_FALSE
    686 AMDEP_TRUE
    687 am__quote
    688 am__include
    689 DEPDIR
    690 OBJEXT
    691 EXEEXT
    692 ac_ct_CC
    693 CPPFLAGS
    694 LDFLAGS
    695 CFLAGS
    696 CC
    697 AM_BACKSLASH
    698 AM_DEFAULT_VERBOSITY
    699 AM_DEFAULT_V
    700 AM_V
    701 am__untar
    702 am__tar
    703 AMTAR
    704 am__leading_dot
    705 SET_MAKE
    706 AWK
    707 mkdir_p
    708 MKDIR_P
    709 INSTALL_STRIP_PROGRAM
    710 STRIP
    711 install_sh
    712 MAKEINFO
    713 AUTOHEADER
    714 AUTOMAKE
    715 AUTOCONF
    716 ACLOCAL
    717 VERSION
    718 PACKAGE
    719 CYGPATH_W
    720 am__isrc
    721 INSTALL_DATA
    722 INSTALL_SCRIPT
    723 INSTALL_PROGRAM
    724 MAINT
    725 MAINTAINER_MODE_FALSE
    726 MAINTAINER_MODE_TRUE
    727 target_os
    728 target_vendor
    729 target_cpu
    730 target
    731 host_os
    732 host_vendor
    733 host_cpu
    734 host
    735 build_os
    736 build_vendor
    737 build_cpu
    738 build
    739 target_alias
    740 host_alias
    741 build_alias
    742 LIBS
    743 ECHO_T
    744 ECHO_N
    745 ECHO_C
    746 DEFS
    747 mandir
    748 localedir
    749 libdir
    750 psdir
    751 pdfdir
    752 dvidir
    753 htmldir
    754 infodir
    755 docdir
    756 oldincludedir
    757 includedir
    758 localstatedir
    759 sharedstatedir
    760 sysconfdir
    761 datadir
    762 datarootdir
    763 libexecdir
    764 sbindir
    765 bindir
    766 program_transform_name
    767 prefix
    768 exec_prefix
    769 PACKAGE_URL
    770 PACKAGE_BUGREPORT
    771 PACKAGE_STRING
    772 PACKAGE_VERSION
    773 PACKAGE_TARNAME
    774 PACKAGE_NAME
    775 PATH_SEPARATOR
    776 SHELL'
    777 ac_subst_files=''
    778 ac_user_opts='
    779 enable_option_checking
    780 enable_maintainer_mode
    781 enable_silent_rules
    782 enable_dependency_tracking
    783 enable_plugins
    784 enable_largefile
    785 enable_nls
    786 with_gnu_ld
    787 enable_rpath
    788 with_libiconv_prefix
    789 with_libiconv_type
    790 with_libintl_prefix
    791 with_libintl_type
    792 enable_threading
    793 with_intel_pt
    794 with_libipt_prefix
    795 with_libipt_type
    796 with_xxhash
    797 with_libxxhash_prefix
    798 with_libxxhash_type
    799 enable_unit_tests
    800 enable_werror
    801 enable_build_warnings
    802 enable_gdb_build_warnings
    803 '
    804       ac_precious_vars='build_alias
    805 host_alias
    806 target_alias
    807 CC
    808 CFLAGS
    809 LDFLAGS
    810 LIBS
    811 CPPFLAGS
    812 CXX
    813 CXXFLAGS
    814 CCC
    815 CPP'
    816 
    817 
    818 # Initialize some variables set by options.
    819 ac_init_help=
    820 ac_init_version=false
    821 ac_unrecognized_opts=
    822 ac_unrecognized_sep=
    823 # The variables have the same names as the options, with
    824 # dashes changed to underlines.
    825 cache_file=/dev/null
    826 exec_prefix=NONE
    827 no_create=
    828 no_recursion=
    829 prefix=NONE
    830 program_prefix=NONE
    831 program_suffix=NONE
    832 program_transform_name=s,x,x,
    833 silent=
    834 site=
    835 srcdir=
    836 verbose=
    837 x_includes=NONE
    838 x_libraries=NONE
    839 
    840 # Installation directory options.
    841 # These are left unexpanded so users can "make install exec_prefix=/foo"
    842 # and all the variables that are supposed to be based on exec_prefix
    843 # by default will actually change.
    844 # Use braces instead of parens because sh, perl, etc. also accept them.
    845 # (The list follows the same order as the GNU Coding Standards.)
    846 bindir='${exec_prefix}/bin'
    847 sbindir='${exec_prefix}/sbin'
    848 libexecdir='${exec_prefix}/libexec'
    849 datarootdir='${prefix}/share'
    850 datadir='${datarootdir}'
    851 sysconfdir='${prefix}/etc'
    852 sharedstatedir='${prefix}/com'
    853 localstatedir='${prefix}/var'
    854 includedir='${prefix}/include'
    855 oldincludedir='/usr/include'
    856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    857 infodir='${datarootdir}/info'
    858 htmldir='${docdir}'
    859 dvidir='${docdir}'
    860 pdfdir='${docdir}'
    861 psdir='${docdir}'
    862 libdir='${exec_prefix}/lib'
    863 localedir='${datarootdir}/locale'
    864 mandir='${datarootdir}/man'
    865 
    866 ac_prev=
    867 ac_dashdash=
    868 for ac_option
    869 do
    870   # If the previous option needs an argument, assign it.
    871   if test -n "$ac_prev"; then
    872     eval $ac_prev=\$ac_option
    873     ac_prev=
    874     continue
    875   fi
    876 
    877   case $ac_option in
    878   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    879   *=)   ac_optarg= ;;
    880   *)    ac_optarg=yes ;;
    881   esac
    882 
    883   # Accept the important Cygnus configure options, so we can diagnose typos.
    884 
    885   case $ac_dashdash$ac_option in
    886   --)
    887     ac_dashdash=yes ;;
    888 
    889   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    890     ac_prev=bindir ;;
    891   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    892     bindir=$ac_optarg ;;
    893 
    894   -build | --build | --buil | --bui | --bu)
    895     ac_prev=build_alias ;;
    896   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    897     build_alias=$ac_optarg ;;
    898 
    899   -cache-file | --cache-file | --cache-fil | --cache-fi \
    900   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    901     ac_prev=cache_file ;;
    902   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    903   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    904     cache_file=$ac_optarg ;;
    905 
    906   --config-cache | -C)
    907     cache_file=config.cache ;;
    908 
    909   -datadir | --datadir | --datadi | --datad)
    910     ac_prev=datadir ;;
    911   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    912     datadir=$ac_optarg ;;
    913 
    914   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    915   | --dataroo | --dataro | --datar)
    916     ac_prev=datarootdir ;;
    917   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    918   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    919     datarootdir=$ac_optarg ;;
    920 
    921   -disable-* | --disable-*)
    922     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    923     # Reject names that are not valid shell variable names.
    924     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    925       as_fn_error $? "invalid feature name: $ac_useropt"
    926     ac_useropt_orig=$ac_useropt
    927     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    928     case $ac_user_opts in
    929       *"
    930 "enable_$ac_useropt"
    931 "*) ;;
    932       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    933 	 ac_unrecognized_sep=', ';;
    934     esac
    935     eval enable_$ac_useropt=no ;;
    936 
    937   -docdir | --docdir | --docdi | --doc | --do)
    938     ac_prev=docdir ;;
    939   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    940     docdir=$ac_optarg ;;
    941 
    942   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    943     ac_prev=dvidir ;;
    944   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    945     dvidir=$ac_optarg ;;
    946 
    947   -enable-* | --enable-*)
    948     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    949     # Reject names that are not valid shell variable names.
    950     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    951       as_fn_error $? "invalid feature name: $ac_useropt"
    952     ac_useropt_orig=$ac_useropt
    953     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    954     case $ac_user_opts in
    955       *"
    956 "enable_$ac_useropt"
    957 "*) ;;
    958       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    959 	 ac_unrecognized_sep=', ';;
    960     esac
    961     eval enable_$ac_useropt=\$ac_optarg ;;
    962 
    963   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    964   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    965   | --exec | --exe | --ex)
    966     ac_prev=exec_prefix ;;
    967   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
    968   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
    969   | --exec=* | --exe=* | --ex=*)
    970     exec_prefix=$ac_optarg ;;
    971 
    972   -gas | --gas | --ga | --g)
    973     # Obsolete; use --with-gas.
    974     with_gas=yes ;;
    975 
    976   -help | --help | --hel | --he | -h)
    977     ac_init_help=long ;;
    978   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
    979     ac_init_help=recursive ;;
    980   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
    981     ac_init_help=short ;;
    982 
    983   -host | --host | --hos | --ho)
    984     ac_prev=host_alias ;;
    985   -host=* | --host=* | --hos=* | --ho=*)
    986     host_alias=$ac_optarg ;;
    987 
    988   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
    989     ac_prev=htmldir ;;
    990   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
    991   | --ht=*)
    992     htmldir=$ac_optarg ;;
    993 
    994   -includedir | --includedir | --includedi | --included | --include \
    995   | --includ | --inclu | --incl | --inc)
    996     ac_prev=includedir ;;
    997   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
    998   | --includ=* | --inclu=* | --incl=* | --inc=*)
    999     includedir=$ac_optarg ;;
   1000 
   1001   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1002     ac_prev=infodir ;;
   1003   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1004     infodir=$ac_optarg ;;
   1005 
   1006   -libdir | --libdir | --libdi | --libd)
   1007     ac_prev=libdir ;;
   1008   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1009     libdir=$ac_optarg ;;
   1010 
   1011   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1012   | --libexe | --libex | --libe)
   1013     ac_prev=libexecdir ;;
   1014   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1015   | --libexe=* | --libex=* | --libe=*)
   1016     libexecdir=$ac_optarg ;;
   1017 
   1018   -localedir | --localedir | --localedi | --localed | --locale)
   1019     ac_prev=localedir ;;
   1020   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1021     localedir=$ac_optarg ;;
   1022 
   1023   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1024   | --localstate | --localstat | --localsta | --localst | --locals)
   1025     ac_prev=localstatedir ;;
   1026   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1027   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1028     localstatedir=$ac_optarg ;;
   1029 
   1030   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1031     ac_prev=mandir ;;
   1032   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1033     mandir=$ac_optarg ;;
   1034 
   1035   -nfp | --nfp | --nf)
   1036     # Obsolete; use --without-fp.
   1037     with_fp=no ;;
   1038 
   1039   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1040   | --no-cr | --no-c | -n)
   1041     no_create=yes ;;
   1042 
   1043   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1044   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1045     no_recursion=yes ;;
   1046 
   1047   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1048   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1049   | --oldin | --oldi | --old | --ol | --o)
   1050     ac_prev=oldincludedir ;;
   1051   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1052   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1053   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1054     oldincludedir=$ac_optarg ;;
   1055 
   1056   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1057     ac_prev=prefix ;;
   1058   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1059     prefix=$ac_optarg ;;
   1060 
   1061   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1062   | --program-pre | --program-pr | --program-p)
   1063     ac_prev=program_prefix ;;
   1064   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1065   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1066     program_prefix=$ac_optarg ;;
   1067 
   1068   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1069   | --program-suf | --program-su | --program-s)
   1070     ac_prev=program_suffix ;;
   1071   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1072   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1073     program_suffix=$ac_optarg ;;
   1074 
   1075   -program-transform-name | --program-transform-name \
   1076   | --program-transform-nam | --program-transform-na \
   1077   | --program-transform-n | --program-transform- \
   1078   | --program-transform | --program-transfor \
   1079   | --program-transfo | --program-transf \
   1080   | --program-trans | --program-tran \
   1081   | --progr-tra | --program-tr | --program-t)
   1082     ac_prev=program_transform_name ;;
   1083   -program-transform-name=* | --program-transform-name=* \
   1084   | --program-transform-nam=* | --program-transform-na=* \
   1085   | --program-transform-n=* | --program-transform-=* \
   1086   | --program-transform=* | --program-transfor=* \
   1087   | --program-transfo=* | --program-transf=* \
   1088   | --program-trans=* | --program-tran=* \
   1089   | --progr-tra=* | --program-tr=* | --program-t=*)
   1090     program_transform_name=$ac_optarg ;;
   1091 
   1092   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1093     ac_prev=pdfdir ;;
   1094   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1095     pdfdir=$ac_optarg ;;
   1096 
   1097   -psdir | --psdir | --psdi | --psd | --ps)
   1098     ac_prev=psdir ;;
   1099   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1100     psdir=$ac_optarg ;;
   1101 
   1102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1103   | -silent | --silent | --silen | --sile | --sil)
   1104     silent=yes ;;
   1105 
   1106   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1107     ac_prev=sbindir ;;
   1108   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1109   | --sbi=* | --sb=*)
   1110     sbindir=$ac_optarg ;;
   1111 
   1112   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1113   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1114   | --sharedst | --shareds | --shared | --share | --shar \
   1115   | --sha | --sh)
   1116     ac_prev=sharedstatedir ;;
   1117   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1118   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1119   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1120   | --sha=* | --sh=*)
   1121     sharedstatedir=$ac_optarg ;;
   1122 
   1123   -site | --site | --sit)
   1124     ac_prev=site ;;
   1125   -site=* | --site=* | --sit=*)
   1126     site=$ac_optarg ;;
   1127 
   1128   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1129     ac_prev=srcdir ;;
   1130   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1131     srcdir=$ac_optarg ;;
   1132 
   1133   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1134   | --syscon | --sysco | --sysc | --sys | --sy)
   1135     ac_prev=sysconfdir ;;
   1136   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1137   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1138     sysconfdir=$ac_optarg ;;
   1139 
   1140   -target | --target | --targe | --targ | --tar | --ta | --t)
   1141     ac_prev=target_alias ;;
   1142   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1143     target_alias=$ac_optarg ;;
   1144 
   1145   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1146     verbose=yes ;;
   1147 
   1148   -version | --version | --versio | --versi | --vers | -V)
   1149     ac_init_version=: ;;
   1150 
   1151   -with-* | --with-*)
   1152     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1153     # Reject names that are not valid shell variable names.
   1154     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1155       as_fn_error $? "invalid package name: $ac_useropt"
   1156     ac_useropt_orig=$ac_useropt
   1157     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1158     case $ac_user_opts in
   1159       *"
   1160 "with_$ac_useropt"
   1161 "*) ;;
   1162       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1163 	 ac_unrecognized_sep=', ';;
   1164     esac
   1165     eval with_$ac_useropt=\$ac_optarg ;;
   1166 
   1167   -without-* | --without-*)
   1168     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1169     # Reject names that are not valid shell variable names.
   1170     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1171       as_fn_error $? "invalid package name: $ac_useropt"
   1172     ac_useropt_orig=$ac_useropt
   1173     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1174     case $ac_user_opts in
   1175       *"
   1176 "with_$ac_useropt"
   1177 "*) ;;
   1178       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1179 	 ac_unrecognized_sep=', ';;
   1180     esac
   1181     eval with_$ac_useropt=no ;;
   1182 
   1183   --x)
   1184     # Obsolete; use --with-x.
   1185     with_x=yes ;;
   1186 
   1187   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1188   | --x-incl | --x-inc | --x-in | --x-i)
   1189     ac_prev=x_includes ;;
   1190   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1191   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1192     x_includes=$ac_optarg ;;
   1193 
   1194   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1195   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1196     ac_prev=x_libraries ;;
   1197   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1198   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1199     x_libraries=$ac_optarg ;;
   1200 
   1201   -*) as_fn_error $? "unrecognized option: \`$ac_option'
   1202 Try \`$0 --help' for more information"
   1203     ;;
   1204 
   1205   *=*)
   1206     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1207     # Reject names that are not valid shell variable names.
   1208     case $ac_envvar in #(
   1209       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1210       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
   1211     esac
   1212     eval $ac_envvar=\$ac_optarg
   1213     export $ac_envvar ;;
   1214 
   1215   *)
   1216     # FIXME: should be removed in autoconf 3.0.
   1217     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1218     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1219       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1220     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
   1221     ;;
   1222 
   1223   esac
   1224 done
   1225 
   1226 if test -n "$ac_prev"; then
   1227   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1228   as_fn_error $? "missing argument to $ac_option"
   1229 fi
   1230 
   1231 if test -n "$ac_unrecognized_opts"; then
   1232   case $enable_option_checking in
   1233     no) ;;
   1234     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
   1235     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1236   esac
   1237 fi
   1238 
   1239 # Check all directory arguments for consistency.
   1240 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1241 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1242 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1243 		libdir localedir mandir
   1244 do
   1245   eval ac_val=\$$ac_var
   1246   # Remove trailing slashes.
   1247   case $ac_val in
   1248     */ )
   1249       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1250       eval $ac_var=\$ac_val;;
   1251   esac
   1252   # Be sure to have absolute directory names.
   1253   case $ac_val in
   1254     [\\/$]* | ?:[\\/]* )  continue;;
   1255     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1256   esac
   1257   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
   1258 done
   1259 
   1260 # There might be people who depend on the old broken behavior: `$host'
   1261 # used to hold the argument of --host etc.
   1262 # FIXME: To remove some day.
   1263 build=$build_alias
   1264 host=$host_alias
   1265 target=$target_alias
   1266 
   1267 # FIXME: To remove some day.
   1268 if test "x$host_alias" != x; then
   1269   if test "x$build_alias" = x; then
   1270     cross_compiling=maybe
   1271   elif test "x$build_alias" != "x$host_alias"; then
   1272     cross_compiling=yes
   1273   fi
   1274 fi
   1275 
   1276 ac_tool_prefix=
   1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1278 
   1279 test "$silent" = yes && exec 6>/dev/null
   1280 
   1281 
   1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1283 ac_ls_di=`ls -di .` &&
   1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1285   as_fn_error $? "working directory cannot be determined"
   1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1287   as_fn_error $? "pwd does not report name of working directory"
   1288 
   1289 
   1290 # Find the source files, if location was not specified.
   1291 if test -z "$srcdir"; then
   1292   ac_srcdir_defaulted=yes
   1293   # Try the directory containing this script, then the parent directory.
   1294   ac_confdir=`$as_dirname -- "$as_myself" ||
   1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1296 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1297 	 X"$as_myself" : 'X\(//\)$' \| \
   1298 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1299 $as_echo X"$as_myself" |
   1300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1301 	    s//\1/
   1302 	    q
   1303 	  }
   1304 	  /^X\(\/\/\)[^/].*/{
   1305 	    s//\1/
   1306 	    q
   1307 	  }
   1308 	  /^X\(\/\/\)$/{
   1309 	    s//\1/
   1310 	    q
   1311 	  }
   1312 	  /^X\(\/\).*/{
   1313 	    s//\1/
   1314 	    q
   1315 	  }
   1316 	  s/.*/./; q'`
   1317   srcdir=$ac_confdir
   1318   if test ! -r "$srcdir/$ac_unique_file"; then
   1319     srcdir=..
   1320   fi
   1321 else
   1322   ac_srcdir_defaulted=no
   1323 fi
   1324 if test ! -r "$srcdir/$ac_unique_file"; then
   1325   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1326   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
   1327 fi
   1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1329 ac_abs_confdir=`(
   1330 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
   1331 	pwd)`
   1332 # When building in place, set srcdir=.
   1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1334   srcdir=.
   1335 fi
   1336 # Remove unnecessary trailing slashes from srcdir.
   1337 # Double slashes in file names in object file debugging info
   1338 # mess up M-x gdb in Emacs.
   1339 case $srcdir in
   1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1341 esac
   1342 for ac_var in $ac_precious_vars; do
   1343   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1344   eval ac_env_${ac_var}_value=\$${ac_var}
   1345   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1346   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1347 done
   1348 
   1349 #
   1350 # Report the --help message.
   1351 #
   1352 if test "$ac_init_help" = "long"; then
   1353   # Omit some internal or obsolete options to make the list less imposing.
   1354   # This message is too long to be a string in the A/UX 3.1 sh.
   1355   cat <<_ACEOF
   1356 \`configure' configures gdbsupport 1.0 to adapt to many kinds of systems.
   1357 
   1358 Usage: $0 [OPTION]... [VAR=VALUE]...
   1359 
   1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1361 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1362 
   1363 Defaults for the options are specified in brackets.
   1364 
   1365 Configuration:
   1366   -h, --help              display this help and exit
   1367       --help=short        display options specific to this package
   1368       --help=recursive    display the short help of all the included packages
   1369   -V, --version           display version information and exit
   1370   -q, --quiet, --silent   do not print \`checking ...' messages
   1371       --cache-file=FILE   cache test results in FILE [disabled]
   1372   -C, --config-cache      alias for \`--cache-file=config.cache'
   1373   -n, --no-create         do not create output files
   1374       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1375 
   1376 Installation directories:
   1377   --prefix=PREFIX         install architecture-independent files in PREFIX
   1378                           [$ac_default_prefix]
   1379   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1380                           [PREFIX]
   1381 
   1382 By default, \`make install' will install all the files in
   1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1385 for instance \`--prefix=\$HOME'.
   1386 
   1387 For better control, use the options below.
   1388 
   1389 Fine tuning of the installation directories:
   1390   --bindir=DIR            user executables [EPREFIX/bin]
   1391   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1392   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1393   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1394   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1395   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1396   --libdir=DIR            object code libraries [EPREFIX/lib]
   1397   --includedir=DIR        C header files [PREFIX/include]
   1398   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1399   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1400   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1401   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1402   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1403   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1404   --docdir=DIR            documentation root [DATAROOTDIR/doc/gdbsupport]
   1405   --htmldir=DIR           html documentation [DOCDIR]
   1406   --dvidir=DIR            dvi documentation [DOCDIR]
   1407   --pdfdir=DIR            pdf documentation [DOCDIR]
   1408   --psdir=DIR             ps documentation [DOCDIR]
   1409 _ACEOF
   1410 
   1411   cat <<\_ACEOF
   1412 
   1413 Program names:
   1414   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1415   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1416   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1417 
   1418 System types:
   1419   --build=BUILD     configure for building on BUILD [guessed]
   1420   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1421   --target=TARGET   configure for building compilers for TARGET [HOST]
   1422 _ACEOF
   1423 fi
   1424 
   1425 if test -n "$ac_init_help"; then
   1426   case $ac_init_help in
   1427      short | recursive ) echo "Configuration of gdbsupport 1.0:";;
   1428    esac
   1429   cat <<\_ACEOF
   1430 
   1431 Optional Features:
   1432   --disable-option-checking  ignore unrecognized --enable/--with options
   1433   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1434   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1435   --enable-maintainer-mode
   1436                           enable make rules and dependencies not useful (and
   1437                           sometimes confusing) to the casual installer
   1438   --enable-silent-rules   less verbose build output (undo: "make V=1")
   1439   --disable-silent-rules  verbose build output (undo: "make V=0")
   1440   --enable-dependency-tracking
   1441                           do not reject slow dependency extractors
   1442   --disable-dependency-tracking
   1443                           speeds up one-time build
   1444   --enable-plugins        Enable support for plugins
   1445   --disable-largefile     omit support for large files
   1446   --disable-nls           do not use Native Language Support
   1447   --disable-rpath         do not hardcode runtime library paths
   1448   --enable-threading      include support for parallel processing of data
   1449                           (yes/no)
   1450   --enable-unit-tests     Enable the inclusion of unit tests when compiling
   1451                           GDB
   1452   --enable-werror         treat compile warnings as errors
   1453   --enable-build-warnings enable build-time compiler warnings if gcc is used
   1454   --enable-gdb-build-warnings
   1455                           enable GDB specific build-time compiler warnings if
   1456                           gcc is used
   1457 
   1458 Optional Packages:
   1459   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1460   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1461   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   1462   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
   1463   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
   1464   --with-libiconv-type=TYPE     type of library to search for (auto/static/shared)
   1465   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
   1466   --without-libintl-prefix     don't search for libintl in includedir and libdir
   1467   --with-libintl-type=TYPE     type of library to search for (auto/static/shared)
   1468   --with-intel-pt         include Intel Processor Trace support (auto/yes/no)
   1469   --with-libipt-prefix[=DIR]  search for libipt in DIR/include and DIR/lib
   1470   --without-libipt-prefix     don't search for libipt in includedir and libdir
   1471   --with-libipt-type=TYPE     type of library to search for (auto/static/shared)
   1472   --with-xxhash           use libxxhash for hashing (faster) (auto/yes/no)
   1473   --with-libxxhash-prefix[=DIR]  search for libxxhash in DIR/include and DIR/lib
   1474   --without-libxxhash-prefix     don't search for libxxhash in includedir and libdir
   1475   --with-libxxhash-type=TYPE     type of library to search for (auto/static/shared)
   1476 
   1477 Some influential environment variables:
   1478   CC          C compiler command
   1479   CFLAGS      C compiler flags
   1480   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1481               nonstandard directory <lib dir>
   1482   LIBS        libraries to pass to the linker, e.g. -l<library>
   1483   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
   1484               you have headers in a nonstandard directory <include dir>
   1485   CXX         C++ compiler command
   1486   CXXFLAGS    C++ compiler flags
   1487   CPP         C preprocessor
   1488 
   1489 Use these variables to override the choices made by `configure' or to help
   1490 it to find libraries and programs with nonstandard names/locations.
   1491 
   1492 Report bugs to the package provider.
   1493 _ACEOF
   1494 ac_status=$?
   1495 fi
   1496 
   1497 if test "$ac_init_help" = "recursive"; then
   1498   # If there are subdirs, report their specific --help.
   1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1500     test -d "$ac_dir" ||
   1501       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1502       continue
   1503     ac_builddir=.
   1504 
   1505 case "$ac_dir" in
   1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1507 *)
   1508   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1509   # A ".." for each directory in $ac_dir_suffix.
   1510   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1511   case $ac_top_builddir_sub in
   1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1514   esac ;;
   1515 esac
   1516 ac_abs_top_builddir=$ac_pwd
   1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1518 # for backward compatibility:
   1519 ac_top_builddir=$ac_top_build_prefix
   1520 
   1521 case $srcdir in
   1522   .)  # We are building in place.
   1523     ac_srcdir=.
   1524     ac_top_srcdir=$ac_top_builddir_sub
   1525     ac_abs_top_srcdir=$ac_pwd ;;
   1526   [\\/]* | ?:[\\/]* )  # Absolute name.
   1527     ac_srcdir=$srcdir$ac_dir_suffix;
   1528     ac_top_srcdir=$srcdir
   1529     ac_abs_top_srcdir=$srcdir ;;
   1530   *) # Relative name.
   1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1534 esac
   1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1536 
   1537     cd "$ac_dir" || { ac_status=$?; continue; }
   1538     # Check for guested configure.
   1539     if test -f "$ac_srcdir/configure.gnu"; then
   1540       echo &&
   1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1542     elif test -f "$ac_srcdir/configure"; then
   1543       echo &&
   1544       $SHELL "$ac_srcdir/configure" --help=recursive
   1545     else
   1546       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1547     fi || ac_status=$?
   1548     cd "$ac_pwd" || { ac_status=$?; break; }
   1549   done
   1550 fi
   1551 
   1552 test -n "$ac_init_help" && exit $ac_status
   1553 if $ac_init_version; then
   1554   cat <<\_ACEOF
   1555 gdbsupport configure 1.0
   1556 generated by GNU Autoconf 2.69
   1557 
   1558 Copyright (C) 2012 Free Software Foundation, Inc.
   1559 This configure script is free software; the Free Software Foundation
   1560 gives unlimited permission to copy, distribute and modify it.
   1561 _ACEOF
   1562   exit
   1563 fi
   1564 
   1565 ## ------------------------ ##
   1566 ## Autoconf initialization. ##
   1567 ## ------------------------ ##
   1568 
   1569 # ac_fn_c_try_compile LINENO
   1570 # --------------------------
   1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1572 ac_fn_c_try_compile ()
   1573 {
   1574   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1575   rm -f conftest.$ac_objext
   1576   if { { ac_try="$ac_compile"
   1577 case "(($ac_try" in
   1578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1579   *) ac_try_echo=$ac_try;;
   1580 esac
   1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1582 $as_echo "$ac_try_echo"; } >&5
   1583   (eval "$ac_compile") 2>conftest.err
   1584   ac_status=$?
   1585   if test -s conftest.err; then
   1586     grep -v '^ *+' conftest.err >conftest.er1
   1587     cat conftest.er1 >&5
   1588     mv -f conftest.er1 conftest.err
   1589   fi
   1590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1591   test $ac_status = 0; } && {
   1592 	 test -z "$ac_c_werror_flag" ||
   1593 	 test ! -s conftest.err
   1594        } && test -s conftest.$ac_objext; then :
   1595   ac_retval=0
   1596 else
   1597   $as_echo "$as_me: failed program was:" >&5
   1598 sed 's/^/| /' conftest.$ac_ext >&5
   1599 
   1600 	ac_retval=1
   1601 fi
   1602   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1603   as_fn_set_status $ac_retval
   1604 
   1605 } # ac_fn_c_try_compile
   1606 
   1607 # ac_fn_cxx_try_compile LINENO
   1608 # ----------------------------
   1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1610 ac_fn_cxx_try_compile ()
   1611 {
   1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1613   rm -f conftest.$ac_objext
   1614   if { { ac_try="$ac_compile"
   1615 case "(($ac_try" in
   1616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1617   *) ac_try_echo=$ac_try;;
   1618 esac
   1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1620 $as_echo "$ac_try_echo"; } >&5
   1621   (eval "$ac_compile") 2>conftest.err
   1622   ac_status=$?
   1623   if test -s conftest.err; then
   1624     grep -v '^ *+' conftest.err >conftest.er1
   1625     cat conftest.er1 >&5
   1626     mv -f conftest.er1 conftest.err
   1627   fi
   1628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1629   test $ac_status = 0; } && {
   1630 	 test -z "$ac_cxx_werror_flag" ||
   1631 	 test ! -s conftest.err
   1632        } && test -s conftest.$ac_objext; then :
   1633   ac_retval=0
   1634 else
   1635   $as_echo "$as_me: failed program was:" >&5
   1636 sed 's/^/| /' conftest.$ac_ext >&5
   1637 
   1638 	ac_retval=1
   1639 fi
   1640   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1641   as_fn_set_status $ac_retval
   1642 
   1643 } # ac_fn_cxx_try_compile
   1644 
   1645 # ac_fn_c_try_cpp LINENO
   1646 # ----------------------
   1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1648 ac_fn_c_try_cpp ()
   1649 {
   1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1651   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1652 case "(($ac_try" in
   1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1654   *) ac_try_echo=$ac_try;;
   1655 esac
   1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1657 $as_echo "$ac_try_echo"; } >&5
   1658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1659   ac_status=$?
   1660   if test -s conftest.err; then
   1661     grep -v '^ *+' conftest.err >conftest.er1
   1662     cat conftest.er1 >&5
   1663     mv -f conftest.er1 conftest.err
   1664   fi
   1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1666   test $ac_status = 0; } > conftest.i && {
   1667 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1668 	 test ! -s conftest.err
   1669        }; then :
   1670   ac_retval=0
   1671 else
   1672   $as_echo "$as_me: failed program was:" >&5
   1673 sed 's/^/| /' conftest.$ac_ext >&5
   1674 
   1675     ac_retval=1
   1676 fi
   1677   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1678   as_fn_set_status $ac_retval
   1679 
   1680 } # ac_fn_c_try_cpp
   1681 
   1682 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1683 # -------------------------------------------------------
   1684 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1685 # the include files in INCLUDES and setting the cache variable VAR
   1686 # accordingly.
   1687 ac_fn_c_check_header_mongrel ()
   1688 {
   1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1690   if eval \${$3+:} false; then :
   1691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1692 $as_echo_n "checking for $2... " >&6; }
   1693 if eval \${$3+:} false; then :
   1694   $as_echo_n "(cached) " >&6
   1695 fi
   1696 eval ac_res=\$$3
   1697 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1698 $as_echo "$ac_res" >&6; }
   1699 else
   1700   # Is the header compilable?
   1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1702 $as_echo_n "checking $2 usability... " >&6; }
   1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1704 /* end confdefs.h.  */
   1705 $4
   1706 #include <$2>
   1707 _ACEOF
   1708 if ac_fn_c_try_compile "$LINENO"; then :
   1709   ac_header_compiler=yes
   1710 else
   1711   ac_header_compiler=no
   1712 fi
   1713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1715 $as_echo "$ac_header_compiler" >&6; }
   1716 
   1717 # Is the header present?
   1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1719 $as_echo_n "checking $2 presence... " >&6; }
   1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1721 /* end confdefs.h.  */
   1722 #include <$2>
   1723 _ACEOF
   1724 if ac_fn_c_try_cpp "$LINENO"; then :
   1725   ac_header_preproc=yes
   1726 else
   1727   ac_header_preproc=no
   1728 fi
   1729 rm -f conftest.err conftest.i conftest.$ac_ext
   1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1731 $as_echo "$ac_header_preproc" >&6; }
   1732 
   1733 # So?  What about this header?
   1734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1735   yes:no: )
   1736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1737 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1739 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1740     ;;
   1741   no:yes:* )
   1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1743 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1745 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1746     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1747 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1749 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1752     ;;
   1753 esac
   1754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1755 $as_echo_n "checking for $2... " >&6; }
   1756 if eval \${$3+:} false; then :
   1757   $as_echo_n "(cached) " >&6
   1758 else
   1759   eval "$3=\$ac_header_compiler"
   1760 fi
   1761 eval ac_res=\$$3
   1762 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1763 $as_echo "$ac_res" >&6; }
   1764 fi
   1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1766 
   1767 } # ac_fn_c_check_header_mongrel
   1768 
   1769 # ac_fn_c_try_run LINENO
   1770 # ----------------------
   1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1772 # that executables *can* be run.
   1773 ac_fn_c_try_run ()
   1774 {
   1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1776   if { { ac_try="$ac_link"
   1777 case "(($ac_try" in
   1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1779   *) ac_try_echo=$ac_try;;
   1780 esac
   1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1782 $as_echo "$ac_try_echo"; } >&5
   1783   (eval "$ac_link") 2>&5
   1784   ac_status=$?
   1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1786   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1787   { { case "(($ac_try" in
   1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1789   *) ac_try_echo=$ac_try;;
   1790 esac
   1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1792 $as_echo "$ac_try_echo"; } >&5
   1793   (eval "$ac_try") 2>&5
   1794   ac_status=$?
   1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1796   test $ac_status = 0; }; }; then :
   1797   ac_retval=0
   1798 else
   1799   $as_echo "$as_me: program exited with status $ac_status" >&5
   1800        $as_echo "$as_me: failed program was:" >&5
   1801 sed 's/^/| /' conftest.$ac_ext >&5
   1802 
   1803        ac_retval=$ac_status
   1804 fi
   1805   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1806   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1807   as_fn_set_status $ac_retval
   1808 
   1809 } # ac_fn_c_try_run
   1810 
   1811 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1812 # -------------------------------------------------------
   1813 # Tests whether HEADER exists and can be compiled using the include files in
   1814 # INCLUDES, setting the cache variable VAR accordingly.
   1815 ac_fn_c_check_header_compile ()
   1816 {
   1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1819 $as_echo_n "checking for $2... " >&6; }
   1820 if eval \${$3+:} false; then :
   1821   $as_echo_n "(cached) " >&6
   1822 else
   1823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1824 /* end confdefs.h.  */
   1825 $4
   1826 #include <$2>
   1827 _ACEOF
   1828 if ac_fn_c_try_compile "$LINENO"; then :
   1829   eval "$3=yes"
   1830 else
   1831   eval "$3=no"
   1832 fi
   1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1834 fi
   1835 eval ac_res=\$$3
   1836 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1837 $as_echo "$ac_res" >&6; }
   1838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1839 
   1840 } # ac_fn_c_check_header_compile
   1841 
   1842 # ac_fn_c_try_link LINENO
   1843 # -----------------------
   1844 # Try to link conftest.$ac_ext, and return whether this succeeded.
   1845 ac_fn_c_try_link ()
   1846 {
   1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1848   rm -f conftest.$ac_objext conftest$ac_exeext
   1849   if { { ac_try="$ac_link"
   1850 case "(($ac_try" in
   1851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1852   *) ac_try_echo=$ac_try;;
   1853 esac
   1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1855 $as_echo "$ac_try_echo"; } >&5
   1856   (eval "$ac_link") 2>conftest.err
   1857   ac_status=$?
   1858   if test -s conftest.err; then
   1859     grep -v '^ *+' conftest.err >conftest.er1
   1860     cat conftest.er1 >&5
   1861     mv -f conftest.er1 conftest.err
   1862   fi
   1863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1864   test $ac_status = 0; } && {
   1865 	 test -z "$ac_c_werror_flag" ||
   1866 	 test ! -s conftest.err
   1867        } && test -s conftest$ac_exeext && {
   1868 	 test "$cross_compiling" = yes ||
   1869 	 test -x conftest$ac_exeext
   1870        }; then :
   1871   ac_retval=0
   1872 else
   1873   $as_echo "$as_me: failed program was:" >&5
   1874 sed 's/^/| /' conftest.$ac_ext >&5
   1875 
   1876 	ac_retval=1
   1877 fi
   1878   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   1879   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   1880   # interfere with the next link command; also delete a directory that is
   1881   # left behind by Apple's compiler.  We do this before executing the actions.
   1882   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1884   as_fn_set_status $ac_retval
   1885 
   1886 } # ac_fn_c_try_link
   1887 
   1888 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   1889 # -------------------------------------------
   1890 # Tests whether TYPE exists after having included INCLUDES, setting cache
   1891 # variable VAR accordingly.
   1892 ac_fn_c_check_type ()
   1893 {
   1894   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1896 $as_echo_n "checking for $2... " >&6; }
   1897 if eval \${$3+:} false; then :
   1898   $as_echo_n "(cached) " >&6
   1899 else
   1900   eval "$3=no"
   1901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1902 /* end confdefs.h.  */
   1903 $4
   1904 int
   1905 main ()
   1906 {
   1907 if (sizeof ($2))
   1908 	 return 0;
   1909   ;
   1910   return 0;
   1911 }
   1912 _ACEOF
   1913 if ac_fn_c_try_compile "$LINENO"; then :
   1914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1915 /* end confdefs.h.  */
   1916 $4
   1917 int
   1918 main ()
   1919 {
   1920 if (sizeof (($2)))
   1921 	    return 0;
   1922   ;
   1923   return 0;
   1924 }
   1925 _ACEOF
   1926 if ac_fn_c_try_compile "$LINENO"; then :
   1927 
   1928 else
   1929   eval "$3=yes"
   1930 fi
   1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1932 fi
   1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1934 fi
   1935 eval ac_res=\$$3
   1936 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1937 $as_echo "$ac_res" >&6; }
   1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   1939 
   1940 } # ac_fn_c_check_type
   1941 
   1942 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   1943 # --------------------------------------------
   1944 # Tries to find the compile-time value of EXPR in a program that includes
   1945 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   1946 # computed
   1947 ac_fn_c_compute_int ()
   1948 {
   1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1950   if test "$cross_compiling" = yes; then
   1951     # Depending upon the size, compute the lo and hi bounds.
   1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1953 /* end confdefs.h.  */
   1954 $4
   1955 int
   1956 main ()
   1957 {
   1958 static int test_array [1 - 2 * !(($2) >= 0)];
   1959 test_array [0] = 0;
   1960 return test_array [0];
   1961 
   1962   ;
   1963   return 0;
   1964 }
   1965 _ACEOF
   1966 if ac_fn_c_try_compile "$LINENO"; then :
   1967   ac_lo=0 ac_mid=0
   1968   while :; do
   1969     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1970 /* end confdefs.h.  */
   1971 $4
   1972 int
   1973 main ()
   1974 {
   1975 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1976 test_array [0] = 0;
   1977 return test_array [0];
   1978 
   1979   ;
   1980   return 0;
   1981 }
   1982 _ACEOF
   1983 if ac_fn_c_try_compile "$LINENO"; then :
   1984   ac_hi=$ac_mid; break
   1985 else
   1986   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   1987 			if test $ac_lo -le $ac_mid; then
   1988 			  ac_lo= ac_hi=
   1989 			  break
   1990 			fi
   1991 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   1992 fi
   1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1994   done
   1995 else
   1996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1997 /* end confdefs.h.  */
   1998 $4
   1999 int
   2000 main ()
   2001 {
   2002 static int test_array [1 - 2 * !(($2) < 0)];
   2003 test_array [0] = 0;
   2004 return test_array [0];
   2005 
   2006   ;
   2007   return 0;
   2008 }
   2009 _ACEOF
   2010 if ac_fn_c_try_compile "$LINENO"; then :
   2011   ac_hi=-1 ac_mid=-1
   2012   while :; do
   2013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2014 /* end confdefs.h.  */
   2015 $4
   2016 int
   2017 main ()
   2018 {
   2019 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   2020 test_array [0] = 0;
   2021 return test_array [0];
   2022 
   2023   ;
   2024   return 0;
   2025 }
   2026 _ACEOF
   2027 if ac_fn_c_try_compile "$LINENO"; then :
   2028   ac_lo=$ac_mid; break
   2029 else
   2030   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   2031 			if test $ac_mid -le $ac_hi; then
   2032 			  ac_lo= ac_hi=
   2033 			  break
   2034 			fi
   2035 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   2036 fi
   2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2038   done
   2039 else
   2040   ac_lo= ac_hi=
   2041 fi
   2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2043 fi
   2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2045 # Binary search between lo and hi bounds.
   2046 while test "x$ac_lo" != "x$ac_hi"; do
   2047   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   2048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2049 /* end confdefs.h.  */
   2050 $4
   2051 int
   2052 main ()
   2053 {
   2054 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   2055 test_array [0] = 0;
   2056 return test_array [0];
   2057 
   2058   ;
   2059   return 0;
   2060 }
   2061 _ACEOF
   2062 if ac_fn_c_try_compile "$LINENO"; then :
   2063   ac_hi=$ac_mid
   2064 else
   2065   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2066 fi
   2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2068 done
   2069 case $ac_lo in #((
   2070 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2071 '') ac_retval=1 ;;
   2072 esac
   2073   else
   2074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2075 /* end confdefs.h.  */
   2076 $4
   2077 static long int longval () { return $2; }
   2078 static unsigned long int ulongval () { return $2; }
   2079 #include <stdio.h>
   2080 #include <stdlib.h>
   2081 int
   2082 main ()
   2083 {
   2084 
   2085   FILE *f = fopen ("conftest.val", "w");
   2086   if (! f)
   2087     return 1;
   2088   if (($2) < 0)
   2089     {
   2090       long int i = longval ();
   2091       if (i != ($2))
   2092 	return 1;
   2093       fprintf (f, "%ld", i);
   2094     }
   2095   else
   2096     {
   2097       unsigned long int i = ulongval ();
   2098       if (i != ($2))
   2099 	return 1;
   2100       fprintf (f, "%lu", i);
   2101     }
   2102   /* Do not output a trailing newline, as this causes \r\n confusion
   2103      on some platforms.  */
   2104   return ferror (f) || fclose (f) != 0;
   2105 
   2106   ;
   2107   return 0;
   2108 }
   2109 _ACEOF
   2110 if ac_fn_c_try_run "$LINENO"; then :
   2111   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2112 else
   2113   ac_retval=1
   2114 fi
   2115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2116   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2117 rm -f conftest.val
   2118 
   2119   fi
   2120   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2121   as_fn_set_status $ac_retval
   2122 
   2123 } # ac_fn_c_compute_int
   2124 
   2125 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
   2126 # ---------------------------------------------
   2127 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
   2128 # accordingly.
   2129 ac_fn_c_check_decl ()
   2130 {
   2131   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2132   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2133   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2135 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2136 if eval \${$3+:} false; then :
   2137   $as_echo_n "(cached) " >&6
   2138 else
   2139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2140 /* end confdefs.h.  */
   2141 $4
   2142 int
   2143 main ()
   2144 {
   2145 #ifndef $as_decl_name
   2146 #ifdef __cplusplus
   2147   (void) $as_decl_use;
   2148 #else
   2149   (void) $as_decl_name;
   2150 #endif
   2151 #endif
   2152 
   2153   ;
   2154   return 0;
   2155 }
   2156 _ACEOF
   2157 if ac_fn_c_try_compile "$LINENO"; then :
   2158   eval "$3=yes"
   2159 else
   2160   eval "$3=no"
   2161 fi
   2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2163 fi
   2164 eval ac_res=\$$3
   2165 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2166 $as_echo "$ac_res" >&6; }
   2167   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2168 
   2169 } # ac_fn_c_check_decl
   2170 
   2171 # ac_fn_c_check_func LINENO FUNC VAR
   2172 # ----------------------------------
   2173 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2174 ac_fn_c_check_func ()
   2175 {
   2176   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2178 $as_echo_n "checking for $2... " >&6; }
   2179 if eval \${$3+:} false; then :
   2180   $as_echo_n "(cached) " >&6
   2181 else
   2182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2183 /* end confdefs.h.  */
   2184 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2186 #define $2 innocuous_$2
   2187 
   2188 /* System header to define __stub macros and hopefully few prototypes,
   2189     which can conflict with char $2 (); below.
   2190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2191     <limits.h> exists even on freestanding compilers.  */
   2192 
   2193 #ifdef __STDC__
   2194 # include <limits.h>
   2195 #else
   2196 # include <assert.h>
   2197 #endif
   2198 
   2199 #undef $2
   2200 
   2201 /* Override any GCC internal prototype to avoid an error.
   2202    Use char because int might match the return type of a GCC
   2203    builtin and then its argument prototype would still apply.  */
   2204 #ifdef __cplusplus
   2205 extern "C"
   2206 #endif
   2207 char $2 ();
   2208 /* The GNU C library defines this for functions which it implements
   2209     to always fail with ENOSYS.  Some functions are actually named
   2210     something starting with __ and the normal name is an alias.  */
   2211 #if defined __stub_$2 || defined __stub___$2
   2212 choke me
   2213 #endif
   2214 
   2215 int
   2216 main ()
   2217 {
   2218 return $2 ();
   2219   ;
   2220   return 0;
   2221 }
   2222 _ACEOF
   2223 if ac_fn_c_try_link "$LINENO"; then :
   2224   eval "$3=yes"
   2225 else
   2226   eval "$3=no"
   2227 fi
   2228 rm -f core conftest.err conftest.$ac_objext \
   2229     conftest$ac_exeext conftest.$ac_ext
   2230 fi
   2231 eval ac_res=\$$3
   2232 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2233 $as_echo "$ac_res" >&6; }
   2234   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2235 
   2236 } # ac_fn_c_check_func
   2237 
   2238 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2239 # ----------------------------------------------------
   2240 # Tries to find if the field MEMBER exists in type AGGR, after including
   2241 # INCLUDES, setting cache variable VAR accordingly.
   2242 ac_fn_c_check_member ()
   2243 {
   2244   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2246 $as_echo_n "checking for $2.$3... " >&6; }
   2247 if eval \${$4+:} false; then :
   2248   $as_echo_n "(cached) " >&6
   2249 else
   2250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2251 /* end confdefs.h.  */
   2252 $5
   2253 int
   2254 main ()
   2255 {
   2256 static $2 ac_aggr;
   2257 if (ac_aggr.$3)
   2258 return 0;
   2259   ;
   2260   return 0;
   2261 }
   2262 _ACEOF
   2263 if ac_fn_c_try_compile "$LINENO"; then :
   2264   eval "$4=yes"
   2265 else
   2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2267 /* end confdefs.h.  */
   2268 $5
   2269 int
   2270 main ()
   2271 {
   2272 static $2 ac_aggr;
   2273 if (sizeof ac_aggr.$3)
   2274 return 0;
   2275   ;
   2276   return 0;
   2277 }
   2278 _ACEOF
   2279 if ac_fn_c_try_compile "$LINENO"; then :
   2280   eval "$4=yes"
   2281 else
   2282   eval "$4=no"
   2283 fi
   2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2285 fi
   2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2287 fi
   2288 eval ac_res=\$$4
   2289 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2290 $as_echo "$ac_res" >&6; }
   2291   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2292 
   2293 } # ac_fn_c_check_member
   2294 
   2295 # ac_fn_cxx_try_link LINENO
   2296 # -------------------------
   2297 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2298 ac_fn_cxx_try_link ()
   2299 {
   2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2301   rm -f conftest.$ac_objext conftest$ac_exeext
   2302   if { { ac_try="$ac_link"
   2303 case "(($ac_try" in
   2304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2305   *) ac_try_echo=$ac_try;;
   2306 esac
   2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2308 $as_echo "$ac_try_echo"; } >&5
   2309   (eval "$ac_link") 2>conftest.err
   2310   ac_status=$?
   2311   if test -s conftest.err; then
   2312     grep -v '^ *+' conftest.err >conftest.er1
   2313     cat conftest.er1 >&5
   2314     mv -f conftest.er1 conftest.err
   2315   fi
   2316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2317   test $ac_status = 0; } && {
   2318 	 test -z "$ac_cxx_werror_flag" ||
   2319 	 test ! -s conftest.err
   2320        } && test -s conftest$ac_exeext && {
   2321 	 test "$cross_compiling" = yes ||
   2322 	 test -x conftest$ac_exeext
   2323        }; then :
   2324   ac_retval=0
   2325 else
   2326   $as_echo "$as_me: failed program was:" >&5
   2327 sed 's/^/| /' conftest.$ac_ext >&5
   2328 
   2329 	ac_retval=1
   2330 fi
   2331   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2332   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2333   # interfere with the next link command; also delete a directory that is
   2334   # left behind by Apple's compiler.  We do this before executing the actions.
   2335   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2336   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2337   as_fn_set_status $ac_retval
   2338 
   2339 } # ac_fn_cxx_try_link
   2340 
   2341 # ac_fn_cxx_check_func LINENO FUNC VAR
   2342 # ------------------------------------
   2343 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2344 ac_fn_cxx_check_func ()
   2345 {
   2346   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2348 $as_echo_n "checking for $2... " >&6; }
   2349 if eval \${$3+:} false; then :
   2350   $as_echo_n "(cached) " >&6
   2351 else
   2352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2353 /* end confdefs.h.  */
   2354 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2356 #define $2 innocuous_$2
   2357 
   2358 /* System header to define __stub macros and hopefully few prototypes,
   2359     which can conflict with char $2 (); below.
   2360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2361     <limits.h> exists even on freestanding compilers.  */
   2362 
   2363 #ifdef __STDC__
   2364 # include <limits.h>
   2365 #else
   2366 # include <assert.h>
   2367 #endif
   2368 
   2369 #undef $2
   2370 
   2371 /* Override any GCC internal prototype to avoid an error.
   2372    Use char because int might match the return type of a GCC
   2373    builtin and then its argument prototype would still apply.  */
   2374 #ifdef __cplusplus
   2375 extern "C"
   2376 #endif
   2377 char $2 ();
   2378 /* The GNU C library defines this for functions which it implements
   2379     to always fail with ENOSYS.  Some functions are actually named
   2380     something starting with __ and the normal name is an alias.  */
   2381 #if defined __stub_$2 || defined __stub___$2
   2382 choke me
   2383 #endif
   2384 
   2385 int
   2386 main ()
   2387 {
   2388 return $2 ();
   2389   ;
   2390   return 0;
   2391 }
   2392 _ACEOF
   2393 if ac_fn_cxx_try_link "$LINENO"; then :
   2394   eval "$3=yes"
   2395 else
   2396   eval "$3=no"
   2397 fi
   2398 rm -f core conftest.err conftest.$ac_objext \
   2399     conftest$ac_exeext conftest.$ac_ext
   2400 fi
   2401 eval ac_res=\$$3
   2402 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2403 $as_echo "$ac_res" >&6; }
   2404   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
   2405 
   2406 } # ac_fn_cxx_check_func
   2407 cat >config.log <<_ACEOF
   2408 This file contains any messages produced by compilers while
   2409 running configure, to aid debugging if configure makes a mistake.
   2410 
   2411 It was created by gdbsupport $as_me 1.0, which was
   2412 generated by GNU Autoconf 2.69.  Invocation command line was
   2413 
   2414   $ $0 $@
   2415 
   2416 _ACEOF
   2417 exec 5>>config.log
   2418 {
   2419 cat <<_ASUNAME
   2420 ## --------- ##
   2421 ## Platform. ##
   2422 ## --------- ##
   2423 
   2424 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2425 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2426 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2427 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2428 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2429 
   2430 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2431 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2432 
   2433 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2434 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2435 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2436 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2437 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2438 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2439 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2440 
   2441 _ASUNAME
   2442 
   2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2444 for as_dir in $PATH
   2445 do
   2446   IFS=$as_save_IFS
   2447   test -z "$as_dir" && as_dir=.
   2448     $as_echo "PATH: $as_dir"
   2449   done
   2450 IFS=$as_save_IFS
   2451 
   2452 } >&5
   2453 
   2454 cat >&5 <<_ACEOF
   2455 
   2456 
   2457 ## ----------- ##
   2458 ## Core tests. ##
   2459 ## ----------- ##
   2460 
   2461 _ACEOF
   2462 
   2463 
   2464 # Keep a trace of the command line.
   2465 # Strip out --no-create and --no-recursion so they do not pile up.
   2466 # Strip out --silent because we don't want to record it for future runs.
   2467 # Also quote any args containing shell meta-characters.
   2468 # Make two passes to allow for proper duplicate-argument suppression.
   2469 ac_configure_args=
   2470 ac_configure_args0=
   2471 ac_configure_args1=
   2472 ac_must_keep_next=false
   2473 for ac_pass in 1 2
   2474 do
   2475   for ac_arg
   2476   do
   2477     case $ac_arg in
   2478     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2479     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2480     | -silent | --silent | --silen | --sile | --sil)
   2481       continue ;;
   2482     *\'*)
   2483       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2484     esac
   2485     case $ac_pass in
   2486     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2487     2)
   2488       as_fn_append ac_configure_args1 " '$ac_arg'"
   2489       if test $ac_must_keep_next = true; then
   2490 	ac_must_keep_next=false # Got value, back to normal.
   2491       else
   2492 	case $ac_arg in
   2493 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2494 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2495 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2496 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2497 	    case "$ac_configure_args0 " in
   2498 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2499 	    esac
   2500 	    ;;
   2501 	  -* ) ac_must_keep_next=true ;;
   2502 	esac
   2503       fi
   2504       as_fn_append ac_configure_args " '$ac_arg'"
   2505       ;;
   2506     esac
   2507   done
   2508 done
   2509 { ac_configure_args0=; unset ac_configure_args0;}
   2510 { ac_configure_args1=; unset ac_configure_args1;}
   2511 
   2512 # When interrupted or exit'd, cleanup temporary files, and complete
   2513 # config.log.  We remove comments because anyway the quotes in there
   2514 # would cause problems or look ugly.
   2515 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2516 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2517 trap 'exit_status=$?
   2518   # Save into config.log some information that might help in debugging.
   2519   {
   2520     echo
   2521 
   2522     $as_echo "## ---------------- ##
   2523 ## Cache variables. ##
   2524 ## ---------------- ##"
   2525     echo
   2526     # The following way of writing the cache mishandles newlines in values,
   2527 (
   2528   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2529     eval ac_val=\$$ac_var
   2530     case $ac_val in #(
   2531     *${as_nl}*)
   2532       case $ac_var in #(
   2533       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2535       esac
   2536       case $ac_var in #(
   2537       _ | IFS | as_nl) ;; #(
   2538       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2539       *) { eval $ac_var=; unset $ac_var;} ;;
   2540       esac ;;
   2541     esac
   2542   done
   2543   (set) 2>&1 |
   2544     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2545     *${as_nl}ac_space=\ *)
   2546       sed -n \
   2547 	"s/'\''/'\''\\\\'\'''\''/g;
   2548 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2549       ;; #(
   2550     *)
   2551       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2552       ;;
   2553     esac |
   2554     sort
   2555 )
   2556     echo
   2557 
   2558     $as_echo "## ----------------- ##
   2559 ## Output variables. ##
   2560 ## ----------------- ##"
   2561     echo
   2562     for ac_var in $ac_subst_vars
   2563     do
   2564       eval ac_val=\$$ac_var
   2565       case $ac_val in
   2566       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2567       esac
   2568       $as_echo "$ac_var='\''$ac_val'\''"
   2569     done | sort
   2570     echo
   2571 
   2572     if test -n "$ac_subst_files"; then
   2573       $as_echo "## ------------------- ##
   2574 ## File substitutions. ##
   2575 ## ------------------- ##"
   2576       echo
   2577       for ac_var in $ac_subst_files
   2578       do
   2579 	eval ac_val=\$$ac_var
   2580 	case $ac_val in
   2581 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2582 	esac
   2583 	$as_echo "$ac_var='\''$ac_val'\''"
   2584       done | sort
   2585       echo
   2586     fi
   2587 
   2588     if test -s confdefs.h; then
   2589       $as_echo "## ----------- ##
   2590 ## confdefs.h. ##
   2591 ## ----------- ##"
   2592       echo
   2593       cat confdefs.h
   2594       echo
   2595     fi
   2596     test "$ac_signal" != 0 &&
   2597       $as_echo "$as_me: caught signal $ac_signal"
   2598     $as_echo "$as_me: exit $exit_status"
   2599   } >&5
   2600   rm -f core *.core core.conftest.* &&
   2601     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2602     exit $exit_status
   2603 ' 0
   2604 for ac_signal in 1 2 13 15; do
   2605   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2606 done
   2607 ac_signal=0
   2608 
   2609 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2610 rm -f -r conftest* confdefs.h
   2611 
   2612 $as_echo "/* confdefs.h */" > confdefs.h
   2613 
   2614 # Predefined preprocessor variables.
   2615 
   2616 cat >>confdefs.h <<_ACEOF
   2617 #define PACKAGE_NAME "$PACKAGE_NAME"
   2618 _ACEOF
   2619 
   2620 cat >>confdefs.h <<_ACEOF
   2621 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2622 _ACEOF
   2623 
   2624 cat >>confdefs.h <<_ACEOF
   2625 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2626 _ACEOF
   2627 
   2628 cat >>confdefs.h <<_ACEOF
   2629 #define PACKAGE_STRING "$PACKAGE_STRING"
   2630 _ACEOF
   2631 
   2632 cat >>confdefs.h <<_ACEOF
   2633 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2634 _ACEOF
   2635 
   2636 cat >>confdefs.h <<_ACEOF
   2637 #define PACKAGE_URL "$PACKAGE_URL"
   2638 _ACEOF
   2639 
   2640 
   2641 # Let the site file select an alternate cache file if it wants to.
   2642 # Prefer an explicitly selected file to automatically selected ones.
   2643 ac_site_file1=NONE
   2644 ac_site_file2=NONE
   2645 if test -n "$CONFIG_SITE"; then
   2646   # We do not want a PATH search for config.site.
   2647   case $CONFIG_SITE in #((
   2648     -*)  ac_site_file1=./$CONFIG_SITE;;
   2649     */*) ac_site_file1=$CONFIG_SITE;;
   2650     *)   ac_site_file1=./$CONFIG_SITE;;
   2651   esac
   2652 elif test "x$prefix" != xNONE; then
   2653   ac_site_file1=$prefix/share/config.site
   2654   ac_site_file2=$prefix/etc/config.site
   2655 else
   2656   ac_site_file1=$ac_default_prefix/share/config.site
   2657   ac_site_file2=$ac_default_prefix/etc/config.site
   2658 fi
   2659 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2660 do
   2661   test "x$ac_site_file" = xNONE && continue
   2662   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
   2663     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2664 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2665     sed 's/^/| /' "$ac_site_file" >&5
   2666     . "$ac_site_file" \
   2667       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2669 as_fn_error $? "failed to load site script $ac_site_file
   2670 See \`config.log' for more details" "$LINENO" 5; }
   2671   fi
   2672 done
   2673 
   2674 if test -r "$cache_file"; then
   2675   # Some versions of bash will fail to source /dev/null (special files
   2676   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
   2677   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
   2678     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2679 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2680     case $cache_file in
   2681       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2682       *)                      . "./$cache_file";;
   2683     esac
   2684   fi
   2685 else
   2686   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2687 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2688   >$cache_file
   2689 fi
   2690 
   2691 gt_needs="$gt_needs "
   2692 as_fn_append ac_header_list " stdlib.h"
   2693 as_fn_append ac_header_list " unistd.h"
   2694 as_fn_append ac_header_list " sys/param.h"
   2695 # Check that the precious variables saved in the cache have kept the same
   2696 # value.
   2697 ac_cache_corrupted=false
   2698 for ac_var in $ac_precious_vars; do
   2699   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2700   eval ac_new_set=\$ac_env_${ac_var}_set
   2701   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2702   eval ac_new_val=\$ac_env_${ac_var}_value
   2703   case $ac_old_set,$ac_new_set in
   2704     set,)
   2705       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2706 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2707       ac_cache_corrupted=: ;;
   2708     ,set)
   2709       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2710 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2711       ac_cache_corrupted=: ;;
   2712     ,);;
   2713     *)
   2714       if test "x$ac_old_val" != "x$ac_new_val"; then
   2715 	# differences in whitespace do not lead to failure.
   2716 	ac_old_val_w=`echo x $ac_old_val`
   2717 	ac_new_val_w=`echo x $ac_new_val`
   2718 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2719 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2720 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2721 	  ac_cache_corrupted=:
   2722 	else
   2723 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2724 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2725 	  eval $ac_var=\$ac_old_val
   2726 	fi
   2727 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2728 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2729 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2730 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2731       fi;;
   2732   esac
   2733   # Pass precious variables to config.status.
   2734   if test "$ac_new_set" = set; then
   2735     case $ac_new_val in
   2736     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2737     *) ac_arg=$ac_var=$ac_new_val ;;
   2738     esac
   2739     case " $ac_configure_args " in
   2740       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2741       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2742     esac
   2743   fi
   2744 done
   2745 if $ac_cache_corrupted; then
   2746   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2748   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2749 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2750   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2751 fi
   2752 ## -------------------- ##
   2753 ## Main body of script. ##
   2754 ## -------------------- ##
   2755 
   2756 ac_ext=c
   2757 ac_cpp='$CPP $CPPFLAGS'
   2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2761 
   2762 
   2763 
   2764 
   2765 
   2766 
   2767 ac_config_headers="$ac_config_headers config.h:config.in"
   2768 
   2769 
   2770 # Set build, build_cpu, build_vendor and build_os.
   2771 ac_aux_dir=
   2772 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   2773   if test -f "$ac_dir/install-sh"; then
   2774     ac_aux_dir=$ac_dir
   2775     ac_install_sh="$ac_aux_dir/install-sh -c"
   2776     break
   2777   elif test -f "$ac_dir/install.sh"; then
   2778     ac_aux_dir=$ac_dir
   2779     ac_install_sh="$ac_aux_dir/install.sh -c"
   2780     break
   2781   elif test -f "$ac_dir/shtool"; then
   2782     ac_aux_dir=$ac_dir
   2783     ac_install_sh="$ac_aux_dir/shtool install -c"
   2784     break
   2785   fi
   2786 done
   2787 if test -z "$ac_aux_dir"; then
   2788   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   2789 fi
   2790 
   2791 # These three variables are undocumented and unsupported,
   2792 # and are intended to be withdrawn in a future Autoconf release.
   2793 # They can cause serious problems if a builder's source tree is in a directory
   2794 # whose full name contains unusual characters.
   2795 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2796 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2797 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2798 
   2799 
   2800 # Make sure we can run config.sub.
   2801 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   2802   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   2803 
   2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   2805 $as_echo_n "checking build system type... " >&6; }
   2806 if ${ac_cv_build+:} false; then :
   2807   $as_echo_n "(cached) " >&6
   2808 else
   2809   ac_build_alias=$build_alias
   2810 test "x$ac_build_alias" = x &&
   2811   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   2812 test "x$ac_build_alias" = x &&
   2813   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
   2814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   2815   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   2816 
   2817 fi
   2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   2819 $as_echo "$ac_cv_build" >&6; }
   2820 case $ac_cv_build in
   2821 *-*-*) ;;
   2822 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
   2823 esac
   2824 build=$ac_cv_build
   2825 ac_save_IFS=$IFS; IFS='-'
   2826 set x $ac_cv_build
   2827 shift
   2828 build_cpu=$1
   2829 build_vendor=$2
   2830 shift; shift
   2831 # Remember, the first character of IFS is used to create $*,
   2832 # except with old shells:
   2833 build_os=$*
   2834 IFS=$ac_save_IFS
   2835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   2836 
   2837 
   2838 
   2839 # Set host, host_cpu, host_vendor, and host_os.
   2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   2841 $as_echo_n "checking host system type... " >&6; }
   2842 if ${ac_cv_host+:} false; then :
   2843   $as_echo_n "(cached) " >&6
   2844 else
   2845   if test "x$host_alias" = x; then
   2846   ac_cv_host=$ac_cv_build
   2847 else
   2848   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   2849     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   2850 fi
   2851 
   2852 fi
   2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   2854 $as_echo "$ac_cv_host" >&6; }
   2855 case $ac_cv_host in
   2856 *-*-*) ;;
   2857 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
   2858 esac
   2859 host=$ac_cv_host
   2860 ac_save_IFS=$IFS; IFS='-'
   2861 set x $ac_cv_host
   2862 shift
   2863 host_cpu=$1
   2864 host_vendor=$2
   2865 shift; shift
   2866 # Remember, the first character of IFS is used to create $*,
   2867 # except with old shells:
   2868 host_os=$*
   2869 IFS=$ac_save_IFS
   2870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   2871 
   2872 
   2873 
   2874 # Set target, target_cpu, target_vendor, and target_os.
   2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   2876 $as_echo_n "checking target system type... " >&6; }
   2877 if ${ac_cv_target+:} false; then :
   2878   $as_echo_n "(cached) " >&6
   2879 else
   2880   if test "x$target_alias" = x; then
   2881   ac_cv_target=$ac_cv_host
   2882 else
   2883   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   2884     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   2885 fi
   2886 
   2887 fi
   2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   2889 $as_echo "$ac_cv_target" >&6; }
   2890 case $ac_cv_target in
   2891 *-*-*) ;;
   2892 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
   2893 esac
   2894 target=$ac_cv_target
   2895 ac_save_IFS=$IFS; IFS='-'
   2896 set x $ac_cv_target
   2897 shift
   2898 target_cpu=$1
   2899 target_vendor=$2
   2900 shift; shift
   2901 # Remember, the first character of IFS is used to create $*,
   2902 # except with old shells:
   2903 target_os=$*
   2904 IFS=$ac_save_IFS
   2905 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   2906 
   2907 
   2908 # The aliases save the names the user supplied, while $host etc.
   2909 # will get canonicalized.
   2910 test -n "$target_alias" &&
   2911   test "$program_prefix$program_suffix$program_transform_name" = \
   2912     NONENONEs,x,x, &&
   2913   program_prefix=${target_alias}-
   2914 
   2915 
   2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2917 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2918     # Check whether --enable-maintainer-mode was given.
   2919 if test "${enable_maintainer_mode+set}" = set; then :
   2920   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2921 else
   2922   USE_MAINTAINER_MODE=no
   2923 fi
   2924 
   2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2926 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2927    if test $USE_MAINTAINER_MODE = yes; then
   2928   MAINTAINER_MODE_TRUE=
   2929   MAINTAINER_MODE_FALSE='#'
   2930 else
   2931   MAINTAINER_MODE_TRUE='#'
   2932   MAINTAINER_MODE_FALSE=
   2933 fi
   2934 
   2935   MAINT=$MAINTAINER_MODE_TRUE
   2936 
   2937 
   2938 ac_aux_dir=
   2939 for ac_dir in .. "$srcdir"/..; do
   2940   if test -f "$ac_dir/install-sh"; then
   2941     ac_aux_dir=$ac_dir
   2942     ac_install_sh="$ac_aux_dir/install-sh -c"
   2943     break
   2944   elif test -f "$ac_dir/install.sh"; then
   2945     ac_aux_dir=$ac_dir
   2946     ac_install_sh="$ac_aux_dir/install.sh -c"
   2947     break
   2948   elif test -f "$ac_dir/shtool"; then
   2949     ac_aux_dir=$ac_dir
   2950     ac_install_sh="$ac_aux_dir/shtool install -c"
   2951     break
   2952   fi
   2953 done
   2954 if test -z "$ac_aux_dir"; then
   2955   as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
   2956 fi
   2957 
   2958 # These three variables are undocumented and unsupported,
   2959 # and are intended to be withdrawn in a future Autoconf release.
   2960 # They can cause serious problems if a builder's source tree is in a directory
   2961 # whose full name contains unusual characters.
   2962 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   2963 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   2964 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   2965 
   2966 
   2967 am__api_version='1.15'
   2968 
   2969 # Find a good install program.  We prefer a C program (faster),
   2970 # so one script is as good as another.  But avoid the broken or
   2971 # incompatible versions:
   2972 # SysV /etc/install, /usr/sbin/install
   2973 # SunOS /usr/etc/install
   2974 # IRIX /sbin/install
   2975 # AIX /bin/install
   2976 # AmigaOS /C/install, which installs bootblocks on floppy discs
   2977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   2978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   2979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   2980 # OS/2's system install, which has a completely different semantic
   2981 # ./install, which can be erroneously created by make from ./install.sh.
   2982 # Reject install programs that cannot install multiple files.
   2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   2984 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   2985 if test -z "$INSTALL"; then
   2986 if ${ac_cv_path_install+:} false; then :
   2987   $as_echo_n "(cached) " >&6
   2988 else
   2989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2990 for as_dir in $PATH
   2991 do
   2992   IFS=$as_save_IFS
   2993   test -z "$as_dir" && as_dir=.
   2994     # Account for people who put trailing slashes in PATH elements.
   2995 case $as_dir/ in #((
   2996   ./ | .// | /[cC]/* | \
   2997   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   2998   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   2999   /usr/ucb/* ) ;;
   3000   *)
   3001     # OSF1 and SCO ODT 3.0 have their own names for install.
   3002     # Don't use installbsd from OSF since it installs stuff as root
   3003     # by default.
   3004     for ac_prog in ginstall scoinst install; do
   3005       for ac_exec_ext in '' $ac_executable_extensions; do
   3006 	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
   3007 	  if test $ac_prog = install &&
   3008 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3009 	    # AIX install.  It has an incompatible calling convention.
   3010 	    :
   3011 	  elif test $ac_prog = install &&
   3012 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   3013 	    # program-specific install script used by HP pwplus--don't use.
   3014 	    :
   3015 	  else
   3016 	    rm -rf conftest.one conftest.two conftest.dir
   3017 	    echo one > conftest.one
   3018 	    echo two > conftest.two
   3019 	    mkdir conftest.dir
   3020 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   3021 	      test -s conftest.one && test -s conftest.two &&
   3022 	      test -s conftest.dir/conftest.one &&
   3023 	      test -s conftest.dir/conftest.two
   3024 	    then
   3025 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   3026 	      break 3
   3027 	    fi
   3028 	  fi
   3029 	fi
   3030       done
   3031     done
   3032     ;;
   3033 esac
   3034 
   3035   done
   3036 IFS=$as_save_IFS
   3037 
   3038 rm -rf conftest.one conftest.two conftest.dir
   3039 
   3040 fi
   3041   if test "${ac_cv_path_install+set}" = set; then
   3042     INSTALL=$ac_cv_path_install
   3043   else
   3044     # As a last resort, use the slow shell script.  Don't cache a
   3045     # value for INSTALL within a source directory, because that will
   3046     # break other packages using the cache if that directory is
   3047     # removed, or if the value is a relative name.
   3048     INSTALL=$ac_install_sh
   3049   fi
   3050 fi
   3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   3052 $as_echo "$INSTALL" >&6; }
   3053 
   3054 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   3055 # It thinks the first close brace ends the variable substitution.
   3056 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   3057 
   3058 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   3059 
   3060 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   3061 
   3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
   3063 $as_echo_n "checking whether build environment is sane... " >&6; }
   3064 # Reject unsafe characters in $srcdir or the absolute working directory
   3065 # name.  Accept space and tab only in the latter.
   3066 am_lf='
   3067 '
   3068 case `pwd` in
   3069   *[\\\"\#\$\&\'\`$am_lf]*)
   3070     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
   3071 esac
   3072 case $srcdir in
   3073   *[\\\"\#\$\&\'\`$am_lf\ \	]*)
   3074     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
   3075 esac
   3076 
   3077 # Do 'set' in a subshell so we don't clobber the current shell's
   3078 # arguments.  Must try -L first in case configure is actually a
   3079 # symlink; some systems play weird games with the mod time of symlinks
   3080 # (eg FreeBSD returns the mod time of the symlink's containing
   3081 # directory).
   3082 if (
   3083    am_has_slept=no
   3084    for am_try in 1 2; do
   3085      echo "timestamp, slept: $am_has_slept" > conftest.file
   3086      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
   3087      if test "$*" = "X"; then
   3088 	# -L didn't work.
   3089 	set X `ls -t "$srcdir/configure" conftest.file`
   3090      fi
   3091      if test "$*" != "X $srcdir/configure conftest.file" \
   3092 	&& test "$*" != "X conftest.file $srcdir/configure"; then
   3093 
   3094 	# If neither matched, then we have a broken ls.  This can happen
   3095 	# if, for instance, CONFIG_SHELL is bash and it inherits a
   3096 	# broken ls alias from the environment.  This has actually
   3097 	# happened.  Such a system could not be considered "sane".
   3098 	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
   3099   alias in your environment" "$LINENO" 5
   3100      fi
   3101      if test "$2" = conftest.file || test $am_try -eq 2; then
   3102        break
   3103      fi
   3104      # Just in case.
   3105      sleep 1
   3106      am_has_slept=yes
   3107    done
   3108    test "$2" = conftest.file
   3109    )
   3110 then
   3111    # Ok.
   3112    :
   3113 else
   3114    as_fn_error $? "newly created file is older than distributed files!
   3115 Check your system clock" "$LINENO" 5
   3116 fi
   3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3118 $as_echo "yes" >&6; }
   3119 # If we didn't sleep, we still need to ensure time stamps of config.status and
   3120 # generated files are strictly newer.
   3121 am_sleep_pid=
   3122 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
   3123   ( sleep 1 ) &
   3124   am_sleep_pid=$!
   3125 fi
   3126 
   3127 rm -f conftest.file
   3128 
   3129 test "$program_prefix" != NONE &&
   3130   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   3131 # Use a double $ so make ignores it.
   3132 test "$program_suffix" != NONE &&
   3133   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   3134 # Double any \ or $.
   3135 # By default was `s,x,x', remove it if useless.
   3136 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   3137 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   3138 
   3139 # Expand $ac_aux_dir to an absolute path.
   3140 am_aux_dir=`cd "$ac_aux_dir" && pwd`
   3141 
   3142 if test x"${MISSING+set}" != xset; then
   3143   case $am_aux_dir in
   3144   *\ * | *\	*)
   3145     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
   3146   *)
   3147     MISSING="\${SHELL} $am_aux_dir/missing" ;;
   3148   esac
   3149 fi
   3150 # Use eval to expand $SHELL
   3151 if eval "$MISSING --is-lightweight"; then
   3152   am_missing_run="$MISSING "
   3153 else
   3154   am_missing_run=
   3155   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
   3156 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
   3157 fi
   3158 
   3159 if test x"${install_sh+set}" != xset; then
   3160   case $am_aux_dir in
   3161   *\ * | *\	*)
   3162     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   3163   *)
   3164     install_sh="\${SHELL} $am_aux_dir/install-sh"
   3165   esac
   3166 fi
   3167 
   3168 # Installed binaries are usually stripped using 'strip' when the user
   3169 # run "make install-strip".  However 'strip' might not be the right
   3170 # tool to use in cross-compilation environments, therefore Automake
   3171 # will honor the 'STRIP' environment variable to overrule this program.
   3172 if test "$cross_compiling" != no; then
   3173   if test -n "$ac_tool_prefix"; then
   3174   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   3175 set dummy ${ac_tool_prefix}strip; ac_word=$2
   3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3177 $as_echo_n "checking for $ac_word... " >&6; }
   3178 if ${ac_cv_prog_STRIP+:} false; then :
   3179   $as_echo_n "(cached) " >&6
   3180 else
   3181   if test -n "$STRIP"; then
   3182   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   3183 else
   3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3185 for as_dir in $PATH
   3186 do
   3187   IFS=$as_save_IFS
   3188   test -z "$as_dir" && as_dir=.
   3189     for ac_exec_ext in '' $ac_executable_extensions; do
   3190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3191     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   3192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3193     break 2
   3194   fi
   3195 done
   3196   done
   3197 IFS=$as_save_IFS
   3198 
   3199 fi
   3200 fi
   3201 STRIP=$ac_cv_prog_STRIP
   3202 if test -n "$STRIP"; then
   3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   3204 $as_echo "$STRIP" >&6; }
   3205 else
   3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3207 $as_echo "no" >&6; }
   3208 fi
   3209 
   3210 
   3211 fi
   3212 if test -z "$ac_cv_prog_STRIP"; then
   3213   ac_ct_STRIP=$STRIP
   3214   # Extract the first word of "strip", so it can be a program name with args.
   3215 set dummy strip; ac_word=$2
   3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3217 $as_echo_n "checking for $ac_word... " >&6; }
   3218 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
   3219   $as_echo_n "(cached) " >&6
   3220 else
   3221   if test -n "$ac_ct_STRIP"; then
   3222   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   3223 else
   3224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3225 for as_dir in $PATH
   3226 do
   3227   IFS=$as_save_IFS
   3228   test -z "$as_dir" && as_dir=.
   3229     for ac_exec_ext in '' $ac_executable_extensions; do
   3230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3231     ac_cv_prog_ac_ct_STRIP="strip"
   3232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3233     break 2
   3234   fi
   3235 done
   3236   done
   3237 IFS=$as_save_IFS
   3238 
   3239 fi
   3240 fi
   3241 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   3242 if test -n "$ac_ct_STRIP"; then
   3243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   3244 $as_echo "$ac_ct_STRIP" >&6; }
   3245 else
   3246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3247 $as_echo "no" >&6; }
   3248 fi
   3249 
   3250   if test "x$ac_ct_STRIP" = x; then
   3251     STRIP=":"
   3252   else
   3253     case $cross_compiling:$ac_tool_warned in
   3254 yes:)
   3255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3257 ac_tool_warned=yes ;;
   3258 esac
   3259     STRIP=$ac_ct_STRIP
   3260   fi
   3261 else
   3262   STRIP="$ac_cv_prog_STRIP"
   3263 fi
   3264 
   3265 fi
   3266 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   3267 
   3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
   3269 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
   3270 if test -z "$MKDIR_P"; then
   3271   if ${ac_cv_path_mkdir+:} false; then :
   3272   $as_echo_n "(cached) " >&6
   3273 else
   3274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3275 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
   3276 do
   3277   IFS=$as_save_IFS
   3278   test -z "$as_dir" && as_dir=.
   3279     for ac_prog in mkdir gmkdir; do
   3280 	 for ac_exec_ext in '' $ac_executable_extensions; do
   3281 	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
   3282 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
   3283 	     'mkdir (GNU coreutils) '* | \
   3284 	     'mkdir (coreutils) '* | \
   3285 	     'mkdir (fileutils) '4.1*)
   3286 	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
   3287 	       break 3;;
   3288 	   esac
   3289 	 done
   3290        done
   3291   done
   3292 IFS=$as_save_IFS
   3293 
   3294 fi
   3295 
   3296   test -d ./--version && rmdir ./--version
   3297   if test "${ac_cv_path_mkdir+set}" = set; then
   3298     MKDIR_P="$ac_cv_path_mkdir -p"
   3299   else
   3300     # As a last resort, use the slow shell script.  Don't cache a
   3301     # value for MKDIR_P within a source directory, because that will
   3302     # break other packages using the cache if that directory is
   3303     # removed, or if the value is a relative name.
   3304     MKDIR_P="$ac_install_sh -d"
   3305   fi
   3306 fi
   3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
   3308 $as_echo "$MKDIR_P" >&6; }
   3309 
   3310 for ac_prog in gawk mawk nawk awk
   3311 do
   3312   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3313 set dummy $ac_prog; ac_word=$2
   3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3315 $as_echo_n "checking for $ac_word... " >&6; }
   3316 if ${ac_cv_prog_AWK+:} false; then :
   3317   $as_echo_n "(cached) " >&6
   3318 else
   3319   if test -n "$AWK"; then
   3320   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   3321 else
   3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3323 for as_dir in $PATH
   3324 do
   3325   IFS=$as_save_IFS
   3326   test -z "$as_dir" && as_dir=.
   3327     for ac_exec_ext in '' $ac_executable_extensions; do
   3328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3329     ac_cv_prog_AWK="$ac_prog"
   3330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3331     break 2
   3332   fi
   3333 done
   3334   done
   3335 IFS=$as_save_IFS
   3336 
   3337 fi
   3338 fi
   3339 AWK=$ac_cv_prog_AWK
   3340 if test -n "$AWK"; then
   3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   3342 $as_echo "$AWK" >&6; }
   3343 else
   3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3345 $as_echo "no" >&6; }
   3346 fi
   3347 
   3348 
   3349   test -n "$AWK" && break
   3350 done
   3351 
   3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   3353 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   3354 set x ${MAKE-make}
   3355 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   3356 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
   3357   $as_echo_n "(cached) " >&6
   3358 else
   3359   cat >conftest.make <<\_ACEOF
   3360 SHELL = /bin/sh
   3361 all:
   3362 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   3363 _ACEOF
   3364 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
   3365 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   3366   *@@@%%%=?*=@@@%%%*)
   3367     eval ac_cv_prog_make_${ac_make}_set=yes;;
   3368   *)
   3369     eval ac_cv_prog_make_${ac_make}_set=no;;
   3370 esac
   3371 rm -f conftest.make
   3372 fi
   3373 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3375 $as_echo "yes" >&6; }
   3376   SET_MAKE=
   3377 else
   3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3379 $as_echo "no" >&6; }
   3380   SET_MAKE="MAKE=${MAKE-make}"
   3381 fi
   3382 
   3383 rm -rf .tst 2>/dev/null
   3384 mkdir .tst 2>/dev/null
   3385 if test -d .tst; then
   3386   am__leading_dot=.
   3387 else
   3388   am__leading_dot=_
   3389 fi
   3390 rmdir .tst 2>/dev/null
   3391 
   3392 # Check whether --enable-silent-rules was given.
   3393 if test "${enable_silent_rules+set}" = set; then :
   3394   enableval=$enable_silent_rules;
   3395 fi
   3396 
   3397 case $enable_silent_rules in # (((
   3398   yes) AM_DEFAULT_VERBOSITY=0;;
   3399    no) AM_DEFAULT_VERBOSITY=1;;
   3400     *) AM_DEFAULT_VERBOSITY=1;;
   3401 esac
   3402 am_make=${MAKE-make}
   3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   3404 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   3405 if ${am_cv_make_support_nested_variables+:} false; then :
   3406   $as_echo_n "(cached) " >&6
   3407 else
   3408   if $as_echo 'TRUE=$(BAR$(V))
   3409 BAR0=false
   3410 BAR1=true
   3411 V=1
   3412 am__doit:
   3413 	@$(TRUE)
   3414 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   3415   am_cv_make_support_nested_variables=yes
   3416 else
   3417   am_cv_make_support_nested_variables=no
   3418 fi
   3419 fi
   3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   3421 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   3422 if test $am_cv_make_support_nested_variables = yes; then
   3423     AM_V='$(V)'
   3424   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   3425 else
   3426   AM_V=$AM_DEFAULT_VERBOSITY
   3427   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   3428 fi
   3429 AM_BACKSLASH='\'
   3430 
   3431 if test "`cd $srcdir && pwd`" != "`pwd`"; then
   3432   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
   3433   # is not polluted with repeated "-I."
   3434   am__isrc=' -I$(srcdir)'
   3435   # test to see if srcdir already configured
   3436   if test -f $srcdir/config.status; then
   3437     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
   3438   fi
   3439 fi
   3440 
   3441 # test whether we have cygpath
   3442 if test -z "$CYGPATH_W"; then
   3443   if (cygpath --version) >/dev/null 2>/dev/null; then
   3444     CYGPATH_W='cygpath -w'
   3445   else
   3446     CYGPATH_W=echo
   3447   fi
   3448 fi
   3449 
   3450 
   3451 # Define the identity of the package.
   3452  PACKAGE='gdbsupport'
   3453  VERSION='1.0'
   3454 
   3455 
   3456 cat >>confdefs.h <<_ACEOF
   3457 #define PACKAGE "$PACKAGE"
   3458 _ACEOF
   3459 
   3460 
   3461 cat >>confdefs.h <<_ACEOF
   3462 #define VERSION "$VERSION"
   3463 _ACEOF
   3464 
   3465 # Some tools Automake needs.
   3466 
   3467 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
   3468 
   3469 
   3470 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
   3471 
   3472 
   3473 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
   3474 
   3475 
   3476 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
   3477 
   3478 
   3479 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
   3480 
   3481 # For better backward compatibility.  To be removed once Automake 1.9.x
   3482 # dies out for good.  For more background, see:
   3483 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
   3484 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
   3485 mkdir_p='$(MKDIR_P)'
   3486 
   3487 # We need awk for the "check" target (and possibly the TAP driver).  The
   3488 # system "awk" is bad on some platforms.
   3489 # Always define AMTAR for backward compatibility.  Yes, it's still used
   3490 # in the wild :-(  We should find a proper way to deprecate it ...
   3491 AMTAR='$${TAR-tar}'
   3492 
   3493 
   3494 # We'll loop over all known methods to create a tar archive until one works.
   3495 _am_tools='gnutar  pax cpio none'
   3496 
   3497 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
   3498 
   3499 
   3500 
   3501 
   3502 
   3503 
   3504 # POSIX will say in a future version that running "rm -f" with no argument
   3505 # is OK; and we want to be able to make that assumption in our Makefile
   3506 # recipes.  So use an aggressive probe to check that the usage we want is
   3507 # actually supported "in the wild" to an acceptable degree.
   3508 # See automake bug#10828.
   3509 # To make any issue more visible, cause the running configure to be aborted
   3510 # by default if the 'rm' program in use doesn't match our expectations; the
   3511 # user can still override this though.
   3512 if rm -f && rm -fr && rm -rf; then : OK; else
   3513   cat >&2 <<'END'
   3514 Oops!
   3515 
   3516 Your 'rm' program seems unable to run without file operands specified
   3517 on the command line, even when the '-f' option is present.  This is contrary
   3518 to the behaviour of most rm programs out there, and not conforming with
   3519 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
   3520 
   3521 Please tell bug-automake@gnu.org about your system, including the value
   3522 of your $PATH and any error possibly output before this message.  This
   3523 can help us improve future automake versions.
   3524 
   3525 END
   3526   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
   3527     echo 'Configuration will proceed anyway, since you have set the' >&2
   3528     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
   3529     echo >&2
   3530   else
   3531     cat >&2 <<'END'
   3532 Aborting the configuration process, to ensure you take notice of the issue.
   3533 
   3534 You can download and install GNU coreutils to get an 'rm' implementation
   3535 that behaves properly: <http://www.gnu.org/software/coreutils/>.
   3536 
   3537 If you want to complete the configuration process using your problematic
   3538 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
   3539 to "yes", and re-run configure.
   3540 
   3541 END
   3542     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
   3543   fi
   3544 fi
   3545 
   3546 # Check whether --enable-silent-rules was given.
   3547 if test "${enable_silent_rules+set}" = set; then :
   3548   enableval=$enable_silent_rules;
   3549 fi
   3550 
   3551 case $enable_silent_rules in # (((
   3552   yes) AM_DEFAULT_VERBOSITY=0;;
   3553    no) AM_DEFAULT_VERBOSITY=1;;
   3554     *) AM_DEFAULT_VERBOSITY=0;;
   3555 esac
   3556 am_make=${MAKE-make}
   3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
   3558 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
   3559 if ${am_cv_make_support_nested_variables+:} false; then :
   3560   $as_echo_n "(cached) " >&6
   3561 else
   3562   if $as_echo 'TRUE=$(BAR$(V))
   3563 BAR0=false
   3564 BAR1=true
   3565 V=1
   3566 am__doit:
   3567 	@$(TRUE)
   3568 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
   3569   am_cv_make_support_nested_variables=yes
   3570 else
   3571   am_cv_make_support_nested_variables=no
   3572 fi
   3573 fi
   3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
   3575 $as_echo "$am_cv_make_support_nested_variables" >&6; }
   3576 if test $am_cv_make_support_nested_variables = yes; then
   3577     AM_V='$(V)'
   3578   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
   3579 else
   3580   AM_V=$AM_DEFAULT_VERBOSITY
   3581   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
   3582 fi
   3583 AM_BACKSLASH='\'
   3584 
   3585 
   3586 ac_ext=c
   3587 ac_cpp='$CPP $CPPFLAGS'
   3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3591 if test -n "$ac_tool_prefix"; then
   3592   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   3593 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3595 $as_echo_n "checking for $ac_word... " >&6; }
   3596 if ${ac_cv_prog_CC+:} false; then :
   3597   $as_echo_n "(cached) " >&6
   3598 else
   3599   if test -n "$CC"; then
   3600   ac_cv_prog_CC="$CC" # Let the user override the test.
   3601 else
   3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3603 for as_dir in $PATH
   3604 do
   3605   IFS=$as_save_IFS
   3606   test -z "$as_dir" && as_dir=.
   3607     for ac_exec_ext in '' $ac_executable_extensions; do
   3608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3609     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   3610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3611     break 2
   3612   fi
   3613 done
   3614   done
   3615 IFS=$as_save_IFS
   3616 
   3617 fi
   3618 fi
   3619 CC=$ac_cv_prog_CC
   3620 if test -n "$CC"; then
   3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3622 $as_echo "$CC" >&6; }
   3623 else
   3624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3625 $as_echo "no" >&6; }
   3626 fi
   3627 
   3628 
   3629 fi
   3630 if test -z "$ac_cv_prog_CC"; then
   3631   ac_ct_CC=$CC
   3632   # Extract the first word of "gcc", so it can be a program name with args.
   3633 set dummy gcc; ac_word=$2
   3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3635 $as_echo_n "checking for $ac_word... " >&6; }
   3636 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3637   $as_echo_n "(cached) " >&6
   3638 else
   3639   if test -n "$ac_ct_CC"; then
   3640   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3641 else
   3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3643 for as_dir in $PATH
   3644 do
   3645   IFS=$as_save_IFS
   3646   test -z "$as_dir" && as_dir=.
   3647     for ac_exec_ext in '' $ac_executable_extensions; do
   3648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3649     ac_cv_prog_ac_ct_CC="gcc"
   3650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3651     break 2
   3652   fi
   3653 done
   3654   done
   3655 IFS=$as_save_IFS
   3656 
   3657 fi
   3658 fi
   3659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3660 if test -n "$ac_ct_CC"; then
   3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3662 $as_echo "$ac_ct_CC" >&6; }
   3663 else
   3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3665 $as_echo "no" >&6; }
   3666 fi
   3667 
   3668   if test "x$ac_ct_CC" = x; then
   3669     CC=""
   3670   else
   3671     case $cross_compiling:$ac_tool_warned in
   3672 yes:)
   3673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3675 ac_tool_warned=yes ;;
   3676 esac
   3677     CC=$ac_ct_CC
   3678   fi
   3679 else
   3680   CC="$ac_cv_prog_CC"
   3681 fi
   3682 
   3683 if test -z "$CC"; then
   3684           if test -n "$ac_tool_prefix"; then
   3685     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   3686 set dummy ${ac_tool_prefix}cc; ac_word=$2
   3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3688 $as_echo_n "checking for $ac_word... " >&6; }
   3689 if ${ac_cv_prog_CC+:} false; then :
   3690   $as_echo_n "(cached) " >&6
   3691 else
   3692   if test -n "$CC"; then
   3693   ac_cv_prog_CC="$CC" # Let the user override the test.
   3694 else
   3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3696 for as_dir in $PATH
   3697 do
   3698   IFS=$as_save_IFS
   3699   test -z "$as_dir" && as_dir=.
   3700     for ac_exec_ext in '' $ac_executable_extensions; do
   3701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3702     ac_cv_prog_CC="${ac_tool_prefix}cc"
   3703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3704     break 2
   3705   fi
   3706 done
   3707   done
   3708 IFS=$as_save_IFS
   3709 
   3710 fi
   3711 fi
   3712 CC=$ac_cv_prog_CC
   3713 if test -n "$CC"; then
   3714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3715 $as_echo "$CC" >&6; }
   3716 else
   3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3718 $as_echo "no" >&6; }
   3719 fi
   3720 
   3721 
   3722   fi
   3723 fi
   3724 if test -z "$CC"; then
   3725   # Extract the first word of "cc", so it can be a program name with args.
   3726 set dummy cc; ac_word=$2
   3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3728 $as_echo_n "checking for $ac_word... " >&6; }
   3729 if ${ac_cv_prog_CC+:} false; then :
   3730   $as_echo_n "(cached) " >&6
   3731 else
   3732   if test -n "$CC"; then
   3733   ac_cv_prog_CC="$CC" # Let the user override the test.
   3734 else
   3735   ac_prog_rejected=no
   3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3737 for as_dir in $PATH
   3738 do
   3739   IFS=$as_save_IFS
   3740   test -z "$as_dir" && as_dir=.
   3741     for ac_exec_ext in '' $ac_executable_extensions; do
   3742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3743     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   3744        ac_prog_rejected=yes
   3745        continue
   3746      fi
   3747     ac_cv_prog_CC="cc"
   3748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3749     break 2
   3750   fi
   3751 done
   3752   done
   3753 IFS=$as_save_IFS
   3754 
   3755 if test $ac_prog_rejected = yes; then
   3756   # We found a bogon in the path, so make sure we never use it.
   3757   set dummy $ac_cv_prog_CC
   3758   shift
   3759   if test $# != 0; then
   3760     # We chose a different compiler from the bogus one.
   3761     # However, it has the same basename, so the bogon will be chosen
   3762     # first if we set CC to just the basename; use the full file name.
   3763     shift
   3764     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   3765   fi
   3766 fi
   3767 fi
   3768 fi
   3769 CC=$ac_cv_prog_CC
   3770 if test -n "$CC"; then
   3771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3772 $as_echo "$CC" >&6; }
   3773 else
   3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3775 $as_echo "no" >&6; }
   3776 fi
   3777 
   3778 
   3779 fi
   3780 if test -z "$CC"; then
   3781   if test -n "$ac_tool_prefix"; then
   3782   for ac_prog in cl.exe
   3783   do
   3784     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   3785 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3787 $as_echo_n "checking for $ac_word... " >&6; }
   3788 if ${ac_cv_prog_CC+:} false; then :
   3789   $as_echo_n "(cached) " >&6
   3790 else
   3791   if test -n "$CC"; then
   3792   ac_cv_prog_CC="$CC" # Let the user override the test.
   3793 else
   3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3795 for as_dir in $PATH
   3796 do
   3797   IFS=$as_save_IFS
   3798   test -z "$as_dir" && as_dir=.
   3799     for ac_exec_ext in '' $ac_executable_extensions; do
   3800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3801     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   3802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3803     break 2
   3804   fi
   3805 done
   3806   done
   3807 IFS=$as_save_IFS
   3808 
   3809 fi
   3810 fi
   3811 CC=$ac_cv_prog_CC
   3812 if test -n "$CC"; then
   3813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   3814 $as_echo "$CC" >&6; }
   3815 else
   3816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3817 $as_echo "no" >&6; }
   3818 fi
   3819 
   3820 
   3821     test -n "$CC" && break
   3822   done
   3823 fi
   3824 if test -z "$CC"; then
   3825   ac_ct_CC=$CC
   3826   for ac_prog in cl.exe
   3827 do
   3828   # Extract the first word of "$ac_prog", so it can be a program name with args.
   3829 set dummy $ac_prog; ac_word=$2
   3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   3831 $as_echo_n "checking for $ac_word... " >&6; }
   3832 if ${ac_cv_prog_ac_ct_CC+:} false; then :
   3833   $as_echo_n "(cached) " >&6
   3834 else
   3835   if test -n "$ac_ct_CC"; then
   3836   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   3837 else
   3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3839 for as_dir in $PATH
   3840 do
   3841   IFS=$as_save_IFS
   3842   test -z "$as_dir" && as_dir=.
   3843     for ac_exec_ext in '' $ac_executable_extensions; do
   3844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   3845     ac_cv_prog_ac_ct_CC="$ac_prog"
   3846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   3847     break 2
   3848   fi
   3849 done
   3850   done
   3851 IFS=$as_save_IFS
   3852 
   3853 fi
   3854 fi
   3855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   3856 if test -n "$ac_ct_CC"; then
   3857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   3858 $as_echo "$ac_ct_CC" >&6; }
   3859 else
   3860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3861 $as_echo "no" >&6; }
   3862 fi
   3863 
   3864 
   3865   test -n "$ac_ct_CC" && break
   3866 done
   3867 
   3868   if test "x$ac_ct_CC" = x; then
   3869     CC=""
   3870   else
   3871     case $cross_compiling:$ac_tool_warned in
   3872 yes:)
   3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3875 ac_tool_warned=yes ;;
   3876 esac
   3877     CC=$ac_ct_CC
   3878   fi
   3879 fi
   3880 
   3881 fi
   3882 
   3883 
   3884 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3886 as_fn_error $? "no acceptable C compiler found in \$PATH
   3887 See \`config.log' for more details" "$LINENO" 5; }
   3888 
   3889 # Provide some information about the compiler.
   3890 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3891 set X $ac_compile
   3892 ac_compiler=$2
   3893 for ac_option in --version -v -V -qversion; do
   3894   { { ac_try="$ac_compiler $ac_option >&5"
   3895 case "(($ac_try" in
   3896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3897   *) ac_try_echo=$ac_try;;
   3898 esac
   3899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3900 $as_echo "$ac_try_echo"; } >&5
   3901   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3902   ac_status=$?
   3903   if test -s conftest.err; then
   3904     sed '10a\
   3905 ... rest of stderr output deleted ...
   3906          10q' conftest.err >conftest.er1
   3907     cat conftest.er1 >&5
   3908   fi
   3909   rm -f conftest.er1 conftest.err
   3910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3911   test $ac_status = 0; }
   3912 done
   3913 
   3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3915 /* end confdefs.h.  */
   3916 
   3917 int
   3918 main ()
   3919 {
   3920 
   3921   ;
   3922   return 0;
   3923 }
   3924 _ACEOF
   3925 ac_clean_files_save=$ac_clean_files
   3926 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
   3927 # Try to create an executable without -o first, disregard a.out.
   3928 # It will help us diagnose broken compilers, and finding out an intuition
   3929 # of exeext.
   3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3931 $as_echo_n "checking whether the C compiler works... " >&6; }
   3932 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3933 
   3934 # The possible output files:
   3935 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3936 
   3937 ac_rmfiles=
   3938 for ac_file in $ac_files
   3939 do
   3940   case $ac_file in
   3941     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3942     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3943   esac
   3944 done
   3945 rm -f $ac_rmfiles
   3946 
   3947 if { { ac_try="$ac_link_default"
   3948 case "(($ac_try" in
   3949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3950   *) ac_try_echo=$ac_try;;
   3951 esac
   3952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3953 $as_echo "$ac_try_echo"; } >&5
   3954   (eval "$ac_link_default") 2>&5
   3955   ac_status=$?
   3956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3957   test $ac_status = 0; }; then :
   3958   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3959 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3960 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3961 # so that the user can short-circuit this test for compilers unknown to
   3962 # Autoconf.
   3963 for ac_file in $ac_files ''
   3964 do
   3965   test -f "$ac_file" || continue
   3966   case $ac_file in
   3967     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3968 	;;
   3969     [ab].out )
   3970 	# We found the default executable, but exeext='' is most
   3971 	# certainly right.
   3972 	break;;
   3973     *.* )
   3974 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3975 	then :; else
   3976 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3977 	fi
   3978 	# We set ac_cv_exeext here because the later test for it is not
   3979 	# safe: cross compilers may not add the suffix if given an `-o'
   3980 	# argument, so we may need to know it at that point already.
   3981 	# Even if this section looks crufty: it has the advantage of
   3982 	# actually working.
   3983 	break;;
   3984     * )
   3985 	break;;
   3986   esac
   3987 done
   3988 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3989 
   3990 else
   3991   ac_file=''
   3992 fi
   3993 if test -z "$ac_file"; then :
   3994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   3995 $as_echo "no" >&6; }
   3996 $as_echo "$as_me: failed program was:" >&5
   3997 sed 's/^/| /' conftest.$ac_ext >&5
   3998 
   3999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4001 as_fn_error 77 "C compiler cannot create executables
   4002 See \`config.log' for more details" "$LINENO" 5; }
   4003 else
   4004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4005 $as_echo "yes" >&6; }
   4006 fi
   4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   4008 $as_echo_n "checking for C compiler default output file name... " >&6; }
   4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   4010 $as_echo "$ac_file" >&6; }
   4011 ac_exeext=$ac_cv_exeext
   4012 
   4013 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
   4014 ac_clean_files=$ac_clean_files_save
   4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   4016 $as_echo_n "checking for suffix of executables... " >&6; }
   4017 if { { ac_try="$ac_link"
   4018 case "(($ac_try" in
   4019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4020   *) ac_try_echo=$ac_try;;
   4021 esac
   4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4023 $as_echo "$ac_try_echo"; } >&5
   4024   (eval "$ac_link") 2>&5
   4025   ac_status=$?
   4026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4027   test $ac_status = 0; }; then :
   4028   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   4029 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   4030 # work properly (i.e., refer to `conftest.exe'), while it won't with
   4031 # `rm'.
   4032 for ac_file in conftest.exe conftest conftest.*; do
   4033   test -f "$ac_file" || continue
   4034   case $ac_file in
   4035     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   4036     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   4037 	  break;;
   4038     * ) break;;
   4039   esac
   4040 done
   4041 else
   4042   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4044 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
   4045 See \`config.log' for more details" "$LINENO" 5; }
   4046 fi
   4047 rm -f conftest conftest$ac_cv_exeext
   4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   4049 $as_echo "$ac_cv_exeext" >&6; }
   4050 
   4051 rm -f conftest.$ac_ext
   4052 EXEEXT=$ac_cv_exeext
   4053 ac_exeext=$EXEEXT
   4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4055 /* end confdefs.h.  */
   4056 #include <stdio.h>
   4057 int
   4058 main ()
   4059 {
   4060 FILE *f = fopen ("conftest.out", "w");
   4061  return ferror (f) || fclose (f) != 0;
   4062 
   4063   ;
   4064   return 0;
   4065 }
   4066 _ACEOF
   4067 ac_clean_files="$ac_clean_files conftest.out"
   4068 # Check that the compiler produces executables we can run.  If not, either
   4069 # the compiler is broken, or we cross compile.
   4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   4071 $as_echo_n "checking whether we are cross compiling... " >&6; }
   4072 if test "$cross_compiling" != yes; then
   4073   { { ac_try="$ac_link"
   4074 case "(($ac_try" in
   4075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4076   *) ac_try_echo=$ac_try;;
   4077 esac
   4078 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4079 $as_echo "$ac_try_echo"; } >&5
   4080   (eval "$ac_link") 2>&5
   4081   ac_status=$?
   4082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4083   test $ac_status = 0; }
   4084   if { ac_try='./conftest$ac_cv_exeext'
   4085   { { case "(($ac_try" in
   4086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4087   *) ac_try_echo=$ac_try;;
   4088 esac
   4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4090 $as_echo "$ac_try_echo"; } >&5
   4091   (eval "$ac_try") 2>&5
   4092   ac_status=$?
   4093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4094   test $ac_status = 0; }; }; then
   4095     cross_compiling=no
   4096   else
   4097     if test "$cross_compiling" = maybe; then
   4098 	cross_compiling=yes
   4099     else
   4100 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4102 as_fn_error $? "cannot run C compiled programs.
   4103 If you meant to cross compile, use \`--host'.
   4104 See \`config.log' for more details" "$LINENO" 5; }
   4105     fi
   4106   fi
   4107 fi
   4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   4109 $as_echo "$cross_compiling" >&6; }
   4110 
   4111 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
   4112 ac_clean_files=$ac_clean_files_save
   4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   4114 $as_echo_n "checking for suffix of object files... " >&6; }
   4115 if ${ac_cv_objext+:} false; then :
   4116   $as_echo_n "(cached) " >&6
   4117 else
   4118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4119 /* end confdefs.h.  */
   4120 
   4121 int
   4122 main ()
   4123 {
   4124 
   4125   ;
   4126   return 0;
   4127 }
   4128 _ACEOF
   4129 rm -f conftest.o conftest.obj
   4130 if { { ac_try="$ac_compile"
   4131 case "(($ac_try" in
   4132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4133   *) ac_try_echo=$ac_try;;
   4134 esac
   4135 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4136 $as_echo "$ac_try_echo"; } >&5
   4137   (eval "$ac_compile") 2>&5
   4138   ac_status=$?
   4139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4140   test $ac_status = 0; }; then :
   4141   for ac_file in conftest.o conftest.obj conftest.*; do
   4142   test -f "$ac_file" || continue;
   4143   case $ac_file in
   4144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   4145     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   4146        break;;
   4147   esac
   4148 done
   4149 else
   4150   $as_echo "$as_me: failed program was:" >&5
   4151 sed 's/^/| /' conftest.$ac_ext >&5
   4152 
   4153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   4154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   4155 as_fn_error $? "cannot compute suffix of object files: cannot compile
   4156 See \`config.log' for more details" "$LINENO" 5; }
   4157 fi
   4158 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   4159 fi
   4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   4161 $as_echo "$ac_cv_objext" >&6; }
   4162 OBJEXT=$ac_cv_objext
   4163 ac_objext=$OBJEXT
   4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   4165 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   4166 if ${ac_cv_c_compiler_gnu+:} false; then :
   4167   $as_echo_n "(cached) " >&6
   4168 else
   4169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4170 /* end confdefs.h.  */
   4171 
   4172 int
   4173 main ()
   4174 {
   4175 #ifndef __GNUC__
   4176        choke me
   4177 #endif
   4178 
   4179   ;
   4180   return 0;
   4181 }
   4182 _ACEOF
   4183 if ac_fn_c_try_compile "$LINENO"; then :
   4184   ac_compiler_gnu=yes
   4185 else
   4186   ac_compiler_gnu=no
   4187 fi
   4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4189 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   4190 
   4191 fi
   4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   4193 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   4194 if test $ac_compiler_gnu = yes; then
   4195   GCC=yes
   4196 else
   4197   GCC=
   4198 fi
   4199 ac_test_CFLAGS=${CFLAGS+set}
   4200 ac_save_CFLAGS=$CFLAGS
   4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   4202 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   4203 if ${ac_cv_prog_cc_g+:} false; then :
   4204   $as_echo_n "(cached) " >&6
   4205 else
   4206   ac_save_c_werror_flag=$ac_c_werror_flag
   4207    ac_c_werror_flag=yes
   4208    ac_cv_prog_cc_g=no
   4209    CFLAGS="-g"
   4210    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4211 /* end confdefs.h.  */
   4212 
   4213 int
   4214 main ()
   4215 {
   4216 
   4217   ;
   4218   return 0;
   4219 }
   4220 _ACEOF
   4221 if ac_fn_c_try_compile "$LINENO"; then :
   4222   ac_cv_prog_cc_g=yes
   4223 else
   4224   CFLAGS=""
   4225       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4226 /* end confdefs.h.  */
   4227 
   4228 int
   4229 main ()
   4230 {
   4231 
   4232   ;
   4233   return 0;
   4234 }
   4235 _ACEOF
   4236 if ac_fn_c_try_compile "$LINENO"; then :
   4237 
   4238 else
   4239   ac_c_werror_flag=$ac_save_c_werror_flag
   4240 	 CFLAGS="-g"
   4241 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4242 /* end confdefs.h.  */
   4243 
   4244 int
   4245 main ()
   4246 {
   4247 
   4248   ;
   4249   return 0;
   4250 }
   4251 _ACEOF
   4252 if ac_fn_c_try_compile "$LINENO"; then :
   4253   ac_cv_prog_cc_g=yes
   4254 fi
   4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4256 fi
   4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4258 fi
   4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4260    ac_c_werror_flag=$ac_save_c_werror_flag
   4261 fi
   4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   4263 $as_echo "$ac_cv_prog_cc_g" >&6; }
   4264 if test "$ac_test_CFLAGS" = set; then
   4265   CFLAGS=$ac_save_CFLAGS
   4266 elif test $ac_cv_prog_cc_g = yes; then
   4267   if test "$GCC" = yes; then
   4268     CFLAGS="-g -O2"
   4269   else
   4270     CFLAGS="-g"
   4271   fi
   4272 else
   4273   if test "$GCC" = yes; then
   4274     CFLAGS="-O2"
   4275   else
   4276     CFLAGS=
   4277   fi
   4278 fi
   4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   4280 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   4281 if ${ac_cv_prog_cc_c89+:} false; then :
   4282   $as_echo_n "(cached) " >&6
   4283 else
   4284   ac_cv_prog_cc_c89=no
   4285 ac_save_CC=$CC
   4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4287 /* end confdefs.h.  */
   4288 #include <stdarg.h>
   4289 #include <stdio.h>
   4290 struct stat;
   4291 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4292 struct buf { int x; };
   4293 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4294 static char *e (p, i)
   4295      char **p;
   4296      int i;
   4297 {
   4298   return p[i];
   4299 }
   4300 static char *f (char * (*g) (char **, int), char **p, ...)
   4301 {
   4302   char *s;
   4303   va_list v;
   4304   va_start (v,p);
   4305   s = g (p, va_arg (v,int));
   4306   va_end (v);
   4307   return s;
   4308 }
   4309 
   4310 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   4311    function prototypes and stuff, but not '\xHH' hex character constants.
   4312    These don't provoke an error unfortunately, instead are silently treated
   4313    as 'x'.  The following induces an error, until -std is added to get
   4314    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   4315    array size at least.  It's necessary to write '\x00'==0 to get something
   4316    that's true only with -std.  */
   4317 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   4318 
   4319 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   4320    inside strings and character constants.  */
   4321 #define FOO(x) 'x'
   4322 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   4323 
   4324 int test (int i, double x);
   4325 struct s1 {int (*f) (int a);};
   4326 struct s2 {int (*f) (double a);};
   4327 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4328 int argc;
   4329 char **argv;
   4330 int
   4331 main ()
   4332 {
   4333 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4334   ;
   4335   return 0;
   4336 }
   4337 _ACEOF
   4338 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   4339 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4340 do
   4341   CC="$ac_save_CC $ac_arg"
   4342   if ac_fn_c_try_compile "$LINENO"; then :
   4343   ac_cv_prog_cc_c89=$ac_arg
   4344 fi
   4345 rm -f core conftest.err conftest.$ac_objext
   4346   test "x$ac_cv_prog_cc_c89" != "xno" && break
   4347 done
   4348 rm -f conftest.$ac_ext
   4349 CC=$ac_save_CC
   4350 
   4351 fi
   4352 # AC_CACHE_VAL
   4353 case "x$ac_cv_prog_cc_c89" in
   4354   x)
   4355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4356 $as_echo "none needed" >&6; } ;;
   4357   xno)
   4358     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   4359 $as_echo "unsupported" >&6; } ;;
   4360   *)
   4361     CC="$CC $ac_cv_prog_cc_c89"
   4362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   4363 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   4364 esac
   4365 if test "x$ac_cv_prog_cc_c89" != xno; then :
   4366 
   4367 fi
   4368 
   4369 ac_ext=c
   4370 ac_cpp='$CPP $CPPFLAGS'
   4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4374 
   4375 ac_ext=c
   4376 ac_cpp='$CPP $CPPFLAGS'
   4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
   4381 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
   4382 if ${am_cv_prog_cc_c_o+:} false; then :
   4383   $as_echo_n "(cached) " >&6
   4384 else
   4385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4386 /* end confdefs.h.  */
   4387 
   4388 int
   4389 main ()
   4390 {
   4391 
   4392   ;
   4393   return 0;
   4394 }
   4395 _ACEOF
   4396   # Make sure it works both with $CC and with simple cc.
   4397   # Following AC_PROG_CC_C_O, we do the test twice because some
   4398   # compilers refuse to overwrite an existing .o file with -o,
   4399   # though they will create one.
   4400   am_cv_prog_cc_c_o=yes
   4401   for am_i in 1 2; do
   4402     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
   4403    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
   4404    ac_status=$?
   4405    echo "$as_me:$LINENO: \$? = $ac_status" >&5
   4406    (exit $ac_status); } \
   4407          && test -f conftest2.$ac_objext; then
   4408       : OK
   4409     else
   4410       am_cv_prog_cc_c_o=no
   4411       break
   4412     fi
   4413   done
   4414   rm -f core conftest*
   4415   unset am_i
   4416 fi
   4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
   4418 $as_echo "$am_cv_prog_cc_c_o" >&6; }
   4419 if test "$am_cv_prog_cc_c_o" != yes; then
   4420    # Losing compiler, so override with the script.
   4421    # FIXME: It is wrong to rewrite CC.
   4422    # But if we don't then we get into trouble of one sort or another.
   4423    # A longer-term fix would be to have automake use am__CC in this case,
   4424    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
   4425    CC="$am_aux_dir/compile $CC"
   4426 fi
   4427 ac_ext=c
   4428 ac_cpp='$CPP $CPPFLAGS'
   4429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4432 
   4433 DEPDIR="${am__leading_dot}deps"
   4434 
   4435 ac_config_commands="$ac_config_commands depfiles"
   4436 
   4437 
   4438 am_make=${MAKE-make}
   4439 cat > confinc << 'END'
   4440 am__doit:
   4441 	@echo this is the am__doit target
   4442 .PHONY: am__doit
   4443 END
   4444 # If we don't find an include directive, just comment out the code.
   4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
   4446 $as_echo_n "checking for style of include used by $am_make... " >&6; }
   4447 am__include="#"
   4448 am__quote=
   4449 _am_result=none
   4450 # First try GNU make style include.
   4451 echo "include confinc" > confmf
   4452 # Ignore all kinds of additional output from 'make'.
   4453 case `$am_make -s -f confmf 2> /dev/null` in #(
   4454 *the\ am__doit\ target*)
   4455   am__include=include
   4456   am__quote=
   4457   _am_result=GNU
   4458   ;;
   4459 esac
   4460 # Now try BSD make style include.
   4461 if test "$am__include" = "#"; then
   4462    echo '.include "confinc"' > confmf
   4463    case `$am_make -s -f confmf 2> /dev/null` in #(
   4464    *the\ am__doit\ target*)
   4465      am__include=.include
   4466      am__quote="\""
   4467      _am_result=BSD
   4468      ;;
   4469    esac
   4470 fi
   4471 
   4472 
   4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
   4474 $as_echo "$_am_result" >&6; }
   4475 rm -f confinc confmf
   4476 
   4477 # Check whether --enable-dependency-tracking was given.
   4478 if test "${enable_dependency_tracking+set}" = set; then :
   4479   enableval=$enable_dependency_tracking;
   4480 fi
   4481 
   4482 if test "x$enable_dependency_tracking" != xno; then
   4483   am_depcomp="$ac_aux_dir/depcomp"
   4484   AMDEPBACKSLASH='\'
   4485   am__nodep='_no'
   4486 fi
   4487  if test "x$enable_dependency_tracking" != xno; then
   4488   AMDEP_TRUE=
   4489   AMDEP_FALSE='#'
   4490 else
   4491   AMDEP_TRUE='#'
   4492   AMDEP_FALSE=
   4493 fi
   4494 
   4495 
   4496 
   4497 depcc="$CC"   am_compiler_list=
   4498 
   4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4500 $as_echo_n "checking dependency style of $depcc... " >&6; }
   4501 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
   4502   $as_echo_n "(cached) " >&6
   4503 else
   4504   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   4505   # We make a subdir and do the tests there.  Otherwise we can end up
   4506   # making bogus files that we don't know about and never remove.  For
   4507   # instance it was reported that on HP-UX the gcc test will end up
   4508   # making a dummy file named 'D' -- because '-MD' means "put the output
   4509   # in D".
   4510   rm -rf conftest.dir
   4511   mkdir conftest.dir
   4512   # Copy depcomp to subdir because otherwise we won't find it if we're
   4513   # using a relative directory.
   4514   cp "$am_depcomp" conftest.dir
   4515   cd conftest.dir
   4516   # We will build objects and dependencies in a subdirectory because
   4517   # it helps to detect inapplicable dependency modes.  For instance
   4518   # both Tru64's cc and ICC support -MD to output dependencies as a
   4519   # side effect of compilation, but ICC will put the dependencies in
   4520   # the current directory while Tru64 will put them in the object
   4521   # directory.
   4522   mkdir sub
   4523 
   4524   am_cv_CC_dependencies_compiler_type=none
   4525   if test "$am_compiler_list" = ""; then
   4526      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4527   fi
   4528   am__universal=false
   4529   case " $depcc " in #(
   4530      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   4531      esac
   4532 
   4533   for depmode in $am_compiler_list; do
   4534     # Setup a source with many dependencies, because some compilers
   4535     # like to wrap large dependency lists on column 80 (with \), and
   4536     # we should not choose a depcomp mode which is confused by this.
   4537     #
   4538     # We need to recreate these files for each test, as the compiler may
   4539     # overwrite some of them when testing with obscure command lines.
   4540     # This happens at least with the AIX C compiler.
   4541     : > sub/conftest.c
   4542     for i in 1 2 3 4 5 6; do
   4543       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4544       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   4545       # Solaris 10 /bin/sh.
   4546       echo '/* dummy */' > sub/conftst$i.h
   4547     done
   4548     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4549 
   4550     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   4551     # mode.  It turns out that the SunPro C++ compiler does not properly
   4552     # handle '-M -o', and we need to detect this.  Also, some Intel
   4553     # versions had trouble with output in subdirs.
   4554     am__obj=sub/conftest.${OBJEXT-o}
   4555     am__minus_obj="-o $am__obj"
   4556     case $depmode in
   4557     gcc)
   4558       # This depmode causes a compiler race in universal mode.
   4559       test "$am__universal" = false || continue
   4560       ;;
   4561     nosideeffect)
   4562       # After this tag, mechanisms are not by side-effect, so they'll
   4563       # only be used when explicitly requested.
   4564       if test "x$enable_dependency_tracking" = xyes; then
   4565 	continue
   4566       else
   4567 	break
   4568       fi
   4569       ;;
   4570     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   4571       # This compiler won't grok '-c -o', but also, the minuso test has
   4572       # not run yet.  These depmodes are late enough in the game, and
   4573       # so weak that their functioning should not be impacted.
   4574       am__obj=conftest.${OBJEXT-o}
   4575       am__minus_obj=
   4576       ;;
   4577     none) break ;;
   4578     esac
   4579     if depmode=$depmode \
   4580        source=sub/conftest.c object=$am__obj \
   4581        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4582        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   4583          >/dev/null 2>conftest.err &&
   4584        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   4585        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4586        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   4587        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4588       # icc doesn't choke on unknown options, it will just issue warnings
   4589       # or remarks (even with -Werror).  So we grep stderr for any message
   4590       # that says an option was ignored or not supported.
   4591       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4592       #   icc: Command line warning: ignoring option '-M'; no argument required
   4593       # The diagnosis changed in icc 8.0:
   4594       #   icc: Command line remark: option '-MP' not supported
   4595       if (grep 'ignoring option' conftest.err ||
   4596           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4597         am_cv_CC_dependencies_compiler_type=$depmode
   4598         break
   4599       fi
   4600     fi
   4601   done
   4602 
   4603   cd ..
   4604   rm -rf conftest.dir
   4605 else
   4606   am_cv_CC_dependencies_compiler_type=none
   4607 fi
   4608 
   4609 fi
   4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4611 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   4612 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4613 
   4614  if
   4615   test "x$enable_dependency_tracking" != xno \
   4616   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
   4617   am__fastdepCC_TRUE=
   4618   am__fastdepCC_FALSE='#'
   4619 else
   4620   am__fastdepCC_TRUE='#'
   4621   am__fastdepCC_FALSE=
   4622 fi
   4623 
   4624 
   4625 ac_ext=cpp
   4626 ac_cpp='$CXXCPP $CPPFLAGS'
   4627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   4630 if test -z "$CXX"; then
   4631   if test -n "$CCC"; then
   4632     CXX=$CCC
   4633   else
   4634     if test -n "$ac_tool_prefix"; then
   4635   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   4636   do
   4637     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   4638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4640 $as_echo_n "checking for $ac_word... " >&6; }
   4641 if ${ac_cv_prog_CXX+:} false; then :
   4642   $as_echo_n "(cached) " >&6
   4643 else
   4644   if test -n "$CXX"; then
   4645   ac_cv_prog_CXX="$CXX" # Let the user override the test.
   4646 else
   4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4648 for as_dir in $PATH
   4649 do
   4650   IFS=$as_save_IFS
   4651   test -z "$as_dir" && as_dir=.
   4652     for ac_exec_ext in '' $ac_executable_extensions; do
   4653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4654     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
   4655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4656     break 2
   4657   fi
   4658 done
   4659   done
   4660 IFS=$as_save_IFS
   4661 
   4662 fi
   4663 fi
   4664 CXX=$ac_cv_prog_CXX
   4665 if test -n "$CXX"; then
   4666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
   4667 $as_echo "$CXX" >&6; }
   4668 else
   4669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4670 $as_echo "no" >&6; }
   4671 fi
   4672 
   4673 
   4674     test -n "$CXX" && break
   4675   done
   4676 fi
   4677 if test -z "$CXX"; then
   4678   ac_ct_CXX=$CXX
   4679   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
   4680 do
   4681   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4682 set dummy $ac_prog; ac_word=$2
   4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4684 $as_echo_n "checking for $ac_word... " >&6; }
   4685 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
   4686   $as_echo_n "(cached) " >&6
   4687 else
   4688   if test -n "$ac_ct_CXX"; then
   4689   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
   4690 else
   4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4692 for as_dir in $PATH
   4693 do
   4694   IFS=$as_save_IFS
   4695   test -z "$as_dir" && as_dir=.
   4696     for ac_exec_ext in '' $ac_executable_extensions; do
   4697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   4698     ac_cv_prog_ac_ct_CXX="$ac_prog"
   4699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4700     break 2
   4701   fi
   4702 done
   4703   done
   4704 IFS=$as_save_IFS
   4705 
   4706 fi
   4707 fi
   4708 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
   4709 if test -n "$ac_ct_CXX"; then
   4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
   4711 $as_echo "$ac_ct_CXX" >&6; }
   4712 else
   4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4714 $as_echo "no" >&6; }
   4715 fi
   4716 
   4717 
   4718   test -n "$ac_ct_CXX" && break
   4719 done
   4720 
   4721   if test "x$ac_ct_CXX" = x; then
   4722     CXX="g++"
   4723   else
   4724     case $cross_compiling:$ac_tool_warned in
   4725 yes:)
   4726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4728 ac_tool_warned=yes ;;
   4729 esac
   4730     CXX=$ac_ct_CXX
   4731   fi
   4732 fi
   4733 
   4734   fi
   4735 fi
   4736 # Provide some information about the compiler.
   4737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
   4738 set X $ac_compile
   4739 ac_compiler=$2
   4740 for ac_option in --version -v -V -qversion; do
   4741   { { ac_try="$ac_compiler $ac_option >&5"
   4742 case "(($ac_try" in
   4743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   4744   *) ac_try_echo=$ac_try;;
   4745 esac
   4746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   4747 $as_echo "$ac_try_echo"; } >&5
   4748   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   4749   ac_status=$?
   4750   if test -s conftest.err; then
   4751     sed '10a\
   4752 ... rest of stderr output deleted ...
   4753          10q' conftest.err >conftest.er1
   4754     cat conftest.er1 >&5
   4755   fi
   4756   rm -f conftest.er1 conftest.err
   4757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   4758   test $ac_status = 0; }
   4759 done
   4760 
   4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
   4762 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
   4763 if ${ac_cv_cxx_compiler_gnu+:} false; then :
   4764   $as_echo_n "(cached) " >&6
   4765 else
   4766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4767 /* end confdefs.h.  */
   4768 
   4769 int
   4770 main ()
   4771 {
   4772 #ifndef __GNUC__
   4773        choke me
   4774 #endif
   4775 
   4776   ;
   4777   return 0;
   4778 }
   4779 _ACEOF
   4780 if ac_fn_cxx_try_compile "$LINENO"; then :
   4781   ac_compiler_gnu=yes
   4782 else
   4783   ac_compiler_gnu=no
   4784 fi
   4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4786 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
   4787 
   4788 fi
   4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
   4790 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
   4791 if test $ac_compiler_gnu = yes; then
   4792   GXX=yes
   4793 else
   4794   GXX=
   4795 fi
   4796 ac_test_CXXFLAGS=${CXXFLAGS+set}
   4797 ac_save_CXXFLAGS=$CXXFLAGS
   4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
   4799 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
   4800 if ${ac_cv_prog_cxx_g+:} false; then :
   4801   $as_echo_n "(cached) " >&6
   4802 else
   4803   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
   4804    ac_cxx_werror_flag=yes
   4805    ac_cv_prog_cxx_g=no
   4806    CXXFLAGS="-g"
   4807    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4808 /* end confdefs.h.  */
   4809 
   4810 int
   4811 main ()
   4812 {
   4813 
   4814   ;
   4815   return 0;
   4816 }
   4817 _ACEOF
   4818 if ac_fn_cxx_try_compile "$LINENO"; then :
   4819   ac_cv_prog_cxx_g=yes
   4820 else
   4821   CXXFLAGS=""
   4822       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4823 /* end confdefs.h.  */
   4824 
   4825 int
   4826 main ()
   4827 {
   4828 
   4829   ;
   4830   return 0;
   4831 }
   4832 _ACEOF
   4833 if ac_fn_cxx_try_compile "$LINENO"; then :
   4834 
   4835 else
   4836   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   4837 	 CXXFLAGS="-g"
   4838 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4839 /* end confdefs.h.  */
   4840 
   4841 int
   4842 main ()
   4843 {
   4844 
   4845   ;
   4846   return 0;
   4847 }
   4848 _ACEOF
   4849 if ac_fn_cxx_try_compile "$LINENO"; then :
   4850   ac_cv_prog_cxx_g=yes
   4851 fi
   4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4853 fi
   4854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4855 fi
   4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4857    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
   4858 fi
   4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
   4860 $as_echo "$ac_cv_prog_cxx_g" >&6; }
   4861 if test "$ac_test_CXXFLAGS" = set; then
   4862   CXXFLAGS=$ac_save_CXXFLAGS
   4863 elif test $ac_cv_prog_cxx_g = yes; then
   4864   if test "$GXX" = yes; then
   4865     CXXFLAGS="-g -O2"
   4866   else
   4867     CXXFLAGS="-g"
   4868   fi
   4869 else
   4870   if test "$GXX" = yes; then
   4871     CXXFLAGS="-O2"
   4872   else
   4873     CXXFLAGS=
   4874   fi
   4875 fi
   4876 ac_ext=c
   4877 ac_cpp='$CPP $CPPFLAGS'
   4878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   4879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   4880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   4881 
   4882 depcc="$CXX"  am_compiler_list=
   4883 
   4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4885 $as_echo_n "checking dependency style of $depcc... " >&6; }
   4886 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
   4887   $as_echo_n "(cached) " >&6
   4888 else
   4889   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
   4890   # We make a subdir and do the tests there.  Otherwise we can end up
   4891   # making bogus files that we don't know about and never remove.  For
   4892   # instance it was reported that on HP-UX the gcc test will end up
   4893   # making a dummy file named 'D' -- because '-MD' means "put the output
   4894   # in D".
   4895   rm -rf conftest.dir
   4896   mkdir conftest.dir
   4897   # Copy depcomp to subdir because otherwise we won't find it if we're
   4898   # using a relative directory.
   4899   cp "$am_depcomp" conftest.dir
   4900   cd conftest.dir
   4901   # We will build objects and dependencies in a subdirectory because
   4902   # it helps to detect inapplicable dependency modes.  For instance
   4903   # both Tru64's cc and ICC support -MD to output dependencies as a
   4904   # side effect of compilation, but ICC will put the dependencies in
   4905   # the current directory while Tru64 will put them in the object
   4906   # directory.
   4907   mkdir sub
   4908 
   4909   am_cv_CXX_dependencies_compiler_type=none
   4910   if test "$am_compiler_list" = ""; then
   4911      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4912   fi
   4913   am__universal=false
   4914   case " $depcc " in #(
   4915      *\ -arch\ *\ -arch\ *) am__universal=true ;;
   4916      esac
   4917 
   4918   for depmode in $am_compiler_list; do
   4919     # Setup a source with many dependencies, because some compilers
   4920     # like to wrap large dependency lists on column 80 (with \), and
   4921     # we should not choose a depcomp mode which is confused by this.
   4922     #
   4923     # We need to recreate these files for each test, as the compiler may
   4924     # overwrite some of them when testing with obscure command lines.
   4925     # This happens at least with the AIX C compiler.
   4926     : > sub/conftest.c
   4927     for i in 1 2 3 4 5 6; do
   4928       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4929       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
   4930       # Solaris 10 /bin/sh.
   4931       echo '/* dummy */' > sub/conftst$i.h
   4932     done
   4933     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
   4934 
   4935     # We check with '-c' and '-o' for the sake of the "dashmstdout"
   4936     # mode.  It turns out that the SunPro C++ compiler does not properly
   4937     # handle '-M -o', and we need to detect this.  Also, some Intel
   4938     # versions had trouble with output in subdirs.
   4939     am__obj=sub/conftest.${OBJEXT-o}
   4940     am__minus_obj="-o $am__obj"
   4941     case $depmode in
   4942     gcc)
   4943       # This depmode causes a compiler race in universal mode.
   4944       test "$am__universal" = false || continue
   4945       ;;
   4946     nosideeffect)
   4947       # After this tag, mechanisms are not by side-effect, so they'll
   4948       # only be used when explicitly requested.
   4949       if test "x$enable_dependency_tracking" = xyes; then
   4950 	continue
   4951       else
   4952 	break
   4953       fi
   4954       ;;
   4955     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
   4956       # This compiler won't grok '-c -o', but also, the minuso test has
   4957       # not run yet.  These depmodes are late enough in the game, and
   4958       # so weak that their functioning should not be impacted.
   4959       am__obj=conftest.${OBJEXT-o}
   4960       am__minus_obj=
   4961       ;;
   4962     none) break ;;
   4963     esac
   4964     if depmode=$depmode \
   4965        source=sub/conftest.c object=$am__obj \
   4966        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4967        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
   4968          >/dev/null 2>conftest.err &&
   4969        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
   4970        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
   4971        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
   4972        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
   4973       # icc doesn't choke on unknown options, it will just issue warnings
   4974       # or remarks (even with -Werror).  So we grep stderr for any message
   4975       # that says an option was ignored or not supported.
   4976       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4977       #   icc: Command line warning: ignoring option '-M'; no argument required
   4978       # The diagnosis changed in icc 8.0:
   4979       #   icc: Command line remark: option '-MP' not supported
   4980       if (grep 'ignoring option' conftest.err ||
   4981           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4982         am_cv_CXX_dependencies_compiler_type=$depmode
   4983         break
   4984       fi
   4985     fi
   4986   done
   4987 
   4988   cd ..
   4989   rm -rf conftest.dir
   4990 else
   4991   am_cv_CXX_dependencies_compiler_type=none
   4992 fi
   4993 
   4994 fi
   4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
   4996 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
   4997 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
   4998 
   4999  if
   5000   test "x$enable_dependency_tracking" != xno \
   5001   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
   5002   am__fastdepCXX_TRUE=
   5003   am__fastdepCXX_FALSE='#'
   5004 else
   5005   am__fastdepCXX_TRUE='#'
   5006   am__fastdepCXX_FALSE=
   5007 fi
   5008 
   5009 
   5010 if test -n "$ac_tool_prefix"; then
   5011   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5012 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5014 $as_echo_n "checking for $ac_word... " >&6; }
   5015 if ${ac_cv_prog_RANLIB+:} false; then :
   5016   $as_echo_n "(cached) " >&6
   5017 else
   5018   if test -n "$RANLIB"; then
   5019   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5020 else
   5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5022 for as_dir in $PATH
   5023 do
   5024   IFS=$as_save_IFS
   5025   test -z "$as_dir" && as_dir=.
   5026     for ac_exec_ext in '' $ac_executable_extensions; do
   5027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5028     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5030     break 2
   5031   fi
   5032 done
   5033   done
   5034 IFS=$as_save_IFS
   5035 
   5036 fi
   5037 fi
   5038 RANLIB=$ac_cv_prog_RANLIB
   5039 if test -n "$RANLIB"; then
   5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5041 $as_echo "$RANLIB" >&6; }
   5042 else
   5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5044 $as_echo "no" >&6; }
   5045 fi
   5046 
   5047 
   5048 fi
   5049 if test -z "$ac_cv_prog_RANLIB"; then
   5050   ac_ct_RANLIB=$RANLIB
   5051   # Extract the first word of "ranlib", so it can be a program name with args.
   5052 set dummy ranlib; ac_word=$2
   5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5054 $as_echo_n "checking for $ac_word... " >&6; }
   5055 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
   5056   $as_echo_n "(cached) " >&6
   5057 else
   5058   if test -n "$ac_ct_RANLIB"; then
   5059   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5060 else
   5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5062 for as_dir in $PATH
   5063 do
   5064   IFS=$as_save_IFS
   5065   test -z "$as_dir" && as_dir=.
   5066     for ac_exec_ext in '' $ac_executable_extensions; do
   5067   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   5068     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5069     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5070     break 2
   5071   fi
   5072 done
   5073   done
   5074 IFS=$as_save_IFS
   5075 
   5076 fi
   5077 fi
   5078 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5079 if test -n "$ac_ct_RANLIB"; then
   5080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5081 $as_echo "$ac_ct_RANLIB" >&6; }
   5082 else
   5083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5084 $as_echo "no" >&6; }
   5085 fi
   5086 
   5087   if test "x$ac_ct_RANLIB" = x; then
   5088     RANLIB=":"
   5089   else
   5090     case $cross_compiling:$ac_tool_warned in
   5091 yes:)
   5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5094 ac_tool_warned=yes ;;
   5095 esac
   5096     RANLIB=$ac_ct_RANLIB
   5097   fi
   5098 else
   5099   RANLIB="$ac_cv_prog_RANLIB"
   5100 fi
   5101 
   5102 
   5103 
   5104 ac_ext=c
   5105 ac_cpp='$CPP $CPPFLAGS'
   5106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   5110 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   5111 # On Suns, sometimes $CPP names a directory.
   5112 if test -n "$CPP" && test -d "$CPP"; then
   5113   CPP=
   5114 fi
   5115 if test -z "$CPP"; then
   5116   if ${ac_cv_prog_CPP+:} false; then :
   5117   $as_echo_n "(cached) " >&6
   5118 else
   5119       # Double quotes because CPP needs to be expanded
   5120     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   5121     do
   5122       ac_preproc_ok=false
   5123 for ac_c_preproc_warn_flag in '' yes
   5124 do
   5125   # Use a header file that comes with gcc, so configuring glibc
   5126   # with a fresh cross-compiler works.
   5127   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5128   # <limits.h> exists even on freestanding compilers.
   5129   # On the NeXT, cc -E runs the code through the compiler's parser,
   5130   # not just through cpp. "Syntax error" is here to catch this case.
   5131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5132 /* end confdefs.h.  */
   5133 #ifdef __STDC__
   5134 # include <limits.h>
   5135 #else
   5136 # include <assert.h>
   5137 #endif
   5138 		     Syntax error
   5139 _ACEOF
   5140 if ac_fn_c_try_cpp "$LINENO"; then :
   5141 
   5142 else
   5143   # Broken: fails on valid input.
   5144 continue
   5145 fi
   5146 rm -f conftest.err conftest.i conftest.$ac_ext
   5147 
   5148   # OK, works on sane cases.  Now check whether nonexistent headers
   5149   # can be detected and how.
   5150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5151 /* end confdefs.h.  */
   5152 #include <ac_nonexistent.h>
   5153 _ACEOF
   5154 if ac_fn_c_try_cpp "$LINENO"; then :
   5155   # Broken: success on invalid input.
   5156 continue
   5157 else
   5158   # Passes both tests.
   5159 ac_preproc_ok=:
   5160 break
   5161 fi
   5162 rm -f conftest.err conftest.i conftest.$ac_ext
   5163 
   5164 done
   5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5166 rm -f conftest.i conftest.err conftest.$ac_ext
   5167 if $ac_preproc_ok; then :
   5168   break
   5169 fi
   5170 
   5171     done
   5172     ac_cv_prog_CPP=$CPP
   5173 
   5174 fi
   5175   CPP=$ac_cv_prog_CPP
   5176 else
   5177   ac_cv_prog_CPP=$CPP
   5178 fi
   5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   5180 $as_echo "$CPP" >&6; }
   5181 ac_preproc_ok=false
   5182 for ac_c_preproc_warn_flag in '' yes
   5183 do
   5184   # Use a header file that comes with gcc, so configuring glibc
   5185   # with a fresh cross-compiler works.
   5186   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   5187   # <limits.h> exists even on freestanding compilers.
   5188   # On the NeXT, cc -E runs the code through the compiler's parser,
   5189   # not just through cpp. "Syntax error" is here to catch this case.
   5190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5191 /* end confdefs.h.  */
   5192 #ifdef __STDC__
   5193 # include <limits.h>
   5194 #else
   5195 # include <assert.h>
   5196 #endif
   5197 		     Syntax error
   5198 _ACEOF
   5199 if ac_fn_c_try_cpp "$LINENO"; then :
   5200 
   5201 else
   5202   # Broken: fails on valid input.
   5203 continue
   5204 fi
   5205 rm -f conftest.err conftest.i conftest.$ac_ext
   5206 
   5207   # OK, works on sane cases.  Now check whether nonexistent headers
   5208   # can be detected and how.
   5209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5210 /* end confdefs.h.  */
   5211 #include <ac_nonexistent.h>
   5212 _ACEOF
   5213 if ac_fn_c_try_cpp "$LINENO"; then :
   5214   # Broken: success on invalid input.
   5215 continue
   5216 else
   5217   # Passes both tests.
   5218 ac_preproc_ok=:
   5219 break
   5220 fi
   5221 rm -f conftest.err conftest.i conftest.$ac_ext
   5222 
   5223 done
   5224 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   5225 rm -f conftest.i conftest.err conftest.$ac_ext
   5226 if $ac_preproc_ok; then :
   5227 
   5228 else
   5229   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5231 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
   5232 See \`config.log' for more details" "$LINENO" 5; }
   5233 fi
   5234 
   5235 ac_ext=c
   5236 ac_cpp='$CPP $CPPFLAGS'
   5237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   5240 
   5241 
   5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   5243 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   5244 if ${ac_cv_path_GREP+:} false; then :
   5245   $as_echo_n "(cached) " >&6
   5246 else
   5247   if test -z "$GREP"; then
   5248   ac_path_GREP_found=false
   5249   # Loop through the user's path and test for each of PROGNAME-LIST
   5250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5252 do
   5253   IFS=$as_save_IFS
   5254   test -z "$as_dir" && as_dir=.
   5255     for ac_prog in grep ggrep; do
   5256     for ac_exec_ext in '' $ac_executable_extensions; do
   5257       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   5258       as_fn_executable_p "$ac_path_GREP" || continue
   5259 # Check for GNU ac_path_GREP and select it if it is found.
   5260   # Check for GNU $ac_path_GREP
   5261 case `"$ac_path_GREP" --version 2>&1` in
   5262 *GNU*)
   5263   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   5264 *)
   5265   ac_count=0
   5266   $as_echo_n 0123456789 >"conftest.in"
   5267   while :
   5268   do
   5269     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5270     mv "conftest.tmp" "conftest.in"
   5271     cp "conftest.in" "conftest.nl"
   5272     $as_echo 'GREP' >> "conftest.nl"
   5273     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5274     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5275     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5276     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   5277       # Best one so far, save it but keep looking for a better one
   5278       ac_cv_path_GREP="$ac_path_GREP"
   5279       ac_path_GREP_max=$ac_count
   5280     fi
   5281     # 10*(2^10) chars as input seems more than enough
   5282     test $ac_count -gt 10 && break
   5283   done
   5284   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5285 esac
   5286 
   5287       $ac_path_GREP_found && break 3
   5288     done
   5289   done
   5290   done
   5291 IFS=$as_save_IFS
   5292   if test -z "$ac_cv_path_GREP"; then
   5293     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5294   fi
   5295 else
   5296   ac_cv_path_GREP=$GREP
   5297 fi
   5298 
   5299 fi
   5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   5301 $as_echo "$ac_cv_path_GREP" >&6; }
   5302  GREP="$ac_cv_path_GREP"
   5303 
   5304 
   5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   5306 $as_echo_n "checking for egrep... " >&6; }
   5307 if ${ac_cv_path_EGREP+:} false; then :
   5308   $as_echo_n "(cached) " >&6
   5309 else
   5310   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   5311    then ac_cv_path_EGREP="$GREP -E"
   5312    else
   5313      if test -z "$EGREP"; then
   5314   ac_path_EGREP_found=false
   5315   # Loop through the user's path and test for each of PROGNAME-LIST
   5316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   5318 do
   5319   IFS=$as_save_IFS
   5320   test -z "$as_dir" && as_dir=.
   5321     for ac_prog in egrep; do
   5322     for ac_exec_ext in '' $ac_executable_extensions; do
   5323       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   5324       as_fn_executable_p "$ac_path_EGREP" || continue
   5325 # Check for GNU ac_path_EGREP and select it if it is found.
   5326   # Check for GNU $ac_path_EGREP
   5327 case `"$ac_path_EGREP" --version 2>&1` in
   5328 *GNU*)
   5329   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   5330 *)
   5331   ac_count=0
   5332   $as_echo_n 0123456789 >"conftest.in"
   5333   while :
   5334   do
   5335     cat "conftest.in" "conftest.in" >"conftest.tmp"
   5336     mv "conftest.tmp" "conftest.in"
   5337     cp "conftest.in" "conftest.nl"
   5338     $as_echo 'EGREP' >> "conftest.nl"
   5339     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   5340     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   5341     as_fn_arith $ac_count + 1 && ac_count=$as_val
   5342     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   5343       # Best one so far, save it but keep looking for a better one
   5344       ac_cv_path_EGREP="$ac_path_EGREP"
   5345       ac_path_EGREP_max=$ac_count
   5346     fi
   5347     # 10*(2^10) chars as input seems more than enough
   5348     test $ac_count -gt 10 && break
   5349   done
   5350   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   5351 esac
   5352 
   5353       $ac_path_EGREP_found && break 3
   5354     done
   5355   done
   5356   done
   5357 IFS=$as_save_IFS
   5358   if test -z "$ac_cv_path_EGREP"; then
   5359     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   5360   fi
   5361 else
   5362   ac_cv_path_EGREP=$EGREP
   5363 fi
   5364 
   5365    fi
   5366 fi
   5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   5368 $as_echo "$ac_cv_path_EGREP" >&6; }
   5369  EGREP="$ac_cv_path_EGREP"
   5370 
   5371 
   5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   5373 $as_echo_n "checking for ANSI C header files... " >&6; }
   5374 if ${ac_cv_header_stdc+:} false; then :
   5375   $as_echo_n "(cached) " >&6
   5376 else
   5377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5378 /* end confdefs.h.  */
   5379 #include <stdlib.h>
   5380 #include <stdarg.h>
   5381 #include <string.h>
   5382 #include <float.h>
   5383 
   5384 int
   5385 main ()
   5386 {
   5387 
   5388   ;
   5389   return 0;
   5390 }
   5391 _ACEOF
   5392 if ac_fn_c_try_compile "$LINENO"; then :
   5393   ac_cv_header_stdc=yes
   5394 else
   5395   ac_cv_header_stdc=no
   5396 fi
   5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5398 
   5399 if test $ac_cv_header_stdc = yes; then
   5400   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   5401   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5402 /* end confdefs.h.  */
   5403 #include <string.h>
   5404 
   5405 _ACEOF
   5406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5407   $EGREP "memchr" >/dev/null 2>&1; then :
   5408 
   5409 else
   5410   ac_cv_header_stdc=no
   5411 fi
   5412 rm -f conftest*
   5413 
   5414 fi
   5415 
   5416 if test $ac_cv_header_stdc = yes; then
   5417   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   5418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5419 /* end confdefs.h.  */
   5420 #include <stdlib.h>
   5421 
   5422 _ACEOF
   5423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   5424   $EGREP "free" >/dev/null 2>&1; then :
   5425 
   5426 else
   5427   ac_cv_header_stdc=no
   5428 fi
   5429 rm -f conftest*
   5430 
   5431 fi
   5432 
   5433 if test $ac_cv_header_stdc = yes; then
   5434   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   5435   if test "$cross_compiling" = yes; then :
   5436   :
   5437 else
   5438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5439 /* end confdefs.h.  */
   5440 #include <ctype.h>
   5441 #include <stdlib.h>
   5442 #if ((' ' & 0x0FF) == 0x020)
   5443 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   5444 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   5445 #else
   5446 # define ISLOWER(c) \
   5447 		   (('a' <= (c) && (c) <= 'i') \
   5448 		     || ('j' <= (c) && (c) <= 'r') \
   5449 		     || ('s' <= (c) && (c) <= 'z'))
   5450 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   5451 #endif
   5452 
   5453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   5454 int
   5455 main ()
   5456 {
   5457   int i;
   5458   for (i = 0; i < 256; i++)
   5459     if (XOR (islower (i), ISLOWER (i))
   5460 	|| toupper (i) != TOUPPER (i))
   5461       return 2;
   5462   return 0;
   5463 }
   5464 _ACEOF
   5465 if ac_fn_c_try_run "$LINENO"; then :
   5466 
   5467 else
   5468   ac_cv_header_stdc=no
   5469 fi
   5470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   5471   conftest.$ac_objext conftest.beam conftest.$ac_ext
   5472 fi
   5473 
   5474 fi
   5475 fi
   5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   5477 $as_echo "$ac_cv_header_stdc" >&6; }
   5478 if test $ac_cv_header_stdc = yes; then
   5479 
   5480 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   5481 
   5482 fi
   5483 
   5484 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   5485 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   5486 		  inttypes.h stdint.h unistd.h
   5487 do :
   5488   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   5489 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   5490 "
   5491 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   5492   cat >>confdefs.h <<_ACEOF
   5493 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   5494 _ACEOF
   5495 
   5496 fi
   5497 
   5498 done
   5499 
   5500 
   5501 
   5502   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   5503 if test "x$ac_cv_header_minix_config_h" = xyes; then :
   5504   MINIX=yes
   5505 else
   5506   MINIX=
   5507 fi
   5508 
   5509 
   5510   if test "$MINIX" = yes; then
   5511 
   5512 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   5513 
   5514 
   5515 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   5516 
   5517 
   5518 $as_echo "#define _MINIX 1" >>confdefs.h
   5519 
   5520   fi
   5521 
   5522 
   5523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   5524 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   5525 if ${ac_cv_safe_to_define___extensions__+:} false; then :
   5526   $as_echo_n "(cached) " >&6
   5527 else
   5528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5529 /* end confdefs.h.  */
   5530 
   5531 #         define __EXTENSIONS__ 1
   5532           $ac_includes_default
   5533 int
   5534 main ()
   5535 {
   5536 
   5537   ;
   5538   return 0;
   5539 }
   5540 _ACEOF
   5541 if ac_fn_c_try_compile "$LINENO"; then :
   5542   ac_cv_safe_to_define___extensions__=yes
   5543 else
   5544   ac_cv_safe_to_define___extensions__=no
   5545 fi
   5546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5547 fi
   5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   5549 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   5550   test $ac_cv_safe_to_define___extensions__ = yes &&
   5551     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   5552 
   5553   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   5554 
   5555   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   5556 
   5557   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   5558 
   5559   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   5560 
   5561 
   5562 
   5563 # The tests for host and target for $enable_largefile require
   5564 # canonical names.
   5565 
   5566 
   5567 
   5568 # As the $enable_largefile decision depends on --enable-plugins we must set it
   5569 # even in directories otherwise not depending on the $plugins option.
   5570 
   5571 
   5572   maybe_plugins=no
   5573   for ac_header in dlfcn.h
   5574 do :
   5575   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
   5576 "
   5577 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
   5578   cat >>confdefs.h <<_ACEOF
   5579 #define HAVE_DLFCN_H 1
   5580 _ACEOF
   5581  maybe_plugins=yes
   5582 fi
   5583 
   5584 done
   5585 
   5586   for ac_header in windows.h
   5587 do :
   5588   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
   5589 "
   5590 if test "x$ac_cv_header_windows_h" = xyes; then :
   5591   cat >>confdefs.h <<_ACEOF
   5592 #define HAVE_WINDOWS_H 1
   5593 _ACEOF
   5594  maybe_plugins=yes
   5595 fi
   5596 
   5597 done
   5598 
   5599 
   5600   # Check whether --enable-plugins was given.
   5601 if test "${enable_plugins+set}" = set; then :
   5602   enableval=$enable_plugins; case "${enableval}" in
   5603       no) plugins=no ;;
   5604       *) plugins=yes
   5605          if test "$maybe_plugins" != "yes" ; then
   5606 	   as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
   5607 	 fi ;;
   5608      esac
   5609 else
   5610   plugins=$maybe_plugins
   5611 
   5612 fi
   5613 
   5614   if test "$plugins" = "yes"; then
   5615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
   5616 $as_echo_n "checking for library containing dlsym... " >&6; }
   5617 if ${ac_cv_search_dlsym+:} false; then :
   5618   $as_echo_n "(cached) " >&6
   5619 else
   5620   ac_func_search_save_LIBS=$LIBS
   5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5622 /* end confdefs.h.  */
   5623 
   5624 /* Override any GCC internal prototype to avoid an error.
   5625    Use char because int might match the return type of a GCC
   5626    builtin and then its argument prototype would still apply.  */
   5627 #ifdef __cplusplus
   5628 extern "C"
   5629 #endif
   5630 char dlsym ();
   5631 int
   5632 main ()
   5633 {
   5634 return dlsym ();
   5635   ;
   5636   return 0;
   5637 }
   5638 _ACEOF
   5639 for ac_lib in '' dl; do
   5640   if test -z "$ac_lib"; then
   5641     ac_res="none required"
   5642   else
   5643     ac_res=-l$ac_lib
   5644     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   5645   fi
   5646   if ac_fn_c_try_link "$LINENO"; then :
   5647   ac_cv_search_dlsym=$ac_res
   5648 fi
   5649 rm -f core conftest.err conftest.$ac_objext \
   5650     conftest$ac_exeext
   5651   if ${ac_cv_search_dlsym+:} false; then :
   5652   break
   5653 fi
   5654 done
   5655 if ${ac_cv_search_dlsym+:} false; then :
   5656 
   5657 else
   5658   ac_cv_search_dlsym=no
   5659 fi
   5660 rm conftest.$ac_ext
   5661 LIBS=$ac_func_search_save_LIBS
   5662 fi
   5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
   5664 $as_echo "$ac_cv_search_dlsym" >&6; }
   5665 ac_res=$ac_cv_search_dlsym
   5666 if test "$ac_res" != no; then :
   5667   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   5668 
   5669 fi
   5670 
   5671   fi
   5672 
   5673 
   5674 case "${host}" in
   5675   sparc-*-solaris*|i?86-*-solaris*)
   5676     # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
   5677     # were mutually exclusive until Solaris 11.3.  Without procfs support,
   5678     # the bfd/ elf module cannot provide certain routines such as
   5679     # elfcore_write_prpsinfo or elfcore_write_prstatus.  So unless the user
   5680     # explicitly requested large-file support through the
   5681     # --enable-largefile switch, disable large-file support in favor of
   5682     # procfs support.
   5683     #
   5684     # Check if <sys/procfs.h> is incompatible with large-file support.
   5685     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5686 /* end confdefs.h.  */
   5687 #define _FILE_OFFSET_BITS 64
   5688 #define _STRUCTURED_PROC 1
   5689 #include <sys/procfs.h>
   5690 int
   5691 main ()
   5692 {
   5693 
   5694   ;
   5695   return 0;
   5696 }
   5697 _ACEOF
   5698 if ac_fn_c_try_compile "$LINENO"; then :
   5699   acx_cv_procfs_lfs=yes
   5700 else
   5701   acx_cv_procfs_lfs=no
   5702 fi
   5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5704     #
   5705     # Forcefully disable large-file support only if necessary, gdb is in
   5706     # tree and enabled.
   5707     if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
   5708          -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
   5709       : ${enable_largefile="no"}
   5710       if test "$plugins" = yes; then
   5711 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
   5712 plugin support disabled; require large-file support which is incompatible with GDB." >&5
   5713 $as_echo "$as_me: WARNING:
   5714 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
   5715 	plugins=no
   5716       fi
   5717     fi
   5718     #
   5719     # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
   5720     # benefit of g++ 9+ which predefines it on Solaris.
   5721     if test "$enable_largefile" = no; then
   5722       LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
   5723 
   5724     fi
   5725     ;;
   5726 esac
   5727 
   5728 # Check whether --enable-largefile was given.
   5729 if test "${enable_largefile+set}" = set; then :
   5730   enableval=$enable_largefile;
   5731 fi
   5732 
   5733 if test "$enable_largefile" != no; then
   5734 
   5735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   5736 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   5737 if ${ac_cv_sys_largefile_CC+:} false; then :
   5738   $as_echo_n "(cached) " >&6
   5739 else
   5740   ac_cv_sys_largefile_CC=no
   5741      if test "$GCC" != yes; then
   5742        ac_save_CC=$CC
   5743        while :; do
   5744 	 # IRIX 6.2 and later do not support large files by default,
   5745 	 # so use the C compiler's -n32 option if that helps.
   5746 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5747 /* end confdefs.h.  */
   5748 #include <sys/types.h>
   5749  /* Check that off_t can represent 2**63 - 1 correctly.
   5750     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5751     since some C++ compilers masquerading as C compilers
   5752     incorrectly reject 9223372036854775807.  */
   5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5754   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5755 		       && LARGE_OFF_T % 2147483647 == 1)
   5756 		      ? 1 : -1];
   5757 int
   5758 main ()
   5759 {
   5760 
   5761   ;
   5762   return 0;
   5763 }
   5764 _ACEOF
   5765 	 if ac_fn_c_try_compile "$LINENO"; then :
   5766   break
   5767 fi
   5768 rm -f core conftest.err conftest.$ac_objext
   5769 	 CC="$CC -n32"
   5770 	 if ac_fn_c_try_compile "$LINENO"; then :
   5771   ac_cv_sys_largefile_CC=' -n32'; break
   5772 fi
   5773 rm -f core conftest.err conftest.$ac_objext
   5774 	 break
   5775        done
   5776        CC=$ac_save_CC
   5777        rm -f conftest.$ac_ext
   5778     fi
   5779 fi
   5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   5781 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   5782   if test "$ac_cv_sys_largefile_CC" != no; then
   5783     CC=$CC$ac_cv_sys_largefile_CC
   5784   fi
   5785 
   5786   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   5787 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   5788 if ${ac_cv_sys_file_offset_bits+:} false; then :
   5789   $as_echo_n "(cached) " >&6
   5790 else
   5791   while :; do
   5792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5793 /* end confdefs.h.  */
   5794 #include <sys/types.h>
   5795  /* Check that off_t can represent 2**63 - 1 correctly.
   5796     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5797     since some C++ compilers masquerading as C compilers
   5798     incorrectly reject 9223372036854775807.  */
   5799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5800   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5801 		       && LARGE_OFF_T % 2147483647 == 1)
   5802 		      ? 1 : -1];
   5803 int
   5804 main ()
   5805 {
   5806 
   5807   ;
   5808   return 0;
   5809 }
   5810 _ACEOF
   5811 if ac_fn_c_try_compile "$LINENO"; then :
   5812   ac_cv_sys_file_offset_bits=no; break
   5813 fi
   5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5816 /* end confdefs.h.  */
   5817 #define _FILE_OFFSET_BITS 64
   5818 #include <sys/types.h>
   5819  /* Check that off_t can represent 2**63 - 1 correctly.
   5820     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5821     since some C++ compilers masquerading as C compilers
   5822     incorrectly reject 9223372036854775807.  */
   5823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5824   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5825 		       && LARGE_OFF_T % 2147483647 == 1)
   5826 		      ? 1 : -1];
   5827 int
   5828 main ()
   5829 {
   5830 
   5831   ;
   5832   return 0;
   5833 }
   5834 _ACEOF
   5835 if ac_fn_c_try_compile "$LINENO"; then :
   5836   ac_cv_sys_file_offset_bits=64; break
   5837 fi
   5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5839   ac_cv_sys_file_offset_bits=unknown
   5840   break
   5841 done
   5842 fi
   5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   5844 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   5845 case $ac_cv_sys_file_offset_bits in #(
   5846   no | unknown) ;;
   5847   *)
   5848 cat >>confdefs.h <<_ACEOF
   5849 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   5850 _ACEOF
   5851 ;;
   5852 esac
   5853 rm -rf conftest*
   5854   if test $ac_cv_sys_file_offset_bits = unknown; then
   5855     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   5856 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   5857 if ${ac_cv_sys_large_files+:} false; then :
   5858   $as_echo_n "(cached) " >&6
   5859 else
   5860   while :; do
   5861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5862 /* end confdefs.h.  */
   5863 #include <sys/types.h>
   5864  /* Check that off_t can represent 2**63 - 1 correctly.
   5865     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5866     since some C++ compilers masquerading as C compilers
   5867     incorrectly reject 9223372036854775807.  */
   5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5869   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5870 		       && LARGE_OFF_T % 2147483647 == 1)
   5871 		      ? 1 : -1];
   5872 int
   5873 main ()
   5874 {
   5875 
   5876   ;
   5877   return 0;
   5878 }
   5879 _ACEOF
   5880 if ac_fn_c_try_compile "$LINENO"; then :
   5881   ac_cv_sys_large_files=no; break
   5882 fi
   5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5885 /* end confdefs.h.  */
   5886 #define _LARGE_FILES 1
   5887 #include <sys/types.h>
   5888  /* Check that off_t can represent 2**63 - 1 correctly.
   5889     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   5890     since some C++ compilers masquerading as C compilers
   5891     incorrectly reject 9223372036854775807.  */
   5892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   5893   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   5894 		       && LARGE_OFF_T % 2147483647 == 1)
   5895 		      ? 1 : -1];
   5896 int
   5897 main ()
   5898 {
   5899 
   5900   ;
   5901   return 0;
   5902 }
   5903 _ACEOF
   5904 if ac_fn_c_try_compile "$LINENO"; then :
   5905   ac_cv_sys_large_files=1; break
   5906 fi
   5907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5908   ac_cv_sys_large_files=unknown
   5909   break
   5910 done
   5911 fi
   5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   5913 $as_echo "$ac_cv_sys_large_files" >&6; }
   5914 case $ac_cv_sys_large_files in #(
   5915   no | unknown) ;;
   5916   *)
   5917 cat >>confdefs.h <<_ACEOF
   5918 #define _LARGE_FILES $ac_cv_sys_large_files
   5919 _ACEOF
   5920 ;;
   5921 esac
   5922 rm -rf conftest*
   5923   fi
   5924 
   5925 
   5926 fi
   5927 
   5928 
   5929 
   5930 # We require a C++17 compiler.  Check if one is available, and if
   5931 # necessary, set CXX_DIALECT to some -std=xxx switch.
   5932 
   5933   ax_cxx_compile_alternatives="17 1z"    ax_cxx_compile_cxx17_required=true
   5934   ac_ext=cpp
   5935 ac_cpp='$CXXCPP $CPPFLAGS'
   5936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   5937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   5938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   5939   CXX_DIALECT=""
   5940   ac_success=no
   5941 
   5942       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
   5943 $as_echo_n "checking whether $CXX supports C++17 features by default... " >&6; }
   5944 if ${ax_cv_cxx_compile_cxx17+:} false; then :
   5945   $as_echo_n "(cached) " >&6
   5946 else
   5947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5948 /* end confdefs.h.  */
   5949 
   5950 
   5951 // If the compiler admits that it is not ready for C++11, why torture it?
   5952 // Hopefully, this will speed up the test.
   5953 
   5954 #ifndef __cplusplus
   5955 
   5956 #error "This is not a C++ compiler"
   5957 
   5958 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
   5959 // only set it correctly if /Zc:__cplusplus is specified as well as a
   5960 // /std:c++NN switch:
   5961 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
   5962 #elif __cplusplus < 201103L && !defined _MSC_VER
   5963 
   5964 #error "This is not a C++11 compiler"
   5965 
   5966 #else
   5967 
   5968 namespace cxx11
   5969 {
   5970 
   5971   namespace test_static_assert
   5972   {
   5973 
   5974     template <typename T>
   5975     struct check
   5976     {
   5977       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   5978     };
   5979 
   5980   }
   5981 
   5982   namespace test_final_override
   5983   {
   5984 
   5985     struct Base
   5986     {
   5987       virtual ~Base() {}
   5988       virtual void f() {}
   5989     };
   5990 
   5991     struct Derived : public Base
   5992     {
   5993       virtual ~Derived() override {}
   5994       virtual void f() override {}
   5995     };
   5996 
   5997   }
   5998 
   5999   namespace test_double_right_angle_brackets
   6000   {
   6001 
   6002     template < typename T >
   6003     struct check {};
   6004 
   6005     typedef check<void> single_type;
   6006     typedef check<check<void>> double_type;
   6007     typedef check<check<check<void>>> triple_type;
   6008     typedef check<check<check<check<void>>>> quadruple_type;
   6009 
   6010   }
   6011 
   6012   namespace test_decltype
   6013   {
   6014 
   6015     int
   6016     f()
   6017     {
   6018       int a = 1;
   6019       decltype(a) b = 2;
   6020       return a + b;
   6021     }
   6022 
   6023   }
   6024 
   6025   namespace test_type_deduction
   6026   {
   6027 
   6028     template < typename T1, typename T2 >
   6029     struct is_same
   6030     {
   6031       static const bool value = false;
   6032     };
   6033 
   6034     template < typename T >
   6035     struct is_same<T, T>
   6036     {
   6037       static const bool value = true;
   6038     };
   6039 
   6040     template < typename T1, typename T2 >
   6041     auto
   6042     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   6043     {
   6044       return a1 + a2;
   6045     }
   6046 
   6047     int
   6048     test(const int c, volatile int v)
   6049     {
   6050       static_assert(is_same<int, decltype(0)>::value == true, "");
   6051       static_assert(is_same<int, decltype(c)>::value == false, "");
   6052       static_assert(is_same<int, decltype(v)>::value == false, "");
   6053       auto ac = c;
   6054       auto av = v;
   6055       auto sumi = ac + av + 'x';
   6056       auto sumf = ac + av + 1.0;
   6057       static_assert(is_same<int, decltype(ac)>::value == true, "");
   6058       static_assert(is_same<int, decltype(av)>::value == true, "");
   6059       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   6060       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   6061       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   6062       return (sumf > 0.0) ? sumi : add(c, v);
   6063     }
   6064 
   6065   }
   6066 
   6067   namespace test_noexcept
   6068   {
   6069 
   6070     int f() { return 0; }
   6071     int g() noexcept { return 0; }
   6072 
   6073     static_assert(noexcept(f()) == false, "");
   6074     static_assert(noexcept(g()) == true, "");
   6075 
   6076   }
   6077 
   6078   namespace test_constexpr
   6079   {
   6080 
   6081     template < typename CharT >
   6082     unsigned long constexpr
   6083     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   6084     {
   6085       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   6086     }
   6087 
   6088     template < typename CharT >
   6089     unsigned long constexpr
   6090     strlen_c(const CharT *const s) noexcept
   6091     {
   6092       return strlen_c_r(s, 0UL);
   6093     }
   6094 
   6095     static_assert(strlen_c("") == 0UL, "");
   6096     static_assert(strlen_c("1") == 1UL, "");
   6097     static_assert(strlen_c("example") == 7UL, "");
   6098     static_assert(strlen_c("another\0example") == 7UL, "");
   6099 
   6100   }
   6101 
   6102   namespace test_rvalue_references
   6103   {
   6104 
   6105     template < int N >
   6106     struct answer
   6107     {
   6108       static constexpr int value = N;
   6109     };
   6110 
   6111     answer<1> f(int&)       { return answer<1>(); }
   6112     answer<2> f(const int&) { return answer<2>(); }
   6113     answer<3> f(int&&)      { return answer<3>(); }
   6114 
   6115     void
   6116     test()
   6117     {
   6118       int i = 0;
   6119       const int c = 0;
   6120       static_assert(decltype(f(i))::value == 1, "");
   6121       static_assert(decltype(f(c))::value == 2, "");
   6122       static_assert(decltype(f(0))::value == 3, "");
   6123     }
   6124 
   6125   }
   6126 
   6127   namespace test_uniform_initialization
   6128   {
   6129 
   6130     struct test
   6131     {
   6132       static const int zero {};
   6133       static const int one {1};
   6134     };
   6135 
   6136     static_assert(test::zero == 0, "");
   6137     static_assert(test::one == 1, "");
   6138 
   6139   }
   6140 
   6141   namespace test_lambdas
   6142   {
   6143 
   6144     void
   6145     test1()
   6146     {
   6147       auto lambda1 = [](){};
   6148       auto lambda2 = lambda1;
   6149       lambda1();
   6150       lambda2();
   6151     }
   6152 
   6153     int
   6154     test2()
   6155     {
   6156       auto a = [](int i, int j){ return i + j; }(1, 2);
   6157       auto b = []() -> int { return '0'; }();
   6158       auto c = [=](){ return a + b; }();
   6159       auto d = [&](){ return c; }();
   6160       auto e = [a, &b](int x) mutable {
   6161         const auto identity = [](int y){ return y; };
   6162         for (auto i = 0; i < a; ++i)
   6163           a += b--;
   6164         return x + identity(a + b);
   6165       }(0);
   6166       return a + b + c + d + e;
   6167     }
   6168 
   6169     int
   6170     test3()
   6171     {
   6172       const auto nullary = [](){ return 0; };
   6173       const auto unary = [](int x){ return x; };
   6174       using nullary_t = decltype(nullary);
   6175       using unary_t = decltype(unary);
   6176       const auto higher1st = [](nullary_t f){ return f(); };
   6177       const auto higher2nd = [unary](nullary_t f1){
   6178         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   6179       };
   6180       return higher1st(nullary) + higher2nd(nullary)(unary);
   6181     }
   6182 
   6183   }
   6184 
   6185   namespace test_variadic_templates
   6186   {
   6187 
   6188     template <int...>
   6189     struct sum;
   6190 
   6191     template <int N0, int... N1toN>
   6192     struct sum<N0, N1toN...>
   6193     {
   6194       static constexpr auto value = N0 + sum<N1toN...>::value;
   6195     };
   6196 
   6197     template <>
   6198     struct sum<>
   6199     {
   6200       static constexpr auto value = 0;
   6201     };
   6202 
   6203     static_assert(sum<>::value == 0, "");
   6204     static_assert(sum<1>::value == 1, "");
   6205     static_assert(sum<23>::value == 23, "");
   6206     static_assert(sum<1, 2>::value == 3, "");
   6207     static_assert(sum<5, 5, 11>::value == 21, "");
   6208     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   6209 
   6210   }
   6211 
   6212   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   6213   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   6214   // because of this.
   6215   namespace test_template_alias_sfinae
   6216   {
   6217 
   6218     struct foo {};
   6219 
   6220     template<typename T>
   6221     using member = typename T::member_type;
   6222 
   6223     template<typename T>
   6224     void func(...) {}
   6225 
   6226     template<typename T>
   6227     void func(member<T>*) {}
   6228 
   6229     void test();
   6230 
   6231     void test() { func<foo>(0); }
   6232 
   6233   }
   6234 
   6235 }  // namespace cxx11
   6236 
   6237 #endif  // __cplusplus >= 201103L
   6238 
   6239 
   6240 
   6241 
   6242 // If the compiler admits that it is not ready for C++14, why torture it?
   6243 // Hopefully, this will speed up the test.
   6244 
   6245 #ifndef __cplusplus
   6246 
   6247 #error "This is not a C++ compiler"
   6248 
   6249 #elif __cplusplus < 201402L && !defined _MSC_VER
   6250 
   6251 #error "This is not a C++14 compiler"
   6252 
   6253 #else
   6254 
   6255 namespace cxx14
   6256 {
   6257 
   6258   namespace test_polymorphic_lambdas
   6259   {
   6260 
   6261     int
   6262     test()
   6263     {
   6264       const auto lambda = [](auto&&... args){
   6265         const auto istiny = [](auto x){
   6266           return (sizeof(x) == 1UL) ? 1 : 0;
   6267         };
   6268         const int aretiny[] = { istiny(args)... };
   6269         return aretiny[0];
   6270       };
   6271       return lambda(1, 1L, 1.0f, '1');
   6272     }
   6273 
   6274   }
   6275 
   6276   namespace test_binary_literals
   6277   {
   6278 
   6279     constexpr auto ivii = 0b0000000000101010;
   6280     static_assert(ivii == 42, "wrong value");
   6281 
   6282   }
   6283 
   6284   namespace test_generalized_constexpr
   6285   {
   6286 
   6287     template < typename CharT >
   6288     constexpr unsigned long
   6289     strlen_c(const CharT *const s) noexcept
   6290     {
   6291       auto length = 0UL;
   6292       for (auto p = s; *p; ++p)
   6293         ++length;
   6294       return length;
   6295     }
   6296 
   6297     static_assert(strlen_c("") == 0UL, "");
   6298     static_assert(strlen_c("x") == 1UL, "");
   6299     static_assert(strlen_c("test") == 4UL, "");
   6300     static_assert(strlen_c("another\0test") == 7UL, "");
   6301 
   6302   }
   6303 
   6304   namespace test_lambda_init_capture
   6305   {
   6306 
   6307     int
   6308     test()
   6309     {
   6310       auto x = 0;
   6311       const auto lambda1 = [a = x](int b){ return a + b; };
   6312       const auto lambda2 = [a = lambda1(x)](){ return a; };
   6313       return lambda2();
   6314     }
   6315 
   6316   }
   6317 
   6318   namespace test_digit_separators
   6319   {
   6320 
   6321     constexpr auto ten_million = 100'000'000;
   6322     static_assert(ten_million == 100000000, "");
   6323 
   6324   }
   6325 
   6326   namespace test_return_type_deduction
   6327   {
   6328 
   6329     auto f(int& x) { return x; }
   6330     decltype(auto) g(int& x) { return x; }
   6331 
   6332     template < typename T1, typename T2 >
   6333     struct is_same
   6334     {
   6335       static constexpr auto value = false;
   6336     };
   6337 
   6338     template < typename T >
   6339     struct is_same<T, T>
   6340     {
   6341       static constexpr auto value = true;
   6342     };
   6343 
   6344     int
   6345     test()
   6346     {
   6347       auto x = 0;
   6348       static_assert(is_same<int, decltype(f(x))>::value, "");
   6349       static_assert(is_same<int&, decltype(g(x))>::value, "");
   6350       return x;
   6351     }
   6352 
   6353   }
   6354 
   6355 }  // namespace cxx14
   6356 
   6357 #endif  // __cplusplus >= 201402L
   6358 
   6359 
   6360 
   6361 
   6362 // If the compiler admits that it is not ready for C++17, why torture it?
   6363 // Hopefully, this will speed up the test.
   6364 
   6365 #ifndef __cplusplus
   6366 
   6367 #error "This is not a C++ compiler"
   6368 
   6369 #elif __cplusplus < 201703L && !defined _MSC_VER
   6370 
   6371 #error "This is not a C++17 compiler"
   6372 
   6373 #else
   6374 
   6375 #include <initializer_list>
   6376 #include <utility>
   6377 #include <type_traits>
   6378 
   6379 namespace cxx17
   6380 {
   6381 
   6382   namespace test_constexpr_lambdas
   6383   {
   6384 
   6385     constexpr int foo = [](){return 42;}();
   6386 
   6387   }
   6388 
   6389   namespace test::nested_namespace::definitions
   6390   {
   6391 
   6392   }
   6393 
   6394   namespace test_fold_expression
   6395   {
   6396 
   6397     template<typename... Args>
   6398     int multiply(Args... args)
   6399     {
   6400       return (args * ... * 1);
   6401     }
   6402 
   6403     template<typename... Args>
   6404     bool all(Args... args)
   6405     {
   6406       return (args && ...);
   6407     }
   6408 
   6409   }
   6410 
   6411   namespace test_extended_static_assert
   6412   {
   6413 
   6414     static_assert (true);
   6415 
   6416   }
   6417 
   6418   namespace test_auto_brace_init_list
   6419   {
   6420 
   6421     auto foo = {5};
   6422     auto bar {5};
   6423 
   6424     static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
   6425     static_assert(std::is_same<int, decltype(bar)>::value);
   6426   }
   6427 
   6428   namespace test_typename_in_template_template_parameter
   6429   {
   6430 
   6431     template<template<typename> typename X> struct D;
   6432 
   6433   }
   6434 
   6435   namespace test_fallthrough_nodiscard_maybe_unused_attributes
   6436   {
   6437 
   6438     int f1()
   6439     {
   6440       return 42;
   6441     }
   6442 
   6443     [[nodiscard]] int f2()
   6444     {
   6445       [[maybe_unused]] auto unused = f1();
   6446 
   6447       switch (f1())
   6448       {
   6449       case 17:
   6450         f1();
   6451         [[fallthrough]];
   6452       case 42:
   6453         f1();
   6454       }
   6455       return f1();
   6456     }
   6457 
   6458   }
   6459 
   6460   namespace test_extended_aggregate_initialization
   6461   {
   6462 
   6463     struct base1
   6464     {
   6465       int b1, b2 = 42;
   6466     };
   6467 
   6468     struct base2
   6469     {
   6470       base2() {
   6471         b3 = 42;
   6472       }
   6473       int b3;
   6474     };
   6475 
   6476     struct derived : base1, base2
   6477     {
   6478         int d;
   6479     };
   6480 
   6481     derived d1 {{1, 2}, {}, 4};  // full initialization
   6482     derived d2 {{}, {}, 4};      // value-initialized bases
   6483 
   6484   }
   6485 
   6486   namespace test_general_range_based_for_loop
   6487   {
   6488 
   6489     struct iter
   6490     {
   6491       int i;
   6492 
   6493       int& operator* ()
   6494       {
   6495         return i;
   6496       }
   6497 
   6498       const int& operator* () const
   6499       {
   6500         return i;
   6501       }
   6502 
   6503       iter& operator++()
   6504       {
   6505         ++i;
   6506         return *this;
   6507       }
   6508     };
   6509 
   6510     struct sentinel
   6511     {
   6512       int i;
   6513     };
   6514 
   6515     bool operator== (const iter& i, const sentinel& s)
   6516     {
   6517       return i.i == s.i;
   6518     }
   6519 
   6520     bool operator!= (const iter& i, const sentinel& s)
   6521     {
   6522       return !(i == s);
   6523     }
   6524 
   6525     struct range
   6526     {
   6527       iter begin() const
   6528       {
   6529         return {0};
   6530       }
   6531 
   6532       sentinel end() const
   6533       {
   6534         return {5};
   6535       }
   6536     };
   6537 
   6538     void f()
   6539     {
   6540       range r {};
   6541 
   6542       for (auto i : r)
   6543       {
   6544         [[maybe_unused]] auto v = i;
   6545       }
   6546     }
   6547 
   6548   }
   6549 
   6550   namespace test_lambda_capture_asterisk_this_by_value
   6551   {
   6552 
   6553     struct t
   6554     {
   6555       int i;
   6556       int foo()
   6557       {
   6558         return [*this]()
   6559         {
   6560           return i;
   6561         }();
   6562       }
   6563     };
   6564 
   6565   }
   6566 
   6567   namespace test_enum_class_construction
   6568   {
   6569 
   6570     enum class byte : unsigned char
   6571     {};
   6572 
   6573     byte foo {42};
   6574 
   6575   }
   6576 
   6577   namespace test_constexpr_if
   6578   {
   6579 
   6580     template <bool cond>
   6581     int f ()
   6582     {
   6583       if constexpr(cond)
   6584       {
   6585         return 13;
   6586       }
   6587       else
   6588       {
   6589         return 42;
   6590       }
   6591     }
   6592 
   6593   }
   6594 
   6595   namespace test_selection_statement_with_initializer
   6596   {
   6597 
   6598     int f()
   6599     {
   6600       return 13;
   6601     }
   6602 
   6603     int f2()
   6604     {
   6605       if (auto i = f(); i > 0)
   6606       {
   6607         return 3;
   6608       }
   6609 
   6610       switch (auto i = f(); i + 4)
   6611       {
   6612       case 17:
   6613         return 2;
   6614 
   6615       default:
   6616         return 1;
   6617       }
   6618     }
   6619 
   6620   }
   6621 
   6622   namespace test_template_argument_deduction_for_class_templates
   6623   {
   6624 
   6625     template <typename T1, typename T2>
   6626     struct pair
   6627     {
   6628       pair (T1 p1, T2 p2)
   6629         : m1 {p1},
   6630           m2 {p2}
   6631       {}
   6632 
   6633       T1 m1;
   6634       T2 m2;
   6635     };
   6636 
   6637     void f()
   6638     {
   6639       [[maybe_unused]] auto p = pair{13, 42u};
   6640     }
   6641 
   6642   }
   6643 
   6644   namespace test_non_type_auto_template_parameters
   6645   {
   6646 
   6647     template <auto n>
   6648     struct B
   6649     {};
   6650 
   6651     B<5> b1;
   6652     B<'a'> b2;
   6653 
   6654   }
   6655 
   6656   namespace test_structured_bindings
   6657   {
   6658 
   6659     int arr[2] = { 1, 2 };
   6660     std::pair<int, int> pr = { 1, 2 };
   6661 
   6662     auto f1() -> int(&)[2]
   6663     {
   6664       return arr;
   6665     }
   6666 
   6667     auto f2() -> std::pair<int, int>&
   6668     {
   6669       return pr;
   6670     }
   6671 
   6672     struct S
   6673     {
   6674       int x1 : 2;
   6675       volatile double y1;
   6676     };
   6677 
   6678     S f3()
   6679     {
   6680       return {};
   6681     }
   6682 
   6683     auto [ x1, y1 ] = f1();
   6684     auto& [ xr1, yr1 ] = f1();
   6685     auto [ x2, y2 ] = f2();
   6686     auto& [ xr2, yr2 ] = f2();
   6687     const auto [ x3, y3 ] = f3();
   6688 
   6689   }
   6690 
   6691   namespace test_exception_spec_type_system
   6692   {
   6693 
   6694     struct Good {};
   6695     struct Bad {};
   6696 
   6697     void g1() noexcept;
   6698     void g2();
   6699 
   6700     template<typename T>
   6701     Bad
   6702     f(T*, T*);
   6703 
   6704     template<typename T1, typename T2>
   6705     Good
   6706     f(T1*, T2*);
   6707 
   6708     static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
   6709 
   6710   }
   6711 
   6712   namespace test_inline_variables
   6713   {
   6714 
   6715     template<class T> void f(T)
   6716     {}
   6717 
   6718     template<class T> inline T g(T)
   6719     {
   6720       return T{};
   6721     }
   6722 
   6723     template<> inline void f<>(int)
   6724     {}
   6725 
   6726     template<> int g<>(int)
   6727     {
   6728       return 5;
   6729     }
   6730 
   6731   }
   6732 
   6733 }  // namespace cxx17
   6734 
   6735 #endif  // __cplusplus < 201703L && !defined _MSC_VER
   6736 
   6737 
   6738 
   6739 _ACEOF
   6740 if ac_fn_cxx_try_compile "$LINENO"; then :
   6741   ax_cv_cxx_compile_cxx17=yes
   6742 else
   6743   ax_cv_cxx_compile_cxx17=no
   6744 fi
   6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6746 fi
   6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
   6748 $as_echo "$ax_cv_cxx_compile_cxx17" >&6; }
   6749     if test x$ax_cv_cxx_compile_cxx17 = xyes; then
   6750       ac_success=yes
   6751     fi
   6752 
   6753     if test x$ac_success = xno; then
   6754     for alternative in ${ax_cxx_compile_alternatives}; do
   6755       switch="-std=gnu++${alternative}"
   6756       cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
   6757       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
   6758 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
   6759 if eval \${$cachevar+:} false; then :
   6760   $as_echo_n "(cached) " >&6
   6761 else
   6762   ac_save_CXX="$CXX"
   6763          CXX="$CXX $switch"
   6764          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6765 /* end confdefs.h.  */
   6766 
   6767 
   6768 // If the compiler admits that it is not ready for C++11, why torture it?
   6769 // Hopefully, this will speed up the test.
   6770 
   6771 #ifndef __cplusplus
   6772 
   6773 #error "This is not a C++ compiler"
   6774 
   6775 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
   6776 // only set it correctly if /Zc:__cplusplus is specified as well as a
   6777 // /std:c++NN switch:
   6778 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
   6779 #elif __cplusplus < 201103L && !defined _MSC_VER
   6780 
   6781 #error "This is not a C++11 compiler"
   6782 
   6783 #else
   6784 
   6785 namespace cxx11
   6786 {
   6787 
   6788   namespace test_static_assert
   6789   {
   6790 
   6791     template <typename T>
   6792     struct check
   6793     {
   6794       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   6795     };
   6796 
   6797   }
   6798 
   6799   namespace test_final_override
   6800   {
   6801 
   6802     struct Base
   6803     {
   6804       virtual ~Base() {}
   6805       virtual void f() {}
   6806     };
   6807 
   6808     struct Derived : public Base
   6809     {
   6810       virtual ~Derived() override {}
   6811       virtual void f() override {}
   6812     };
   6813 
   6814   }
   6815 
   6816   namespace test_double_right_angle_brackets
   6817   {
   6818 
   6819     template < typename T >
   6820     struct check {};
   6821 
   6822     typedef check<void> single_type;
   6823     typedef check<check<void>> double_type;
   6824     typedef check<check<check<void>>> triple_type;
   6825     typedef check<check<check<check<void>>>> quadruple_type;
   6826 
   6827   }
   6828 
   6829   namespace test_decltype
   6830   {
   6831 
   6832     int
   6833     f()
   6834     {
   6835       int a = 1;
   6836       decltype(a) b = 2;
   6837       return a + b;
   6838     }
   6839 
   6840   }
   6841 
   6842   namespace test_type_deduction
   6843   {
   6844 
   6845     template < typename T1, typename T2 >
   6846     struct is_same
   6847     {
   6848       static const bool value = false;
   6849     };
   6850 
   6851     template < typename T >
   6852     struct is_same<T, T>
   6853     {
   6854       static const bool value = true;
   6855     };
   6856 
   6857     template < typename T1, typename T2 >
   6858     auto
   6859     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   6860     {
   6861       return a1 + a2;
   6862     }
   6863 
   6864     int
   6865     test(const int c, volatile int v)
   6866     {
   6867       static_assert(is_same<int, decltype(0)>::value == true, "");
   6868       static_assert(is_same<int, decltype(c)>::value == false, "");
   6869       static_assert(is_same<int, decltype(v)>::value == false, "");
   6870       auto ac = c;
   6871       auto av = v;
   6872       auto sumi = ac + av + 'x';
   6873       auto sumf = ac + av + 1.0;
   6874       static_assert(is_same<int, decltype(ac)>::value == true, "");
   6875       static_assert(is_same<int, decltype(av)>::value == true, "");
   6876       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   6877       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   6878       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   6879       return (sumf > 0.0) ? sumi : add(c, v);
   6880     }
   6881 
   6882   }
   6883 
   6884   namespace test_noexcept
   6885   {
   6886 
   6887     int f() { return 0; }
   6888     int g() noexcept { return 0; }
   6889 
   6890     static_assert(noexcept(f()) == false, "");
   6891     static_assert(noexcept(g()) == true, "");
   6892 
   6893   }
   6894 
   6895   namespace test_constexpr
   6896   {
   6897 
   6898     template < typename CharT >
   6899     unsigned long constexpr
   6900     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   6901     {
   6902       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   6903     }
   6904 
   6905     template < typename CharT >
   6906     unsigned long constexpr
   6907     strlen_c(const CharT *const s) noexcept
   6908     {
   6909       return strlen_c_r(s, 0UL);
   6910     }
   6911 
   6912     static_assert(strlen_c("") == 0UL, "");
   6913     static_assert(strlen_c("1") == 1UL, "");
   6914     static_assert(strlen_c("example") == 7UL, "");
   6915     static_assert(strlen_c("another\0example") == 7UL, "");
   6916 
   6917   }
   6918 
   6919   namespace test_rvalue_references
   6920   {
   6921 
   6922     template < int N >
   6923     struct answer
   6924     {
   6925       static constexpr int value = N;
   6926     };
   6927 
   6928     answer<1> f(int&)       { return answer<1>(); }
   6929     answer<2> f(const int&) { return answer<2>(); }
   6930     answer<3> f(int&&)      { return answer<3>(); }
   6931 
   6932     void
   6933     test()
   6934     {
   6935       int i = 0;
   6936       const int c = 0;
   6937       static_assert(decltype(f(i))::value == 1, "");
   6938       static_assert(decltype(f(c))::value == 2, "");
   6939       static_assert(decltype(f(0))::value == 3, "");
   6940     }
   6941 
   6942   }
   6943 
   6944   namespace test_uniform_initialization
   6945   {
   6946 
   6947     struct test
   6948     {
   6949       static const int zero {};
   6950       static const int one {1};
   6951     };
   6952 
   6953     static_assert(test::zero == 0, "");
   6954     static_assert(test::one == 1, "");
   6955 
   6956   }
   6957 
   6958   namespace test_lambdas
   6959   {
   6960 
   6961     void
   6962     test1()
   6963     {
   6964       auto lambda1 = [](){};
   6965       auto lambda2 = lambda1;
   6966       lambda1();
   6967       lambda2();
   6968     }
   6969 
   6970     int
   6971     test2()
   6972     {
   6973       auto a = [](int i, int j){ return i + j; }(1, 2);
   6974       auto b = []() -> int { return '0'; }();
   6975       auto c = [=](){ return a + b; }();
   6976       auto d = [&](){ return c; }();
   6977       auto e = [a, &b](int x) mutable {
   6978         const auto identity = [](int y){ return y; };
   6979         for (auto i = 0; i < a; ++i)
   6980           a += b--;
   6981         return x + identity(a + b);
   6982       }(0);
   6983       return a + b + c + d + e;
   6984     }
   6985 
   6986     int
   6987     test3()
   6988     {
   6989       const auto nullary = [](){ return 0; };
   6990       const auto unary = [](int x){ return x; };
   6991       using nullary_t = decltype(nullary);
   6992       using unary_t = decltype(unary);
   6993       const auto higher1st = [](nullary_t f){ return f(); };
   6994       const auto higher2nd = [unary](nullary_t f1){
   6995         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   6996       };
   6997       return higher1st(nullary) + higher2nd(nullary)(unary);
   6998     }
   6999 
   7000   }
   7001 
   7002   namespace test_variadic_templates
   7003   {
   7004 
   7005     template <int...>
   7006     struct sum;
   7007 
   7008     template <int N0, int... N1toN>
   7009     struct sum<N0, N1toN...>
   7010     {
   7011       static constexpr auto value = N0 + sum<N1toN...>::value;
   7012     };
   7013 
   7014     template <>
   7015     struct sum<>
   7016     {
   7017       static constexpr auto value = 0;
   7018     };
   7019 
   7020     static_assert(sum<>::value == 0, "");
   7021     static_assert(sum<1>::value == 1, "");
   7022     static_assert(sum<23>::value == 23, "");
   7023     static_assert(sum<1, 2>::value == 3, "");
   7024     static_assert(sum<5, 5, 11>::value == 21, "");
   7025     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   7026 
   7027   }
   7028 
   7029   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   7030   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   7031   // because of this.
   7032   namespace test_template_alias_sfinae
   7033   {
   7034 
   7035     struct foo {};
   7036 
   7037     template<typename T>
   7038     using member = typename T::member_type;
   7039 
   7040     template<typename T>
   7041     void func(...) {}
   7042 
   7043     template<typename T>
   7044     void func(member<T>*) {}
   7045 
   7046     void test();
   7047 
   7048     void test() { func<foo>(0); }
   7049 
   7050   }
   7051 
   7052 }  // namespace cxx11
   7053 
   7054 #endif  // __cplusplus >= 201103L
   7055 
   7056 
   7057 
   7058 
   7059 // If the compiler admits that it is not ready for C++14, why torture it?
   7060 // Hopefully, this will speed up the test.
   7061 
   7062 #ifndef __cplusplus
   7063 
   7064 #error "This is not a C++ compiler"
   7065 
   7066 #elif __cplusplus < 201402L && !defined _MSC_VER
   7067 
   7068 #error "This is not a C++14 compiler"
   7069 
   7070 #else
   7071 
   7072 namespace cxx14
   7073 {
   7074 
   7075   namespace test_polymorphic_lambdas
   7076   {
   7077 
   7078     int
   7079     test()
   7080     {
   7081       const auto lambda = [](auto&&... args){
   7082         const auto istiny = [](auto x){
   7083           return (sizeof(x) == 1UL) ? 1 : 0;
   7084         };
   7085         const int aretiny[] = { istiny(args)... };
   7086         return aretiny[0];
   7087       };
   7088       return lambda(1, 1L, 1.0f, '1');
   7089     }
   7090 
   7091   }
   7092 
   7093   namespace test_binary_literals
   7094   {
   7095 
   7096     constexpr auto ivii = 0b0000000000101010;
   7097     static_assert(ivii == 42, "wrong value");
   7098 
   7099   }
   7100 
   7101   namespace test_generalized_constexpr
   7102   {
   7103 
   7104     template < typename CharT >
   7105     constexpr unsigned long
   7106     strlen_c(const CharT *const s) noexcept
   7107     {
   7108       auto length = 0UL;
   7109       for (auto p = s; *p; ++p)
   7110         ++length;
   7111       return length;
   7112     }
   7113 
   7114     static_assert(strlen_c("") == 0UL, "");
   7115     static_assert(strlen_c("x") == 1UL, "");
   7116     static_assert(strlen_c("test") == 4UL, "");
   7117     static_assert(strlen_c("another\0test") == 7UL, "");
   7118 
   7119   }
   7120 
   7121   namespace test_lambda_init_capture
   7122   {
   7123 
   7124     int
   7125     test()
   7126     {
   7127       auto x = 0;
   7128       const auto lambda1 = [a = x](int b){ return a + b; };
   7129       const auto lambda2 = [a = lambda1(x)](){ return a; };
   7130       return lambda2();
   7131     }
   7132 
   7133   }
   7134 
   7135   namespace test_digit_separators
   7136   {
   7137 
   7138     constexpr auto ten_million = 100'000'000;
   7139     static_assert(ten_million == 100000000, "");
   7140 
   7141   }
   7142 
   7143   namespace test_return_type_deduction
   7144   {
   7145 
   7146     auto f(int& x) { return x; }
   7147     decltype(auto) g(int& x) { return x; }
   7148 
   7149     template < typename T1, typename T2 >
   7150     struct is_same
   7151     {
   7152       static constexpr auto value = false;
   7153     };
   7154 
   7155     template < typename T >
   7156     struct is_same<T, T>
   7157     {
   7158       static constexpr auto value = true;
   7159     };
   7160 
   7161     int
   7162     test()
   7163     {
   7164       auto x = 0;
   7165       static_assert(is_same<int, decltype(f(x))>::value, "");
   7166       static_assert(is_same<int&, decltype(g(x))>::value, "");
   7167       return x;
   7168     }
   7169 
   7170   }
   7171 
   7172 }  // namespace cxx14
   7173 
   7174 #endif  // __cplusplus >= 201402L
   7175 
   7176 
   7177 
   7178 
   7179 // If the compiler admits that it is not ready for C++17, why torture it?
   7180 // Hopefully, this will speed up the test.
   7181 
   7182 #ifndef __cplusplus
   7183 
   7184 #error "This is not a C++ compiler"
   7185 
   7186 #elif __cplusplus < 201703L && !defined _MSC_VER
   7187 
   7188 #error "This is not a C++17 compiler"
   7189 
   7190 #else
   7191 
   7192 #include <initializer_list>
   7193 #include <utility>
   7194 #include <type_traits>
   7195 
   7196 namespace cxx17
   7197 {
   7198 
   7199   namespace test_constexpr_lambdas
   7200   {
   7201 
   7202     constexpr int foo = [](){return 42;}();
   7203 
   7204   }
   7205 
   7206   namespace test::nested_namespace::definitions
   7207   {
   7208 
   7209   }
   7210 
   7211   namespace test_fold_expression
   7212   {
   7213 
   7214     template<typename... Args>
   7215     int multiply(Args... args)
   7216     {
   7217       return (args * ... * 1);
   7218     }
   7219 
   7220     template<typename... Args>
   7221     bool all(Args... args)
   7222     {
   7223       return (args && ...);
   7224     }
   7225 
   7226   }
   7227 
   7228   namespace test_extended_static_assert
   7229   {
   7230 
   7231     static_assert (true);
   7232 
   7233   }
   7234 
   7235   namespace test_auto_brace_init_list
   7236   {
   7237 
   7238     auto foo = {5};
   7239     auto bar {5};
   7240 
   7241     static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
   7242     static_assert(std::is_same<int, decltype(bar)>::value);
   7243   }
   7244 
   7245   namespace test_typename_in_template_template_parameter
   7246   {
   7247 
   7248     template<template<typename> typename X> struct D;
   7249 
   7250   }
   7251 
   7252   namespace test_fallthrough_nodiscard_maybe_unused_attributes
   7253   {
   7254 
   7255     int f1()
   7256     {
   7257       return 42;
   7258     }
   7259 
   7260     [[nodiscard]] int f2()
   7261     {
   7262       [[maybe_unused]] auto unused = f1();
   7263 
   7264       switch (f1())
   7265       {
   7266       case 17:
   7267         f1();
   7268         [[fallthrough]];
   7269       case 42:
   7270         f1();
   7271       }
   7272       return f1();
   7273     }
   7274 
   7275   }
   7276 
   7277   namespace test_extended_aggregate_initialization
   7278   {
   7279 
   7280     struct base1
   7281     {
   7282       int b1, b2 = 42;
   7283     };
   7284 
   7285     struct base2
   7286     {
   7287       base2() {
   7288         b3 = 42;
   7289       }
   7290       int b3;
   7291     };
   7292 
   7293     struct derived : base1, base2
   7294     {
   7295         int d;
   7296     };
   7297 
   7298     derived d1 {{1, 2}, {}, 4};  // full initialization
   7299     derived d2 {{}, {}, 4};      // value-initialized bases
   7300 
   7301   }
   7302 
   7303   namespace test_general_range_based_for_loop
   7304   {
   7305 
   7306     struct iter
   7307     {
   7308       int i;
   7309 
   7310       int& operator* ()
   7311       {
   7312         return i;
   7313       }
   7314 
   7315       const int& operator* () const
   7316       {
   7317         return i;
   7318       }
   7319 
   7320       iter& operator++()
   7321       {
   7322         ++i;
   7323         return *this;
   7324       }
   7325     };
   7326 
   7327     struct sentinel
   7328     {
   7329       int i;
   7330     };
   7331 
   7332     bool operator== (const iter& i, const sentinel& s)
   7333     {
   7334       return i.i == s.i;
   7335     }
   7336 
   7337     bool operator!= (const iter& i, const sentinel& s)
   7338     {
   7339       return !(i == s);
   7340     }
   7341 
   7342     struct range
   7343     {
   7344       iter begin() const
   7345       {
   7346         return {0};
   7347       }
   7348 
   7349       sentinel end() const
   7350       {
   7351         return {5};
   7352       }
   7353     };
   7354 
   7355     void f()
   7356     {
   7357       range r {};
   7358 
   7359       for (auto i : r)
   7360       {
   7361         [[maybe_unused]] auto v = i;
   7362       }
   7363     }
   7364 
   7365   }
   7366 
   7367   namespace test_lambda_capture_asterisk_this_by_value
   7368   {
   7369 
   7370     struct t
   7371     {
   7372       int i;
   7373       int foo()
   7374       {
   7375         return [*this]()
   7376         {
   7377           return i;
   7378         }();
   7379       }
   7380     };
   7381 
   7382   }
   7383 
   7384   namespace test_enum_class_construction
   7385   {
   7386 
   7387     enum class byte : unsigned char
   7388     {};
   7389 
   7390     byte foo {42};
   7391 
   7392   }
   7393 
   7394   namespace test_constexpr_if
   7395   {
   7396 
   7397     template <bool cond>
   7398     int f ()
   7399     {
   7400       if constexpr(cond)
   7401       {
   7402         return 13;
   7403       }
   7404       else
   7405       {
   7406         return 42;
   7407       }
   7408     }
   7409 
   7410   }
   7411 
   7412   namespace test_selection_statement_with_initializer
   7413   {
   7414 
   7415     int f()
   7416     {
   7417       return 13;
   7418     }
   7419 
   7420     int f2()
   7421     {
   7422       if (auto i = f(); i > 0)
   7423       {
   7424         return 3;
   7425       }
   7426 
   7427       switch (auto i = f(); i + 4)
   7428       {
   7429       case 17:
   7430         return 2;
   7431 
   7432       default:
   7433         return 1;
   7434       }
   7435     }
   7436 
   7437   }
   7438 
   7439   namespace test_template_argument_deduction_for_class_templates
   7440   {
   7441 
   7442     template <typename T1, typename T2>
   7443     struct pair
   7444     {
   7445       pair (T1 p1, T2 p2)
   7446         : m1 {p1},
   7447           m2 {p2}
   7448       {}
   7449 
   7450       T1 m1;
   7451       T2 m2;
   7452     };
   7453 
   7454     void f()
   7455     {
   7456       [[maybe_unused]] auto p = pair{13, 42u};
   7457     }
   7458 
   7459   }
   7460 
   7461   namespace test_non_type_auto_template_parameters
   7462   {
   7463 
   7464     template <auto n>
   7465     struct B
   7466     {};
   7467 
   7468     B<5> b1;
   7469     B<'a'> b2;
   7470 
   7471   }
   7472 
   7473   namespace test_structured_bindings
   7474   {
   7475 
   7476     int arr[2] = { 1, 2 };
   7477     std::pair<int, int> pr = { 1, 2 };
   7478 
   7479     auto f1() -> int(&)[2]
   7480     {
   7481       return arr;
   7482     }
   7483 
   7484     auto f2() -> std::pair<int, int>&
   7485     {
   7486       return pr;
   7487     }
   7488 
   7489     struct S
   7490     {
   7491       int x1 : 2;
   7492       volatile double y1;
   7493     };
   7494 
   7495     S f3()
   7496     {
   7497       return {};
   7498     }
   7499 
   7500     auto [ x1, y1 ] = f1();
   7501     auto& [ xr1, yr1 ] = f1();
   7502     auto [ x2, y2 ] = f2();
   7503     auto& [ xr2, yr2 ] = f2();
   7504     const auto [ x3, y3 ] = f3();
   7505 
   7506   }
   7507 
   7508   namespace test_exception_spec_type_system
   7509   {
   7510 
   7511     struct Good {};
   7512     struct Bad {};
   7513 
   7514     void g1() noexcept;
   7515     void g2();
   7516 
   7517     template<typename T>
   7518     Bad
   7519     f(T*, T*);
   7520 
   7521     template<typename T1, typename T2>
   7522     Good
   7523     f(T1*, T2*);
   7524 
   7525     static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
   7526 
   7527   }
   7528 
   7529   namespace test_inline_variables
   7530   {
   7531 
   7532     template<class T> void f(T)
   7533     {}
   7534 
   7535     template<class T> inline T g(T)
   7536     {
   7537       return T{};
   7538     }
   7539 
   7540     template<> inline void f<>(int)
   7541     {}
   7542 
   7543     template<> int g<>(int)
   7544     {
   7545       return 5;
   7546     }
   7547 
   7548   }
   7549 
   7550 }  // namespace cxx17
   7551 
   7552 #endif  // __cplusplus < 201703L && !defined _MSC_VER
   7553 
   7554 
   7555 
   7556 _ACEOF
   7557 if ac_fn_cxx_try_compile "$LINENO"; then :
   7558   eval $cachevar=yes
   7559 else
   7560   eval $cachevar=no
   7561 fi
   7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   7563          CXX="$ac_save_CXX"
   7564 fi
   7565 eval ac_res=\$$cachevar
   7566 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   7567 $as_echo "$ac_res" >&6; }
   7568       if eval test x\$$cachevar = xyes; then
   7569         CXX_DIALECT="$switch"
   7570         CXX="$CXX $switch"
   7571         if test -n "$CXXCPP" ; then
   7572           CXXCPP="$CXXCPP $switch"
   7573         fi
   7574         ac_success=yes
   7575         break
   7576       fi
   7577     done
   7578   fi
   7579 
   7580     if test x$ac_success = xno; then
   7581                     for alternative in ${ax_cxx_compile_alternatives}; do
   7582       for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}" MSVC; do
   7583         if test x"$switch" = xMSVC; then
   7584                                         switch=-std:c++${alternative}
   7585           cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_${switch}_MSVC" | $as_tr_sh`
   7586         else
   7587           cachevar=`$as_echo "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
   7588         fi
   7589         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
   7590 $as_echo_n "checking whether $CXX supports C++17 features with $switch... " >&6; }
   7591 if eval \${$cachevar+:} false; then :
   7592   $as_echo_n "(cached) " >&6
   7593 else
   7594   ac_save_CXX="$CXX"
   7595            CXX="$CXX $switch"
   7596            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7597 /* end confdefs.h.  */
   7598 
   7599 
   7600 // If the compiler admits that it is not ready for C++11, why torture it?
   7601 // Hopefully, this will speed up the test.
   7602 
   7603 #ifndef __cplusplus
   7604 
   7605 #error "This is not a C++ compiler"
   7606 
   7607 // MSVC always sets __cplusplus to 199711L in older versions; newer versions
   7608 // only set it correctly if /Zc:__cplusplus is specified as well as a
   7609 // /std:c++NN switch:
   7610 // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
   7611 #elif __cplusplus < 201103L && !defined _MSC_VER
   7612 
   7613 #error "This is not a C++11 compiler"
   7614 
   7615 #else
   7616 
   7617 namespace cxx11
   7618 {
   7619 
   7620   namespace test_static_assert
   7621   {
   7622 
   7623     template <typename T>
   7624     struct check
   7625     {
   7626       static_assert(sizeof(int) <= sizeof(T), "not big enough");
   7627     };
   7628 
   7629   }
   7630 
   7631   namespace test_final_override
   7632   {
   7633 
   7634     struct Base
   7635     {
   7636       virtual ~Base() {}
   7637       virtual void f() {}
   7638     };
   7639 
   7640     struct Derived : public Base
   7641     {
   7642       virtual ~Derived() override {}
   7643       virtual void f() override {}
   7644     };
   7645 
   7646   }
   7647 
   7648   namespace test_double_right_angle_brackets
   7649   {
   7650 
   7651     template < typename T >
   7652     struct check {};
   7653 
   7654     typedef check<void> single_type;
   7655     typedef check<check<void>> double_type;
   7656     typedef check<check<check<void>>> triple_type;
   7657     typedef check<check<check<check<void>>>> quadruple_type;
   7658 
   7659   }
   7660 
   7661   namespace test_decltype
   7662   {
   7663 
   7664     int
   7665     f()
   7666     {
   7667       int a = 1;
   7668       decltype(a) b = 2;
   7669       return a + b;
   7670     }
   7671 
   7672   }
   7673 
   7674   namespace test_type_deduction
   7675   {
   7676 
   7677     template < typename T1, typename T2 >
   7678     struct is_same
   7679     {
   7680       static const bool value = false;
   7681     };
   7682 
   7683     template < typename T >
   7684     struct is_same<T, T>
   7685     {
   7686       static const bool value = true;
   7687     };
   7688 
   7689     template < typename T1, typename T2 >
   7690     auto
   7691     add(T1 a1, T2 a2) -> decltype(a1 + a2)
   7692     {
   7693       return a1 + a2;
   7694     }
   7695 
   7696     int
   7697     test(const int c, volatile int v)
   7698     {
   7699       static_assert(is_same<int, decltype(0)>::value == true, "");
   7700       static_assert(is_same<int, decltype(c)>::value == false, "");
   7701       static_assert(is_same<int, decltype(v)>::value == false, "");
   7702       auto ac = c;
   7703       auto av = v;
   7704       auto sumi = ac + av + 'x';
   7705       auto sumf = ac + av + 1.0;
   7706       static_assert(is_same<int, decltype(ac)>::value == true, "");
   7707       static_assert(is_same<int, decltype(av)>::value == true, "");
   7708       static_assert(is_same<int, decltype(sumi)>::value == true, "");
   7709       static_assert(is_same<int, decltype(sumf)>::value == false, "");
   7710       static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
   7711       return (sumf > 0.0) ? sumi : add(c, v);
   7712     }
   7713 
   7714   }
   7715 
   7716   namespace test_noexcept
   7717   {
   7718 
   7719     int f() { return 0; }
   7720     int g() noexcept { return 0; }
   7721 
   7722     static_assert(noexcept(f()) == false, "");
   7723     static_assert(noexcept(g()) == true, "");
   7724 
   7725   }
   7726 
   7727   namespace test_constexpr
   7728   {
   7729 
   7730     template < typename CharT >
   7731     unsigned long constexpr
   7732     strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
   7733     {
   7734       return *s ? strlen_c_r(s + 1, acc + 1) : acc;
   7735     }
   7736 
   7737     template < typename CharT >
   7738     unsigned long constexpr
   7739     strlen_c(const CharT *const s) noexcept
   7740     {
   7741       return strlen_c_r(s, 0UL);
   7742     }
   7743 
   7744     static_assert(strlen_c("") == 0UL, "");
   7745     static_assert(strlen_c("1") == 1UL, "");
   7746     static_assert(strlen_c("example") == 7UL, "");
   7747     static_assert(strlen_c("another\0example") == 7UL, "");
   7748 
   7749   }
   7750 
   7751   namespace test_rvalue_references
   7752   {
   7753 
   7754     template < int N >
   7755     struct answer
   7756     {
   7757       static constexpr int value = N;
   7758     };
   7759 
   7760     answer<1> f(int&)       { return answer<1>(); }
   7761     answer<2> f(const int&) { return answer<2>(); }
   7762     answer<3> f(int&&)      { return answer<3>(); }
   7763 
   7764     void
   7765     test()
   7766     {
   7767       int i = 0;
   7768       const int c = 0;
   7769       static_assert(decltype(f(i))::value == 1, "");
   7770       static_assert(decltype(f(c))::value == 2, "");
   7771       static_assert(decltype(f(0))::value == 3, "");
   7772     }
   7773 
   7774   }
   7775 
   7776   namespace test_uniform_initialization
   7777   {
   7778 
   7779     struct test
   7780     {
   7781       static const int zero {};
   7782       static const int one {1};
   7783     };
   7784 
   7785     static_assert(test::zero == 0, "");
   7786     static_assert(test::one == 1, "");
   7787 
   7788   }
   7789 
   7790   namespace test_lambdas
   7791   {
   7792 
   7793     void
   7794     test1()
   7795     {
   7796       auto lambda1 = [](){};
   7797       auto lambda2 = lambda1;
   7798       lambda1();
   7799       lambda2();
   7800     }
   7801 
   7802     int
   7803     test2()
   7804     {
   7805       auto a = [](int i, int j){ return i + j; }(1, 2);
   7806       auto b = []() -> int { return '0'; }();
   7807       auto c = [=](){ return a + b; }();
   7808       auto d = [&](){ return c; }();
   7809       auto e = [a, &b](int x) mutable {
   7810         const auto identity = [](int y){ return y; };
   7811         for (auto i = 0; i < a; ++i)
   7812           a += b--;
   7813         return x + identity(a + b);
   7814       }(0);
   7815       return a + b + c + d + e;
   7816     }
   7817 
   7818     int
   7819     test3()
   7820     {
   7821       const auto nullary = [](){ return 0; };
   7822       const auto unary = [](int x){ return x; };
   7823       using nullary_t = decltype(nullary);
   7824       using unary_t = decltype(unary);
   7825       const auto higher1st = [](nullary_t f){ return f(); };
   7826       const auto higher2nd = [unary](nullary_t f1){
   7827         return [unary, f1](unary_t f2){ return f2(unary(f1())); };
   7828       };
   7829       return higher1st(nullary) + higher2nd(nullary)(unary);
   7830     }
   7831 
   7832   }
   7833 
   7834   namespace test_variadic_templates
   7835   {
   7836 
   7837     template <int...>
   7838     struct sum;
   7839 
   7840     template <int N0, int... N1toN>
   7841     struct sum<N0, N1toN...>
   7842     {
   7843       static constexpr auto value = N0 + sum<N1toN...>::value;
   7844     };
   7845 
   7846     template <>
   7847     struct sum<>
   7848     {
   7849       static constexpr auto value = 0;
   7850     };
   7851 
   7852     static_assert(sum<>::value == 0, "");
   7853     static_assert(sum<1>::value == 1, "");
   7854     static_assert(sum<23>::value == 23, "");
   7855     static_assert(sum<1, 2>::value == 3, "");
   7856     static_assert(sum<5, 5, 11>::value == 21, "");
   7857     static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
   7858 
   7859   }
   7860 
   7861   // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
   7862   // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
   7863   // because of this.
   7864   namespace test_template_alias_sfinae
   7865   {
   7866 
   7867     struct foo {};
   7868 
   7869     template<typename T>
   7870     using member = typename T::member_type;
   7871 
   7872     template<typename T>
   7873     void func(...) {}
   7874 
   7875     template<typename T>
   7876     void func(member<T>*) {}
   7877 
   7878     void test();
   7879 
   7880     void test() { func<foo>(0); }
   7881 
   7882   }
   7883 
   7884 }  // namespace cxx11
   7885 
   7886 #endif  // __cplusplus >= 201103L
   7887 
   7888 
   7889 
   7890 
   7891 // If the compiler admits that it is not ready for C++14, why torture it?
   7892 // Hopefully, this will speed up the test.
   7893 
   7894 #ifndef __cplusplus
   7895 
   7896 #error "This is not a C++ compiler"
   7897 
   7898 #elif __cplusplus < 201402L && !defined _MSC_VER
   7899 
   7900 #error "This is not a C++14 compiler"
   7901 
   7902 #else
   7903 
   7904 namespace cxx14
   7905 {
   7906 
   7907   namespace test_polymorphic_lambdas
   7908   {
   7909 
   7910     int
   7911     test()
   7912     {
   7913       const auto lambda = [](auto&&... args){
   7914         const auto istiny = [](auto x){
   7915           return (sizeof(x) == 1UL) ? 1 : 0;
   7916         };
   7917         const int aretiny[] = { istiny(args)... };
   7918         return aretiny[0];
   7919       };
   7920       return lambda(1, 1L, 1.0f, '1');
   7921     }
   7922 
   7923   }
   7924 
   7925   namespace test_binary_literals
   7926   {
   7927 
   7928     constexpr auto ivii = 0b0000000000101010;
   7929     static_assert(ivii == 42, "wrong value");
   7930 
   7931   }
   7932 
   7933   namespace test_generalized_constexpr
   7934   {
   7935 
   7936     template < typename CharT >
   7937     constexpr unsigned long
   7938     strlen_c(const CharT *const s) noexcept
   7939     {
   7940       auto length = 0UL;
   7941       for (auto p = s; *p; ++p)
   7942         ++length;
   7943       return length;
   7944     }
   7945 
   7946     static_assert(strlen_c("") == 0UL, "");
   7947     static_assert(strlen_c("x") == 1UL, "");
   7948     static_assert(strlen_c("test") == 4UL, "");
   7949     static_assert(strlen_c("another\0test") == 7UL, "");
   7950 
   7951   }
   7952 
   7953   namespace test_lambda_init_capture
   7954   {
   7955 
   7956     int
   7957     test()
   7958     {
   7959       auto x = 0;
   7960       const auto lambda1 = [a = x](int b){ return a + b; };
   7961       const auto lambda2 = [a = lambda1(x)](){ return a; };
   7962       return lambda2();
   7963     }
   7964 
   7965   }
   7966 
   7967   namespace test_digit_separators
   7968   {
   7969 
   7970     constexpr auto ten_million = 100'000'000;
   7971     static_assert(ten_million == 100000000, "");
   7972 
   7973   }
   7974 
   7975   namespace test_return_type_deduction
   7976   {
   7977 
   7978     auto f(int& x) { return x; }
   7979     decltype(auto) g(int& x) { return x; }
   7980 
   7981     template < typename T1, typename T2 >
   7982     struct is_same
   7983     {
   7984       static constexpr auto value = false;
   7985     };
   7986 
   7987     template < typename T >
   7988     struct is_same<T, T>
   7989     {
   7990       static constexpr auto value = true;
   7991     };
   7992 
   7993     int
   7994     test()
   7995     {
   7996       auto x = 0;
   7997       static_assert(is_same<int, decltype(f(x))>::value, "");
   7998       static_assert(is_same<int&, decltype(g(x))>::value, "");
   7999       return x;
   8000     }
   8001 
   8002   }
   8003 
   8004 }  // namespace cxx14
   8005 
   8006 #endif  // __cplusplus >= 201402L
   8007 
   8008 
   8009 
   8010 
   8011 // If the compiler admits that it is not ready for C++17, why torture it?
   8012 // Hopefully, this will speed up the test.
   8013 
   8014 #ifndef __cplusplus
   8015 
   8016 #error "This is not a C++ compiler"
   8017 
   8018 #elif __cplusplus < 201703L && !defined _MSC_VER
   8019 
   8020 #error "This is not a C++17 compiler"
   8021 
   8022 #else
   8023 
   8024 #include <initializer_list>
   8025 #include <utility>
   8026 #include <type_traits>
   8027 
   8028 namespace cxx17
   8029 {
   8030 
   8031   namespace test_constexpr_lambdas
   8032   {
   8033 
   8034     constexpr int foo = [](){return 42;}();
   8035 
   8036   }
   8037 
   8038   namespace test::nested_namespace::definitions
   8039   {
   8040 
   8041   }
   8042 
   8043   namespace test_fold_expression
   8044   {
   8045 
   8046     template<typename... Args>
   8047     int multiply(Args... args)
   8048     {
   8049       return (args * ... * 1);
   8050     }
   8051 
   8052     template<typename... Args>
   8053     bool all(Args... args)
   8054     {
   8055       return (args && ...);
   8056     }
   8057 
   8058   }
   8059 
   8060   namespace test_extended_static_assert
   8061   {
   8062 
   8063     static_assert (true);
   8064 
   8065   }
   8066 
   8067   namespace test_auto_brace_init_list
   8068   {
   8069 
   8070     auto foo = {5};
   8071     auto bar {5};
   8072 
   8073     static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
   8074     static_assert(std::is_same<int, decltype(bar)>::value);
   8075   }
   8076 
   8077   namespace test_typename_in_template_template_parameter
   8078   {
   8079 
   8080     template<template<typename> typename X> struct D;
   8081 
   8082   }
   8083 
   8084   namespace test_fallthrough_nodiscard_maybe_unused_attributes
   8085   {
   8086 
   8087     int f1()
   8088     {
   8089       return 42;
   8090     }
   8091 
   8092     [[nodiscard]] int f2()
   8093     {
   8094       [[maybe_unused]] auto unused = f1();
   8095 
   8096       switch (f1())
   8097       {
   8098       case 17:
   8099         f1();
   8100         [[fallthrough]];
   8101       case 42:
   8102         f1();
   8103       }
   8104       return f1();
   8105     }
   8106 
   8107   }
   8108 
   8109   namespace test_extended_aggregate_initialization
   8110   {
   8111 
   8112     struct base1
   8113     {
   8114       int b1, b2 = 42;
   8115     };
   8116 
   8117     struct base2
   8118     {
   8119       base2() {
   8120         b3 = 42;
   8121       }
   8122       int b3;
   8123     };
   8124 
   8125     struct derived : base1, base2
   8126     {
   8127         int d;
   8128     };
   8129 
   8130     derived d1 {{1, 2}, {}, 4};  // full initialization
   8131     derived d2 {{}, {}, 4};      // value-initialized bases
   8132 
   8133   }
   8134 
   8135   namespace test_general_range_based_for_loop
   8136   {
   8137 
   8138     struct iter
   8139     {
   8140       int i;
   8141 
   8142       int& operator* ()
   8143       {
   8144         return i;
   8145       }
   8146 
   8147       const int& operator* () const
   8148       {
   8149         return i;
   8150       }
   8151 
   8152       iter& operator++()
   8153       {
   8154         ++i;
   8155         return *this;
   8156       }
   8157     };
   8158 
   8159     struct sentinel
   8160     {
   8161       int i;
   8162     };
   8163 
   8164     bool operator== (const iter& i, const sentinel& s)
   8165     {
   8166       return i.i == s.i;
   8167     }
   8168 
   8169     bool operator!= (const iter& i, const sentinel& s)
   8170     {
   8171       return !(i == s);
   8172     }
   8173 
   8174     struct range
   8175     {
   8176       iter begin() const
   8177       {
   8178         return {0};
   8179       }
   8180 
   8181       sentinel end() const
   8182       {
   8183         return {5};
   8184       }
   8185     };
   8186 
   8187     void f()
   8188     {
   8189       range r {};
   8190 
   8191       for (auto i : r)
   8192       {
   8193         [[maybe_unused]] auto v = i;
   8194       }
   8195     }
   8196 
   8197   }
   8198 
   8199   namespace test_lambda_capture_asterisk_this_by_value
   8200   {
   8201 
   8202     struct t
   8203     {
   8204       int i;
   8205       int foo()
   8206       {
   8207         return [*this]()
   8208         {
   8209           return i;
   8210         }();
   8211       }
   8212     };
   8213 
   8214   }
   8215 
   8216   namespace test_enum_class_construction
   8217   {
   8218 
   8219     enum class byte : unsigned char
   8220     {};
   8221 
   8222     byte foo {42};
   8223 
   8224   }
   8225 
   8226   namespace test_constexpr_if
   8227   {
   8228 
   8229     template <bool cond>
   8230     int f ()
   8231     {
   8232       if constexpr(cond)
   8233       {
   8234         return 13;
   8235       }
   8236       else
   8237       {
   8238         return 42;
   8239       }
   8240     }
   8241 
   8242   }
   8243 
   8244   namespace test_selection_statement_with_initializer
   8245   {
   8246 
   8247     int f()
   8248     {
   8249       return 13;
   8250     }
   8251 
   8252     int f2()
   8253     {
   8254       if (auto i = f(); i > 0)
   8255       {
   8256         return 3;
   8257       }
   8258 
   8259       switch (auto i = f(); i + 4)
   8260       {
   8261       case 17:
   8262         return 2;
   8263 
   8264       default:
   8265         return 1;
   8266       }
   8267     }
   8268 
   8269   }
   8270 
   8271   namespace test_template_argument_deduction_for_class_templates
   8272   {
   8273 
   8274     template <typename T1, typename T2>
   8275     struct pair
   8276     {
   8277       pair (T1 p1, T2 p2)
   8278         : m1 {p1},
   8279           m2 {p2}
   8280       {}
   8281 
   8282       T1 m1;
   8283       T2 m2;
   8284     };
   8285 
   8286     void f()
   8287     {
   8288       [[maybe_unused]] auto p = pair{13, 42u};
   8289     }
   8290 
   8291   }
   8292 
   8293   namespace test_non_type_auto_template_parameters
   8294   {
   8295 
   8296     template <auto n>
   8297     struct B
   8298     {};
   8299 
   8300     B<5> b1;
   8301     B<'a'> b2;
   8302 
   8303   }
   8304 
   8305   namespace test_structured_bindings
   8306   {
   8307 
   8308     int arr[2] = { 1, 2 };
   8309     std::pair<int, int> pr = { 1, 2 };
   8310 
   8311     auto f1() -> int(&)[2]
   8312     {
   8313       return arr;
   8314     }
   8315 
   8316     auto f2() -> std::pair<int, int>&
   8317     {
   8318       return pr;
   8319     }
   8320 
   8321     struct S
   8322     {
   8323       int x1 : 2;
   8324       volatile double y1;
   8325     };
   8326 
   8327     S f3()
   8328     {
   8329       return {};
   8330     }
   8331 
   8332     auto [ x1, y1 ] = f1();
   8333     auto& [ xr1, yr1 ] = f1();
   8334     auto [ x2, y2 ] = f2();
   8335     auto& [ xr2, yr2 ] = f2();
   8336     const auto [ x3, y3 ] = f3();
   8337 
   8338   }
   8339 
   8340   namespace test_exception_spec_type_system
   8341   {
   8342 
   8343     struct Good {};
   8344     struct Bad {};
   8345 
   8346     void g1() noexcept;
   8347     void g2();
   8348 
   8349     template<typename T>
   8350     Bad
   8351     f(T*, T*);
   8352 
   8353     template<typename T1, typename T2>
   8354     Good
   8355     f(T1*, T2*);
   8356 
   8357     static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
   8358 
   8359   }
   8360 
   8361   namespace test_inline_variables
   8362   {
   8363 
   8364     template<class T> void f(T)
   8365     {}
   8366 
   8367     template<class T> inline T g(T)
   8368     {
   8369       return T{};
   8370     }
   8371 
   8372     template<> inline void f<>(int)
   8373     {}
   8374 
   8375     template<> int g<>(int)
   8376     {
   8377       return 5;
   8378     }
   8379 
   8380   }
   8381 
   8382 }  // namespace cxx17
   8383 
   8384 #endif  // __cplusplus < 201703L && !defined _MSC_VER
   8385 
   8386 
   8387 
   8388 _ACEOF
   8389 if ac_fn_cxx_try_compile "$LINENO"; then :
   8390   eval $cachevar=yes
   8391 else
   8392   eval $cachevar=no
   8393 fi
   8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8395            CXX="$ac_save_CXX"
   8396 fi
   8397 eval ac_res=\$$cachevar
   8398 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   8399 $as_echo "$ac_res" >&6; }
   8400         if eval test x\$$cachevar = xyes; then
   8401           CXX_DIALECT="$switch"
   8402           CXX="$CXX $switch"
   8403           if test -n "$CXXCPP" ; then
   8404             CXXCPP="$CXXCPP $switch"
   8405           fi
   8406           ac_success=yes
   8407           break
   8408         fi
   8409       done
   8410       if test x$ac_success = xyes; then
   8411         break
   8412       fi
   8413     done
   8414   fi
   8415   ac_ext=c
   8416 ac_cpp='$CPP $CPPFLAGS'
   8417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   8418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   8419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   8420 
   8421   if test x$ax_cxx_compile_cxx17_required = xtrue; then
   8422     if test x$ac_success = xno; then
   8423       as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
   8424     fi
   8425   fi
   8426   if test x$ac_success = xno; then
   8427     HAVE_CXX17=0
   8428     { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
   8429 $as_echo "$as_me: No compiler with C++17 support was found" >&6;}
   8430   else
   8431     HAVE_CXX17=1
   8432 
   8433 $as_echo "#define HAVE_CXX17 1" >>confdefs.h
   8434 
   8435   fi
   8436 
   8437 
   8438 
   8439 
   8440 
   8441         MKINSTALLDIRS=
   8442   if test -n "$ac_aux_dir"; then
   8443     case "$ac_aux_dir" in
   8444       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
   8445       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
   8446     esac
   8447   fi
   8448   if test -z "$MKINSTALLDIRS"; then
   8449     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
   8450   fi
   8451 
   8452 
   8453 
   8454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   8455 $as_echo_n "checking whether NLS is requested... " >&6; }
   8456     # Check whether --enable-nls was given.
   8457 if test "${enable_nls+set}" = set; then :
   8458   enableval=$enable_nls; USE_NLS=$enableval
   8459 else
   8460   USE_NLS=yes
   8461 fi
   8462 
   8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
   8464 $as_echo "$USE_NLS" >&6; }
   8465 
   8466 
   8467 
   8468 
   8469 
   8470 
   8471 # Prepare PATH_SEPARATOR.
   8472 # The user is always right.
   8473 if test "${PATH_SEPARATOR+set}" != set; then
   8474   echo "#! /bin/sh" >conf$$.sh
   8475   echo  "exit 0"   >>conf$$.sh
   8476   chmod +x conf$$.sh
   8477   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   8478     PATH_SEPARATOR=';'
   8479   else
   8480     PATH_SEPARATOR=:
   8481   fi
   8482   rm -f conf$$.sh
   8483 fi
   8484 
   8485 # Find out how to test for executable files. Don't use a zero-byte file,
   8486 # as systems may use methods other than mode bits to determine executability.
   8487 cat >conf$$.file <<_ASEOF
   8488 #! /bin/sh
   8489 exit 0
   8490 _ASEOF
   8491 chmod +x conf$$.file
   8492 if test -x conf$$.file >/dev/null 2>&1; then
   8493   ac_executable_p="test -x"
   8494 else
   8495   ac_executable_p="test -f"
   8496 fi
   8497 rm -f conf$$.file
   8498 
   8499 # Extract the first word of "msgfmt", so it can be a program name with args.
   8500 set dummy msgfmt; ac_word=$2
   8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8502 $as_echo_n "checking for $ac_word... " >&6; }
   8503 if ${ac_cv_path_MSGFMT+:} false; then :
   8504   $as_echo_n "(cached) " >&6
   8505 else
   8506   case "$MSGFMT" in
   8507   [\\/]* | ?:[\\/]*)
   8508     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
   8509     ;;
   8510   *)
   8511     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   8512     for ac_dir in $PATH; do
   8513       IFS="$ac_save_IFS"
   8514       test -z "$ac_dir" && ac_dir=.
   8515       for ac_exec_ext in '' $ac_executable_extensions; do
   8516         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   8517           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
   8518      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   8519             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
   8520             break 2
   8521           fi
   8522         fi
   8523       done
   8524     done
   8525     IFS="$ac_save_IFS"
   8526   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
   8527     ;;
   8528 esac
   8529 fi
   8530 MSGFMT="$ac_cv_path_MSGFMT"
   8531 if test "$MSGFMT" != ":"; then
   8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
   8533 $as_echo "$MSGFMT" >&6; }
   8534 else
   8535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8536 $as_echo "no" >&6; }
   8537 fi
   8538 
   8539   # Extract the first word of "gmsgfmt", so it can be a program name with args.
   8540 set dummy gmsgfmt; ac_word=$2
   8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8542 $as_echo_n "checking for $ac_word... " >&6; }
   8543 if ${ac_cv_path_GMSGFMT+:} false; then :
   8544   $as_echo_n "(cached) " >&6
   8545 else
   8546   case $GMSGFMT in
   8547   [\\/]* | ?:[\\/]*)
   8548   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
   8549   ;;
   8550   *)
   8551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8552 for as_dir in $PATH
   8553 do
   8554   IFS=$as_save_IFS
   8555   test -z "$as_dir" && as_dir=.
   8556     for ac_exec_ext in '' $ac_executable_extensions; do
   8557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   8558     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
   8559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8560     break 2
   8561   fi
   8562 done
   8563   done
   8564 IFS=$as_save_IFS
   8565 
   8566   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
   8567   ;;
   8568 esac
   8569 fi
   8570 GMSGFMT=$ac_cv_path_GMSGFMT
   8571 if test -n "$GMSGFMT"; then
   8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
   8573 $as_echo "$GMSGFMT" >&6; }
   8574 else
   8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8576 $as_echo "no" >&6; }
   8577 fi
   8578 
   8579 
   8580 
   8581 
   8582 # Prepare PATH_SEPARATOR.
   8583 # The user is always right.
   8584 if test "${PATH_SEPARATOR+set}" != set; then
   8585   echo "#! /bin/sh" >conf$$.sh
   8586   echo  "exit 0"   >>conf$$.sh
   8587   chmod +x conf$$.sh
   8588   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   8589     PATH_SEPARATOR=';'
   8590   else
   8591     PATH_SEPARATOR=:
   8592   fi
   8593   rm -f conf$$.sh
   8594 fi
   8595 
   8596 # Find out how to test for executable files. Don't use a zero-byte file,
   8597 # as systems may use methods other than mode bits to determine executability.
   8598 cat >conf$$.file <<_ASEOF
   8599 #! /bin/sh
   8600 exit 0
   8601 _ASEOF
   8602 chmod +x conf$$.file
   8603 if test -x conf$$.file >/dev/null 2>&1; then
   8604   ac_executable_p="test -x"
   8605 else
   8606   ac_executable_p="test -f"
   8607 fi
   8608 rm -f conf$$.file
   8609 
   8610 # Extract the first word of "xgettext", so it can be a program name with args.
   8611 set dummy xgettext; ac_word=$2
   8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8613 $as_echo_n "checking for $ac_word... " >&6; }
   8614 if ${ac_cv_path_XGETTEXT+:} false; then :
   8615   $as_echo_n "(cached) " >&6
   8616 else
   8617   case "$XGETTEXT" in
   8618   [\\/]* | ?:[\\/]*)
   8619     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
   8620     ;;
   8621   *)
   8622     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   8623     for ac_dir in $PATH; do
   8624       IFS="$ac_save_IFS"
   8625       test -z "$ac_dir" && ac_dir=.
   8626       for ac_exec_ext in '' $ac_executable_extensions; do
   8627         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   8628           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
   8629      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   8630             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
   8631             break 2
   8632           fi
   8633         fi
   8634       done
   8635     done
   8636     IFS="$ac_save_IFS"
   8637   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
   8638     ;;
   8639 esac
   8640 fi
   8641 XGETTEXT="$ac_cv_path_XGETTEXT"
   8642 if test "$XGETTEXT" != ":"; then
   8643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
   8644 $as_echo "$XGETTEXT" >&6; }
   8645 else
   8646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8647 $as_echo "no" >&6; }
   8648 fi
   8649 
   8650     rm -f messages.po
   8651 
   8652 
   8653 # Prepare PATH_SEPARATOR.
   8654 # The user is always right.
   8655 if test "${PATH_SEPARATOR+set}" != set; then
   8656   echo "#! /bin/sh" >conf$$.sh
   8657   echo  "exit 0"   >>conf$$.sh
   8658   chmod +x conf$$.sh
   8659   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   8660     PATH_SEPARATOR=';'
   8661   else
   8662     PATH_SEPARATOR=:
   8663   fi
   8664   rm -f conf$$.sh
   8665 fi
   8666 
   8667 # Find out how to test for executable files. Don't use a zero-byte file,
   8668 # as systems may use methods other than mode bits to determine executability.
   8669 cat >conf$$.file <<_ASEOF
   8670 #! /bin/sh
   8671 exit 0
   8672 _ASEOF
   8673 chmod +x conf$$.file
   8674 if test -x conf$$.file >/dev/null 2>&1; then
   8675   ac_executable_p="test -x"
   8676 else
   8677   ac_executable_p="test -f"
   8678 fi
   8679 rm -f conf$$.file
   8680 
   8681 # Extract the first word of "msgmerge", so it can be a program name with args.
   8682 set dummy msgmerge; ac_word=$2
   8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8684 $as_echo_n "checking for $ac_word... " >&6; }
   8685 if ${ac_cv_path_MSGMERGE+:} false; then :
   8686   $as_echo_n "(cached) " >&6
   8687 else
   8688   case "$MSGMERGE" in
   8689   [\\/]* | ?:[\\/]*)
   8690     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
   8691     ;;
   8692   *)
   8693     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
   8694     for ac_dir in $PATH; do
   8695       IFS="$ac_save_IFS"
   8696       test -z "$ac_dir" && ac_dir=.
   8697       for ac_exec_ext in '' $ac_executable_extensions; do
   8698         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
   8699           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
   8700             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
   8701             break 2
   8702           fi
   8703         fi
   8704       done
   8705     done
   8706     IFS="$ac_save_IFS"
   8707   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
   8708     ;;
   8709 esac
   8710 fi
   8711 MSGMERGE="$ac_cv_path_MSGMERGE"
   8712 if test "$MSGMERGE" != ":"; then
   8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
   8714 $as_echo "$MSGMERGE" >&6; }
   8715 else
   8716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8717 $as_echo "no" >&6; }
   8718 fi
   8719 
   8720 
   8721       if test "$GMSGFMT" != ":"; then
   8722             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
   8723        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   8724       : ;
   8725     else
   8726       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
   8727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
   8728 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
   8729       GMSGFMT=":"
   8730     fi
   8731   fi
   8732 
   8733       if test "$XGETTEXT" != ":"; then
   8734             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
   8735        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
   8736       : ;
   8737     else
   8738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
   8739 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
   8740       XGETTEXT=":"
   8741     fi
   8742         rm -f messages.po
   8743   fi
   8744 
   8745   ac_config_commands="$ac_config_commands default-1"
   8746 
   8747 
   8748 
   8749       if test "X$prefix" = "XNONE"; then
   8750     acl_final_prefix="$ac_default_prefix"
   8751   else
   8752     acl_final_prefix="$prefix"
   8753   fi
   8754   if test "X$exec_prefix" = "XNONE"; then
   8755     acl_final_exec_prefix='${prefix}'
   8756   else
   8757     acl_final_exec_prefix="$exec_prefix"
   8758   fi
   8759   acl_save_prefix="$prefix"
   8760   prefix="$acl_final_prefix"
   8761   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   8762   prefix="$acl_save_prefix"
   8763 
   8764 
   8765 # Check whether --with-gnu-ld was given.
   8766 if test "${with_gnu_ld+set}" = set; then :
   8767   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   8768 else
   8769   with_gnu_ld=no
   8770 fi
   8771 
   8772 # Prepare PATH_SEPARATOR.
   8773 # The user is always right.
   8774 if test "${PATH_SEPARATOR+set}" != set; then
   8775   echo "#! /bin/sh" >conf$$.sh
   8776   echo  "exit 0"   >>conf$$.sh
   8777   chmod +x conf$$.sh
   8778   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   8779     PATH_SEPARATOR=';'
   8780   else
   8781     PATH_SEPARATOR=:
   8782   fi
   8783   rm -f conf$$.sh
   8784 fi
   8785 ac_prog=ld
   8786 if test "$GCC" = yes; then
   8787   # Check if gcc -print-prog-name=ld gives a path.
   8788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
   8789 $as_echo_n "checking for ld used by GCC... " >&6; }
   8790   case $host in
   8791   *-*-mingw*)
   8792     # gcc leaves a trailing carriage return which upsets mingw
   8793     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   8794   *)
   8795     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   8796   esac
   8797   case $ac_prog in
   8798     # Accept absolute paths.
   8799     [\\/]* | [A-Za-z]:[\\/]*)
   8800       re_direlt='/[^/][^/]*/\.\./'
   8801       # Canonicalize the path of ld
   8802       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   8803       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   8804 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   8805       done
   8806       test -z "$LD" && LD="$ac_prog"
   8807       ;;
   8808   "")
   8809     # If it fails, then pretend we aren't using GCC.
   8810     ac_prog=ld
   8811     ;;
   8812   *)
   8813     # If it is relative, then search for the first ld in PATH.
   8814     with_gnu_ld=unknown
   8815     ;;
   8816   esac
   8817 elif test "$with_gnu_ld" = yes; then
   8818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   8819 $as_echo_n "checking for GNU ld... " >&6; }
   8820 else
   8821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   8822 $as_echo_n "checking for non-GNU ld... " >&6; }
   8823 fi
   8824 if ${acl_cv_path_LD+:} false; then :
   8825   $as_echo_n "(cached) " >&6
   8826 else
   8827   if test -z "$LD"; then
   8828   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   8829   for ac_dir in $PATH; do
   8830     test -z "$ac_dir" && ac_dir=.
   8831     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   8832       acl_cv_path_LD="$ac_dir/$ac_prog"
   8833       # Check to see if the program is GNU ld.  I'd rather use --version,
   8834       # but apparently some GNU ld's only accept -v.
   8835       # Break only if it was the GNU/non-GNU ld that we prefer.
   8836       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
   8837 	test "$with_gnu_ld" != no && break
   8838       else
   8839 	test "$with_gnu_ld" != yes && break
   8840       fi
   8841     fi
   8842   done
   8843   IFS="$ac_save_ifs"
   8844 else
   8845   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   8846 fi
   8847 fi
   8848 
   8849 LD="$acl_cv_path_LD"
   8850 if test -n "$LD"; then
   8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   8852 $as_echo "$LD" >&6; }
   8853 else
   8854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8855 $as_echo "no" >&6; }
   8856 fi
   8857 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
   8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   8859 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   8860 if ${acl_cv_prog_gnu_ld+:} false; then :
   8861   $as_echo_n "(cached) " >&6
   8862 else
   8863   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   8864 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
   8865   acl_cv_prog_gnu_ld=yes
   8866 else
   8867   acl_cv_prog_gnu_ld=no
   8868 fi
   8869 fi
   8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
   8871 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   8872 with_gnu_ld=$acl_cv_prog_gnu_ld
   8873 
   8874 
   8875 
   8876                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
   8877 $as_echo_n "checking for shared library run path origin... " >&6; }
   8878 if ${acl_cv_rpath+:} false; then :
   8879   $as_echo_n "(cached) " >&6
   8880 else
   8881 
   8882     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   8883     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   8884     . ./conftest.sh
   8885     rm -f ./conftest.sh
   8886     acl_cv_rpath=done
   8887 
   8888 fi
   8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
   8890 $as_echo "$acl_cv_rpath" >&6; }
   8891   wl="$acl_cv_wl"
   8892   libext="$acl_cv_libext"
   8893   shlibext="$acl_cv_shlibext"
   8894   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   8895   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   8896   hardcode_direct="$acl_cv_hardcode_direct"
   8897   hardcode_minus_L="$acl_cv_hardcode_minus_L"
   8898     # Check whether --enable-rpath was given.
   8899 if test "${enable_rpath+set}" = set; then :
   8900   enableval=$enable_rpath; :
   8901 else
   8902   enable_rpath=yes
   8903 fi
   8904 
   8905 
   8906 
   8907 
   8908 
   8909 
   8910 
   8911 
   8912     use_additional=yes
   8913 
   8914   acl_save_prefix="$prefix"
   8915   prefix="$acl_final_prefix"
   8916   acl_save_exec_prefix="$exec_prefix"
   8917   exec_prefix="$acl_final_exec_prefix"
   8918 
   8919     eval additional_includedir=\"$includedir\"
   8920     eval additional_libdir=\"$libdir\"
   8921 
   8922   exec_prefix="$acl_save_exec_prefix"
   8923   prefix="$acl_save_prefix"
   8924 
   8925 
   8926 # Check whether --with-libiconv-prefix was given.
   8927 if test "${with_libiconv_prefix+set}" = set; then :
   8928   withval=$with_libiconv_prefix;
   8929     if test "X$withval" = "Xno"; then
   8930       use_additional=no
   8931     else
   8932       if test "X$withval" = "X"; then
   8933 
   8934   acl_save_prefix="$prefix"
   8935   prefix="$acl_final_prefix"
   8936   acl_save_exec_prefix="$exec_prefix"
   8937   exec_prefix="$acl_final_exec_prefix"
   8938 
   8939           eval additional_includedir=\"$includedir\"
   8940           eval additional_libdir=\"$libdir\"
   8941 
   8942   exec_prefix="$acl_save_exec_prefix"
   8943   prefix="$acl_save_prefix"
   8944 
   8945       else
   8946         additional_includedir="$withval/include"
   8947         additional_libdir="$withval/lib"
   8948       fi
   8949     fi
   8950 
   8951 fi
   8952 
   8953 
   8954 # Check whether --with-libiconv-type was given.
   8955 if test "${with_libiconv_type+set}" = set; then :
   8956   withval=$with_libiconv_type;  with_libiconv_type=$withval
   8957 else
   8958    with_libiconv_type=auto
   8959 fi
   8960 
   8961   lib_type=`eval echo \$with_libiconv_type`
   8962 
   8963       LIBICONV=
   8964   LTLIBICONV=
   8965   INCICONV=
   8966   rpathdirs=
   8967   ltrpathdirs=
   8968   names_already_handled=
   8969   names_next_round='iconv '
   8970   while test -n "$names_next_round"; do
   8971     names_this_round="$names_next_round"
   8972     names_next_round=
   8973     for name in $names_this_round; do
   8974       already_handled=
   8975       for n in $names_already_handled; do
   8976         if test "$n" = "$name"; then
   8977           already_handled=yes
   8978           break
   8979         fi
   8980       done
   8981       if test -z "$already_handled"; then
   8982         names_already_handled="$names_already_handled $name"
   8983                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   8984         eval value=\"\$HAVE_LIB$uppername\"
   8985         if test -n "$value"; then
   8986           if test "$value" = yes; then
   8987             eval value=\"\$LIB$uppername\"
   8988             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
   8989             eval value=\"\$LTLIB$uppername\"
   8990             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
   8991           else
   8992                                     :
   8993           fi
   8994         else
   8995                               found_dir=
   8996           found_la=
   8997           found_so=
   8998           found_a=
   8999           if test $use_additional = yes; then
   9000             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   9001               found_dir="$additional_libdir"
   9002               found_so="$additional_libdir/lib$name.$shlibext"
   9003               if test -f "$additional_libdir/lib$name.la"; then
   9004                 found_la="$additional_libdir/lib$name.la"
   9005               fi
   9006             elif test x$lib_type != xshared; then
   9007               if test -f "$additional_libdir/lib$name.$libext"; then
   9008                 found_dir="$additional_libdir"
   9009                 found_a="$additional_libdir/lib$name.$libext"
   9010                 if test -f "$additional_libdir/lib$name.la"; then
   9011                   found_la="$additional_libdir/lib$name.la"
   9012                 fi
   9013               fi
   9014             fi
   9015           fi
   9016           if test "X$found_dir" = "X"; then
   9017             for x in $LDFLAGS $LTLIBICONV; do
   9018 
   9019   acl_save_prefix="$prefix"
   9020   prefix="$acl_final_prefix"
   9021   acl_save_exec_prefix="$exec_prefix"
   9022   exec_prefix="$acl_final_exec_prefix"
   9023   eval x=\"$x\"
   9024   exec_prefix="$acl_save_exec_prefix"
   9025   prefix="$acl_save_prefix"
   9026 
   9027               case "$x" in
   9028                 -L*)
   9029                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   9030                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   9031                     found_dir="$dir"
   9032                     found_so="$dir/lib$name.$shlibext"
   9033                     if test -f "$dir/lib$name.la"; then
   9034                       found_la="$dir/lib$name.la"
   9035                     fi
   9036                   elif test x$lib_type != xshared; then
   9037                     if test -f "$dir/lib$name.$libext"; then
   9038                       found_dir="$dir"
   9039                       found_a="$dir/lib$name.$libext"
   9040                       if test -f "$dir/lib$name.la"; then
   9041                         found_la="$dir/lib$name.la"
   9042                       fi
   9043                     fi
   9044                   fi
   9045                   ;;
   9046               esac
   9047               if test "X$found_dir" != "X"; then
   9048                 break
   9049               fi
   9050             done
   9051           fi
   9052           if test "X$found_dir" != "X"; then
   9053                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
   9054             if test "X$found_so" != "X"; then
   9055                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   9056                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   9057               else
   9058                                                                                 haveit=
   9059                 for x in $ltrpathdirs; do
   9060                   if test "X$x" = "X$found_dir"; then
   9061                     haveit=yes
   9062                     break
   9063                   fi
   9064                 done
   9065                 if test -z "$haveit"; then
   9066                   ltrpathdirs="$ltrpathdirs $found_dir"
   9067                 fi
   9068                                 if test "$hardcode_direct" = yes; then
   9069                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   9070                 else
   9071                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   9072                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   9073                                                             haveit=
   9074                     for x in $rpathdirs; do
   9075                       if test "X$x" = "X$found_dir"; then
   9076                         haveit=yes
   9077                         break
   9078                       fi
   9079                     done
   9080                     if test -z "$haveit"; then
   9081                       rpathdirs="$rpathdirs $found_dir"
   9082                     fi
   9083                   else
   9084                                                                                 haveit=
   9085                     for x in $LDFLAGS $LIBICONV; do
   9086 
   9087   acl_save_prefix="$prefix"
   9088   prefix="$acl_final_prefix"
   9089   acl_save_exec_prefix="$exec_prefix"
   9090   exec_prefix="$acl_final_exec_prefix"
   9091   eval x=\"$x\"
   9092   exec_prefix="$acl_save_exec_prefix"
   9093   prefix="$acl_save_prefix"
   9094 
   9095                       if test "X$x" = "X-L$found_dir"; then
   9096                         haveit=yes
   9097                         break
   9098                       fi
   9099                     done
   9100                     if test -z "$haveit"; then
   9101                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
   9102                     fi
   9103                     if test "$hardcode_minus_L" != no; then
   9104                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
   9105                     else
   9106                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   9107                     fi
   9108                   fi
   9109                 fi
   9110               fi
   9111             else
   9112               if test "X$found_a" != "X"; then
   9113                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
   9114               else
   9115                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
   9116               fi
   9117             fi
   9118                         additional_includedir=
   9119             case "$found_dir" in
   9120               */lib | */lib/)
   9121                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   9122                 additional_includedir="$basedir/include"
   9123                 ;;
   9124             esac
   9125             if test "X$additional_includedir" != "X"; then
   9126                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   9127                 haveit=
   9128                 if test "X$additional_includedir" = "X/usr/local/include"; then
   9129                   if test -n "$GCC"; then
   9130                     case $host_os in
   9131                       linux*) haveit=yes;;
   9132                     esac
   9133                   fi
   9134                 fi
   9135                 if test -z "$haveit"; then
   9136                   for x in $CPPFLAGS $INCICONV; do
   9137 
   9138   acl_save_prefix="$prefix"
   9139   prefix="$acl_final_prefix"
   9140   acl_save_exec_prefix="$exec_prefix"
   9141   exec_prefix="$acl_final_exec_prefix"
   9142   eval x=\"$x\"
   9143   exec_prefix="$acl_save_exec_prefix"
   9144   prefix="$acl_save_prefix"
   9145 
   9146                     if test "X$x" = "X-I$additional_includedir"; then
   9147                       haveit=yes
   9148                       break
   9149                     fi
   9150                   done
   9151                   if test -z "$haveit"; then
   9152                     if test -d "$additional_includedir"; then
   9153                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
   9154                     fi
   9155                   fi
   9156                 fi
   9157               fi
   9158             fi
   9159                         if test -n "$found_la"; then
   9160                                                         save_libdir="$libdir"
   9161               case "$found_la" in
   9162                 */* | *\\*) . "$found_la" ;;
   9163                 *) . "./$found_la" ;;
   9164               esac
   9165               libdir="$save_libdir"
   9166                             for dep in $dependency_libs; do
   9167                 case "$dep" in
   9168                   -L*)
   9169                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   9170                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   9171                       haveit=
   9172                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   9173                         if test -n "$GCC"; then
   9174                           case $host_os in
   9175                             linux*) haveit=yes;;
   9176                           esac
   9177                         fi
   9178                       fi
   9179                       if test -z "$haveit"; then
   9180                         haveit=
   9181                         for x in $LDFLAGS $LIBICONV; do
   9182 
   9183   acl_save_prefix="$prefix"
   9184   prefix="$acl_final_prefix"
   9185   acl_save_exec_prefix="$exec_prefix"
   9186   exec_prefix="$acl_final_exec_prefix"
   9187   eval x=\"$x\"
   9188   exec_prefix="$acl_save_exec_prefix"
   9189   prefix="$acl_save_prefix"
   9190 
   9191                           if test "X$x" = "X-L$additional_libdir"; then
   9192                             haveit=yes
   9193                             break
   9194                           fi
   9195                         done
   9196                         if test -z "$haveit"; then
   9197                           if test -d "$additional_libdir"; then
   9198                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
   9199                           fi
   9200                         fi
   9201                         haveit=
   9202                         for x in $LDFLAGS $LTLIBICONV; do
   9203 
   9204   acl_save_prefix="$prefix"
   9205   prefix="$acl_final_prefix"
   9206   acl_save_exec_prefix="$exec_prefix"
   9207   exec_prefix="$acl_final_exec_prefix"
   9208   eval x=\"$x\"
   9209   exec_prefix="$acl_save_exec_prefix"
   9210   prefix="$acl_save_prefix"
   9211 
   9212                           if test "X$x" = "X-L$additional_libdir"; then
   9213                             haveit=yes
   9214                             break
   9215                           fi
   9216                         done
   9217                         if test -z "$haveit"; then
   9218                           if test -d "$additional_libdir"; then
   9219                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
   9220                           fi
   9221                         fi
   9222                       fi
   9223                     fi
   9224                     ;;
   9225                   -R*)
   9226                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   9227                     if test "$enable_rpath" != no; then
   9228                                                                   haveit=
   9229                       for x in $rpathdirs; do
   9230                         if test "X$x" = "X$dir"; then
   9231                           haveit=yes
   9232                           break
   9233                         fi
   9234                       done
   9235                       if test -z "$haveit"; then
   9236                         rpathdirs="$rpathdirs $dir"
   9237                       fi
   9238                                                                   haveit=
   9239                       for x in $ltrpathdirs; do
   9240                         if test "X$x" = "X$dir"; then
   9241                           haveit=yes
   9242                           break
   9243                         fi
   9244                       done
   9245                       if test -z "$haveit"; then
   9246                         ltrpathdirs="$ltrpathdirs $dir"
   9247                       fi
   9248                     fi
   9249                     ;;
   9250                   -l*)
   9251                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   9252                     ;;
   9253                   *.la)
   9254                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   9255                     ;;
   9256                   *)
   9257                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
   9258                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
   9259                     ;;
   9260                 esac
   9261               done
   9262             fi
   9263           else
   9264                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   9265               LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
   9266               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
   9267             else
   9268               LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
   9269               LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
   9270             fi
   9271           fi
   9272         fi
   9273       fi
   9274     done
   9275   done
   9276   if test "X$rpathdirs" != "X"; then
   9277     if test -n "$hardcode_libdir_separator"; then
   9278                         alldirs=
   9279       for found_dir in $rpathdirs; do
   9280         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   9281       done
   9282             acl_save_libdir="$libdir"
   9283       libdir="$alldirs"
   9284       eval flag=\"$hardcode_libdir_flag_spec\"
   9285       libdir="$acl_save_libdir"
   9286       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   9287     else
   9288             for found_dir in $rpathdirs; do
   9289         acl_save_libdir="$libdir"
   9290         libdir="$found_dir"
   9291         eval flag=\"$hardcode_libdir_flag_spec\"
   9292         libdir="$acl_save_libdir"
   9293         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
   9294       done
   9295     fi
   9296   fi
   9297   if test "X$ltrpathdirs" != "X"; then
   9298             for found_dir in $ltrpathdirs; do
   9299       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
   9300     done
   9301   fi
   9302 
   9303 
   9304 
   9305 
   9306 
   9307 if test -f ../gettext/uninstalled-config.sh; then
   9308   relative_builddir='$(top_builddir)/../gettext'
   9309   .  ../gettext/uninstalled-config.sh
   9310 else
   9311   # The sister gettext directory doesn't exist and won't collect information on
   9312   # using gettext for us.  Call a bundled AM_GNU_GETTEXT.
   9313 
   9314 
   9315 
   9316 
   9317 
   9318 
   9319 
   9320 
   9321 
   9322 
   9323 
   9324 
   9325 
   9326 
   9327 
   9328 
   9329 
   9330 
   9331 
   9332 
   9333 
   9334 
   9335 
   9336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
   9337 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
   9338 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
   9339   $as_echo_n "(cached) " >&6
   9340 else
   9341   gt_save_LIBS="$LIBS"
   9342      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
   9343      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9344 /* end confdefs.h.  */
   9345 #include <CoreFoundation/CFPreferences.h>
   9346 int
   9347 main ()
   9348 {
   9349 CFPreferencesCopyAppValue(NULL, NULL)
   9350   ;
   9351   return 0;
   9352 }
   9353 _ACEOF
   9354 if ac_fn_c_try_link "$LINENO"; then :
   9355   gt_cv_func_CFPreferencesCopyAppValue=yes
   9356 else
   9357   gt_cv_func_CFPreferencesCopyAppValue=no
   9358 fi
   9359 rm -f core conftest.err conftest.$ac_objext \
   9360     conftest$ac_exeext conftest.$ac_ext
   9361      LIBS="$gt_save_LIBS"
   9362 fi
   9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
   9364 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
   9365   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
   9366 
   9367 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
   9368 
   9369   fi
   9370                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
   9371 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
   9372 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
   9373   $as_echo_n "(cached) " >&6
   9374 else
   9375   gt_save_LIBS="$LIBS"
   9376      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
   9377      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9378 /* end confdefs.h.  */
   9379 #include <CoreFoundation/CFLocale.h>
   9380 int
   9381 main ()
   9382 {
   9383 CFLocaleCopyPreferredLanguages();
   9384   ;
   9385   return 0;
   9386 }
   9387 _ACEOF
   9388 if ac_fn_c_try_link "$LINENO"; then :
   9389   gt_cv_func_CFLocaleCopyPreferredLanguages=yes
   9390 else
   9391   gt_cv_func_CFLocaleCopyPreferredLanguages=no
   9392 fi
   9393 rm -f core conftest.err conftest.$ac_objext \
   9394     conftest$ac_exeext conftest.$ac_ext
   9395      LIBS="$gt_save_LIBS"
   9396 fi
   9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
   9398 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
   9399   if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
   9400 
   9401 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
   9402 
   9403   fi
   9404   INTL_MACOSX_LIBS=
   9405   if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
   9406      || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
   9407                     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
   9408   fi
   9409 
   9410 
   9411 
   9412 
   9413 
   9414 
   9415   LIBINTL=
   9416   LTLIBINTL=
   9417   POSUB=
   9418 
   9419     case " $gt_needs " in
   9420     *" need-formatstring-macros "*) gt_api_version=3 ;;
   9421     *" need-ngettext "*) gt_api_version=2 ;;
   9422     *) gt_api_version=1 ;;
   9423   esac
   9424   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
   9425   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
   9426 
   9427     if test "$USE_NLS" = "yes"; then
   9428     gt_use_preinstalled_gnugettext=no
   9429 
   9430 
   9431         if test $gt_api_version -ge 3; then
   9432           gt_revision_test_code='
   9433 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
   9434 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
   9435 #endif
   9436 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
   9437 '
   9438         else
   9439           gt_revision_test_code=
   9440         fi
   9441         if test $gt_api_version -ge 2; then
   9442           gt_expression_test_code=' + * ngettext ("", "", 0)'
   9443         else
   9444           gt_expression_test_code=
   9445         fi
   9446 
   9447         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
   9448 $as_echo_n "checking for GNU gettext in libc... " >&6; }
   9449 if eval \${$gt_func_gnugettext_libc+:} false; then :
   9450   $as_echo_n "(cached) " >&6
   9451 else
   9452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9453 /* end confdefs.h.  */
   9454 
   9455 #include <libintl.h>
   9456 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
   9457 extern int _nl_msg_cat_cntr;
   9458 extern int *_nl_domain_bindings;
   9459 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
   9460 #else
   9461 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
   9462 #endif
   9463 $gt_revision_test_code
   9464 
   9465 int
   9466 main ()
   9467 {
   9468 
   9469 bindtextdomain ("", "");
   9470 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
   9471 
   9472   ;
   9473   return 0;
   9474 }
   9475 _ACEOF
   9476 if ac_fn_c_try_link "$LINENO"; then :
   9477   eval "$gt_func_gnugettext_libc=yes"
   9478 else
   9479   eval "$gt_func_gnugettext_libc=no"
   9480 fi
   9481 rm -f core conftest.err conftest.$ac_objext \
   9482     conftest$ac_exeext conftest.$ac_ext
   9483 fi
   9484 eval ac_res=\$$gt_func_gnugettext_libc
   9485 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   9486 $as_echo "$ac_res" >&6; }
   9487 
   9488         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
   9489 
   9490 
   9491 
   9492 
   9493 
   9494           am_save_CPPFLAGS="$CPPFLAGS"
   9495 
   9496   for element in $INCICONV; do
   9497     haveit=
   9498     for x in $CPPFLAGS; do
   9499 
   9500   acl_save_prefix="$prefix"
   9501   prefix="$acl_final_prefix"
   9502   acl_save_exec_prefix="$exec_prefix"
   9503   exec_prefix="$acl_final_exec_prefix"
   9504   eval x=\"$x\"
   9505   exec_prefix="$acl_save_exec_prefix"
   9506   prefix="$acl_save_prefix"
   9507 
   9508       if test "X$x" = "X$element"; then
   9509         haveit=yes
   9510         break
   9511       fi
   9512     done
   9513     if test -z "$haveit"; then
   9514       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   9515     fi
   9516   done
   9517 
   9518 
   9519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
   9520 $as_echo_n "checking for iconv... " >&6; }
   9521 if ${am_cv_func_iconv+:} false; then :
   9522   $as_echo_n "(cached) " >&6
   9523 else
   9524 
   9525     am_cv_func_iconv="no, consider installing GNU libiconv"
   9526     am_cv_lib_iconv=no
   9527     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9528 /* end confdefs.h.  */
   9529 
   9530 #include <stdlib.h>
   9531 #include <iconv.h>
   9532 
   9533 int
   9534 main ()
   9535 {
   9536 iconv_t cd = iconv_open("","");
   9537            iconv(cd,NULL,NULL,NULL,NULL);
   9538            iconv_close(cd);
   9539   ;
   9540   return 0;
   9541 }
   9542 _ACEOF
   9543 if ac_fn_c_try_link "$LINENO"; then :
   9544   am_cv_func_iconv=yes
   9545 fi
   9546 rm -f core conftest.err conftest.$ac_objext \
   9547     conftest$ac_exeext conftest.$ac_ext
   9548     if test "$am_cv_func_iconv" != yes; then
   9549       am_save_LIBS="$LIBS"
   9550       LIBS="$LIBS $LIBICONV"
   9551       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9552 /* end confdefs.h.  */
   9553 
   9554 #include <stdlib.h>
   9555 #include <iconv.h>
   9556 
   9557 int
   9558 main ()
   9559 {
   9560 iconv_t cd = iconv_open("","");
   9561              iconv(cd,NULL,NULL,NULL,NULL);
   9562              iconv_close(cd);
   9563   ;
   9564   return 0;
   9565 }
   9566 _ACEOF
   9567 if ac_fn_c_try_link "$LINENO"; then :
   9568   am_cv_lib_iconv=yes
   9569         am_cv_func_iconv=yes
   9570 fi
   9571 rm -f core conftest.err conftest.$ac_objext \
   9572     conftest$ac_exeext conftest.$ac_ext
   9573       LIBS="$am_save_LIBS"
   9574     fi
   9575 
   9576 fi
   9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
   9578 $as_echo "$am_cv_func_iconv" >&6; }
   9579   if test "$am_cv_func_iconv" = yes; then
   9580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
   9581 $as_echo_n "checking for working iconv... " >&6; }
   9582 if ${am_cv_func_iconv_works+:} false; then :
   9583   $as_echo_n "(cached) " >&6
   9584 else
   9585 
   9586                   am_save_LIBS="$LIBS"
   9587       if test $am_cv_lib_iconv = yes; then
   9588         LIBS="$LIBS $LIBICONV"
   9589       fi
   9590       am_cv_func_iconv_works=no
   9591       for ac_iconv_const in '' 'const'; do
   9592         if test "$cross_compiling" = yes; then :
   9593   case "$host_os" in
   9594              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
   9595              *)            am_cv_func_iconv_works="guessing yes" ;;
   9596            esac
   9597 else
   9598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9599 /* end confdefs.h.  */
   9600 
   9601 #include <iconv.h>
   9602 #include <string.h>
   9603 
   9604 #ifndef ICONV_CONST
   9605 # define ICONV_CONST $ac_iconv_const
   9606 #endif
   9607 
   9608 int
   9609 main ()
   9610 {
   9611 int result = 0;
   9612   /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
   9613      successful returns.  This is even documented in
   9614      <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
   9615   {
   9616     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
   9617     if (cd_utf8_to_88591 != (iconv_t)(-1))
   9618       {
   9619         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
   9620         char buf[10];
   9621         ICONV_CONST char *inptr = input;
   9622         size_t inbytesleft = strlen (input);
   9623         char *outptr = buf;
   9624         size_t outbytesleft = sizeof (buf);
   9625         size_t res = iconv (cd_utf8_to_88591,
   9626                             &inptr, &inbytesleft,
   9627                             &outptr, &outbytesleft);
   9628         if (res == 0)
   9629           result |= 1;
   9630         iconv_close (cd_utf8_to_88591);
   9631       }
   9632   }
   9633   /* Test against Solaris 10 bug: Failures are not distinguishable from
   9634      successful returns.  */
   9635   {
   9636     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
   9637     if (cd_ascii_to_88591 != (iconv_t)(-1))
   9638       {
   9639         static ICONV_CONST char input[] = "\263";
   9640         char buf[10];
   9641         ICONV_CONST char *inptr = input;
   9642         size_t inbytesleft = strlen (input);
   9643         char *outptr = buf;
   9644         size_t outbytesleft = sizeof (buf);
   9645         size_t res = iconv (cd_ascii_to_88591,
   9646                             &inptr, &inbytesleft,
   9647                             &outptr, &outbytesleft);
   9648         if (res == 0)
   9649           result |= 2;
   9650         iconv_close (cd_ascii_to_88591);
   9651       }
   9652   }
   9653   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
   9654   {
   9655     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
   9656     if (cd_88591_to_utf8 != (iconv_t)(-1))
   9657       {
   9658         static ICONV_CONST char input[] = "\304";
   9659         static char buf[2] = { (char)0xDE, (char)0xAD };
   9660         ICONV_CONST char *inptr = input;
   9661         size_t inbytesleft = 1;
   9662         char *outptr = buf;
   9663         size_t outbytesleft = 1;
   9664         size_t res = iconv (cd_88591_to_utf8,
   9665                             &inptr, &inbytesleft,
   9666                             &outptr, &outbytesleft);
   9667         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
   9668           result |= 4;
   9669         iconv_close (cd_88591_to_utf8);
   9670       }
   9671   }
   9672 #if 0 /* This bug could be worked around by the caller.  */
   9673   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
   9674   {
   9675     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
   9676     if (cd_88591_to_utf8 != (iconv_t)(-1))
   9677       {
   9678         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
   9679         char buf[50];
   9680         ICONV_CONST char *inptr = input;
   9681         size_t inbytesleft = strlen (input);
   9682         char *outptr = buf;
   9683         size_t outbytesleft = sizeof (buf);
   9684         size_t res = iconv (cd_88591_to_utf8,
   9685                             &inptr, &inbytesleft,
   9686                             &outptr, &outbytesleft);
   9687         if ((int)res > 0)
   9688           result |= 8;
   9689         iconv_close (cd_88591_to_utf8);
   9690       }
   9691   }
   9692 #endif
   9693   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
   9694      provided.  */
   9695   {
   9696     /* Try standardized names.  */
   9697     iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
   9698     /* Try IRIX, OSF/1 names.  */
   9699     iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
   9700     /* Try AIX names.  */
   9701     iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
   9702     /* Try HP-UX names.  */
   9703     iconv_t cd4 = iconv_open ("utf8", "eucJP");
   9704     if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
   9705         && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
   9706       result |= 16;
   9707     if (cd1 != (iconv_t)(-1))
   9708       iconv_close (cd1);
   9709     if (cd2 != (iconv_t)(-1))
   9710       iconv_close (cd2);
   9711     if (cd3 != (iconv_t)(-1))
   9712       iconv_close (cd3);
   9713     if (cd4 != (iconv_t)(-1))
   9714       iconv_close (cd4);
   9715   }
   9716   return result;
   9717 
   9718   ;
   9719   return 0;
   9720 }
   9721 _ACEOF
   9722 if ac_fn_c_try_run "$LINENO"; then :
   9723   am_cv_func_iconv_works=yes
   9724 fi
   9725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9726   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9727 fi
   9728 
   9729         test "$am_cv_func_iconv_works" = no || break
   9730       done
   9731       LIBS="$am_save_LIBS"
   9732 
   9733 fi
   9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
   9735 $as_echo "$am_cv_func_iconv_works" >&6; }
   9736     case "$am_cv_func_iconv_works" in
   9737       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
   9738       *)   am_func_iconv=yes ;;
   9739     esac
   9740   else
   9741     am_func_iconv=no am_cv_lib_iconv=no
   9742   fi
   9743   if test "$am_func_iconv" = yes; then
   9744 
   9745 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
   9746 
   9747   fi
   9748   if test "$am_cv_lib_iconv" = yes; then
   9749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
   9750 $as_echo_n "checking how to link with libiconv... " >&6; }
   9751     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
   9752 $as_echo "$LIBICONV" >&6; }
   9753   else
   9754             CPPFLAGS="$am_save_CPPFLAGS"
   9755     LIBICONV=
   9756     LTLIBICONV=
   9757   fi
   9758 
   9759 
   9760 
   9761 
   9762 
   9763 
   9764     use_additional=yes
   9765 
   9766   acl_save_prefix="$prefix"
   9767   prefix="$acl_final_prefix"
   9768   acl_save_exec_prefix="$exec_prefix"
   9769   exec_prefix="$acl_final_exec_prefix"
   9770 
   9771     eval additional_includedir=\"$includedir\"
   9772     eval additional_libdir=\"$libdir\"
   9773 
   9774   exec_prefix="$acl_save_exec_prefix"
   9775   prefix="$acl_save_prefix"
   9776 
   9777 
   9778 # Check whether --with-libintl-prefix was given.
   9779 if test "${with_libintl_prefix+set}" = set; then :
   9780   withval=$with_libintl_prefix;
   9781     if test "X$withval" = "Xno"; then
   9782       use_additional=no
   9783     else
   9784       if test "X$withval" = "X"; then
   9785 
   9786   acl_save_prefix="$prefix"
   9787   prefix="$acl_final_prefix"
   9788   acl_save_exec_prefix="$exec_prefix"
   9789   exec_prefix="$acl_final_exec_prefix"
   9790 
   9791           eval additional_includedir=\"$includedir\"
   9792           eval additional_libdir=\"$libdir\"
   9793 
   9794   exec_prefix="$acl_save_exec_prefix"
   9795   prefix="$acl_save_prefix"
   9796 
   9797       else
   9798         additional_includedir="$withval/include"
   9799         additional_libdir="$withval/lib"
   9800       fi
   9801     fi
   9802 
   9803 fi
   9804 
   9805 
   9806 # Check whether --with-libintl-type was given.
   9807 if test "${with_libintl_type+set}" = set; then :
   9808   withval=$with_libintl_type;  with_libintl_type=$withval
   9809 else
   9810    with_libintl_type=auto
   9811 fi
   9812 
   9813   lib_type=`eval echo \$with_libintl_type`
   9814 
   9815       LIBINTL=
   9816   LTLIBINTL=
   9817   INCINTL=
   9818   rpathdirs=
   9819   ltrpathdirs=
   9820   names_already_handled=
   9821   names_next_round='intl '
   9822   while test -n "$names_next_round"; do
   9823     names_this_round="$names_next_round"
   9824     names_next_round=
   9825     for name in $names_this_round; do
   9826       already_handled=
   9827       for n in $names_already_handled; do
   9828         if test "$n" = "$name"; then
   9829           already_handled=yes
   9830           break
   9831         fi
   9832       done
   9833       if test -z "$already_handled"; then
   9834         names_already_handled="$names_already_handled $name"
   9835                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   9836         eval value=\"\$HAVE_LIB$uppername\"
   9837         if test -n "$value"; then
   9838           if test "$value" = yes; then
   9839             eval value=\"\$LIB$uppername\"
   9840             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
   9841             eval value=\"\$LTLIB$uppername\"
   9842             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
   9843           else
   9844                                     :
   9845           fi
   9846         else
   9847                               found_dir=
   9848           found_la=
   9849           found_so=
   9850           found_a=
   9851           if test $use_additional = yes; then
   9852             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   9853               found_dir="$additional_libdir"
   9854               found_so="$additional_libdir/lib$name.$shlibext"
   9855               if test -f "$additional_libdir/lib$name.la"; then
   9856                 found_la="$additional_libdir/lib$name.la"
   9857               fi
   9858             elif test x$lib_type != xshared; then
   9859               if test -f "$additional_libdir/lib$name.$libext"; then
   9860                 found_dir="$additional_libdir"
   9861                 found_a="$additional_libdir/lib$name.$libext"
   9862                 if test -f "$additional_libdir/lib$name.la"; then
   9863                   found_la="$additional_libdir/lib$name.la"
   9864                 fi
   9865               fi
   9866             fi
   9867           fi
   9868           if test "X$found_dir" = "X"; then
   9869             for x in $LDFLAGS $LTLIBINTL; do
   9870 
   9871   acl_save_prefix="$prefix"
   9872   prefix="$acl_final_prefix"
   9873   acl_save_exec_prefix="$exec_prefix"
   9874   exec_prefix="$acl_final_exec_prefix"
   9875   eval x=\"$x\"
   9876   exec_prefix="$acl_save_exec_prefix"
   9877   prefix="$acl_save_prefix"
   9878 
   9879               case "$x" in
   9880                 -L*)
   9881                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   9882                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   9883                     found_dir="$dir"
   9884                     found_so="$dir/lib$name.$shlibext"
   9885                     if test -f "$dir/lib$name.la"; then
   9886                       found_la="$dir/lib$name.la"
   9887                     fi
   9888                   elif test x$lib_type != xshared; then
   9889                     if test -f "$dir/lib$name.$libext"; then
   9890                       found_dir="$dir"
   9891                       found_a="$dir/lib$name.$libext"
   9892                       if test -f "$dir/lib$name.la"; then
   9893                         found_la="$dir/lib$name.la"
   9894                       fi
   9895                     fi
   9896                   fi
   9897                   ;;
   9898               esac
   9899               if test "X$found_dir" != "X"; then
   9900                 break
   9901               fi
   9902             done
   9903           fi
   9904           if test "X$found_dir" != "X"; then
   9905                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
   9906             if test "X$found_so" != "X"; then
   9907                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   9908                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   9909               else
   9910                                                                                 haveit=
   9911                 for x in $ltrpathdirs; do
   9912                   if test "X$x" = "X$found_dir"; then
   9913                     haveit=yes
   9914                     break
   9915                   fi
   9916                 done
   9917                 if test -z "$haveit"; then
   9918                   ltrpathdirs="$ltrpathdirs $found_dir"
   9919                 fi
   9920                                 if test "$hardcode_direct" = yes; then
   9921                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   9922                 else
   9923                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   9924                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   9925                                                             haveit=
   9926                     for x in $rpathdirs; do
   9927                       if test "X$x" = "X$found_dir"; then
   9928                         haveit=yes
   9929                         break
   9930                       fi
   9931                     done
   9932                     if test -z "$haveit"; then
   9933                       rpathdirs="$rpathdirs $found_dir"
   9934                     fi
   9935                   else
   9936                                                                                 haveit=
   9937                     for x in $LDFLAGS $LIBINTL; do
   9938 
   9939   acl_save_prefix="$prefix"
   9940   prefix="$acl_final_prefix"
   9941   acl_save_exec_prefix="$exec_prefix"
   9942   exec_prefix="$acl_final_exec_prefix"
   9943   eval x=\"$x\"
   9944   exec_prefix="$acl_save_exec_prefix"
   9945   prefix="$acl_save_prefix"
   9946 
   9947                       if test "X$x" = "X-L$found_dir"; then
   9948                         haveit=yes
   9949                         break
   9950                       fi
   9951                     done
   9952                     if test -z "$haveit"; then
   9953                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
   9954                     fi
   9955                     if test "$hardcode_minus_L" != no; then
   9956                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
   9957                     else
   9958                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
   9959                     fi
   9960                   fi
   9961                 fi
   9962               fi
   9963             else
   9964               if test "X$found_a" != "X"; then
   9965                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
   9966               else
   9967                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
   9968               fi
   9969             fi
   9970                         additional_includedir=
   9971             case "$found_dir" in
   9972               */lib | */lib/)
   9973                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   9974                 additional_includedir="$basedir/include"
   9975                 ;;
   9976             esac
   9977             if test "X$additional_includedir" != "X"; then
   9978                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   9979                 haveit=
   9980                 if test "X$additional_includedir" = "X/usr/local/include"; then
   9981                   if test -n "$GCC"; then
   9982                     case $host_os in
   9983                       linux*) haveit=yes;;
   9984                     esac
   9985                   fi
   9986                 fi
   9987                 if test -z "$haveit"; then
   9988                   for x in $CPPFLAGS $INCINTL; do
   9989 
   9990   acl_save_prefix="$prefix"
   9991   prefix="$acl_final_prefix"
   9992   acl_save_exec_prefix="$exec_prefix"
   9993   exec_prefix="$acl_final_exec_prefix"
   9994   eval x=\"$x\"
   9995   exec_prefix="$acl_save_exec_prefix"
   9996   prefix="$acl_save_prefix"
   9997 
   9998                     if test "X$x" = "X-I$additional_includedir"; then
   9999                       haveit=yes
   10000                       break
   10001                     fi
   10002                   done
   10003                   if test -z "$haveit"; then
   10004                     if test -d "$additional_includedir"; then
   10005                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
   10006                     fi
   10007                   fi
   10008                 fi
   10009               fi
   10010             fi
   10011                         if test -n "$found_la"; then
   10012                                                         save_libdir="$libdir"
   10013               case "$found_la" in
   10014                 */* | *\\*) . "$found_la" ;;
   10015                 *) . "./$found_la" ;;
   10016               esac
   10017               libdir="$save_libdir"
   10018                             for dep in $dependency_libs; do
   10019                 case "$dep" in
   10020                   -L*)
   10021                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   10022                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   10023                       haveit=
   10024                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   10025                         if test -n "$GCC"; then
   10026                           case $host_os in
   10027                             linux*) haveit=yes;;
   10028                           esac
   10029                         fi
   10030                       fi
   10031                       if test -z "$haveit"; then
   10032                         haveit=
   10033                         for x in $LDFLAGS $LIBINTL; do
   10034 
   10035   acl_save_prefix="$prefix"
   10036   prefix="$acl_final_prefix"
   10037   acl_save_exec_prefix="$exec_prefix"
   10038   exec_prefix="$acl_final_exec_prefix"
   10039   eval x=\"$x\"
   10040   exec_prefix="$acl_save_exec_prefix"
   10041   prefix="$acl_save_prefix"
   10042 
   10043                           if test "X$x" = "X-L$additional_libdir"; then
   10044                             haveit=yes
   10045                             break
   10046                           fi
   10047                         done
   10048                         if test -z "$haveit"; then
   10049                           if test -d "$additional_libdir"; then
   10050                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
   10051                           fi
   10052                         fi
   10053                         haveit=
   10054                         for x in $LDFLAGS $LTLIBINTL; do
   10055 
   10056   acl_save_prefix="$prefix"
   10057   prefix="$acl_final_prefix"
   10058   acl_save_exec_prefix="$exec_prefix"
   10059   exec_prefix="$acl_final_exec_prefix"
   10060   eval x=\"$x\"
   10061   exec_prefix="$acl_save_exec_prefix"
   10062   prefix="$acl_save_prefix"
   10063 
   10064                           if test "X$x" = "X-L$additional_libdir"; then
   10065                             haveit=yes
   10066                             break
   10067                           fi
   10068                         done
   10069                         if test -z "$haveit"; then
   10070                           if test -d "$additional_libdir"; then
   10071                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
   10072                           fi
   10073                         fi
   10074                       fi
   10075                     fi
   10076                     ;;
   10077                   -R*)
   10078                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   10079                     if test "$enable_rpath" != no; then
   10080                                                                   haveit=
   10081                       for x in $rpathdirs; do
   10082                         if test "X$x" = "X$dir"; then
   10083                           haveit=yes
   10084                           break
   10085                         fi
   10086                       done
   10087                       if test -z "$haveit"; then
   10088                         rpathdirs="$rpathdirs $dir"
   10089                       fi
   10090                                                                   haveit=
   10091                       for x in $ltrpathdirs; do
   10092                         if test "X$x" = "X$dir"; then
   10093                           haveit=yes
   10094                           break
   10095                         fi
   10096                       done
   10097                       if test -z "$haveit"; then
   10098                         ltrpathdirs="$ltrpathdirs $dir"
   10099                       fi
   10100                     fi
   10101                     ;;
   10102                   -l*)
   10103                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   10104                     ;;
   10105                   *.la)
   10106                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   10107                     ;;
   10108                   *)
   10109                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
   10110                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
   10111                     ;;
   10112                 esac
   10113               done
   10114             fi
   10115           else
   10116                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   10117               LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
   10118               LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
   10119             else
   10120               LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
   10121               LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
   10122             fi
   10123           fi
   10124         fi
   10125       fi
   10126     done
   10127   done
   10128   if test "X$rpathdirs" != "X"; then
   10129     if test -n "$hardcode_libdir_separator"; then
   10130                         alldirs=
   10131       for found_dir in $rpathdirs; do
   10132         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   10133       done
   10134             acl_save_libdir="$libdir"
   10135       libdir="$alldirs"
   10136       eval flag=\"$hardcode_libdir_flag_spec\"
   10137       libdir="$acl_save_libdir"
   10138       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
   10139     else
   10140             for found_dir in $rpathdirs; do
   10141         acl_save_libdir="$libdir"
   10142         libdir="$found_dir"
   10143         eval flag=\"$hardcode_libdir_flag_spec\"
   10144         libdir="$acl_save_libdir"
   10145         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
   10146       done
   10147     fi
   10148   fi
   10149   if test "X$ltrpathdirs" != "X"; then
   10150             for found_dir in $ltrpathdirs; do
   10151       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
   10152     done
   10153   fi
   10154 
   10155           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
   10156 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
   10157 if eval \${$gt_func_gnugettext_libintl+:} false; then :
   10158   $as_echo_n "(cached) " >&6
   10159 else
   10160   gt_save_CPPFLAGS="$CPPFLAGS"
   10161             CPPFLAGS="$CPPFLAGS $INCINTL"
   10162             gt_save_LIBS="$LIBS"
   10163             LIBS="$LIBS $LIBINTL"
   10164                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10165 /* end confdefs.h.  */
   10166 
   10167 #include <libintl.h>
   10168 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
   10169 extern int _nl_msg_cat_cntr;
   10170 extern
   10171 #ifdef __cplusplus
   10172 "C"
   10173 #endif
   10174 const char *_nl_expand_alias (const char *);
   10175 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
   10176 #else
   10177 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
   10178 #endif
   10179 $gt_revision_test_code
   10180 
   10181 int
   10182 main ()
   10183 {
   10184 
   10185 bindtextdomain ("", "");
   10186 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
   10187 
   10188   ;
   10189   return 0;
   10190 }
   10191 _ACEOF
   10192 if ac_fn_c_try_link "$LINENO"; then :
   10193   eval "$gt_func_gnugettext_libintl=yes"
   10194 else
   10195   eval "$gt_func_gnugettext_libintl=no"
   10196 fi
   10197 rm -f core conftest.err conftest.$ac_objext \
   10198     conftest$ac_exeext conftest.$ac_ext
   10199                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
   10200               LIBS="$LIBS $LIBICONV"
   10201               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10202 /* end confdefs.h.  */
   10203 
   10204 #include <libintl.h>
   10205 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
   10206 extern int _nl_msg_cat_cntr;
   10207 extern
   10208 #ifdef __cplusplus
   10209 "C"
   10210 #endif
   10211 const char *_nl_expand_alias (const char *);
   10212 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
   10213 #else
   10214 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
   10215 #endif
   10216 $gt_revision_test_code
   10217 
   10218 int
   10219 main ()
   10220 {
   10221 
   10222 bindtextdomain ("", "");
   10223 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
   10224 
   10225   ;
   10226   return 0;
   10227 }
   10228 _ACEOF
   10229 if ac_fn_c_try_link "$LINENO"; then :
   10230   LIBINTL="$LIBINTL $LIBICONV"
   10231                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
   10232                  eval "$gt_func_gnugettext_libintl=yes"
   10233 
   10234 fi
   10235 rm -f core conftest.err conftest.$ac_objext \
   10236     conftest$ac_exeext conftest.$ac_ext
   10237             fi
   10238             CPPFLAGS="$gt_save_CPPFLAGS"
   10239             LIBS="$gt_save_LIBS"
   10240 fi
   10241 eval ac_res=\$$gt_func_gnugettext_libintl
   10242 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   10243 $as_echo "$ac_res" >&6; }
   10244         fi
   10245 
   10246                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
   10247            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
   10248                 && test "$PACKAGE" != gettext-runtime \
   10249                 && test "$PACKAGE" != gettext-tools; }; then
   10250           gt_use_preinstalled_gnugettext=yes
   10251         else
   10252                     LIBINTL=
   10253           LTLIBINTL=
   10254           INCINTL=
   10255         fi
   10256 
   10257 
   10258 
   10259     if test -n "$INTL_MACOSX_LIBS"; then
   10260       if test "$gt_use_preinstalled_gnugettext" = "yes" \
   10261          || test "$nls_cv_use_gnu_gettext" = "yes"; then
   10262                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
   10263         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
   10264       fi
   10265     fi
   10266 
   10267     if test "$gt_use_preinstalled_gnugettext" = "yes" \
   10268        || test "$nls_cv_use_gnu_gettext" = "yes"; then
   10269 
   10270 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   10271 
   10272     else
   10273       USE_NLS=no
   10274     fi
   10275   fi
   10276 
   10277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
   10278 $as_echo_n "checking whether to use NLS... " >&6; }
   10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
   10280 $as_echo "$USE_NLS" >&6; }
   10281   if test "$USE_NLS" = "yes"; then
   10282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
   10283 $as_echo_n "checking where the gettext function comes from... " >&6; }
   10284     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
   10285       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
   10286         gt_source="external libintl"
   10287       else
   10288         gt_source="libc"
   10289       fi
   10290     else
   10291       gt_source="included intl directory"
   10292     fi
   10293     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
   10294 $as_echo "$gt_source" >&6; }
   10295   fi
   10296 
   10297   if test "$USE_NLS" = "yes"; then
   10298 
   10299     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
   10300       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
   10301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
   10302 $as_echo_n "checking how to link with libintl... " >&6; }
   10303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
   10304 $as_echo "$LIBINTL" >&6; }
   10305 
   10306   for element in $INCINTL; do
   10307     haveit=
   10308     for x in $CPPFLAGS; 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$element"; then
   10319         haveit=yes
   10320         break
   10321       fi
   10322     done
   10323     if test -z "$haveit"; then
   10324       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   10325     fi
   10326   done
   10327 
   10328       fi
   10329 
   10330 
   10331 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
   10332 
   10333 
   10334 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
   10335 
   10336     fi
   10337 
   10338         POSUB=po
   10339   fi
   10340 
   10341 
   10342 
   10343     INTLLIBS="$LIBINTL"
   10344 
   10345 
   10346 
   10347 
   10348 
   10349 
   10350 fi
   10351 
   10352 
   10353 
   10354 
   10355 
   10356 
   10357 
   10358 
   10359 
   10360 
   10361 
   10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   10363 $as_echo_n "checking whether NLS is requested... " >&6; }
   10364 if test x"$USE_NLS" != xyes; then
   10365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   10366 $as_echo "no" >&6; }
   10367 else
   10368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   10369 $as_echo "yes" >&6; }
   10370 
   10371 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   10372 
   10373 
   10374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
   10375 $as_echo_n "checking for catalogs to be installed... " >&6; }
   10376   # Look for .po and .gmo files in the source directory.
   10377   CATALOGS=
   10378   XLINGUAS=
   10379   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
   10380     # If there aren't any .gmo files the shell will give us the
   10381     # literal string "../path/to/srcdir/po/*.gmo" which has to be
   10382     # weeded out.
   10383     case "$cat" in *\**)
   10384       continue;;
   10385     esac
   10386     # The quadruple backslash is collapsed to a double backslash
   10387     # by the backticks, then collapsed again by the double quotes,
   10388     # leaving us with one backslash in the sed expression (right
   10389     # before the dot that mustn't act as a wildcard).
   10390     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
   10391     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
   10392     # The user is allowed to set LINGUAS to a list of languages to
   10393     # install catalogs for.  If it's empty that means "all of them."
   10394     if test "x$LINGUAS" = x; then
   10395       CATALOGS="$CATALOGS $cat"
   10396       XLINGUAS="$XLINGUAS $lang"
   10397     else
   10398       case "$LINGUAS" in *$lang*)
   10399         CATALOGS="$CATALOGS $cat"
   10400         XLINGUAS="$XLINGUAS $lang"
   10401         ;;
   10402       esac
   10403     fi
   10404   done
   10405   LINGUAS="$XLINGUAS"
   10406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
   10407 $as_echo "$LINGUAS" >&6; }
   10408 
   10409 
   10410     DATADIRNAME=share
   10411 
   10412   INSTOBJEXT=.mo
   10413 
   10414   GENCAT=gencat
   10415 
   10416   CATOBJEXT=.gmo
   10417 
   10418 fi
   10419 
   10420 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
   10421 if test "x$ac_cv_have_decl_ffs" = xyes; then :
   10422   ac_have_decl=1
   10423 else
   10424   ac_have_decl=0
   10425 fi
   10426 
   10427 cat >>confdefs.h <<_ACEOF
   10428 #define HAVE_DECL_FFS $ac_have_decl
   10429 _ACEOF
   10430 
   10431 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
   10432 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
   10433   ac_have_decl=1
   10434 else
   10435   ac_have_decl=0
   10436 fi
   10437 
   10438 cat >>confdefs.h <<_ACEOF
   10439 #define HAVE_DECL_ASPRINTF $ac_have_decl
   10440 _ACEOF
   10441 
   10442 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
   10443 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
   10444   ac_have_decl=1
   10445 else
   10446   ac_have_decl=0
   10447 fi
   10448 
   10449 cat >>confdefs.h <<_ACEOF
   10450 #define HAVE_DECL_VASPRINTF $ac_have_decl
   10451 _ACEOF
   10452 
   10453 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   10454 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
   10455   ac_have_decl=1
   10456 else
   10457   ac_have_decl=0
   10458 fi
   10459 
   10460 cat >>confdefs.h <<_ACEOF
   10461 #define HAVE_DECL_SNPRINTF $ac_have_decl
   10462 _ACEOF
   10463 
   10464 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
   10465 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
   10466   ac_have_decl=1
   10467 else
   10468   ac_have_decl=0
   10469 fi
   10470 
   10471 cat >>confdefs.h <<_ACEOF
   10472 #define HAVE_DECL_VSNPRINTF $ac_have_decl
   10473 _ACEOF
   10474 
   10475 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
   10476 if test "x$ac_cv_have_decl_strtol" = xyes; then :
   10477   ac_have_decl=1
   10478 else
   10479   ac_have_decl=0
   10480 fi
   10481 
   10482 cat >>confdefs.h <<_ACEOF
   10483 #define HAVE_DECL_STRTOL $ac_have_decl
   10484 _ACEOF
   10485 
   10486 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
   10487 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
   10488   ac_have_decl=1
   10489 else
   10490   ac_have_decl=0
   10491 fi
   10492 
   10493 cat >>confdefs.h <<_ACEOF
   10494 #define HAVE_DECL_STRTOUL $ac_have_decl
   10495 _ACEOF
   10496 
   10497 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
   10498 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
   10499   ac_have_decl=1
   10500 else
   10501   ac_have_decl=0
   10502 fi
   10503 
   10504 cat >>confdefs.h <<_ACEOF
   10505 #define HAVE_DECL_STRTOLL $ac_have_decl
   10506 _ACEOF
   10507 
   10508 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
   10509 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
   10510   ac_have_decl=1
   10511 else
   10512   ac_have_decl=0
   10513 fi
   10514 
   10515 cat >>confdefs.h <<_ACEOF
   10516 #define HAVE_DECL_STRTOULL $ac_have_decl
   10517 _ACEOF
   10518 
   10519 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
   10520 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
   10521   ac_have_decl=1
   10522 else
   10523   ac_have_decl=0
   10524 fi
   10525 
   10526 cat >>confdefs.h <<_ACEOF
   10527 #define HAVE_DECL_STRVERSCMP $ac_have_decl
   10528 _ACEOF
   10529 
   10530     ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
   10531 if test "x$ac_cv_type_long_long" = xyes; then :
   10532 
   10533 cat >>confdefs.h <<_ACEOF
   10534 #define HAVE_LONG_LONG 1
   10535 _ACEOF
   10536 
   10537 # The cast to long int works around a bug in the HP C Compiler
   10538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   10539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   10540 # This bug is HP SR number 8606223364.
   10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
   10542 $as_echo_n "checking size of long long... " >&6; }
   10543 if ${ac_cv_sizeof_long_long+:} false; then :
   10544   $as_echo_n "(cached) " >&6
   10545 else
   10546   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
   10547 
   10548 else
   10549   if test "$ac_cv_type_long_long" = yes; then
   10550      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   10551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   10552 as_fn_error 77 "cannot compute sizeof (long long)
   10553 See \`config.log' for more details" "$LINENO" 5; }
   10554    else
   10555      ac_cv_sizeof_long_long=0
   10556    fi
   10557 fi
   10558 
   10559 fi
   10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
   10561 $as_echo "$ac_cv_sizeof_long_long" >&6; }
   10562 
   10563 
   10564 
   10565 cat >>confdefs.h <<_ACEOF
   10566 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
   10567 _ACEOF
   10568 
   10569 
   10570 fi
   10571 
   10572 
   10573   as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
   10574 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
   10575 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
   10576   ac_have_decl=1
   10577 else
   10578   ac_have_decl=0
   10579 fi
   10580 
   10581 cat >>confdefs.h <<_ACEOF
   10582 #define HAVE_DECL_BASENAME $ac_have_decl
   10583 _ACEOF
   10584 
   10585 
   10586 
   10587 
   10588 
   10589 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
   10590 if test "x$ac_cv_type_size_t" = xyes; then :
   10591 
   10592 else
   10593 
   10594 cat >>confdefs.h <<_ACEOF
   10595 #define size_t unsigned int
   10596 _ACEOF
   10597 
   10598 fi
   10599 
   10600 
   10601 
   10602 
   10603   for ac_header in $ac_header_list
   10604 do :
   10605   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10606 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   10607 "
   10608 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   10609   cat >>confdefs.h <<_ACEOF
   10610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10611 _ACEOF
   10612 
   10613 fi
   10614 
   10615 done
   10616 
   10617 
   10618 
   10619 
   10620 
   10621 
   10622 
   10623 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   10624 if test "x$ac_cv_type_pid_t" = xyes; then :
   10625 
   10626 else
   10627 
   10628 cat >>confdefs.h <<_ACEOF
   10629 #define pid_t int
   10630 _ACEOF
   10631 
   10632 fi
   10633 
   10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
   10635 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
   10636 if ${ac_cv_path_SED+:} false; then :
   10637   $as_echo_n "(cached) " >&6
   10638 else
   10639             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
   10640      for ac_i in 1 2 3 4 5 6 7; do
   10641        ac_script="$ac_script$as_nl$ac_script"
   10642      done
   10643      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
   10644      { ac_script=; unset ac_script;}
   10645      if test -z "$SED"; then
   10646   ac_path_SED_found=false
   10647   # Loop through the user's path and test for each of PROGNAME-LIST
   10648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   10649 for as_dir in $PATH
   10650 do
   10651   IFS=$as_save_IFS
   10652   test -z "$as_dir" && as_dir=.
   10653     for ac_prog in sed gsed; do
   10654     for ac_exec_ext in '' $ac_executable_extensions; do
   10655       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
   10656       as_fn_executable_p "$ac_path_SED" || continue
   10657 # Check for GNU ac_path_SED and select it if it is found.
   10658   # Check for GNU $ac_path_SED
   10659 case `"$ac_path_SED" --version 2>&1` in
   10660 *GNU*)
   10661   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
   10662 *)
   10663   ac_count=0
   10664   $as_echo_n 0123456789 >"conftest.in"
   10665   while :
   10666   do
   10667     cat "conftest.in" "conftest.in" >"conftest.tmp"
   10668     mv "conftest.tmp" "conftest.in"
   10669     cp "conftest.in" "conftest.nl"
   10670     $as_echo '' >> "conftest.nl"
   10671     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
   10672     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   10673     as_fn_arith $ac_count + 1 && ac_count=$as_val
   10674     if test $ac_count -gt ${ac_path_SED_max-0}; then
   10675       # Best one so far, save it but keep looking for a better one
   10676       ac_cv_path_SED="$ac_path_SED"
   10677       ac_path_SED_max=$ac_count
   10678     fi
   10679     # 10*(2^10) chars as input seems more than enough
   10680     test $ac_count -gt 10 && break
   10681   done
   10682   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   10683 esac
   10684 
   10685       $ac_path_SED_found && break 3
   10686     done
   10687   done
   10688   done
   10689 IFS=$as_save_IFS
   10690   if test -z "$ac_cv_path_SED"; then
   10691     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
   10692   fi
   10693 else
   10694   ac_cv_path_SED=$SED
   10695 fi
   10696 
   10697 fi
   10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
   10699 $as_echo "$ac_cv_path_SED" >&6; }
   10700  SED="$ac_cv_path_SED"
   10701   rm -f conftest.sed
   10702 
   10703 
   10704   # Set the 'development' global.
   10705   . $srcdir/../bfd/development.sh
   10706 
   10707   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   10708 # for constant arguments.  Useless!
   10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   10710 $as_echo_n "checking for working alloca.h... " >&6; }
   10711 if ${ac_cv_working_alloca_h+:} false; then :
   10712   $as_echo_n "(cached) " >&6
   10713 else
   10714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10715 /* end confdefs.h.  */
   10716 #include <alloca.h>
   10717 int
   10718 main ()
   10719 {
   10720 char *p = (char *) alloca (2 * sizeof (int));
   10721 			  if (p) return 0;
   10722   ;
   10723   return 0;
   10724 }
   10725 _ACEOF
   10726 if ac_fn_c_try_link "$LINENO"; then :
   10727   ac_cv_working_alloca_h=yes
   10728 else
   10729   ac_cv_working_alloca_h=no
   10730 fi
   10731 rm -f core conftest.err conftest.$ac_objext \
   10732     conftest$ac_exeext conftest.$ac_ext
   10733 fi
   10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   10735 $as_echo "$ac_cv_working_alloca_h" >&6; }
   10736 if test $ac_cv_working_alloca_h = yes; then
   10737 
   10738 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   10739 
   10740 fi
   10741 
   10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   10743 $as_echo_n "checking for alloca... " >&6; }
   10744 if ${ac_cv_func_alloca_works+:} false; then :
   10745   $as_echo_n "(cached) " >&6
   10746 else
   10747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10748 /* end confdefs.h.  */
   10749 #ifdef __GNUC__
   10750 # define alloca __builtin_alloca
   10751 #else
   10752 # ifdef _MSC_VER
   10753 #  include <malloc.h>
   10754 #  define alloca _alloca
   10755 # else
   10756 #  ifdef HAVE_ALLOCA_H
   10757 #   include <alloca.h>
   10758 #  else
   10759 #   ifdef _AIX
   10760  #pragma alloca
   10761 #   else
   10762 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   10763 void *alloca (size_t);
   10764 #    endif
   10765 #   endif
   10766 #  endif
   10767 # endif
   10768 #endif
   10769 
   10770 int
   10771 main ()
   10772 {
   10773 char *p = (char *) alloca (1);
   10774 				    if (p) return 0;
   10775   ;
   10776   return 0;
   10777 }
   10778 _ACEOF
   10779 if ac_fn_c_try_link "$LINENO"; then :
   10780   ac_cv_func_alloca_works=yes
   10781 else
   10782   ac_cv_func_alloca_works=no
   10783 fi
   10784 rm -f core conftest.err conftest.$ac_objext \
   10785     conftest$ac_exeext conftest.$ac_ext
   10786 fi
   10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   10788 $as_echo "$ac_cv_func_alloca_works" >&6; }
   10789 
   10790 if test $ac_cv_func_alloca_works = yes; then
   10791 
   10792 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   10793 
   10794 else
   10795   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   10796 # that cause trouble.  Some versions do not even contain alloca or
   10797 # contain a buggy version.  If you still want to use their alloca,
   10798 # use ar to extract alloca.o from them instead of compiling alloca.c.
   10799 
   10800 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   10801 
   10802 $as_echo "#define C_ALLOCA 1" >>confdefs.h
   10803 
   10804 
   10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
   10806 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   10807 if ${ac_cv_os_cray+:} false; then :
   10808   $as_echo_n "(cached) " >&6
   10809 else
   10810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10811 /* end confdefs.h.  */
   10812 #if defined CRAY && ! defined CRAY2
   10813 webecray
   10814 #else
   10815 wenotbecray
   10816 #endif
   10817 
   10818 _ACEOF
   10819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10820   $EGREP "webecray" >/dev/null 2>&1; then :
   10821   ac_cv_os_cray=yes
   10822 else
   10823   ac_cv_os_cray=no
   10824 fi
   10825 rm -f conftest*
   10826 
   10827 fi
   10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   10829 $as_echo "$ac_cv_os_cray" >&6; }
   10830 if test $ac_cv_os_cray = yes; then
   10831   for ac_func in _getb67 GETB67 getb67; do
   10832     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10833 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   10834 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   10835 
   10836 cat >>confdefs.h <<_ACEOF
   10837 #define CRAY_STACKSEG_END $ac_func
   10838 _ACEOF
   10839 
   10840     break
   10841 fi
   10842 
   10843   done
   10844 fi
   10845 
   10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   10847 $as_echo_n "checking stack direction for C alloca... " >&6; }
   10848 if ${ac_cv_c_stack_direction+:} false; then :
   10849   $as_echo_n "(cached) " >&6
   10850 else
   10851   if test "$cross_compiling" = yes; then :
   10852   ac_cv_c_stack_direction=0
   10853 else
   10854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10855 /* end confdefs.h.  */
   10856 $ac_includes_default
   10857 int
   10858 find_stack_direction (int *addr, int depth)
   10859 {
   10860   int dir, dummy = 0;
   10861   if (! addr)
   10862     addr = &dummy;
   10863   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
   10864   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
   10865   return dir + dummy;
   10866 }
   10867 
   10868 int
   10869 main (int argc, char **argv)
   10870 {
   10871   return find_stack_direction (0, argc + !argv + 20) < 0;
   10872 }
   10873 _ACEOF
   10874 if ac_fn_c_try_run "$LINENO"; then :
   10875   ac_cv_c_stack_direction=1
   10876 else
   10877   ac_cv_c_stack_direction=-1
   10878 fi
   10879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10880   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10881 fi
   10882 
   10883 fi
   10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   10885 $as_echo "$ac_cv_c_stack_direction" >&6; }
   10886 cat >>confdefs.h <<_ACEOF
   10887 #define STACK_DIRECTION $ac_cv_c_stack_direction
   10888 _ACEOF
   10889 
   10890 
   10891 fi
   10892 
   10893 
   10894   WIN32APILIBS=
   10895   case ${host} in
   10896     *mingw32*)
   10897 
   10898 $as_echo "#define USE_WIN32API 1" >>confdefs.h
   10899 
   10900       WIN32APILIBS="-lws2_32"
   10901       ;;
   10902   esac
   10903 
   10904 
   10905   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   10906 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   10907 if ${am_cv_langinfo_codeset+:} false; then :
   10908   $as_echo_n "(cached) " >&6
   10909 else
   10910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10911 /* end confdefs.h.  */
   10912 #include <langinfo.h>
   10913 int
   10914 main ()
   10915 {
   10916 char* cs = nl_langinfo(CODESET);
   10917   ;
   10918   return 0;
   10919 }
   10920 _ACEOF
   10921 if ac_fn_c_try_link "$LINENO"; then :
   10922   am_cv_langinfo_codeset=yes
   10923 else
   10924   am_cv_langinfo_codeset=no
   10925 fi
   10926 rm -f core conftest.err conftest.$ac_objext \
   10927     conftest$ac_exeext conftest.$ac_ext
   10928 
   10929 fi
   10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   10931 $as_echo "$am_cv_langinfo_codeset" >&6; }
   10932   if test $am_cv_langinfo_codeset = yes; then
   10933 
   10934 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   10935 
   10936   fi
   10937 
   10938 
   10939 for ac_header in  \
   10940   dlfcn.h \
   10941   linux/elf.h \
   10942   linux/perf_event.h  \
   10943   locale.h \
   10944   memory.h \
   10945   poll.h \
   10946   proc_service.h \
   10947   signal.h \
   10948   sys/poll.h \
   10949   sys/resource.h \
   10950   sys/select.h \
   10951   sys/socket.h \
   10952   sys/un.h \
   10953   sys/wait.h \
   10954   termios.h \
   10955   thread_db.h \
   10956   wait.h \
   10957 
   10958 do :
   10959   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10960 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   10961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   10962   cat >>confdefs.h <<_ACEOF
   10963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10964 _ACEOF
   10965 
   10966 fi
   10967 
   10968 done
   10969 
   10970 
   10971 
   10972 for ac_func in getpagesize
   10973 do :
   10974   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   10975 if test "x$ac_cv_func_getpagesize" = xyes; then :
   10976   cat >>confdefs.h <<_ACEOF
   10977 #define HAVE_GETPAGESIZE 1
   10978 _ACEOF
   10979 
   10980 fi
   10981 done
   10982 
   10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
   10984 $as_echo_n "checking for working mmap... " >&6; }
   10985 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
   10986   $as_echo_n "(cached) " >&6
   10987 else
   10988   if test "$cross_compiling" = yes; then :
   10989   ac_cv_func_mmap_fixed_mapped=no
   10990 else
   10991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10992 /* end confdefs.h.  */
   10993 $ac_includes_default
   10994 /* malloc might have been renamed as rpl_malloc. */
   10995 #undef malloc
   10996 
   10997 /* Thanks to Mike Haertel and Jim Avera for this test.
   10998    Here is a matrix of mmap possibilities:
   10999 	mmap private not fixed
   11000 	mmap private fixed at somewhere currently unmapped
   11001 	mmap private fixed at somewhere already mapped
   11002 	mmap shared not fixed
   11003 	mmap shared fixed at somewhere currently unmapped
   11004 	mmap shared fixed at somewhere already mapped
   11005    For private mappings, we should verify that changes cannot be read()
   11006    back from the file, nor mmap's back from the file at a different
   11007    address.  (There have been systems where private was not correctly
   11008    implemented like the infamous i386 svr4.0, and systems where the
   11009    VM page cache was not coherent with the file system buffer cache
   11010    like early versions of FreeBSD and possibly contemporary NetBSD.)
   11011    For shared mappings, we should conversely verify that changes get
   11012    propagated back to all the places they're supposed to be.
   11013 
   11014    Grep wants private fixed already mapped.
   11015    The main things grep needs to know about mmap are:
   11016    * does it exist and is it safe to write into the mmap'd area
   11017    * how to use it (BSD variants)  */
   11018 
   11019 #include <fcntl.h>
   11020 #include <sys/mman.h>
   11021 
   11022 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
   11023 char *malloc ();
   11024 #endif
   11025 
   11026 /* This mess was copied from the GNU getpagesize.h.  */
   11027 #ifndef HAVE_GETPAGESIZE
   11028 # ifdef _SC_PAGESIZE
   11029 #  define getpagesize() sysconf(_SC_PAGESIZE)
   11030 # else /* no _SC_PAGESIZE */
   11031 #  ifdef HAVE_SYS_PARAM_H
   11032 #   include <sys/param.h>
   11033 #   ifdef EXEC_PAGESIZE
   11034 #    define getpagesize() EXEC_PAGESIZE
   11035 #   else /* no EXEC_PAGESIZE */
   11036 #    ifdef NBPG
   11037 #     define getpagesize() NBPG * CLSIZE
   11038 #     ifndef CLSIZE
   11039 #      define CLSIZE 1
   11040 #     endif /* no CLSIZE */
   11041 #    else /* no NBPG */
   11042 #     ifdef NBPC
   11043 #      define getpagesize() NBPC
   11044 #     else /* no NBPC */
   11045 #      ifdef PAGESIZE
   11046 #       define getpagesize() PAGESIZE
   11047 #      endif /* PAGESIZE */
   11048 #     endif /* no NBPC */
   11049 #    endif /* no NBPG */
   11050 #   endif /* no EXEC_PAGESIZE */
   11051 #  else /* no HAVE_SYS_PARAM_H */
   11052 #   define getpagesize() 8192	/* punt totally */
   11053 #  endif /* no HAVE_SYS_PARAM_H */
   11054 # endif /* no _SC_PAGESIZE */
   11055 
   11056 #endif /* no HAVE_GETPAGESIZE */
   11057 
   11058 int
   11059 main ()
   11060 {
   11061   char *data, *data2, *data3;
   11062   const char *cdata2;
   11063   int i, pagesize;
   11064   int fd, fd2;
   11065 
   11066   pagesize = getpagesize ();
   11067 
   11068   /* First, make a file with some known garbage in it. */
   11069   data = (char *) malloc (pagesize);
   11070   if (!data)
   11071     return 1;
   11072   for (i = 0; i < pagesize; ++i)
   11073     *(data + i) = rand ();
   11074   umask (0);
   11075   fd = creat ("conftest.mmap", 0600);
   11076   if (fd < 0)
   11077     return 2;
   11078   if (write (fd, data, pagesize) != pagesize)
   11079     return 3;
   11080   close (fd);
   11081 
   11082   /* Next, check that the tail of a page is zero-filled.  File must have
   11083      non-zero length, otherwise we risk SIGBUS for entire page.  */
   11084   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
   11085   if (fd2 < 0)
   11086     return 4;
   11087   cdata2 = "";
   11088   if (write (fd2, cdata2, 1) != 1)
   11089     return 5;
   11090   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
   11091   if (data2 == MAP_FAILED)
   11092     return 6;
   11093   for (i = 0; i < pagesize; ++i)
   11094     if (*(data2 + i))
   11095       return 7;
   11096   close (fd2);
   11097   if (munmap (data2, pagesize))
   11098     return 8;
   11099 
   11100   /* Next, try to mmap the file at a fixed address which already has
   11101      something else allocated at it.  If we can, also make sure that
   11102      we see the same garbage.  */
   11103   fd = open ("conftest.mmap", O_RDWR);
   11104   if (fd < 0)
   11105     return 9;
   11106   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   11107 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   11108     return 10;
   11109   for (i = 0; i < pagesize; ++i)
   11110     if (*(data + i) != *(data2 + i))
   11111       return 11;
   11112 
   11113   /* Finally, make sure that changes to the mapped area do not
   11114      percolate back to the file as seen by read().  (This is a bug on
   11115      some variants of i386 svr4.0.)  */
   11116   for (i = 0; i < pagesize; ++i)
   11117     *(data2 + i) = *(data2 + i) + 1;
   11118   data3 = (char *) malloc (pagesize);
   11119   if (!data3)
   11120     return 12;
   11121   if (read (fd, data3, pagesize) != pagesize)
   11122     return 13;
   11123   for (i = 0; i < pagesize; ++i)
   11124     if (*(data + i) != *(data3 + i))
   11125       return 14;
   11126   close (fd);
   11127   return 0;
   11128 }
   11129 _ACEOF
   11130 if ac_fn_c_try_run "$LINENO"; then :
   11131   ac_cv_func_mmap_fixed_mapped=yes
   11132 else
   11133   ac_cv_func_mmap_fixed_mapped=no
   11134 fi
   11135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11136   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11137 fi
   11138 
   11139 fi
   11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
   11141 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
   11142 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   11143 
   11144 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
   11145 
   11146 fi
   11147 rm -f conftest.mmap conftest.txt
   11148 
   11149   for ac_header in vfork.h
   11150 do :
   11151   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
   11152 if test "x$ac_cv_header_vfork_h" = xyes; then :
   11153   cat >>confdefs.h <<_ACEOF
   11154 #define HAVE_VFORK_H 1
   11155 _ACEOF
   11156 
   11157 fi
   11158 
   11159 done
   11160 
   11161 for ac_func in fork vfork
   11162 do :
   11163   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11164 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11165 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   11166   cat >>confdefs.h <<_ACEOF
   11167 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11168 _ACEOF
   11169 
   11170 fi
   11171 done
   11172 
   11173 if test "x$ac_cv_func_fork" = xyes; then
   11174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   11175 $as_echo_n "checking for working fork... " >&6; }
   11176 if ${ac_cv_func_fork_works+:} false; then :
   11177   $as_echo_n "(cached) " >&6
   11178 else
   11179   if test "$cross_compiling" = yes; then :
   11180   ac_cv_func_fork_works=cross
   11181 else
   11182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11183 /* end confdefs.h.  */
   11184 $ac_includes_default
   11185 int
   11186 main ()
   11187 {
   11188 
   11189 	  /* By Ruediger Kuhlmann. */
   11190 	  return fork () < 0;
   11191 
   11192   ;
   11193   return 0;
   11194 }
   11195 _ACEOF
   11196 if ac_fn_c_try_run "$LINENO"; then :
   11197   ac_cv_func_fork_works=yes
   11198 else
   11199   ac_cv_func_fork_works=no
   11200 fi
   11201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11202   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11203 fi
   11204 
   11205 fi
   11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   11207 $as_echo "$ac_cv_func_fork_works" >&6; }
   11208 
   11209 else
   11210   ac_cv_func_fork_works=$ac_cv_func_fork
   11211 fi
   11212 if test "x$ac_cv_func_fork_works" = xcross; then
   11213   case $host in
   11214     *-*-amigaos* | *-*-msdosdjgpp*)
   11215       # Override, as these systems have only a dummy fork() stub
   11216       ac_cv_func_fork_works=no
   11217       ;;
   11218     *)
   11219       ac_cv_func_fork_works=yes
   11220       ;;
   11221   esac
   11222   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   11223 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   11224 fi
   11225 ac_cv_func_vfork_works=$ac_cv_func_vfork
   11226 if test "x$ac_cv_func_vfork" = xyes; then
   11227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   11228 $as_echo_n "checking for working vfork... " >&6; }
   11229 if ${ac_cv_func_vfork_works+:} false; then :
   11230   $as_echo_n "(cached) " >&6
   11231 else
   11232   if test "$cross_compiling" = yes; then :
   11233   ac_cv_func_vfork_works=cross
   11234 else
   11235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11236 /* end confdefs.h.  */
   11237 /* Thanks to Paul Eggert for this test.  */
   11238 $ac_includes_default
   11239 #include <sys/wait.h>
   11240 #ifdef HAVE_VFORK_H
   11241 # include <vfork.h>
   11242 #endif
   11243 /* On some sparc systems, changes by the child to local and incoming
   11244    argument registers are propagated back to the parent.  The compiler
   11245    is told about this with #include <vfork.h>, but some compilers
   11246    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   11247    static variable whose address is put into a register that is
   11248    clobbered by the vfork.  */
   11249 static void
   11250 #ifdef __cplusplus
   11251 sparc_address_test (int arg)
   11252 # else
   11253 sparc_address_test (arg) int arg;
   11254 #endif
   11255 {
   11256   static pid_t child;
   11257   if (!child) {
   11258     child = vfork ();
   11259     if (child < 0) {
   11260       perror ("vfork");
   11261       _exit(2);
   11262     }
   11263     if (!child) {
   11264       arg = getpid();
   11265       write(-1, "", 0);
   11266       _exit (arg);
   11267     }
   11268   }
   11269 }
   11270 
   11271 int
   11272 main ()
   11273 {
   11274   pid_t parent = getpid ();
   11275   pid_t child;
   11276 
   11277   sparc_address_test (0);
   11278 
   11279   child = vfork ();
   11280 
   11281   if (child == 0) {
   11282     /* Here is another test for sparc vfork register problems.  This
   11283        test uses lots of local variables, at least as many local
   11284        variables as main has allocated so far including compiler
   11285        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   11286        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   11287        reuse the register of parent for one of the local variables,
   11288        since it will think that parent can't possibly be used any more
   11289        in this routine.  Assigning to the local variable will thus
   11290        munge parent in the parent process.  */
   11291     pid_t
   11292       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   11293       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   11294     /* Convince the compiler that p..p7 are live; otherwise, it might
   11295        use the same hardware register for all 8 local variables.  */
   11296     if (p != p1 || p != p2 || p != p3 || p != p4
   11297 	|| p != p5 || p != p6 || p != p7)
   11298       _exit(1);
   11299 
   11300     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   11301        from child file descriptors.  If the child closes a descriptor
   11302        before it execs or exits, this munges the parent's descriptor
   11303        as well.  Test for this by closing stdout in the child.  */
   11304     _exit(close(fileno(stdout)) != 0);
   11305   } else {
   11306     int status;
   11307     struct stat st;
   11308 
   11309     while (wait(&status) != child)
   11310       ;
   11311     return (
   11312 	 /* Was there some problem with vforking?  */
   11313 	 child < 0
   11314 
   11315 	 /* Did the child fail?  (This shouldn't happen.)  */
   11316 	 || status
   11317 
   11318 	 /* Did the vfork/compiler bug occur?  */
   11319 	 || parent != getpid()
   11320 
   11321 	 /* Did the file descriptor bug occur?  */
   11322 	 || fstat(fileno(stdout), &st) != 0
   11323 	 );
   11324   }
   11325 }
   11326 _ACEOF
   11327 if ac_fn_c_try_run "$LINENO"; then :
   11328   ac_cv_func_vfork_works=yes
   11329 else
   11330   ac_cv_func_vfork_works=no
   11331 fi
   11332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11333   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11334 fi
   11335 
   11336 fi
   11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   11338 $as_echo "$ac_cv_func_vfork_works" >&6; }
   11339 
   11340 fi;
   11341 if test "x$ac_cv_func_fork_works" = xcross; then
   11342   ac_cv_func_vfork_works=$ac_cv_func_vfork
   11343   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   11344 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   11345 fi
   11346 
   11347 if test "x$ac_cv_func_vfork_works" = xyes; then
   11348 
   11349 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   11350 
   11351 else
   11352 
   11353 $as_echo "#define vfork fork" >>confdefs.h
   11354 
   11355 fi
   11356 if test "x$ac_cv_func_fork_works" = xyes; then
   11357 
   11358 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   11359 
   11360 fi
   11361 
   11362   # Some systems (e.g. Solaris) have `socketpair' in libsocket.
   11363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
   11364 $as_echo_n "checking for library containing socketpair... " >&6; }
   11365 if ${ac_cv_search_socketpair+:} false; then :
   11366   $as_echo_n "(cached) " >&6
   11367 else
   11368   ac_func_search_save_LIBS=$LIBS
   11369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11370 /* end confdefs.h.  */
   11371 
   11372 /* Override any GCC internal prototype to avoid an error.
   11373    Use char because int might match the return type of a GCC
   11374    builtin and then its argument prototype would still apply.  */
   11375 #ifdef __cplusplus
   11376 extern "C"
   11377 #endif
   11378 char socketpair ();
   11379 int
   11380 main ()
   11381 {
   11382 return socketpair ();
   11383   ;
   11384   return 0;
   11385 }
   11386 _ACEOF
   11387 for ac_lib in '' socket; do
   11388   if test -z "$ac_lib"; then
   11389     ac_res="none required"
   11390   else
   11391     ac_res=-l$ac_lib
   11392     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11393   fi
   11394   if ac_fn_c_try_link "$LINENO"; then :
   11395   ac_cv_search_socketpair=$ac_res
   11396 fi
   11397 rm -f core conftest.err conftest.$ac_objext \
   11398     conftest$ac_exeext
   11399   if ${ac_cv_search_socketpair+:} false; then :
   11400   break
   11401 fi
   11402 done
   11403 if ${ac_cv_search_socketpair+:} false; then :
   11404 
   11405 else
   11406   ac_cv_search_socketpair=no
   11407 fi
   11408 rm conftest.$ac_ext
   11409 LIBS=$ac_func_search_save_LIBS
   11410 fi
   11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
   11412 $as_echo "$ac_cv_search_socketpair" >&6; }
   11413 ac_res=$ac_cv_search_socketpair
   11414 if test "$ac_res" != no; then :
   11415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   11416 
   11417 fi
   11418 
   11419   for ac_func in  \
   11420     fdwalk \
   11421     getauxval \
   11422     getrlimit \
   11423     getrusage \
   11424     pipe \
   11425     pipe2 \
   11426     poll \
   11427     ptrace64 \
   11428     sbrk \
   11429     setns \
   11430     setpgid \
   11431     setpgrp \
   11432     sigaction \
   11433     sigaltstack \
   11434     sigprocmask \
   11435     sigtimedwait \
   11436     socketpair \
   11437 
   11438 do :
   11439   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   11440 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   11441 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   11442   cat >>confdefs.h <<_ACEOF
   11443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   11444 _ACEOF
   11445 
   11446 fi
   11447 done
   11448 
   11449 
   11450   # This is needed for RHEL 5 and uclibc-ng < 1.0.39.
   11451   # These did not define ADDR_NO_RANDOMIZE in sys/personality.h,
   11452   # only in linux/personality.h.
   11453   ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
   11454 "
   11455 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
   11456   ac_have_decl=1
   11457 else
   11458   ac_have_decl=0
   11459 fi
   11460 
   11461 cat >>confdefs.h <<_ACEOF
   11462 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
   11463 _ACEOF
   11464 
   11465 
   11466   ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
   11467 if test "x$ac_cv_have_decl_strstr" = xyes; then :
   11468   ac_have_decl=1
   11469 else
   11470   ac_have_decl=0
   11471 fi
   11472 
   11473 cat >>confdefs.h <<_ACEOF
   11474 #define HAVE_DECL_STRSTR $ac_have_decl
   11475 _ACEOF
   11476 
   11477 
   11478   # ----------------------- #
   11479   # Checks for structures.  #
   11480   # ----------------------- #
   11481 
   11482   ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
   11483 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
   11484 
   11485 cat >>confdefs.h <<_ACEOF
   11486 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
   11487 _ACEOF
   11488 
   11489 
   11490 fi
   11491 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   11492 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
   11493 
   11494 cat >>confdefs.h <<_ACEOF
   11495 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   11496 _ACEOF
   11497 
   11498 
   11499 fi
   11500 
   11501 
   11502   # On FreeBSD we need libutil for the kinfo_get* functions.  On
   11503   # GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
   11504   # Figure out which one to use.
   11505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
   11506 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
   11507 if ${ac_cv_search_kinfo_getfile+:} false; then :
   11508   $as_echo_n "(cached) " >&6
   11509 else
   11510   ac_func_search_save_LIBS=$LIBS
   11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11512 /* end confdefs.h.  */
   11513 
   11514 /* Override any GCC internal prototype to avoid an error.
   11515    Use char because int might match the return type of a GCC
   11516    builtin and then its argument prototype would still apply.  */
   11517 #ifdef __cplusplus
   11518 extern "C"
   11519 #endif
   11520 char kinfo_getfile ();
   11521 int
   11522 main ()
   11523 {
   11524 return kinfo_getfile ();
   11525   ;
   11526   return 0;
   11527 }
   11528 _ACEOF
   11529 for ac_lib in '' util util-freebsd; do
   11530   if test -z "$ac_lib"; then
   11531     ac_res="none required"
   11532   else
   11533     ac_res=-l$ac_lib
   11534     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   11535   fi
   11536   if ac_fn_c_try_link "$LINENO"; then :
   11537   ac_cv_search_kinfo_getfile=$ac_res
   11538 fi
   11539 rm -f core conftest.err conftest.$ac_objext \
   11540     conftest$ac_exeext
   11541   if ${ac_cv_search_kinfo_getfile+:} false; then :
   11542   break
   11543 fi
   11544 done
   11545 if ${ac_cv_search_kinfo_getfile+:} false; then :
   11546 
   11547 else
   11548   ac_cv_search_kinfo_getfile=no
   11549 fi
   11550 rm conftest.$ac_ext
   11551 LIBS=$ac_func_search_save_LIBS
   11552 fi
   11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
   11554 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
   11555 ac_res=$ac_cv_search_kinfo_getfile
   11556 if test "$ac_res" != no; then :
   11557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   11558 
   11559 fi
   11560 
   11561 
   11562   # Define HAVE_KINFO_GETFILE if kinfo_getfile is available.
   11563   for ac_func in kinfo_getfile
   11564 do :
   11565   ac_fn_c_check_func "$LINENO" "kinfo_getfile" "ac_cv_func_kinfo_getfile"
   11566 if test "x$ac_cv_func_kinfo_getfile" = xyes; then :
   11567   cat >>confdefs.h <<_ACEOF
   11568 #define HAVE_KINFO_GETFILE 1
   11569 _ACEOF
   11570 
   11571 fi
   11572 done
   11573 
   11574 
   11575   # ----------------------- #
   11576   # Check for threading.    #
   11577   # ----------------------- #
   11578 
   11579   # Check whether --enable-threading was given.
   11580 if test "${enable_threading+set}" = set; then :
   11581   enableval=$enable_threading; case "$enableval" in
   11582     yes) want_threading=yes ;;
   11583     no) want_threading=no ;;
   11584     *) as_fn_error $? "bad value $enableval for threading" "$LINENO" 5 ;;
   11585     esac
   11586 else
   11587   want_threading=auto
   11588 fi
   11589 
   11590 
   11591   # Check for std::thread.  This does not work on some platforms, like
   11592   # mingw using the win32 threads model with gcc older than 13, and
   11593   # DJGPP.
   11594   ac_ext=cpp
   11595 ac_cpp='$CXXCPP $CPPFLAGS'
   11596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   11599 
   11600 
   11601 
   11602 
   11603 
   11604 ac_ext=c
   11605 ac_cpp='$CPP $CPPFLAGS'
   11606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   11607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   11608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   11609 
   11610 ax_pthread_ok=no
   11611 
   11612 # We used to check for pthread.h first, but this fails if pthread.h
   11613 # requires special compiler flags (e.g. on Tru64 or Sequent).
   11614 # It gets checked for in the link test anyway.
   11615 
   11616 # First of all, check if the user has set any of the PTHREAD_LIBS,
   11617 # etcetera environment variables, and if threads linking works using
   11618 # them:
   11619 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
   11620         ax_pthread_save_CC="$CC"
   11621         ax_pthread_save_CFLAGS="$CFLAGS"
   11622         ax_pthread_save_LIBS="$LIBS"
   11623         if test "x$PTHREAD_CC" != "x"; then :
   11624   CC="$PTHREAD_CC"
   11625 fi
   11626         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   11627         LIBS="$PTHREAD_LIBS $LIBS"
   11628         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
   11629 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
   11630         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11631 /* end confdefs.h.  */
   11632 
   11633 /* Override any GCC internal prototype to avoid an error.
   11634    Use char because int might match the return type of a GCC
   11635    builtin and then its argument prototype would still apply.  */
   11636 #ifdef __cplusplus
   11637 extern "C"
   11638 #endif
   11639 char pthread_join ();
   11640 int
   11641 main ()
   11642 {
   11643 return pthread_join ();
   11644   ;
   11645   return 0;
   11646 }
   11647 _ACEOF
   11648 if ac_fn_c_try_link "$LINENO"; then :
   11649   ax_pthread_ok=yes
   11650 fi
   11651 rm -f core conftest.err conftest.$ac_objext \
   11652     conftest$ac_exeext conftest.$ac_ext
   11653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   11654 $as_echo "$ax_pthread_ok" >&6; }
   11655         if test "x$ax_pthread_ok" = "xno"; then
   11656                 PTHREAD_LIBS=""
   11657                 PTHREAD_CFLAGS=""
   11658         fi
   11659         CC="$ax_pthread_save_CC"
   11660         CFLAGS="$ax_pthread_save_CFLAGS"
   11661         LIBS="$ax_pthread_save_LIBS"
   11662 fi
   11663 
   11664 # We must check for the threads library under a number of different
   11665 # names; the ordering is very important because some systems
   11666 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
   11667 # libraries is broken (non-POSIX).
   11668 
   11669 # Create a list of thread flags to try.  Items starting with a "-" are
   11670 # C compiler flags, and other items are library names, except for "none"
   11671 # which indicates that we try without any flags at all, and "pthread-config"
   11672 # which is a program returning the flags for the Pth emulation library.
   11673 
   11674 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
   11675 
   11676 # The ordering *is* (sometimes) important.  Some notes on the
   11677 # individual items follow:
   11678 
   11679 # pthreads: AIX (must check this before -lpthread)
   11680 # none: in case threads are in libc; should be tried before -Kthread and
   11681 #       other compiler flags to prevent continual compiler warnings
   11682 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
   11683 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
   11684 #           (Note: HP C rejects this with "bad form for `-t' option")
   11685 # -pthreads: Solaris/gcc (Note: HP C also rejects)
   11686 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
   11687 #      doesn't hurt to check since this sometimes defines pthreads and
   11688 #      -D_REENTRANT too), HP C (must be checked before -lpthread, which
   11689 #      is present but should not be used directly; and before -mthreads,
   11690 #      because the compiler interprets this as "-mt" + "-hreads")
   11691 # -mthreads: Mingw32/gcc, Lynx/gcc
   11692 # pthread: Linux, etcetera
   11693 # --thread-safe: KAI C++
   11694 # pthread-config: use pthread-config program (for GNU Pth library)
   11695 
   11696 case $host_os in
   11697 
   11698         freebsd*)
   11699 
   11700         # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
   11701         # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
   11702 
   11703         ax_pthread_flags="-kthread lthread $ax_pthread_flags"
   11704         ;;
   11705 
   11706         hpux*)
   11707 
   11708         # From the cc(1) man page: "[-mt] Sets various -D flags to enable
   11709         # multi-threading and also sets -lpthread."
   11710 
   11711         ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
   11712         ;;
   11713 
   11714         openedition*)
   11715 
   11716         # IBM z/OS requires a feature-test macro to be defined in order to
   11717         # enable POSIX threads at all, so give the user a hint if this is
   11718         # not set. (We don't define these ourselves, as they can affect
   11719         # other portions of the system API in unpredictable ways.)
   11720 
   11721         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11722 /* end confdefs.h.  */
   11723 
   11724 #            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
   11725              AX_PTHREAD_ZOS_MISSING
   11726 #            endif
   11727 
   11728 _ACEOF
   11729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11730   $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
   11731   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
   11732 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
   11733 fi
   11734 rm -f conftest*
   11735 
   11736         ;;
   11737 
   11738         solaris*)
   11739 
   11740         # On Solaris (at least, for some versions), libc contains stubbed
   11741         # (non-functional) versions of the pthreads routines, so link-based
   11742         # tests will erroneously succeed. (N.B.: The stubs are missing
   11743         # pthread_cleanup_push, or rather a function called by this macro,
   11744         # so we could check for that, but who knows whether they'll stub
   11745         # that too in a future libc.)  So we'll check first for the
   11746         # standard Solaris way of linking pthreads (-mt -lpthread).
   11747 
   11748         ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
   11749         ;;
   11750 esac
   11751 
   11752 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
   11753 
   11754 if test "x$GCC" = "xyes"; then :
   11755   ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
   11756 fi
   11757 
   11758 # The presence of a feature test macro requesting re-entrant function
   11759 # definitions is, on some systems, a strong hint that pthreads support is
   11760 # correctly enabled
   11761 
   11762 case $host_os in
   11763         darwin* | hpux* | linux* | osf* | solaris*)
   11764         ax_pthread_check_macro="_REENTRANT"
   11765         ;;
   11766 
   11767         aix*)
   11768         ax_pthread_check_macro="_THREAD_SAFE"
   11769         ;;
   11770 
   11771         *)
   11772         ax_pthread_check_macro="--"
   11773         ;;
   11774 esac
   11775 if test "x$ax_pthread_check_macro" = "x--"; then :
   11776   ax_pthread_check_cond=0
   11777 else
   11778   ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
   11779 fi
   11780 
   11781 # Are we compiling with Clang?
   11782 
   11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
   11784 $as_echo_n "checking whether $CC is Clang... " >&6; }
   11785 if ${ax_cv_PTHREAD_CLANG+:} false; then :
   11786   $as_echo_n "(cached) " >&6
   11787 else
   11788   ax_cv_PTHREAD_CLANG=no
   11789      # Note that Autoconf sets GCC=yes for Clang as well as GCC
   11790      if test "x$GCC" = "xyes"; then
   11791         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11792 /* end confdefs.h.  */
   11793 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
   11794 #            if defined(__clang__) && defined(__llvm__)
   11795              AX_PTHREAD_CC_IS_CLANG
   11796 #            endif
   11797 
   11798 _ACEOF
   11799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   11800   $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
   11801   ax_cv_PTHREAD_CLANG=yes
   11802 fi
   11803 rm -f conftest*
   11804 
   11805      fi
   11806 
   11807 fi
   11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
   11809 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
   11810 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
   11811 
   11812 ax_pthread_clang_warning=no
   11813 
   11814 # Clang needs special handling, because older versions handle the -pthread
   11815 # option in a rather... idiosyncratic way
   11816 
   11817 if test "x$ax_pthread_clang" = "xyes"; then
   11818 
   11819         # Clang takes -pthread; it has never supported any other flag
   11820 
   11821         # (Note 1: This will need to be revisited if a system that Clang
   11822         # supports has POSIX threads in a separate library.  This tends not
   11823         # to be the way of modern systems, but it's conceivable.)
   11824 
   11825         # (Note 2: On some systems, notably Darwin, -pthread is not needed
   11826         # to get POSIX threads support; the API is always present and
   11827         # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
   11828         # -pthread does define _REENTRANT, and while the Darwin headers
   11829         # ignore this macro, third-party headers might not.)
   11830 
   11831         PTHREAD_CFLAGS="-pthread"
   11832         PTHREAD_LIBS=
   11833 
   11834         ax_pthread_ok=yes
   11835 
   11836         # However, older versions of Clang make a point of warning the user
   11837         # that, in an invocation where only linking and no compilation is
   11838         # taking place, the -pthread option has no effect ("argument unused
   11839         # during compilation").  They expect -pthread to be passed in only
   11840         # when source code is being compiled.
   11841         #
   11842         # Problem is, this is at odds with the way Automake and most other
   11843         # C build frameworks function, which is that the same flags used in
   11844         # compilation (CFLAGS) are also used in linking.  Many systems
   11845         # supported by AX_PTHREAD require exactly this for POSIX threads
   11846         # support, and in fact it is often not straightforward to specify a
   11847         # flag that is used only in the compilation phase and not in
   11848         # linking.  Such a scenario is extremely rare in practice.
   11849         #
   11850         # Even though use of the -pthread flag in linking would only print
   11851         # a warning, this can be a nuisance for well-run software projects
   11852         # that build with -Werror.  So if the active version of Clang has
   11853         # this misfeature, we search for an option to squash it.
   11854 
   11855         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
   11856 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
   11857 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
   11858   $as_echo_n "(cached) " >&6
   11859 else
   11860   ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
   11861              # Create an alternate version of $ac_link that compiles and
   11862              # links in two steps (.c -> .o, .o -> exe) instead of one
   11863              # (.c -> exe), because the warning occurs only in the second
   11864              # step
   11865              ax_pthread_save_ac_link="$ac_link"
   11866              ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
   11867              ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
   11868              ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
   11869              ax_pthread_save_CFLAGS="$CFLAGS"
   11870              for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
   11871                 if test "x$ax_pthread_try" = "xunknown"; then :
   11872   break
   11873 fi
   11874                 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
   11875                 ac_link="$ax_pthread_save_ac_link"
   11876                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11877 /* end confdefs.h.  */
   11878 int main(void){return 0;}
   11879 _ACEOF
   11880 if ac_fn_c_try_link "$LINENO"; then :
   11881   ac_link="$ax_pthread_2step_ac_link"
   11882                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11883 /* end confdefs.h.  */
   11884 int main(void){return 0;}
   11885 _ACEOF
   11886 if ac_fn_c_try_link "$LINENO"; then :
   11887   break
   11888 fi
   11889 rm -f core conftest.err conftest.$ac_objext \
   11890     conftest$ac_exeext conftest.$ac_ext
   11891 
   11892 fi
   11893 rm -f core conftest.err conftest.$ac_objext \
   11894     conftest$ac_exeext conftest.$ac_ext
   11895              done
   11896              ac_link="$ax_pthread_save_ac_link"
   11897              CFLAGS="$ax_pthread_save_CFLAGS"
   11898              if test "x$ax_pthread_try" = "x"; then :
   11899   ax_pthread_try=no
   11900 fi
   11901              ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
   11902 
   11903 fi
   11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
   11905 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
   11906 
   11907         case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
   11908                 no | unknown) ;;
   11909                 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
   11910         esac
   11911 
   11912 fi # $ax_pthread_clang = yes
   11913 
   11914 if test "x$ax_pthread_ok" = "xno"; then
   11915 for ax_pthread_try_flag in $ax_pthread_flags; do
   11916 
   11917         case $ax_pthread_try_flag in
   11918                 none)
   11919                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
   11920 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
   11921                 ;;
   11922 
   11923                 -mt,pthread)
   11924                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
   11925 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
   11926                 PTHREAD_CFLAGS="-mt"
   11927                 PTHREAD_LIBS="-lpthread"
   11928                 ;;
   11929 
   11930                 -*)
   11931                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
   11932 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
   11933                 PTHREAD_CFLAGS="$ax_pthread_try_flag"
   11934                 ;;
   11935 
   11936                 pthread-config)
   11937                 # Extract the first word of "pthread-config", so it can be a program name with args.
   11938 set dummy pthread-config; ac_word=$2
   11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   11940 $as_echo_n "checking for $ac_word... " >&6; }
   11941 if ${ac_cv_prog_ax_pthread_config+:} false; then :
   11942   $as_echo_n "(cached) " >&6
   11943 else
   11944   if test -n "$ax_pthread_config"; then
   11945   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
   11946 else
   11947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   11948 for as_dir in $PATH
   11949 do
   11950   IFS=$as_save_IFS
   11951   test -z "$as_dir" && as_dir=.
   11952     for ac_exec_ext in '' $ac_executable_extensions; do
   11953   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   11954     ac_cv_prog_ax_pthread_config="yes"
   11955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   11956     break 2
   11957   fi
   11958 done
   11959   done
   11960 IFS=$as_save_IFS
   11961 
   11962   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
   11963 fi
   11964 fi
   11965 ax_pthread_config=$ac_cv_prog_ax_pthread_config
   11966 if test -n "$ax_pthread_config"; then
   11967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
   11968 $as_echo "$ax_pthread_config" >&6; }
   11969 else
   11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   11971 $as_echo "no" >&6; }
   11972 fi
   11973 
   11974 
   11975                 if test "x$ax_pthread_config" = "xno"; then :
   11976   continue
   11977 fi
   11978                 PTHREAD_CFLAGS="`pthread-config --cflags`"
   11979                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
   11980                 ;;
   11981 
   11982                 *)
   11983                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
   11984 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
   11985                 PTHREAD_LIBS="-l$ax_pthread_try_flag"
   11986                 ;;
   11987         esac
   11988 
   11989         ax_pthread_save_CFLAGS="$CFLAGS"
   11990         ax_pthread_save_LIBS="$LIBS"
   11991         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   11992         LIBS="$PTHREAD_LIBS $LIBS"
   11993 
   11994         # Check for various functions.  We must include pthread.h,
   11995         # since some functions may be macros.  (On the Sequent, we
   11996         # need a special flag -Kthread to make this header compile.)
   11997         # We check for pthread_join because it is in -lpthread on IRIX
   11998         # while pthread_create is in libc.  We check for pthread_attr_init
   11999         # due to DEC craziness with -lpthreads.  We check for
   12000         # pthread_cleanup_push because it is one of the few pthread
   12001         # functions on Solaris that doesn't have a non-functional libc stub.
   12002         # We try pthread_create on general principles.
   12003 
   12004         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12005 /* end confdefs.h.  */
   12006 #include <pthread.h>
   12007 #                       if $ax_pthread_check_cond
   12008 #                        error "$ax_pthread_check_macro must be defined"
   12009 #                       endif
   12010                         static void routine(void *a) { a = 0; }
   12011                         static void *start_routine(void *a) { return a; }
   12012 int
   12013 main ()
   12014 {
   12015 pthread_t th; pthread_attr_t attr;
   12016                         pthread_create(&th, 0, start_routine, 0);
   12017                         pthread_join(th, 0);
   12018                         pthread_attr_init(&attr);
   12019                         pthread_cleanup_push(routine, 0);
   12020                         pthread_cleanup_pop(0) /* ; */
   12021   ;
   12022   return 0;
   12023 }
   12024 _ACEOF
   12025 if ac_fn_c_try_link "$LINENO"; then :
   12026   ax_pthread_ok=yes
   12027 fi
   12028 rm -f core conftest.err conftest.$ac_objext \
   12029     conftest$ac_exeext conftest.$ac_ext
   12030 
   12031         CFLAGS="$ax_pthread_save_CFLAGS"
   12032         LIBS="$ax_pthread_save_LIBS"
   12033 
   12034         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
   12035 $as_echo "$ax_pthread_ok" >&6; }
   12036         if test "x$ax_pthread_ok" = "xyes"; then :
   12037   break
   12038 fi
   12039 
   12040         PTHREAD_LIBS=""
   12041         PTHREAD_CFLAGS=""
   12042 done
   12043 fi
   12044 
   12045 # Various other checks:
   12046 if test "x$ax_pthread_ok" = "xyes"; then
   12047         ax_pthread_save_CFLAGS="$CFLAGS"
   12048         ax_pthread_save_LIBS="$LIBS"
   12049         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
   12050         LIBS="$PTHREAD_LIBS $LIBS"
   12051 
   12052         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
   12053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
   12054 $as_echo_n "checking for joinable pthread attribute... " >&6; }
   12055 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
   12056   $as_echo_n "(cached) " >&6
   12057 else
   12058   ax_cv_PTHREAD_JOINABLE_ATTR=unknown
   12059              for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
   12060                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12061 /* end confdefs.h.  */
   12062 #include <pthread.h>
   12063 int
   12064 main ()
   12065 {
   12066 int attr = $ax_pthread_attr; return attr /* ; */
   12067   ;
   12068   return 0;
   12069 }
   12070 _ACEOF
   12071 if ac_fn_c_try_link "$LINENO"; then :
   12072   ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
   12073 fi
   12074 rm -f core conftest.err conftest.$ac_objext \
   12075     conftest$ac_exeext conftest.$ac_ext
   12076              done
   12077 
   12078 fi
   12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
   12080 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
   12081         if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
   12082                test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
   12083                test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
   12084 
   12085 cat >>confdefs.h <<_ACEOF
   12086 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
   12087 _ACEOF
   12088 
   12089                ax_pthread_joinable_attr_defined=yes
   12090 
   12091 fi
   12092 
   12093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
   12094 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
   12095 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
   12096   $as_echo_n "(cached) " >&6
   12097 else
   12098   ax_cv_PTHREAD_SPECIAL_FLAGS=no
   12099              case $host_os in
   12100              solaris*)
   12101              ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
   12102              ;;
   12103              esac
   12104 
   12105 fi
   12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
   12107 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
   12108         if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
   12109                test "x$ax_pthread_special_flags_added" != "xyes"; then :
   12110   PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
   12111                ax_pthread_special_flags_added=yes
   12112 fi
   12113 
   12114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
   12115 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
   12116 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
   12117   $as_echo_n "(cached) " >&6
   12118 else
   12119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12120 /* end confdefs.h.  */
   12121 #include <pthread.h>
   12122 int
   12123 main ()
   12124 {
   12125 int i = PTHREAD_PRIO_INHERIT;
   12126   ;
   12127   return 0;
   12128 }
   12129 _ACEOF
   12130 if ac_fn_c_try_link "$LINENO"; then :
   12131   ax_cv_PTHREAD_PRIO_INHERIT=yes
   12132 else
   12133   ax_cv_PTHREAD_PRIO_INHERIT=no
   12134 fi
   12135 rm -f core conftest.err conftest.$ac_objext \
   12136     conftest$ac_exeext conftest.$ac_ext
   12137 
   12138 fi
   12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
   12140 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
   12141         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
   12142                test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
   12143 
   12144 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
   12145 
   12146                ax_pthread_prio_inherit_defined=yes
   12147 
   12148 fi
   12149 
   12150         CFLAGS="$ax_pthread_save_CFLAGS"
   12151         LIBS="$ax_pthread_save_LIBS"
   12152 
   12153         # More AIX lossage: compile with *_r variant
   12154         if test "x$GCC" != "xyes"; then
   12155             case $host_os in
   12156                 aix*)
   12157                 case "x/$CC" in #(
   12158   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
   12159     #handle absolute path differently from PATH based program lookup
   12160                      case "x$CC" in #(
   12161   x/*) :
   12162     if as_fn_executable_p ${CC}_r; then :
   12163   PTHREAD_CC="${CC}_r"
   12164 fi ;; #(
   12165   *) :
   12166     for ac_prog in ${CC}_r
   12167 do
   12168   # Extract the first word of "$ac_prog", so it can be a program name with args.
   12169 set dummy $ac_prog; ac_word=$2
   12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   12171 $as_echo_n "checking for $ac_word... " >&6; }
   12172 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
   12173   $as_echo_n "(cached) " >&6
   12174 else
   12175   if test -n "$PTHREAD_CC"; then
   12176   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
   12177 else
   12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   12179 for as_dir in $PATH
   12180 do
   12181   IFS=$as_save_IFS
   12182   test -z "$as_dir" && as_dir=.
   12183     for ac_exec_ext in '' $ac_executable_extensions; do
   12184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
   12185     ac_cv_prog_PTHREAD_CC="$ac_prog"
   12186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   12187     break 2
   12188   fi
   12189 done
   12190   done
   12191 IFS=$as_save_IFS
   12192 
   12193 fi
   12194 fi
   12195 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
   12196 if test -n "$PTHREAD_CC"; then
   12197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
   12198 $as_echo "$PTHREAD_CC" >&6; }
   12199 else
   12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12201 $as_echo "no" >&6; }
   12202 fi
   12203 
   12204 
   12205   test -n "$PTHREAD_CC" && break
   12206 done
   12207 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   12208  ;;
   12209 esac ;; #(
   12210   *) :
   12211      ;;
   12212 esac
   12213                 ;;
   12214             esac
   12215         fi
   12216 fi
   12217 
   12218 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
   12219 
   12220 
   12221 
   12222 
   12223 
   12224 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
   12225 if test "x$ax_pthread_ok" = "xyes"; then
   12226         threads=yes
   12227         :
   12228 else
   12229         ax_pthread_ok=no
   12230         threads=no
   12231 fi
   12232 ac_ext=cpp
   12233 ac_cpp='$CXXCPP $CPPFLAGS'
   12234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   12237 
   12238 
   12239   save_LIBS="$LIBS"
   12240   LIBS="$PTHREAD_LIBS $LIBS"
   12241   save_CXXFLAGS="$CXXFLAGS"
   12242   CXXFLAGS="$PTHREAD_CFLAGS $save_CXXFLAGS"
   12243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
   12244 $as_echo_n "checking for std::thread... " >&6; }
   12245 if ${gdb_cv_cxx_std_thread+:} false; then :
   12246   $as_echo_n "(cached) " >&6
   12247 else
   12248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12249 /* end confdefs.h.  */
   12250   #if defined (__MINGW32__) || defined (__CYGWIN__)
   12251     # ifdef _WIN32_WINNT
   12252     #  if _WIN32_WINNT < 0x0501
   12253     #   undef _WIN32_WINNT
   12254     #   define _WIN32_WINNT 0x0501
   12255     #  endif
   12256     # else
   12257     #  define _WIN32_WINNT 0x0501
   12258     # endif
   12259     #endif	/* __MINGW32__ || __CYGWIN__ */
   12260     #include <thread>
   12261     #include <mutex>
   12262     void callback() { }
   12263 int
   12264 main ()
   12265 {
   12266 std::thread t(callback);
   12267   ;
   12268   return 0;
   12269 }
   12270 _ACEOF
   12271 if ac_fn_cxx_try_compile "$LINENO"; then :
   12272   gdb_cv_cxx_std_thread=yes
   12273 else
   12274   gdb_cv_cxx_std_thread=no
   12275 fi
   12276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12277 fi
   12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
   12279 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
   12280 
   12281   if test "$threads" = "yes"; then
   12282     # This check must be here, while LIBS includes any necessary
   12283     # threading library.
   12284     for ac_func in pthread_sigmask pthread_setname_np
   12285 do :
   12286   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   12287 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
   12288 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   12289   cat >>confdefs.h <<_ACEOF
   12290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   12291 _ACEOF
   12292 
   12293 fi
   12294 done
   12295 
   12296   fi
   12297   LIBS="$save_LIBS"
   12298   CXXFLAGS="$save_CXXFLAGS"
   12299 
   12300   if test "$want_threading" != "no"; then
   12301     if test "$gdb_cv_cxx_std_thread" = "yes"; then
   12302 
   12303 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
   12304 
   12305     else
   12306 	if test "$want_threading" = "yes"; then
   12307 	    as_fn_error $? "std::thread does not work; disable threading" "$LINENO" 5
   12308 	else
   12309 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: std::thread does not work; disabling threading" >&5
   12310 $as_echo "$as_me: WARNING: std::thread does not work; disabling threading" >&2;}
   12311 	fi
   12312     fi
   12313   fi
   12314   ac_ext=c
   12315 ac_cpp='$CPP $CPPFLAGS'
   12316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   12317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   12318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   12319 
   12320 
   12321       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
   12322 $as_echo_n "checking for sigsetjmp... " >&6; }
   12323 if ${gdb_cv_func_sigsetjmp+:} false; then :
   12324   $as_echo_n "(cached) " >&6
   12325 else
   12326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12327 /* end confdefs.h.  */
   12328 #include <setjmp.h>
   12329 int
   12330 main ()
   12331 {
   12332 sigjmp_buf env;
   12333            while (! sigsetjmp (env, 1))
   12334              siglongjmp (env, 1);
   12335 
   12336   ;
   12337   return 0;
   12338 }
   12339 _ACEOF
   12340 if ac_fn_c_try_compile "$LINENO"; then :
   12341   gdb_cv_func_sigsetjmp=yes
   12342 else
   12343   gdb_cv_func_sigsetjmp=no
   12344 
   12345 fi
   12346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12347 
   12348 fi
   12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
   12350 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
   12351   if test "$gdb_cv_func_sigsetjmp" = "yes"; then
   12352 
   12353 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
   12354 
   12355   fi
   12356 
   12357 
   12358 # Check whether --with-intel_pt was given.
   12359 if test "${with_intel_pt+set}" = set; then :
   12360   withval=$with_intel_pt;
   12361 else
   12362   with_intel_pt=auto
   12363 fi
   12364 
   12365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
   12366 $as_echo_n "checking whether to use intel pt... " >&6; }
   12367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
   12368 $as_echo "$with_intel_pt" >&6; }
   12369 
   12370   if test "${with_intel_pt}" = no; then
   12371     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
   12372 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
   12373     HAVE_LIBIPT=no
   12374   else
   12375     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12376 /* end confdefs.h.  */
   12377 
   12378   #include <linux/perf_event.h>
   12379   #ifndef PERF_ATTR_SIZE_VER5
   12380   # error
   12381   #endif
   12382 
   12383 _ACEOF
   12384 if ac_fn_c_try_cpp "$LINENO"; then :
   12385   perf_event=yes
   12386 else
   12387   perf_event=no
   12388 fi
   12389 rm -f conftest.err conftest.i conftest.$ac_ext
   12390     if test "$perf_event" != yes; then
   12391       if test "$with_intel_pt" = yes; then
   12392 	as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
   12393       else
   12394 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
   12395 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
   12396       fi
   12397     fi
   12398 
   12399 
   12400 
   12401 
   12402 
   12403 
   12404 
   12405 
   12406 
   12407     use_additional=yes
   12408 
   12409   acl_save_prefix="$prefix"
   12410   prefix="$acl_final_prefix"
   12411   acl_save_exec_prefix="$exec_prefix"
   12412   exec_prefix="$acl_final_exec_prefix"
   12413 
   12414     eval additional_includedir=\"$includedir\"
   12415     eval additional_libdir=\"$libdir\"
   12416 
   12417   exec_prefix="$acl_save_exec_prefix"
   12418   prefix="$acl_save_prefix"
   12419 
   12420 
   12421 # Check whether --with-libipt-prefix was given.
   12422 if test "${with_libipt_prefix+set}" = set; then :
   12423   withval=$with_libipt_prefix;
   12424     if test "X$withval" = "Xno"; then
   12425       use_additional=no
   12426     else
   12427       if test "X$withval" = "X"; then
   12428 
   12429   acl_save_prefix="$prefix"
   12430   prefix="$acl_final_prefix"
   12431   acl_save_exec_prefix="$exec_prefix"
   12432   exec_prefix="$acl_final_exec_prefix"
   12433 
   12434           eval additional_includedir=\"$includedir\"
   12435           eval additional_libdir=\"$libdir\"
   12436 
   12437   exec_prefix="$acl_save_exec_prefix"
   12438   prefix="$acl_save_prefix"
   12439 
   12440       else
   12441         additional_includedir="$withval/include"
   12442         additional_libdir="$withval/lib"
   12443       fi
   12444     fi
   12445 
   12446 fi
   12447 
   12448 
   12449 # Check whether --with-libipt-type was given.
   12450 if test "${with_libipt_type+set}" = set; then :
   12451   withval=$with_libipt_type;  with_libipt_type=$withval
   12452 else
   12453    with_libipt_type=auto
   12454 fi
   12455 
   12456   lib_type=`eval echo \$with_libipt_type`
   12457 
   12458       LIBIPT=
   12459   LTLIBIPT=
   12460   INCIPT=
   12461   rpathdirs=
   12462   ltrpathdirs=
   12463   names_already_handled=
   12464   names_next_round='ipt '
   12465   while test -n "$names_next_round"; do
   12466     names_this_round="$names_next_round"
   12467     names_next_round=
   12468     for name in $names_this_round; do
   12469       already_handled=
   12470       for n in $names_already_handled; do
   12471         if test "$n" = "$name"; then
   12472           already_handled=yes
   12473           break
   12474         fi
   12475       done
   12476       if test -z "$already_handled"; then
   12477         names_already_handled="$names_already_handled $name"
   12478                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   12479         eval value=\"\$HAVE_LIB$uppername\"
   12480         if test -n "$value"; then
   12481           if test "$value" = yes; then
   12482             eval value=\"\$LIB$uppername\"
   12483             test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
   12484             eval value=\"\$LTLIB$uppername\"
   12485             test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
   12486           else
   12487                                     :
   12488           fi
   12489         else
   12490                               found_dir=
   12491           found_la=
   12492           found_so=
   12493           found_a=
   12494           if test $use_additional = yes; then
   12495             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   12496               found_dir="$additional_libdir"
   12497               found_so="$additional_libdir/lib$name.$shlibext"
   12498               if test -f "$additional_libdir/lib$name.la"; then
   12499                 found_la="$additional_libdir/lib$name.la"
   12500               fi
   12501             elif test x$lib_type != xshared; then
   12502               if test -f "$additional_libdir/lib$name.$libext"; then
   12503                 found_dir="$additional_libdir"
   12504                 found_a="$additional_libdir/lib$name.$libext"
   12505                 if test -f "$additional_libdir/lib$name.la"; then
   12506                   found_la="$additional_libdir/lib$name.la"
   12507                 fi
   12508               fi
   12509             fi
   12510           fi
   12511           if test "X$found_dir" = "X"; then
   12512             for x in $LDFLAGS $LTLIBIPT; do
   12513 
   12514   acl_save_prefix="$prefix"
   12515   prefix="$acl_final_prefix"
   12516   acl_save_exec_prefix="$exec_prefix"
   12517   exec_prefix="$acl_final_exec_prefix"
   12518   eval x=\"$x\"
   12519   exec_prefix="$acl_save_exec_prefix"
   12520   prefix="$acl_save_prefix"
   12521 
   12522               case "$x" in
   12523                 -L*)
   12524                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   12525                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   12526                     found_dir="$dir"
   12527                     found_so="$dir/lib$name.$shlibext"
   12528                     if test -f "$dir/lib$name.la"; then
   12529                       found_la="$dir/lib$name.la"
   12530                     fi
   12531                   elif test x$lib_type != xshared; then
   12532                     if test -f "$dir/lib$name.$libext"; then
   12533                       found_dir="$dir"
   12534                       found_a="$dir/lib$name.$libext"
   12535                       if test -f "$dir/lib$name.la"; then
   12536                         found_la="$dir/lib$name.la"
   12537                       fi
   12538                     fi
   12539                   fi
   12540                   ;;
   12541               esac
   12542               if test "X$found_dir" != "X"; then
   12543                 break
   12544               fi
   12545             done
   12546           fi
   12547           if test "X$found_dir" != "X"; then
   12548                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
   12549             if test "X$found_so" != "X"; then
   12550                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   12551                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   12552               else
   12553                                                                                 haveit=
   12554                 for x in $ltrpathdirs; do
   12555                   if test "X$x" = "X$found_dir"; then
   12556                     haveit=yes
   12557                     break
   12558                   fi
   12559                 done
   12560                 if test -z "$haveit"; then
   12561                   ltrpathdirs="$ltrpathdirs $found_dir"
   12562                 fi
   12563                                 if test "$hardcode_direct" = yes; then
   12564                                                       LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   12565                 else
   12566                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   12567                                                             LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   12568                                                             haveit=
   12569                     for x in $rpathdirs; do
   12570                       if test "X$x" = "X$found_dir"; then
   12571                         haveit=yes
   12572                         break
   12573                       fi
   12574                     done
   12575                     if test -z "$haveit"; then
   12576                       rpathdirs="$rpathdirs $found_dir"
   12577                     fi
   12578                   else
   12579                                                                                 haveit=
   12580                     for x in $LDFLAGS $LIBIPT; do
   12581 
   12582   acl_save_prefix="$prefix"
   12583   prefix="$acl_final_prefix"
   12584   acl_save_exec_prefix="$exec_prefix"
   12585   exec_prefix="$acl_final_exec_prefix"
   12586   eval x=\"$x\"
   12587   exec_prefix="$acl_save_exec_prefix"
   12588   prefix="$acl_save_prefix"
   12589 
   12590                       if test "X$x" = "X-L$found_dir"; then
   12591                         haveit=yes
   12592                         break
   12593                       fi
   12594                     done
   12595                     if test -z "$haveit"; then
   12596                       LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
   12597                     fi
   12598                     if test "$hardcode_minus_L" != no; then
   12599                                                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
   12600                     else
   12601                                                                                                                                                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   12602                     fi
   12603                   fi
   12604                 fi
   12605               fi
   12606             else
   12607               if test "X$found_a" != "X"; then
   12608                                 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
   12609               else
   12610                                                 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
   12611               fi
   12612             fi
   12613                         additional_includedir=
   12614             case "$found_dir" in
   12615               */lib | */lib/)
   12616                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   12617                 additional_includedir="$basedir/include"
   12618                 ;;
   12619             esac
   12620             if test "X$additional_includedir" != "X"; then
   12621                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   12622                 haveit=
   12623                 if test "X$additional_includedir" = "X/usr/local/include"; then
   12624                   if test -n "$GCC"; then
   12625                     case $host_os in
   12626                       linux*) haveit=yes;;
   12627                     esac
   12628                   fi
   12629                 fi
   12630                 if test -z "$haveit"; then
   12631                   for x in $CPPFLAGS $INCIPT; do
   12632 
   12633   acl_save_prefix="$prefix"
   12634   prefix="$acl_final_prefix"
   12635   acl_save_exec_prefix="$exec_prefix"
   12636   exec_prefix="$acl_final_exec_prefix"
   12637   eval x=\"$x\"
   12638   exec_prefix="$acl_save_exec_prefix"
   12639   prefix="$acl_save_prefix"
   12640 
   12641                     if test "X$x" = "X-I$additional_includedir"; then
   12642                       haveit=yes
   12643                       break
   12644                     fi
   12645                   done
   12646                   if test -z "$haveit"; then
   12647                     if test -d "$additional_includedir"; then
   12648                                             INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
   12649                     fi
   12650                   fi
   12651                 fi
   12652               fi
   12653             fi
   12654                         if test -n "$found_la"; then
   12655                                                         save_libdir="$libdir"
   12656               case "$found_la" in
   12657                 */* | *\\*) . "$found_la" ;;
   12658                 *) . "./$found_la" ;;
   12659               esac
   12660               libdir="$save_libdir"
   12661                             for dep in $dependency_libs; do
   12662                 case "$dep" in
   12663                   -L*)
   12664                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   12665                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   12666                       haveit=
   12667                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   12668                         if test -n "$GCC"; then
   12669                           case $host_os in
   12670                             linux*) haveit=yes;;
   12671                           esac
   12672                         fi
   12673                       fi
   12674                       if test -z "$haveit"; then
   12675                         haveit=
   12676                         for x in $LDFLAGS $LIBIPT; do
   12677 
   12678   acl_save_prefix="$prefix"
   12679   prefix="$acl_final_prefix"
   12680   acl_save_exec_prefix="$exec_prefix"
   12681   exec_prefix="$acl_final_exec_prefix"
   12682   eval x=\"$x\"
   12683   exec_prefix="$acl_save_exec_prefix"
   12684   prefix="$acl_save_prefix"
   12685 
   12686                           if test "X$x" = "X-L$additional_libdir"; then
   12687                             haveit=yes
   12688                             break
   12689                           fi
   12690                         done
   12691                         if test -z "$haveit"; then
   12692                           if test -d "$additional_libdir"; then
   12693                                                         LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
   12694                           fi
   12695                         fi
   12696                         haveit=
   12697                         for x in $LDFLAGS $LTLIBIPT; do
   12698 
   12699   acl_save_prefix="$prefix"
   12700   prefix="$acl_final_prefix"
   12701   acl_save_exec_prefix="$exec_prefix"
   12702   exec_prefix="$acl_final_exec_prefix"
   12703   eval x=\"$x\"
   12704   exec_prefix="$acl_save_exec_prefix"
   12705   prefix="$acl_save_prefix"
   12706 
   12707                           if test "X$x" = "X-L$additional_libdir"; then
   12708                             haveit=yes
   12709                             break
   12710                           fi
   12711                         done
   12712                         if test -z "$haveit"; then
   12713                           if test -d "$additional_libdir"; then
   12714                                                         LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
   12715                           fi
   12716                         fi
   12717                       fi
   12718                     fi
   12719                     ;;
   12720                   -R*)
   12721                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   12722                     if test "$enable_rpath" != no; then
   12723                                                                   haveit=
   12724                       for x in $rpathdirs; do
   12725                         if test "X$x" = "X$dir"; then
   12726                           haveit=yes
   12727                           break
   12728                         fi
   12729                       done
   12730                       if test -z "$haveit"; then
   12731                         rpathdirs="$rpathdirs $dir"
   12732                       fi
   12733                                                                   haveit=
   12734                       for x in $ltrpathdirs; do
   12735                         if test "X$x" = "X$dir"; then
   12736                           haveit=yes
   12737                           break
   12738                         fi
   12739                       done
   12740                       if test -z "$haveit"; then
   12741                         ltrpathdirs="$ltrpathdirs $dir"
   12742                       fi
   12743                     fi
   12744                     ;;
   12745                   -l*)
   12746                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   12747                     ;;
   12748                   *.la)
   12749                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   12750                     ;;
   12751                   *)
   12752                                         LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
   12753                     LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
   12754                     ;;
   12755                 esac
   12756               done
   12757             fi
   12758           else
   12759                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   12760               LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
   12761               LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
   12762             else
   12763               LIBIPT="${LIBIPT}${LIBIPT:+ }-l:lib$name.$libext"
   12764               LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l:lib$name.$libext"
   12765             fi
   12766           fi
   12767         fi
   12768       fi
   12769     done
   12770   done
   12771   if test "X$rpathdirs" != "X"; then
   12772     if test -n "$hardcode_libdir_separator"; then
   12773                         alldirs=
   12774       for found_dir in $rpathdirs; do
   12775         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   12776       done
   12777             acl_save_libdir="$libdir"
   12778       libdir="$alldirs"
   12779       eval flag=\"$hardcode_libdir_flag_spec\"
   12780       libdir="$acl_save_libdir"
   12781       LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   12782     else
   12783             for found_dir in $rpathdirs; do
   12784         acl_save_libdir="$libdir"
   12785         libdir="$found_dir"
   12786         eval flag=\"$hardcode_libdir_flag_spec\"
   12787         libdir="$acl_save_libdir"
   12788         LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
   12789       done
   12790     fi
   12791   fi
   12792   if test "X$ltrpathdirs" != "X"; then
   12793             for found_dir in $ltrpathdirs; do
   12794       LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
   12795     done
   12796   fi
   12797 
   12798 
   12799         ac_save_CPPFLAGS="$CPPFLAGS"
   12800 
   12801   for element in $INCIPT; do
   12802     haveit=
   12803     for x in $CPPFLAGS; do
   12804 
   12805   acl_save_prefix="$prefix"
   12806   prefix="$acl_final_prefix"
   12807   acl_save_exec_prefix="$exec_prefix"
   12808   exec_prefix="$acl_final_exec_prefix"
   12809   eval x=\"$x\"
   12810   exec_prefix="$acl_save_exec_prefix"
   12811   prefix="$acl_save_prefix"
   12812 
   12813       if test "X$x" = "X$element"; then
   12814         haveit=yes
   12815         break
   12816       fi
   12817     done
   12818     if test -z "$haveit"; then
   12819       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   12820     fi
   12821   done
   12822 
   12823 
   12824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
   12825 $as_echo_n "checking for libipt... " >&6; }
   12826 if ${ac_cv_libipt+:} false; then :
   12827   $as_echo_n "(cached) " >&6
   12828 else
   12829 
   12830     ac_save_LIBS="$LIBS"
   12831     LIBS="$LIBS $LIBIPT"
   12832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12833 /* end confdefs.h.  */
   12834 #include "intel-pt.h"
   12835 int
   12836 main ()
   12837 {
   12838 pt_insn_alloc_decoder (0);
   12839   ;
   12840   return 0;
   12841 }
   12842 _ACEOF
   12843 if ac_fn_c_try_link "$LINENO"; then :
   12844   ac_cv_libipt=yes
   12845 else
   12846   ac_cv_libipt=no
   12847 fi
   12848 rm -f core conftest.err conftest.$ac_objext \
   12849     conftest$ac_exeext conftest.$ac_ext
   12850     LIBS="$ac_save_LIBS"
   12851 
   12852 fi
   12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
   12854 $as_echo "$ac_cv_libipt" >&6; }
   12855   if test "$ac_cv_libipt" = yes; then
   12856     HAVE_LIBIPT=yes
   12857 
   12858 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
   12859 
   12860     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
   12861 $as_echo_n "checking how to link with libipt... " >&6; }
   12862     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
   12863 $as_echo "$LIBIPT" >&6; }
   12864   else
   12865     HAVE_LIBIPT=no
   12866             CPPFLAGS="$ac_save_CPPFLAGS"
   12867     LIBIPT=
   12868     LTLIBIPT=
   12869   fi
   12870 
   12871 
   12872 
   12873 
   12874 
   12875 
   12876     if test "$HAVE_LIBIPT" != yes; then
   12877       if test "$with_intel_pt" = yes; then
   12878 	as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
   12879       else
   12880 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
   12881 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
   12882       fi
   12883     else
   12884       save_LIBS=$LIBS
   12885       LIBS="$LIBS $LIBIPT"
   12886       for ac_func in pt_insn_event
   12887 do :
   12888   ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
   12889 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
   12890   cat >>confdefs.h <<_ACEOF
   12891 #define HAVE_PT_INSN_EVENT 1
   12892 _ACEOF
   12893 
   12894 fi
   12895 done
   12896 
   12897       ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
   12898 "
   12899 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
   12900 
   12901 cat >>confdefs.h <<_ACEOF
   12902 #define HAVE_STRUCT_PT_INSN_ENABLED 1
   12903 _ACEOF
   12904 
   12905 
   12906 fi
   12907 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
   12908 "
   12909 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
   12910 
   12911 cat >>confdefs.h <<_ACEOF
   12912 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
   12913 _ACEOF
   12914 
   12915 
   12916 fi
   12917 
   12918       ac_fn_c_check_member "$LINENO" "struct pt_event" "variant.ptwrite" "ac_cv_member_struct_pt_event_variant_ptwrite" "#include <intel-pt.h>
   12919 "
   12920 if test "x$ac_cv_member_struct_pt_event_variant_ptwrite" = xyes; then :
   12921 
   12922 cat >>confdefs.h <<_ACEOF
   12923 #define HAVE_STRUCT_PT_EVENT_VARIANT_PTWRITE 1
   12924 _ACEOF
   12925 
   12926 
   12927 fi
   12928 
   12929       LIBS=$save_LIBS
   12930     fi
   12931   fi
   12932 
   12933   # Check if the compiler and runtime support printing long longs.
   12934 
   12935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
   12936 $as_echo_n "checking for long long support in printf... " >&6; }
   12937 if ${gdb_cv_printf_has_long_long+:} false; then :
   12938   $as_echo_n "(cached) " >&6
   12939 else
   12940   if test "$cross_compiling" = yes; then :
   12941   gdb_cv_printf_has_long_long=no
   12942 else
   12943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12944 /* end confdefs.h.  */
   12945 $ac_includes_default
   12946 int
   12947 main ()
   12948 {
   12949 char buf[32];
   12950     long long l = 0;
   12951     l = (l << 16) + 0x0123;
   12952     l = (l << 16) + 0x4567;
   12953     l = (l << 16) + 0x89ab;
   12954     l = (l << 16) + 0xcdef;
   12955     sprintf (buf, "0x%016llx", l);
   12956     return (strcmp ("0x0123456789abcdef", buf));
   12957   ;
   12958   return 0;
   12959 }
   12960 _ACEOF
   12961 if ac_fn_c_try_run "$LINENO"; then :
   12962   gdb_cv_printf_has_long_long=yes
   12963 else
   12964   gdb_cv_printf_has_long_long=no
   12965 fi
   12966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12967   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12968 fi
   12969 
   12970 fi
   12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
   12972 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
   12973   if test "$gdb_cv_printf_has_long_long" = yes; then
   12974 
   12975 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
   12976 
   12977   fi
   12978 
   12979 
   12980 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
   12981 
   12982  for ac_header in sys/procfs.h
   12983 do :
   12984   ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
   12985 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
   12986   cat >>confdefs.h <<_ACEOF
   12987 #define HAVE_SYS_PROCFS_H 1
   12988 _ACEOF
   12989 
   12990 fi
   12991 
   12992 done
   12993 
   12994   if test "$ac_cv_header_sys_procfs_h" = yes; then
   12995 
   12996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
   12997 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
   12998  if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
   12999   $as_echo_n "(cached) " >&6
   13000 else
   13001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13002 /* end confdefs.h.  */
   13003 
   13004 #define _SYSCALL32
   13005 #include <sys/procfs.h>
   13006 int
   13007 main ()
   13008 {
   13009 gregset_t avar
   13010   ;
   13011   return 0;
   13012 }
   13013 _ACEOF
   13014 if ac_fn_c_try_compile "$LINENO"; then :
   13015   bfd_cv_have_sys_procfs_type_gregset_t=yes
   13016 else
   13017   bfd_cv_have_sys_procfs_type_gregset_t=no
   13018 
   13019 fi
   13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13021 fi
   13022 
   13023  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
   13024 
   13025 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
   13026 
   13027  fi
   13028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
   13029 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
   13030 
   13031 
   13032  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
   13033 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
   13034  if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
   13035   $as_echo_n "(cached) " >&6
   13036 else
   13037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13038 /* end confdefs.h.  */
   13039 
   13040 #define _SYSCALL32
   13041 #include <sys/procfs.h>
   13042 int
   13043 main ()
   13044 {
   13045 fpregset_t avar
   13046   ;
   13047   return 0;
   13048 }
   13049 _ACEOF
   13050 if ac_fn_c_try_compile "$LINENO"; then :
   13051   bfd_cv_have_sys_procfs_type_fpregset_t=yes
   13052 else
   13053   bfd_cv_have_sys_procfs_type_fpregset_t=no
   13054 
   13055 fi
   13056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13057 fi
   13058 
   13059  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
   13060 
   13061 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
   13062 
   13063  fi
   13064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
   13065 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
   13066 
   13067 
   13068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
   13069 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
   13070  if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
   13071   $as_echo_n "(cached) " >&6
   13072 else
   13073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13074 /* end confdefs.h.  */
   13075 
   13076 #define _SYSCALL32
   13077 #include <sys/procfs.h>
   13078 int
   13079 main ()
   13080 {
   13081 prgregset_t avar
   13082   ;
   13083   return 0;
   13084 }
   13085 _ACEOF
   13086 if ac_fn_c_try_compile "$LINENO"; then :
   13087   bfd_cv_have_sys_procfs_type_prgregset_t=yes
   13088 else
   13089   bfd_cv_have_sys_procfs_type_prgregset_t=no
   13090 
   13091 fi
   13092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13093 fi
   13094 
   13095  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
   13096 
   13097 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
   13098 
   13099  fi
   13100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
   13101 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
   13102 
   13103 
   13104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
   13105 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
   13106  if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
   13107   $as_echo_n "(cached) " >&6
   13108 else
   13109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13110 /* end confdefs.h.  */
   13111 
   13112 #define _SYSCALL32
   13113 #include <sys/procfs.h>
   13114 int
   13115 main ()
   13116 {
   13117 prfpregset_t avar
   13118   ;
   13119   return 0;
   13120 }
   13121 _ACEOF
   13122 if ac_fn_c_try_compile "$LINENO"; then :
   13123   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
   13124 else
   13125   bfd_cv_have_sys_procfs_type_prfpregset_t=no
   13126 
   13127 fi
   13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13129 fi
   13130 
   13131  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   13132 
   13133 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
   13134 
   13135  fi
   13136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
   13137 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
   13138 
   13139 
   13140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
   13141 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
   13142  if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
   13143   $as_echo_n "(cached) " >&6
   13144 else
   13145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13146 /* end confdefs.h.  */
   13147 
   13148 #define _SYSCALL32
   13149 #include <sys/procfs.h>
   13150 int
   13151 main ()
   13152 {
   13153 prgregset32_t avar
   13154   ;
   13155   return 0;
   13156 }
   13157 _ACEOF
   13158 if ac_fn_c_try_compile "$LINENO"; then :
   13159   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
   13160 else
   13161   bfd_cv_have_sys_procfs_type_prgregset32_t=no
   13162 
   13163 fi
   13164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13165 fi
   13166 
   13167  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
   13168 
   13169 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
   13170 
   13171  fi
   13172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
   13173 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
   13174 
   13175 
   13176  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
   13177 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
   13178  if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
   13179   $as_echo_n "(cached) " >&6
   13180 else
   13181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13182 /* end confdefs.h.  */
   13183 
   13184 #define _SYSCALL32
   13185 #include <sys/procfs.h>
   13186 int
   13187 main ()
   13188 {
   13189 lwpid_t avar
   13190   ;
   13191   return 0;
   13192 }
   13193 _ACEOF
   13194 if ac_fn_c_try_compile "$LINENO"; then :
   13195   bfd_cv_have_sys_procfs_type_lwpid_t=yes
   13196 else
   13197   bfd_cv_have_sys_procfs_type_lwpid_t=no
   13198 
   13199 fi
   13200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13201 fi
   13202 
   13203  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
   13204 
   13205 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
   13206 
   13207  fi
   13208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
   13209 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
   13210 
   13211 
   13212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
   13213 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
   13214  if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
   13215   $as_echo_n "(cached) " >&6
   13216 else
   13217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13218 /* end confdefs.h.  */
   13219 
   13220 #define _SYSCALL32
   13221 #include <sys/procfs.h>
   13222 int
   13223 main ()
   13224 {
   13225 psaddr_t avar
   13226   ;
   13227   return 0;
   13228 }
   13229 _ACEOF
   13230 if ac_fn_c_try_compile "$LINENO"; then :
   13231   bfd_cv_have_sys_procfs_type_psaddr_t=yes
   13232 else
   13233   bfd_cv_have_sys_procfs_type_psaddr_t=no
   13234 
   13235 fi
   13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13237 fi
   13238 
   13239  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
   13240 
   13241 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
   13242 
   13243  fi
   13244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
   13245 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
   13246 
   13247 
   13248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
   13249 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
   13250  if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
   13251   $as_echo_n "(cached) " >&6
   13252 else
   13253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13254 /* end confdefs.h.  */
   13255 
   13256 #define _SYSCALL32
   13257 #include <sys/procfs.h>
   13258 int
   13259 main ()
   13260 {
   13261 elf_fpregset_t avar
   13262   ;
   13263   return 0;
   13264 }
   13265 _ACEOF
   13266 if ac_fn_c_try_compile "$LINENO"; then :
   13267   bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
   13268 else
   13269   bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
   13270 
   13271 fi
   13272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13273 fi
   13274 
   13275  if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
   13276 
   13277 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
   13278 
   13279  fi
   13280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
   13281 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
   13282 
   13283   fi
   13284 
   13285     # Check for xxhash
   13286 
   13287 # Check whether --with-xxhash was given.
   13288 if test "${with_xxhash+set}" = set; then :
   13289   withval=$with_xxhash;
   13290 else
   13291   with_xxhash=auto
   13292 fi
   13293 
   13294 
   13295   if test "x$with_xxhash" != "xno"; then
   13296 
   13297 
   13298 
   13299 
   13300 
   13301 
   13302 
   13303 
   13304     use_additional=yes
   13305 
   13306   acl_save_prefix="$prefix"
   13307   prefix="$acl_final_prefix"
   13308   acl_save_exec_prefix="$exec_prefix"
   13309   exec_prefix="$acl_final_exec_prefix"
   13310 
   13311     eval additional_includedir=\"$includedir\"
   13312     eval additional_libdir=\"$libdir\"
   13313 
   13314   exec_prefix="$acl_save_exec_prefix"
   13315   prefix="$acl_save_prefix"
   13316 
   13317 
   13318 # Check whether --with-libxxhash-prefix was given.
   13319 if test "${with_libxxhash_prefix+set}" = set; then :
   13320   withval=$with_libxxhash_prefix;
   13321     if test "X$withval" = "Xno"; then
   13322       use_additional=no
   13323     else
   13324       if test "X$withval" = "X"; then
   13325 
   13326   acl_save_prefix="$prefix"
   13327   prefix="$acl_final_prefix"
   13328   acl_save_exec_prefix="$exec_prefix"
   13329   exec_prefix="$acl_final_exec_prefix"
   13330 
   13331           eval additional_includedir=\"$includedir\"
   13332           eval additional_libdir=\"$libdir\"
   13333 
   13334   exec_prefix="$acl_save_exec_prefix"
   13335   prefix="$acl_save_prefix"
   13336 
   13337       else
   13338         additional_includedir="$withval/include"
   13339         additional_libdir="$withval/lib"
   13340       fi
   13341     fi
   13342 
   13343 fi
   13344 
   13345 
   13346 # Check whether --with-libxxhash-type was given.
   13347 if test "${with_libxxhash_type+set}" = set; then :
   13348   withval=$with_libxxhash_type;  with_libxxhash_type=$withval
   13349 else
   13350    with_libxxhash_type=auto
   13351 fi
   13352 
   13353   lib_type=`eval echo \$with_libxxhash_type`
   13354 
   13355       LIBXXHASH=
   13356   LTLIBXXHASH=
   13357   INCXXHASH=
   13358   rpathdirs=
   13359   ltrpathdirs=
   13360   names_already_handled=
   13361   names_next_round='xxhash '
   13362   while test -n "$names_next_round"; do
   13363     names_this_round="$names_next_round"
   13364     names_next_round=
   13365     for name in $names_this_round; do
   13366       already_handled=
   13367       for n in $names_already_handled; do
   13368         if test "$n" = "$name"; then
   13369           already_handled=yes
   13370           break
   13371         fi
   13372       done
   13373       if test -z "$already_handled"; then
   13374         names_already_handled="$names_already_handled $name"
   13375                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   13376         eval value=\"\$HAVE_LIB$uppername\"
   13377         if test -n "$value"; then
   13378           if test "$value" = yes; then
   13379             eval value=\"\$LIB$uppername\"
   13380             test -z "$value" || LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$value"
   13381             eval value=\"\$LTLIB$uppername\"
   13382             test -z "$value" || LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
   13383           else
   13384                                     :
   13385           fi
   13386         else
   13387                               found_dir=
   13388           found_la=
   13389           found_so=
   13390           found_a=
   13391           if test $use_additional = yes; then
   13392             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   13393               found_dir="$additional_libdir"
   13394               found_so="$additional_libdir/lib$name.$shlibext"
   13395               if test -f "$additional_libdir/lib$name.la"; then
   13396                 found_la="$additional_libdir/lib$name.la"
   13397               fi
   13398             elif test x$lib_type != xshared; then
   13399               if test -f "$additional_libdir/lib$name.$libext"; then
   13400                 found_dir="$additional_libdir"
   13401                 found_a="$additional_libdir/lib$name.$libext"
   13402                 if test -f "$additional_libdir/lib$name.la"; then
   13403                   found_la="$additional_libdir/lib$name.la"
   13404                 fi
   13405               fi
   13406             fi
   13407           fi
   13408           if test "X$found_dir" = "X"; then
   13409             for x in $LDFLAGS $LTLIBXXHASH; do
   13410 
   13411   acl_save_prefix="$prefix"
   13412   prefix="$acl_final_prefix"
   13413   acl_save_exec_prefix="$exec_prefix"
   13414   exec_prefix="$acl_final_exec_prefix"
   13415   eval x=\"$x\"
   13416   exec_prefix="$acl_save_exec_prefix"
   13417   prefix="$acl_save_prefix"
   13418 
   13419               case "$x" in
   13420                 -L*)
   13421                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   13422                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
   13423                     found_dir="$dir"
   13424                     found_so="$dir/lib$name.$shlibext"
   13425                     if test -f "$dir/lib$name.la"; then
   13426                       found_la="$dir/lib$name.la"
   13427                     fi
   13428                   elif test x$lib_type != xshared; then
   13429                     if test -f "$dir/lib$name.$libext"; then
   13430                       found_dir="$dir"
   13431                       found_a="$dir/lib$name.$libext"
   13432                       if test -f "$dir/lib$name.la"; then
   13433                         found_la="$dir/lib$name.la"
   13434                       fi
   13435                     fi
   13436                   fi
   13437                   ;;
   13438               esac
   13439               if test "X$found_dir" != "X"; then
   13440                 break
   13441               fi
   13442             done
   13443           fi
   13444           if test "X$found_dir" != "X"; then
   13445                         LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
   13446             if test "X$found_so" != "X"; then
   13447                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   13448                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
   13449               else
   13450                                                                                 haveit=
   13451                 for x in $ltrpathdirs; do
   13452                   if test "X$x" = "X$found_dir"; then
   13453                     haveit=yes
   13454                     break
   13455                   fi
   13456                 done
   13457                 if test -z "$haveit"; then
   13458                   ltrpathdirs="$ltrpathdirs $found_dir"
   13459                 fi
   13460                                 if test "$hardcode_direct" = yes; then
   13461                                                       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
   13462                 else
   13463                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   13464                                                             LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
   13465                                                             haveit=
   13466                     for x in $rpathdirs; do
   13467                       if test "X$x" = "X$found_dir"; then
   13468                         haveit=yes
   13469                         break
   13470                       fi
   13471                     done
   13472                     if test -z "$haveit"; then
   13473                       rpathdirs="$rpathdirs $found_dir"
   13474                     fi
   13475                   else
   13476                                                                                 haveit=
   13477                     for x in $LDFLAGS $LIBXXHASH; do
   13478 
   13479   acl_save_prefix="$prefix"
   13480   prefix="$acl_final_prefix"
   13481   acl_save_exec_prefix="$exec_prefix"
   13482   exec_prefix="$acl_final_exec_prefix"
   13483   eval x=\"$x\"
   13484   exec_prefix="$acl_save_exec_prefix"
   13485   prefix="$acl_save_prefix"
   13486 
   13487                       if test "X$x" = "X-L$found_dir"; then
   13488                         haveit=yes
   13489                         break
   13490                       fi
   13491                     done
   13492                     if test -z "$haveit"; then
   13493                       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
   13494                     fi
   13495                     if test "$hardcode_minus_L" != no; then
   13496                                                                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
   13497                     else
   13498                                                                                                                                                                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
   13499                     fi
   13500                   fi
   13501                 fi
   13502               fi
   13503             else
   13504               if test "X$found_a" != "X"; then
   13505                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
   13506               else
   13507                                                 LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
   13508               fi
   13509             fi
   13510                         additional_includedir=
   13511             case "$found_dir" in
   13512               */lib | */lib/)
   13513                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   13514                 additional_includedir="$basedir/include"
   13515                 ;;
   13516             esac
   13517             if test "X$additional_includedir" != "X"; then
   13518                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   13519                 haveit=
   13520                 if test "X$additional_includedir" = "X/usr/local/include"; then
   13521                   if test -n "$GCC"; then
   13522                     case $host_os in
   13523                       linux*) haveit=yes;;
   13524                     esac
   13525                   fi
   13526                 fi
   13527                 if test -z "$haveit"; then
   13528                   for x in $CPPFLAGS $INCXXHASH; do
   13529 
   13530   acl_save_prefix="$prefix"
   13531   prefix="$acl_final_prefix"
   13532   acl_save_exec_prefix="$exec_prefix"
   13533   exec_prefix="$acl_final_exec_prefix"
   13534   eval x=\"$x\"
   13535   exec_prefix="$acl_save_exec_prefix"
   13536   prefix="$acl_save_prefix"
   13537 
   13538                     if test "X$x" = "X-I$additional_includedir"; then
   13539                       haveit=yes
   13540                       break
   13541                     fi
   13542                   done
   13543                   if test -z "$haveit"; then
   13544                     if test -d "$additional_includedir"; then
   13545                                             INCXXHASH="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
   13546                     fi
   13547                   fi
   13548                 fi
   13549               fi
   13550             fi
   13551                         if test -n "$found_la"; then
   13552                                                         save_libdir="$libdir"
   13553               case "$found_la" in
   13554                 */* | *\\*) . "$found_la" ;;
   13555                 *) . "./$found_la" ;;
   13556               esac
   13557               libdir="$save_libdir"
   13558                             for dep in $dependency_libs; do
   13559                 case "$dep" in
   13560                   -L*)
   13561                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   13562                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   13563                       haveit=
   13564                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   13565                         if test -n "$GCC"; then
   13566                           case $host_os in
   13567                             linux*) haveit=yes;;
   13568                           esac
   13569                         fi
   13570                       fi
   13571                       if test -z "$haveit"; then
   13572                         haveit=
   13573                         for x in $LDFLAGS $LIBXXHASH; do
   13574 
   13575   acl_save_prefix="$prefix"
   13576   prefix="$acl_final_prefix"
   13577   acl_save_exec_prefix="$exec_prefix"
   13578   exec_prefix="$acl_final_exec_prefix"
   13579   eval x=\"$x\"
   13580   exec_prefix="$acl_save_exec_prefix"
   13581   prefix="$acl_save_prefix"
   13582 
   13583                           if test "X$x" = "X-L$additional_libdir"; then
   13584                             haveit=yes
   13585                             break
   13586                           fi
   13587                         done
   13588                         if test -z "$haveit"; then
   13589                           if test -d "$additional_libdir"; then
   13590                                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
   13591                           fi
   13592                         fi
   13593                         haveit=
   13594                         for x in $LDFLAGS $LTLIBXXHASH; do
   13595 
   13596   acl_save_prefix="$prefix"
   13597   prefix="$acl_final_prefix"
   13598   acl_save_exec_prefix="$exec_prefix"
   13599   exec_prefix="$acl_final_exec_prefix"
   13600   eval x=\"$x\"
   13601   exec_prefix="$acl_save_exec_prefix"
   13602   prefix="$acl_save_prefix"
   13603 
   13604                           if test "X$x" = "X-L$additional_libdir"; then
   13605                             haveit=yes
   13606                             break
   13607                           fi
   13608                         done
   13609                         if test -z "$haveit"; then
   13610                           if test -d "$additional_libdir"; then
   13611                                                         LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
   13612                           fi
   13613                         fi
   13614                       fi
   13615                     fi
   13616                     ;;
   13617                   -R*)
   13618                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   13619                     if test "$enable_rpath" != no; then
   13620                                                                   haveit=
   13621                       for x in $rpathdirs; do
   13622                         if test "X$x" = "X$dir"; then
   13623                           haveit=yes
   13624                           break
   13625                         fi
   13626                       done
   13627                       if test -z "$haveit"; then
   13628                         rpathdirs="$rpathdirs $dir"
   13629                       fi
   13630                                                                   haveit=
   13631                       for x in $ltrpathdirs; do
   13632                         if test "X$x" = "X$dir"; then
   13633                           haveit=yes
   13634                           break
   13635                         fi
   13636                       done
   13637                       if test -z "$haveit"; then
   13638                         ltrpathdirs="$ltrpathdirs $dir"
   13639                       fi
   13640                     fi
   13641                     ;;
   13642                   -l*)
   13643                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   13644                     ;;
   13645                   *.la)
   13646                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   13647                     ;;
   13648                   *)
   13649                                         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$dep"
   13650                     LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
   13651                     ;;
   13652                 esac
   13653               done
   13654             fi
   13655           else
   13656                                                             if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
   13657               LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
   13658               LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
   13659             else
   13660               LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }-l:lib$name.$libext"
   13661               LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l:lib$name.$libext"
   13662             fi
   13663           fi
   13664         fi
   13665       fi
   13666     done
   13667   done
   13668   if test "X$rpathdirs" != "X"; then
   13669     if test -n "$hardcode_libdir_separator"; then
   13670                         alldirs=
   13671       for found_dir in $rpathdirs; do
   13672         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   13673       done
   13674             acl_save_libdir="$libdir"
   13675       libdir="$alldirs"
   13676       eval flag=\"$hardcode_libdir_flag_spec\"
   13677       libdir="$acl_save_libdir"
   13678       LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
   13679     else
   13680             for found_dir in $rpathdirs; do
   13681         acl_save_libdir="$libdir"
   13682         libdir="$found_dir"
   13683         eval flag=\"$hardcode_libdir_flag_spec\"
   13684         libdir="$acl_save_libdir"
   13685         LIBXXHASH="${LIBXXHASH}${LIBXXHASH:+ }$flag"
   13686       done
   13687     fi
   13688   fi
   13689   if test "X$ltrpathdirs" != "X"; then
   13690             for found_dir in $ltrpathdirs; do
   13691       LTLIBXXHASH="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
   13692     done
   13693   fi
   13694 
   13695 
   13696         ac_save_CPPFLAGS="$CPPFLAGS"
   13697 
   13698   for element in $INCXXHASH; do
   13699     haveit=
   13700     for x in $CPPFLAGS; do
   13701 
   13702   acl_save_prefix="$prefix"
   13703   prefix="$acl_final_prefix"
   13704   acl_save_exec_prefix="$exec_prefix"
   13705   exec_prefix="$acl_final_exec_prefix"
   13706   eval x=\"$x\"
   13707   exec_prefix="$acl_save_exec_prefix"
   13708   prefix="$acl_save_prefix"
   13709 
   13710       if test "X$x" = "X$element"; then
   13711         haveit=yes
   13712         break
   13713       fi
   13714     done
   13715     if test -z "$haveit"; then
   13716       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   13717     fi
   13718   done
   13719 
   13720 
   13721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
   13722 $as_echo_n "checking for libxxhash... " >&6; }
   13723 if ${ac_cv_libxxhash+:} false; then :
   13724   $as_echo_n "(cached) " >&6
   13725 else
   13726 
   13727     ac_save_LIBS="$LIBS"
   13728     LIBS="$LIBS $LIBXXHASH"
   13729     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13730 /* end confdefs.h.  */
   13731 #include <xxhash.h>
   13732 int
   13733 main ()
   13734 {
   13735 XXH32("foo", 3, 0);
   13736 
   13737   ;
   13738   return 0;
   13739 }
   13740 _ACEOF
   13741 if ac_fn_c_try_link "$LINENO"; then :
   13742   ac_cv_libxxhash=yes
   13743 else
   13744   ac_cv_libxxhash=no
   13745 fi
   13746 rm -f core conftest.err conftest.$ac_objext \
   13747     conftest$ac_exeext conftest.$ac_ext
   13748     LIBS="$ac_save_LIBS"
   13749 
   13750 fi
   13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
   13752 $as_echo "$ac_cv_libxxhash" >&6; }
   13753   if test "$ac_cv_libxxhash" = yes; then
   13754     HAVE_LIBXXHASH=yes
   13755 
   13756 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
   13757 
   13758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
   13759 $as_echo_n "checking how to link with libxxhash... " >&6; }
   13760     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
   13761 $as_echo "$LIBXXHASH" >&6; }
   13762   else
   13763     HAVE_LIBXXHASH=no
   13764             CPPFLAGS="$ac_save_CPPFLAGS"
   13765     LIBXXHASH=
   13766     LTLIBXXHASH=
   13767   fi
   13768 
   13769 
   13770 
   13771 
   13772 
   13773 
   13774     if test "$HAVE_LIBXXHASH" != yes; then
   13775       if test "$with_xxhash" = yes; then
   13776 	as_fn_error $? "xxhash is missing or unusable" "$LINENO" 5
   13777       fi
   13778     fi
   13779     if test "x$with_xxhash" = "xauto"; then
   13780       with_xxhash="$HAVE_LIBXXHASH"
   13781     fi
   13782   fi
   13783 
   13784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
   13785 $as_echo_n "checking whether to use xxhash... " >&6; }
   13786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
   13787 $as_echo "$with_xxhash" >&6; }
   13788 
   13789 
   13790 # Check whether we will enable the inclusion of unit tests when
   13791 # compiling GDB.
   13792 #
   13793 # The default value of this option changes depending whether we're on
   13794 # development mode (in which case it's "true") or not (in which case
   13795 # it's "false").  The $development variable is set by the GDB_AC_COMMON
   13796 # macro, which must therefore be used before GDB_AC_SELFTEST.
   13797 
   13798 if test "x$development" != xtrue && test "x$development" != xfalse; then :
   13799   as_fn_error $? "Invalid value for \$development, got \"$development\", expecting \"true\" or \"false\"." "$LINENO" 5
   13800 fi
   13801 
   13802 # Check whether --enable-unit-tests was given.
   13803 if test "${enable_unit_tests+set}" = set; then :
   13804   enableval=$enable_unit_tests; case "${enableval}" in
   13805   yes)  enable_unittests=true  ;;
   13806   no)   enable_unittests=false ;;
   13807   *)    as_fn_error $? "bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
   13808 esac
   13809 else
   13810   enable_unittests=$development
   13811 fi
   13812 
   13813 
   13814 if $enable_unittests; then
   13815 
   13816 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
   13817 
   13818 
   13819 fi
   13820 
   13821  if $enable_unittests; then
   13822   SELFTEST_TRUE=
   13823   SELFTEST_FALSE='#'
   13824 else
   13825   SELFTEST_TRUE='#'
   13826   SELFTEST_FALSE=
   13827 fi
   13828 
   13829 
   13830  if test x$ac_cv_func_pipe = xyes -o x$ac_cv_func_pipe2 = xyes ; then
   13831   HAVE_PIPE_OR_PIPE2_TRUE=
   13832   HAVE_PIPE_OR_PIPE2_FALSE='#'
   13833 else
   13834   HAVE_PIPE_OR_PIPE2_TRUE='#'
   13835   HAVE_PIPE_OR_PIPE2_FALSE=
   13836 fi
   13837 
   13838 
   13839 for ac_func in  \
   13840     waitpid \
   13841     wait
   13842 
   13843 do :
   13844   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   13845 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   13846 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
   13847   cat >>confdefs.h <<_ACEOF
   13848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   13849 _ACEOF
   13850 
   13851 fi
   13852 done
   13853 
   13854 
   13855 # Check the return and argument types of ptrace.
   13856 
   13857 
   13858 for ac_header in sys/ptrace.h ptrace.h
   13859 do :
   13860   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   13861 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   13862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
   13863   cat >>confdefs.h <<_ACEOF
   13864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   13865 _ACEOF
   13866 
   13867 fi
   13868 
   13869 done
   13870 
   13871 
   13872 gdb_ptrace_headers='
   13873 #include <sys/types.h>
   13874 #if HAVE_SYS_PTRACE_H
   13875 # include <sys/ptrace.h>
   13876 #endif
   13877 #if HAVE_UNISTD_H
   13878 # include <unistd.h>
   13879 #endif
   13880 '
   13881 
   13882 # Check return type.  Varargs (used on GNU/Linux) conflict with the
   13883 # empty argument list, so check for that explicitly.
   13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
   13885 $as_echo_n "checking return type of ptrace... " >&6; }
   13886 if ${gdb_cv_func_ptrace_ret+:} false; then :
   13887   $as_echo_n "(cached) " >&6
   13888 else
   13889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13890 /* end confdefs.h.  */
   13891 $gdb_ptrace_headers
   13892 int
   13893 main ()
   13894 {
   13895 extern long ptrace (enum __ptrace_request, ...);
   13896 
   13897   ;
   13898   return 0;
   13899 }
   13900 _ACEOF
   13901 if ac_fn_c_try_compile "$LINENO"; then :
   13902   gdb_cv_func_ptrace_ret='long'
   13903 else
   13904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13905 /* end confdefs.h.  */
   13906 $gdb_ptrace_headers
   13907 int
   13908 main ()
   13909 {
   13910 extern int ptrace ();
   13911 
   13912   ;
   13913   return 0;
   13914 }
   13915 _ACEOF
   13916 if ac_fn_c_try_compile "$LINENO"; then :
   13917   gdb_cv_func_ptrace_ret='int'
   13918 else
   13919   gdb_cv_func_ptrace_ret='long'
   13920 
   13921 fi
   13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13923 
   13924 fi
   13925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13926 
   13927 fi
   13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
   13929 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
   13930 
   13931 
   13932 cat >>confdefs.h <<_ACEOF
   13933 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
   13934 _ACEOF
   13935 
   13936 
   13937 # Check argument types.
   13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
   13939 $as_echo_n "checking types of arguments for ptrace... " >&6; }
   13940 if ${gdb_cv_func_ptrace_args+:} false; then :
   13941   $as_echo_n "(cached) " >&6
   13942 else
   13943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13944 /* end confdefs.h.  */
   13945 $gdb_ptrace_headers
   13946 int
   13947 main ()
   13948 {
   13949 extern long ptrace (enum __ptrace_request, ...);
   13950 
   13951   ;
   13952   return 0;
   13953 }
   13954 _ACEOF
   13955 if ac_fn_c_try_compile "$LINENO"; then :
   13956   gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
   13957 else
   13958   for gdb_arg1 in 'int' 'long'; do
   13959 	for gdb_arg2 in 'pid_t' 'int' 'long'; do
   13960 	  for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
   13961 	    for gdb_arg4 in 'int' 'long' 'void *'; do
   13962 	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13963 /* end confdefs.h.  */
   13964 $gdb_ptrace_headers
   13965 int
   13966 main ()
   13967 {
   13968 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
   13969 
   13970   ;
   13971   return 0;
   13972 }
   13973 _ACEOF
   13974 if ac_fn_c_try_compile "$LINENO"; then :
   13975   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
   13976 		 break 4;
   13977 
   13978 fi
   13979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   13980 
   13981 	      for gdb_arg5 in 'int *' 'int' 'long'; do
   13982 		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13983 /* end confdefs.h.  */
   13984 $gdb_ptrace_headers
   13985 int
   13986 main ()
   13987 {
   13988 extern $gdb_cv_func_ptrace_ret ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
   13989 
   13990   ;
   13991   return 0;
   13992 }
   13993 _ACEOF
   13994 if ac_fn_c_try_compile "$LINENO"; then :
   13995   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
   13996 		   break 5;
   13997 
   13998 fi
   13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14000 	      done
   14001 	    done
   14002 	  done
   14003 	done
   14004       done
   14005       # Provide a safe default value.
   14006       : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   14007 
   14008 fi
   14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14010 
   14011 fi
   14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
   14013 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
   14014 
   14015 ac_save_IFS=$IFS; IFS=','
   14016 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
   14017 IFS=$ac_save_IFS
   14018 shift
   14019 
   14020 cat >>confdefs.h <<_ACEOF
   14021 #define PTRACE_TYPE_ARG1 $1
   14022 _ACEOF
   14023 
   14024 
   14025 cat >>confdefs.h <<_ACEOF
   14026 #define PTRACE_TYPE_ARG3 $3
   14027 _ACEOF
   14028 
   14029 
   14030 cat >>confdefs.h <<_ACEOF
   14031 #define PTRACE_TYPE_ARG4 $4
   14032 _ACEOF
   14033 
   14034 if test -n "$5"; then
   14035 
   14036 cat >>confdefs.h <<_ACEOF
   14037 #define PTRACE_TYPE_ARG5 $5
   14038 _ACEOF
   14039 
   14040 fi
   14041 
   14042 
   14043 # Detect support warning flags.
   14044 
   14045 
   14046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking the compiler type" >&5
   14047 $as_echo_n "checking the compiler type... " >&6; }
   14048 if ${gdb_cv_compiler_type+:} false; then :
   14049   $as_echo_n "(cached) " >&6
   14050 else
   14051   gdb_cv_compiler_type=unknown
   14052   if test "$gdb_cv_compiler_type" = unknown; then
   14053      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14054 /* end confdefs.h.  */
   14055 
   14056 int
   14057 main ()
   14058 {
   14059 
   14060                           #if !defined __GNUC__ || defined __clang__
   14061                           #error not gcc
   14062                           #endif
   14063 
   14064   ;
   14065   return 0;
   14066 }
   14067 _ACEOF
   14068 if ac_fn_c_try_compile "$LINENO"; then :
   14069   gdb_cv_compiler_type=gcc
   14070 fi
   14071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14072   fi
   14073 
   14074   if test "$gdb_cv_compiler_type" = unknown; then
   14075      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14076 /* end confdefs.h.  */
   14077 
   14078 int
   14079 main ()
   14080 {
   14081 
   14082                           #ifndef __clang__
   14083                           #error not clang
   14084                           #endif
   14085 
   14086   ;
   14087   return 0;
   14088 }
   14089 _ACEOF
   14090 if ac_fn_c_try_compile "$LINENO"; then :
   14091   gdb_cv_compiler_type=clang
   14092 fi
   14093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14094   fi
   14095 
   14096 fi
   14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_compiler_type" >&5
   14098 $as_echo "$gdb_cv_compiler_type" >&6; }
   14099 
   14100  GDB_COMPILER_TYPE="$gdb_cv_compiler_type"
   14101 
   14102 
   14103 # Check whether --enable-werror was given.
   14104 if test "${enable_werror+set}" = set; then :
   14105   enableval=$enable_werror; case "${enableval}" in
   14106      yes | y) ERROR_ON_WARNING="yes" ;;
   14107      no | n)  ERROR_ON_WARNING="no" ;;
   14108      *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
   14109    esac
   14110 fi
   14111 
   14112 
   14113 # Enable -Werror by default when using gcc.  Turn it off for releases.
   14114 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
   14115     ERROR_ON_WARNING=yes
   14116 fi
   14117 
   14118 WERROR_CFLAGS=""
   14119 if test "${ERROR_ON_WARNING}" = yes ; then
   14120     WERROR_CFLAGS="-Werror"
   14121 fi
   14122 
   14123 # The options we'll try to enable.
   14124 build_warnings=" \
   14125 -Wall \
   14126 -Wdeprecated-copy \
   14127 -Wdeprecated-copy-dtor \
   14128 -Wduplicated-cond \
   14129 -Wempty-body \
   14130 -Wimplicit-fallthrough=5 \
   14131 -Wmissing-declarations \
   14132 -Wno-char-subscripts \
   14133 -Wno-error=deprecated-register \
   14134 -Wno-mismatched-tags \
   14135 -Wno-sign-compare -Wno-error=maybe-uninitialized \
   14136 -Wno-switch \
   14137 -Wno-unused \
   14138 -Wpointer-arith \
   14139 -Wredundant-move \
   14140 -Wshadow=local \
   14141 -Wstrict-null-sentinel \
   14142 -Wsuggest-override \
   14143 -Wunused-but-set-parameter \
   14144 -Wunused-but-set-variable \
   14145 -Wunused-const-variable=1 \
   14146 -Wunused-function \
   14147 -Wunused-label \
   14148 -Wunused-lambda-capture \
   14149 -Wunused-local-typedefs \
   14150 -Wunused-member-function \
   14151 -Wunused-private-field \
   14152 -Wunused-value \
   14153 -Wunused-variable \
   14154 -Wvla \
   14155 "
   14156 
   14157 # The -Wmissing-prototypes flag will be accepted by GCC, but results
   14158 # in a warning being printed about the flag not being valid for C++,
   14159 # this is something to do with using ccache, and argument ordering.
   14160 if test "$GDB_COMPILER_TYPE" != gcc; then
   14161   build_warnings="$build_warnings -Wmissing-prototypes"
   14162 fi
   14163 
   14164 case "${host}" in
   14165   *-*-mingw32*)
   14166     # Enable -Wno-format by default when using gcc on mingw since many
   14167     # GCC versions complain about %I64.
   14168     build_warnings="$build_warnings -Wno-format" ;;
   14169   *-*-solaris*)
   14170     # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
   14171     # doesn't understand.
   14172     build_warnings="$build_warnings -Wno-unknown-pragmas"
   14173     # Solaris 11 <unistd.h> marks vfork deprecated.
   14174     build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
   14175   *)
   14176     # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
   14177     # but there's a special case for this below.
   14178     build_warnings="$build_warnings -Wformat-nonliteral" ;;
   14179 esac
   14180 
   14181 # Check whether --enable-build-warnings was given.
   14182 if test "${enable_build_warnings+set}" = set; then :
   14183   enableval=$enable_build_warnings; case "${enableval}" in
   14184   yes)	;;
   14185   no)	build_warnings="-w";;
   14186   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   14187         build_warnings="${build_warnings} ${t}";;
   14188   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   14189         build_warnings="${t} ${build_warnings}";;
   14190   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   14191 esac
   14192 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   14193   echo "Setting compiler warning flags = $build_warnings" 6>&1
   14194 fi
   14195 fi
   14196 # Check whether --enable-gdb-build-warnings was given.
   14197 if test "${enable_gdb_build_warnings+set}" = set; then :
   14198   enableval=$enable_gdb_build_warnings; case "${enableval}" in
   14199   yes)	;;
   14200   no)	build_warnings="-w";;
   14201   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   14202         build_warnings="${build_warnings} ${t}";;
   14203   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   14204         build_warnings="${t} ${build_warnings}";;
   14205   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   14206 esac
   14207 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   14208   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
   14209 fi
   14210 fi
   14211 
   14212 # The set of warnings supported by a C++ compiler is not the same as
   14213 # of the C compiler.
   14214 ac_ext=cpp
   14215 ac_cpp='$CXXCPP $CPPFLAGS'
   14216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
   14219 
   14220 
   14221 WARN_CFLAGS=""
   14222 if test "x${build_warnings}" != x -a "x$GCC" = xyes
   14223 then
   14224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
   14225 $as_echo_n "checking compiler warning flags... " >&6; }
   14226     # Separate out the -Werror flag as some files just cannot be
   14227     # compiled with it enabled.
   14228     for w in ${build_warnings}; do
   14229 	# GCC does not complain about -Wno-unknown-warning.  Invert
   14230 	# and test -Wunknown-warning instead.
   14231 	case $w in
   14232 	-Wno-*)
   14233 		wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
   14234         -Wformat-nonliteral)
   14235 		# gcc requires -Wformat before -Wformat-nonliteral
   14236 		# will work, so stick them together.
   14237 		w="-Wformat $w"
   14238 		wtest="$w"
   14239 		;;
   14240 	*)
   14241 		wtest=$w ;;
   14242 	esac
   14243 
   14244 	case $w in
   14245 	-Werr*) WERROR_CFLAGS=-Werror ;;
   14246 	*)
   14247 	    # Check whether GCC accepts it.
   14248 	    saved_CFLAGS="$CFLAGS"
   14249 	    CFLAGS="$CFLAGS -Werror $wtest"
   14250 	    saved_CXXFLAGS="$CXXFLAGS"
   14251 	    CXXFLAGS="$CXXFLAGS -Werror $wtest"
   14252 	    if test "x$w" = "x-Wunused-variable"; then
   14253 	      # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
   14254 	      # fixed in GCC 4.9.  This test is derived from the gdb
   14255 	      # source code that triggered this bug in GCC.
   14256 	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14257 /* end confdefs.h.  */
   14258 struct scoped_restore_base {};
   14259 		    struct scoped_restore_tmpl : public scoped_restore_base {
   14260 		      ~scoped_restore_tmpl() {}
   14261 		    };
   14262 int
   14263 main ()
   14264 {
   14265 const scoped_restore_base &b = scoped_restore_tmpl();
   14266 
   14267   ;
   14268   return 0;
   14269 }
   14270 _ACEOF
   14271 if ac_fn_cxx_try_compile "$LINENO"; then :
   14272   WARN_CFLAGS="${WARN_CFLAGS} $w"
   14273 fi
   14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14275 	    else
   14276 	      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14277 /* end confdefs.h.  */
   14278 
   14279 int
   14280 main ()
   14281 {
   14282 
   14283   ;
   14284   return 0;
   14285 }
   14286 _ACEOF
   14287 if ac_fn_cxx_try_compile "$LINENO"; then :
   14288   WARN_CFLAGS="${WARN_CFLAGS} $w"
   14289 fi
   14290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   14291 	    fi
   14292 	    CFLAGS="$saved_CFLAGS"
   14293 	    CXXFLAGS="$saved_CXXFLAGS"
   14294 	esac
   14295     done
   14296     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
   14297 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
   14298 fi
   14299 
   14300 
   14301 
   14302 ac_ext=c
   14303 ac_cpp='$CPP $CPPFLAGS'
   14304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   14305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   14306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   14307 
   14308 
   14309 
   14310 # Set the 'development' global.
   14311 . $srcdir/../bfd/development.sh
   14312 
   14313 if test "$development" = true ; then
   14314 
   14315 $as_echo "#define DEVELOPMENT 1" >>confdefs.h
   14316 
   14317 fi
   14318 
   14319 case ${host} in
   14320   *mingw32*)
   14321 
   14322 $as_echo "#define USE_WIN32API 1" >>confdefs.h
   14323 
   14324     ;;
   14325 esac
   14326 
   14327 CONFIG_STATUS_DEPENDENCIES='$(srcdir)/../bfd/development.sh'
   14328 
   14329 
   14330 ac_config_files="$ac_config_files Makefile"
   14331 
   14332 cat >confcache <<\_ACEOF
   14333 # This file is a shell script that caches the results of configure
   14334 # tests run on this system so they can be shared between configure
   14335 # scripts and configure runs, see configure's option --config-cache.
   14336 # It is not useful on other systems.  If it contains results you don't
   14337 # want to keep, you may remove or edit it.
   14338 #
   14339 # config.status only pays attention to the cache file if you give it
   14340 # the --recheck option to rerun configure.
   14341 #
   14342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   14343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   14344 # following values.
   14345 
   14346 _ACEOF
   14347 
   14348 # The following way of writing the cache mishandles newlines in values,
   14349 # but we know of no workaround that is simple, portable, and efficient.
   14350 # So, we kill variables containing newlines.
   14351 # Ultrix sh set writes to stderr and can't be redirected directly,
   14352 # and sets the high bit in the cache file unless we assign to the vars.
   14353 (
   14354   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   14355     eval ac_val=\$$ac_var
   14356     case $ac_val in #(
   14357     *${as_nl}*)
   14358       case $ac_var in #(
   14359       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   14360 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   14361       esac
   14362       case $ac_var in #(
   14363       _ | IFS | as_nl) ;; #(
   14364       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   14365       *) { eval $ac_var=; unset $ac_var;} ;;
   14366       esac ;;
   14367     esac
   14368   done
   14369 
   14370   (set) 2>&1 |
   14371     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   14372     *${as_nl}ac_space=\ *)
   14373       # `set' does not quote correctly, so add quotes: double-quote
   14374       # substitution turns \\\\ into \\, and sed turns \\ into \.
   14375       sed -n \
   14376 	"s/'/'\\\\''/g;
   14377 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   14378       ;; #(
   14379     *)
   14380       # `set' quotes correctly as required by POSIX, so do not add quotes.
   14381       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   14382       ;;
   14383     esac |
   14384     sort
   14385 ) |
   14386   sed '
   14387      /^ac_cv_env_/b end
   14388      t clear
   14389      :clear
   14390      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   14391      t end
   14392      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   14393      :end' >>confcache
   14394 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   14395   if test -w "$cache_file"; then
   14396     if test "x$cache_file" != "x/dev/null"; then
   14397       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   14398 $as_echo "$as_me: updating cache $cache_file" >&6;}
   14399       if test ! -f "$cache_file" || test -h "$cache_file"; then
   14400 	cat confcache >"$cache_file"
   14401       else
   14402         case $cache_file in #(
   14403         */* | ?:*)
   14404 	  mv -f confcache "$cache_file"$$ &&
   14405 	  mv -f "$cache_file"$$ "$cache_file" ;; #(
   14406         *)
   14407 	  mv -f confcache "$cache_file" ;;
   14408 	esac
   14409       fi
   14410     fi
   14411   else
   14412     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   14413 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   14414   fi
   14415 fi
   14416 rm -f confcache
   14417 
   14418 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   14419 # Let make expand exec_prefix.
   14420 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   14421 
   14422 DEFS=-DHAVE_CONFIG_H
   14423 
   14424 ac_libobjs=
   14425 ac_ltlibobjs=
   14426 U=
   14427 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   14428   # 1. Remove the extension, and $U if already installed.
   14429   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   14430   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   14431   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   14432   #    will be set to the directory where LIBOBJS objects are built.
   14433   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   14434   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   14435 done
   14436 LIBOBJS=$ac_libobjs
   14437 
   14438 LTLIBOBJS=$ac_ltlibobjs
   14439 
   14440 
   14441 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   14442   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
   14443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   14444 fi
   14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
   14446 $as_echo_n "checking that generated files are newer than configure... " >&6; }
   14447    if test -n "$am_sleep_pid"; then
   14448      # Hide warnings about reused PIDs.
   14449      wait $am_sleep_pid 2>/dev/null
   14450    fi
   14451    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
   14452 $as_echo "done" >&6; }
   14453  if test -n "$EXEEXT"; then
   14454   am__EXEEXT_TRUE=
   14455   am__EXEEXT_FALSE='#'
   14456 else
   14457   am__EXEEXT_TRUE='#'
   14458   am__EXEEXT_FALSE=
   14459 fi
   14460 
   14461 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
   14462   as_fn_error $? "conditional \"AMDEP\" was never defined.
   14463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   14464 fi
   14465 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
   14466   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
   14467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   14468 fi
   14469 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
   14470   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
   14471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   14472 fi
   14473 if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
   14474   as_fn_error $? "conditional \"SELFTEST\" was never defined.
   14475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   14476 fi
   14477 if test -z "${HAVE_PIPE_OR_PIPE2_TRUE}" && test -z "${HAVE_PIPE_OR_PIPE2_FALSE}"; then
   14478   as_fn_error $? "conditional \"HAVE_PIPE_OR_PIPE2\" was never defined.
   14479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   14480 fi
   14481 
   14482 : "${CONFIG_STATUS=./config.status}"
   14483 ac_write_fail=0
   14484 ac_clean_files_save=$ac_clean_files
   14485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   14486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   14487 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   14488 as_write_fail=0
   14489 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   14490 #! $SHELL
   14491 # Generated by $as_me.
   14492 # Run this file to recreate the current configuration.
   14493 # Compiler output produced by configure, useful for debugging
   14494 # configure, is in config.log if it exists.
   14495 
   14496 debug=false
   14497 ac_cs_recheck=false
   14498 ac_cs_silent=false
   14499 
   14500 SHELL=\${CONFIG_SHELL-$SHELL}
   14501 export SHELL
   14502 _ASEOF
   14503 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   14504 ## -------------------- ##
   14505 ## M4sh Initialization. ##
   14506 ## -------------------- ##
   14507 
   14508 # Be more Bourne compatible
   14509 DUALCASE=1; export DUALCASE # for MKS sh
   14510 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   14511   emulate sh
   14512   NULLCMD=:
   14513   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   14514   # is contrary to our usage.  Disable this feature.
   14515   alias -g '${1+"$@"}'='"$@"'
   14516   setopt NO_GLOB_SUBST
   14517 else
   14518   case `(set -o) 2>/dev/null` in #(
   14519   *posix*) :
   14520     set -o posix ;; #(
   14521   *) :
   14522      ;;
   14523 esac
   14524 fi
   14525 
   14526 
   14527 as_nl='
   14528 '
   14529 export as_nl
   14530 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   14531 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   14532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   14533 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   14534 # Prefer a ksh shell builtin over an external printf program on Solaris,
   14535 # but without wasting forks for bash or zsh.
   14536 if test -z "$BASH_VERSION$ZSH_VERSION" \
   14537     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   14538   as_echo='print -r --'
   14539   as_echo_n='print -rn --'
   14540 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   14541   as_echo='printf %s\n'
   14542   as_echo_n='printf %s'
   14543 else
   14544   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   14545     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   14546     as_echo_n='/usr/ucb/echo -n'
   14547   else
   14548     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   14549     as_echo_n_body='eval
   14550       arg=$1;
   14551       case $arg in #(
   14552       *"$as_nl"*)
   14553 	expr "X$arg" : "X\\(.*\\)$as_nl";
   14554 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   14555       esac;
   14556       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   14557     '
   14558     export as_echo_n_body
   14559     as_echo_n='sh -c $as_echo_n_body as_echo'
   14560   fi
   14561   export as_echo_body
   14562   as_echo='sh -c $as_echo_body as_echo'
   14563 fi
   14564 
   14565 # The user is always right.
   14566 if test "${PATH_SEPARATOR+set}" != set; then
   14567   PATH_SEPARATOR=:
   14568   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   14569     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   14570       PATH_SEPARATOR=';'
   14571   }
   14572 fi
   14573 
   14574 
   14575 # IFS
   14576 # We need space, tab and new line, in precisely that order.  Quoting is
   14577 # there to prevent editors from complaining about space-tab.
   14578 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   14579 # splitting by setting IFS to empty value.)
   14580 IFS=" ""	$as_nl"
   14581 
   14582 # Find who we are.  Look in the path if we contain no directory separator.
   14583 as_myself=
   14584 case $0 in #((
   14585   *[\\/]* ) as_myself=$0 ;;
   14586   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   14587 for as_dir in $PATH
   14588 do
   14589   IFS=$as_save_IFS
   14590   test -z "$as_dir" && as_dir=.
   14591     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   14592   done
   14593 IFS=$as_save_IFS
   14594 
   14595      ;;
   14596 esac
   14597 # We did not find ourselves, most probably we were run as `sh COMMAND'
   14598 # in which case we are not to be found in the path.
   14599 if test "x$as_myself" = x; then
   14600   as_myself=$0
   14601 fi
   14602 if test ! -f "$as_myself"; then
   14603   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   14604   exit 1
   14605 fi
   14606 
   14607 # Unset variables that we do not need and which cause bugs (e.g. in
   14608 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   14609 # suppresses any "Segmentation fault" message there.  '((' could
   14610 # trigger a bug in pdksh 5.2.14.
   14611 for as_var in BASH_ENV ENV MAIL MAILPATH
   14612 do eval test x\${$as_var+set} = xset \
   14613   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   14614 done
   14615 PS1='$ '
   14616 PS2='> '
   14617 PS4='+ '
   14618 
   14619 # NLS nuisances.
   14620 LC_ALL=C
   14621 export LC_ALL
   14622 LANGUAGE=C
   14623 export LANGUAGE
   14624 
   14625 # CDPATH.
   14626 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   14627 
   14628 
   14629 # as_fn_error STATUS ERROR [LINENO LOG_FD]
   14630 # ----------------------------------------
   14631 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   14632 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   14633 # script with STATUS, using 1 if that was 0.
   14634 as_fn_error ()
   14635 {
   14636   as_status=$1; test $as_status -eq 0 && as_status=1
   14637   if test "$4"; then
   14638     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   14639     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
   14640   fi
   14641   $as_echo "$as_me: error: $2" >&2
   14642   as_fn_exit $as_status
   14643 } # as_fn_error
   14644 
   14645 
   14646 # as_fn_set_status STATUS
   14647 # -----------------------
   14648 # Set $? to STATUS, without forking.
   14649 as_fn_set_status ()
   14650 {
   14651   return $1
   14652 } # as_fn_set_status
   14653 
   14654 # as_fn_exit STATUS
   14655 # -----------------
   14656 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   14657 as_fn_exit ()
   14658 {
   14659   set +e
   14660   as_fn_set_status $1
   14661   exit $1
   14662 } # as_fn_exit
   14663 
   14664 # as_fn_unset VAR
   14665 # ---------------
   14666 # Portably unset VAR.
   14667 as_fn_unset ()
   14668 {
   14669   { eval $1=; unset $1;}
   14670 }
   14671 as_unset=as_fn_unset
   14672 # as_fn_append VAR VALUE
   14673 # ----------------------
   14674 # Append the text in VALUE to the end of the definition contained in VAR. Take
   14675 # advantage of any shell optimizations that allow amortized linear growth over
   14676 # repeated appends, instead of the typical quadratic growth present in naive
   14677 # implementations.
   14678 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   14679   eval 'as_fn_append ()
   14680   {
   14681     eval $1+=\$2
   14682   }'
   14683 else
   14684   as_fn_append ()
   14685   {
   14686     eval $1=\$$1\$2
   14687   }
   14688 fi # as_fn_append
   14689 
   14690 # as_fn_arith ARG...
   14691 # ------------------
   14692 # Perform arithmetic evaluation on the ARGs, and store the result in the
   14693 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   14694 # must be portable across $(()) and expr.
   14695 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   14696   eval 'as_fn_arith ()
   14697   {
   14698     as_val=$(( $* ))
   14699   }'
   14700 else
   14701   as_fn_arith ()
   14702   {
   14703     as_val=`expr "$@" || test $? -eq 1`
   14704   }
   14705 fi # as_fn_arith
   14706 
   14707 
   14708 if expr a : '\(a\)' >/dev/null 2>&1 &&
   14709    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   14710   as_expr=expr
   14711 else
   14712   as_expr=false
   14713 fi
   14714 
   14715 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   14716   as_basename=basename
   14717 else
   14718   as_basename=false
   14719 fi
   14720 
   14721 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   14722   as_dirname=dirname
   14723 else
   14724   as_dirname=false
   14725 fi
   14726 
   14727 as_me=`$as_basename -- "$0" ||
   14728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   14729 	 X"$0" : 'X\(//\)$' \| \
   14730 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   14731 $as_echo X/"$0" |
   14732     sed '/^.*\/\([^/][^/]*\)\/*$/{
   14733 	    s//\1/
   14734 	    q
   14735 	  }
   14736 	  /^X\/\(\/\/\)$/{
   14737 	    s//\1/
   14738 	    q
   14739 	  }
   14740 	  /^X\/\(\/\).*/{
   14741 	    s//\1/
   14742 	    q
   14743 	  }
   14744 	  s/.*/./; q'`
   14745 
   14746 # Avoid depending upon Character Ranges.
   14747 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   14748 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   14749 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   14750 as_cr_digits='0123456789'
   14751 as_cr_alnum=$as_cr_Letters$as_cr_digits
   14752 
   14753 ECHO_C= ECHO_N= ECHO_T=
   14754 case `echo -n x` in #(((((
   14755 -n*)
   14756   case `echo 'xy\c'` in
   14757   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   14758   xy)  ECHO_C='\c';;
   14759   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   14760        ECHO_T='	';;
   14761   esac;;
   14762 *)
   14763   ECHO_N='-n';;
   14764 esac
   14765 
   14766 rm -f conf$$ conf$$.exe conf$$.file
   14767 if test -d conf$$.dir; then
   14768   rm -f conf$$.dir/conf$$.file
   14769 else
   14770   rm -f conf$$.dir
   14771   mkdir conf$$.dir 2>/dev/null
   14772 fi
   14773 if (echo >conf$$.file) 2>/dev/null; then
   14774   if ln -s conf$$.file conf$$ 2>/dev/null; then
   14775     as_ln_s='ln -s'
   14776     # ... but there are two gotchas:
   14777     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   14778     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   14779     # In both cases, we have to default to `cp -pR'.
   14780     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   14781       as_ln_s='cp -pR'
   14782   elif ln conf$$.file conf$$ 2>/dev/null; then
   14783     as_ln_s=ln
   14784   else
   14785     as_ln_s='cp -pR'
   14786   fi
   14787 else
   14788   as_ln_s='cp -pR'
   14789 fi
   14790 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   14791 rmdir conf$$.dir 2>/dev/null
   14792 
   14793 
   14794 # as_fn_mkdir_p
   14795 # -------------
   14796 # Create "$as_dir" as a directory, including parents if necessary.
   14797 as_fn_mkdir_p ()
   14798 {
   14799 
   14800   case $as_dir in #(
   14801   -*) as_dir=./$as_dir;;
   14802   esac
   14803   test -d "$as_dir" || eval $as_mkdir_p || {
   14804     as_dirs=
   14805     while :; do
   14806       case $as_dir in #(
   14807       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   14808       *) as_qdir=$as_dir;;
   14809       esac
   14810       as_dirs="'$as_qdir' $as_dirs"
   14811       as_dir=`$as_dirname -- "$as_dir" ||
   14812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   14813 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   14814 	 X"$as_dir" : 'X\(//\)$' \| \
   14815 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   14816 $as_echo X"$as_dir" |
   14817     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   14818 	    s//\1/
   14819 	    q
   14820 	  }
   14821 	  /^X\(\/\/\)[^/].*/{
   14822 	    s//\1/
   14823 	    q
   14824 	  }
   14825 	  /^X\(\/\/\)$/{
   14826 	    s//\1/
   14827 	    q
   14828 	  }
   14829 	  /^X\(\/\).*/{
   14830 	    s//\1/
   14831 	    q
   14832 	  }
   14833 	  s/.*/./; q'`
   14834       test -d "$as_dir" && break
   14835     done
   14836     test -z "$as_dirs" || eval "mkdir $as_dirs"
   14837   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
   14838 
   14839 
   14840 } # as_fn_mkdir_p
   14841 if mkdir -p . 2>/dev/null; then
   14842   as_mkdir_p='mkdir -p "$as_dir"'
   14843 else
   14844   test -d ./-p && rmdir ./-p
   14845   as_mkdir_p=false
   14846 fi
   14847 
   14848 
   14849 # as_fn_executable_p FILE
   14850 # -----------------------
   14851 # Test if FILE is an executable regular file.
   14852 as_fn_executable_p ()
   14853 {
   14854   test -f "$1" && test -x "$1"
   14855 } # as_fn_executable_p
   14856 as_test_x='test -x'
   14857 as_executable_p=as_fn_executable_p
   14858 
   14859 # Sed expression to map a string onto a valid CPP name.
   14860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   14861 
   14862 # Sed expression to map a string onto a valid variable name.
   14863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   14864 
   14865 
   14866 exec 6>&1
   14867 ## ----------------------------------- ##
   14868 ## Main body of $CONFIG_STATUS script. ##
   14869 ## ----------------------------------- ##
   14870 _ASEOF
   14871 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   14872 
   14873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14874 # Save the log message, to keep $0 and so on meaningful, and to
   14875 # report actual input values of CONFIG_FILES etc. instead of their
   14876 # values after options handling.
   14877 ac_log="
   14878 This file was extended by gdbsupport $as_me 1.0, which was
   14879 generated by GNU Autoconf 2.69.  Invocation command line was
   14880 
   14881   CONFIG_FILES    = $CONFIG_FILES
   14882   CONFIG_HEADERS  = $CONFIG_HEADERS
   14883   CONFIG_LINKS    = $CONFIG_LINKS
   14884   CONFIG_COMMANDS = $CONFIG_COMMANDS
   14885   $ $0 $@
   14886 
   14887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   14888 "
   14889 
   14890 _ACEOF
   14891 
   14892 case $ac_config_files in *"
   14893 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   14894 esac
   14895 
   14896 case $ac_config_headers in *"
   14897 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   14898 esac
   14899 
   14900 
   14901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   14902 # Files that config.status was made for.
   14903 config_files="$ac_config_files"
   14904 config_headers="$ac_config_headers"
   14905 config_commands="$ac_config_commands"
   14906 
   14907 _ACEOF
   14908 
   14909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14910 ac_cs_usage="\
   14911 \`$as_me' instantiates files and other configuration actions
   14912 from templates according to the current configuration.  Unless the files
   14913 and actions are specified as TAGs, all are instantiated by default.
   14914 
   14915 Usage: $0 [OPTION]... [TAG]...
   14916 
   14917   -h, --help       print this help, then exit
   14918   -V, --version    print version number and configuration settings, then exit
   14919       --config     print configuration, then exit
   14920   -q, --quiet, --silent
   14921                    do not print progress messages
   14922   -d, --debug      don't remove temporary files
   14923       --recheck    update $as_me by reconfiguring in the same conditions
   14924       --file=FILE[:TEMPLATE]
   14925                    instantiate the configuration file FILE
   14926       --header=FILE[:TEMPLATE]
   14927                    instantiate the configuration header FILE
   14928 
   14929 Configuration files:
   14930 $config_files
   14931 
   14932 Configuration headers:
   14933 $config_headers
   14934 
   14935 Configuration commands:
   14936 $config_commands
   14937 
   14938 Report bugs to the package provider."
   14939 
   14940 _ACEOF
   14941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   14942 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
   14943 ac_cs_version="\\
   14944 gdbsupport config.status 1.0
   14945 configured by $0, generated by GNU Autoconf 2.69,
   14946   with options \\"\$ac_cs_config\\"
   14947 
   14948 Copyright (C) 2012 Free Software Foundation, Inc.
   14949 This config.status script is free software; the Free Software Foundation
   14950 gives unlimited permission to copy, distribute and modify it."
   14951 
   14952 ac_pwd='$ac_pwd'
   14953 srcdir='$srcdir'
   14954 INSTALL='$INSTALL'
   14955 MKDIR_P='$MKDIR_P'
   14956 AWK='$AWK'
   14957 test -n "\$AWK" || AWK=awk
   14958 _ACEOF
   14959 
   14960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   14961 # The default lists apply if the user does not specify any file.
   14962 ac_need_defaults=:
   14963 while test $# != 0
   14964 do
   14965   case $1 in
   14966   --*=?*)
   14967     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   14968     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   14969     ac_shift=:
   14970     ;;
   14971   --*=)
   14972     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   14973     ac_optarg=
   14974     ac_shift=:
   14975     ;;
   14976   *)
   14977     ac_option=$1
   14978     ac_optarg=$2
   14979     ac_shift=shift
   14980     ;;
   14981   esac
   14982 
   14983   case $ac_option in
   14984   # Handling of the options.
   14985   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   14986     ac_cs_recheck=: ;;
   14987   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   14988     $as_echo "$ac_cs_version"; exit ;;
   14989   --config | --confi | --conf | --con | --co | --c )
   14990     $as_echo "$ac_cs_config"; exit ;;
   14991   --debug | --debu | --deb | --de | --d | -d )
   14992     debug=: ;;
   14993   --file | --fil | --fi | --f )
   14994     $ac_shift
   14995     case $ac_optarg in
   14996     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   14997     '') as_fn_error $? "missing file argument" ;;
   14998     esac
   14999     as_fn_append CONFIG_FILES " '$ac_optarg'"
   15000     ac_need_defaults=false;;
   15001   --header | --heade | --head | --hea )
   15002     $ac_shift
   15003     case $ac_optarg in
   15004     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   15005     esac
   15006     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   15007     ac_need_defaults=false;;
   15008   --he | --h)
   15009     # Conflict between --help and --header
   15010     as_fn_error $? "ambiguous option: \`$1'
   15011 Try \`$0 --help' for more information.";;
   15012   --help | --hel | -h )
   15013     $as_echo "$ac_cs_usage"; exit ;;
   15014   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   15015   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   15016     ac_cs_silent=: ;;
   15017 
   15018   # This is an error.
   15019   -*) as_fn_error $? "unrecognized option: \`$1'
   15020 Try \`$0 --help' for more information." ;;
   15021 
   15022   *) as_fn_append ac_config_targets " $1"
   15023      ac_need_defaults=false ;;
   15024 
   15025   esac
   15026   shift
   15027 done
   15028 
   15029 ac_configure_extra_args=
   15030 
   15031 if $ac_cs_silent; then
   15032   exec 6>/dev/null
   15033   ac_configure_extra_args="$ac_configure_extra_args --silent"
   15034 fi
   15035 
   15036 _ACEOF
   15037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15038 if \$ac_cs_recheck; then
   15039   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   15040   shift
   15041   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   15042   CONFIG_SHELL='$SHELL'
   15043   export CONFIG_SHELL
   15044   exec "\$@"
   15045 fi
   15046 
   15047 _ACEOF
   15048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15049 exec 5>>config.log
   15050 {
   15051   echo
   15052   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   15053 ## Running $as_me. ##
   15054 _ASBOX
   15055   $as_echo "$ac_log"
   15056 } >&5
   15057 
   15058 _ACEOF
   15059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15060 #
   15061 # INIT-COMMANDS
   15062 #
   15063 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
   15064 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
   15065     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
   15066     # from automake.
   15067     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
   15068     # Capture the value of LINGUAS because we need it to compute CATALOGS.
   15069     LINGUAS="${LINGUAS-%UNSET%}"
   15070 
   15071 
   15072 _ACEOF
   15073 
   15074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15075 
   15076 # Handling of arguments.
   15077 for ac_config_target in $ac_config_targets
   15078 do
   15079   case $ac_config_target in
   15080     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
   15081     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
   15082     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
   15083     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   15084 
   15085   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   15086   esac
   15087 done
   15088 
   15089 
   15090 # If the user did not use the arguments to specify the items to instantiate,
   15091 # then the envvar interface is used.  Set only those that are not.
   15092 # We use the long form for the default assignment because of an extremely
   15093 # bizarre bug on SunOS 4.1.3.
   15094 if $ac_need_defaults; then
   15095   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   15096   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   15097   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   15098 fi
   15099 
   15100 # Have a temporary directory for convenience.  Make it in the build tree
   15101 # simply because there is no reason against having it here, and in addition,
   15102 # creating and moving files from /tmp can sometimes cause problems.
   15103 # Hook for its removal unless debugging.
   15104 # Note that there is a small window in which the directory will not be cleaned:
   15105 # after its creation but before its name has been assigned to `$tmp'.
   15106 $debug ||
   15107 {
   15108   tmp= ac_tmp=
   15109   trap 'exit_status=$?
   15110   : "${ac_tmp:=$tmp}"
   15111   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
   15112 ' 0
   15113   trap 'as_fn_exit 1' 1 2 13 15
   15114 }
   15115 # Create a (secure) tmp directory for tmp files.
   15116 
   15117 {
   15118   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   15119   test -d "$tmp"
   15120 }  ||
   15121 {
   15122   tmp=./conf$$-$RANDOM
   15123   (umask 077 && mkdir "$tmp")
   15124 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
   15125 ac_tmp=$tmp
   15126 
   15127 # Set up the scripts for CONFIG_FILES section.
   15128 # No need to generate them if there are no CONFIG_FILES.
   15129 # This happens for instance with `./config.status config.h'.
   15130 if test -n "$CONFIG_FILES"; then
   15131 
   15132 
   15133 ac_cr=`echo X | tr X '\015'`
   15134 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   15135 # But we know of no other shell where ac_cr would be empty at this
   15136 # point, so we can use a bashism as a fallback.
   15137 if test "x$ac_cr" = x; then
   15138   eval ac_cr=\$\'\\r\'
   15139 fi
   15140 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   15141 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   15142   ac_cs_awk_cr='\\r'
   15143 else
   15144   ac_cs_awk_cr=$ac_cr
   15145 fi
   15146 
   15147 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
   15148 _ACEOF
   15149 
   15150 
   15151 {
   15152   echo "cat >conf$$subs.awk <<_ACEOF" &&
   15153   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   15154   echo "_ACEOF"
   15155 } >conf$$subs.sh ||
   15156   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   15157 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
   15158 ac_delim='%!_!# '
   15159 for ac_last_try in false false false false false :; do
   15160   . ./conf$$subs.sh ||
   15161     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   15162 
   15163   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   15164   if test $ac_delim_n = $ac_delim_num; then
   15165     break
   15166   elif $ac_last_try; then
   15167     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
   15168   else
   15169     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   15170   fi
   15171 done
   15172 rm -f conf$$subs.sh
   15173 
   15174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15175 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
   15176 _ACEOF
   15177 sed -n '
   15178 h
   15179 s/^/S["/; s/!.*/"]=/
   15180 p
   15181 g
   15182 s/^[^!]*!//
   15183 :repl
   15184 t repl
   15185 s/'"$ac_delim"'$//
   15186 t delim
   15187 :nl
   15188 h
   15189 s/\(.\{148\}\)..*/\1/
   15190 t more1
   15191 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   15192 p
   15193 n
   15194 b repl
   15195 :more1
   15196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   15197 p
   15198 g
   15199 s/.\{148\}//
   15200 t nl
   15201 :delim
   15202 h
   15203 s/\(.\{148\}\)..*/\1/
   15204 t more2
   15205 s/["\\]/\\&/g; s/^/"/; s/$/"/
   15206 p
   15207 b
   15208 :more2
   15209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   15210 p
   15211 g
   15212 s/.\{148\}//
   15213 t delim
   15214 ' <conf$$subs.awk | sed '
   15215 /^[^""]/{
   15216   N
   15217   s/\n//
   15218 }
   15219 ' >>$CONFIG_STATUS || ac_write_fail=1
   15220 rm -f conf$$subs.awk
   15221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15222 _ACAWK
   15223 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
   15224   for (key in S) S_is_set[key] = 1
   15225   FS = ""
   15226 
   15227 }
   15228 {
   15229   line = $ 0
   15230   nfields = split(line, field, "@")
   15231   substed = 0
   15232   len = length(field[1])
   15233   for (i = 2; i < nfields; i++) {
   15234     key = field[i]
   15235     keylen = length(key)
   15236     if (S_is_set[key]) {
   15237       value = S[key]
   15238       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   15239       len += length(value) + length(field[++i])
   15240       substed = 1
   15241     } else
   15242       len += 1 + keylen
   15243   }
   15244 
   15245   print line
   15246 }
   15247 
   15248 _ACAWK
   15249 _ACEOF
   15250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15251 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   15252   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   15253 else
   15254   cat
   15255 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
   15256   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
   15257 _ACEOF
   15258 
   15259 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
   15260 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
   15261 # trailing colons and then remove the whole line if VPATH becomes empty
   15262 # (actually we leave an empty line to preserve line numbers).
   15263 if test "x$srcdir" = x.; then
   15264   ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
   15265 h
   15266 s///
   15267 s/^/:/
   15268 s/[	 ]*$/:/
   15269 s/:\$(srcdir):/:/g
   15270 s/:\${srcdir}:/:/g
   15271 s/:@srcdir@:/:/g
   15272 s/^:*//
   15273 s/:*$//
   15274 x
   15275 s/\(=[	 ]*\).*/\1/
   15276 G
   15277 s/\n//
   15278 s/^[^=]*=[	 ]*$//
   15279 }'
   15280 fi
   15281 
   15282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15283 fi # test -n "$CONFIG_FILES"
   15284 
   15285 # Set up the scripts for CONFIG_HEADERS section.
   15286 # No need to generate them if there are no CONFIG_HEADERS.
   15287 # This happens for instance with `./config.status Makefile'.
   15288 if test -n "$CONFIG_HEADERS"; then
   15289 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
   15290 BEGIN {
   15291 _ACEOF
   15292 
   15293 # Transform confdefs.h into an awk script `defines.awk', embedded as
   15294 # here-document in config.status, that substitutes the proper values into
   15295 # config.h.in to produce config.h.
   15296 
   15297 # Create a delimiter string that does not exist in confdefs.h, to ease
   15298 # handling of long lines.
   15299 ac_delim='%!_!# '
   15300 for ac_last_try in false false :; do
   15301   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
   15302   if test -z "$ac_tt"; then
   15303     break
   15304   elif $ac_last_try; then
   15305     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
   15306   else
   15307     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   15308   fi
   15309 done
   15310 
   15311 # For the awk script, D is an array of macro values keyed by name,
   15312 # likewise P contains macro parameters if any.  Preserve backslash
   15313 # newline sequences.
   15314 
   15315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   15316 sed -n '
   15317 s/.\{148\}/&'"$ac_delim"'/g
   15318 t rset
   15319 :rset
   15320 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   15321 t def
   15322 d
   15323 :def
   15324 s/\\$//
   15325 t bsnl
   15326 s/["\\]/\\&/g
   15327 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   15328 D["\1"]=" \3"/p
   15329 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   15330 d
   15331 :bsnl
   15332 s/["\\]/\\&/g
   15333 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   15334 D["\1"]=" \3\\\\\\n"\\/p
   15335 t cont
   15336 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   15337 t cont
   15338 d
   15339 :cont
   15340 n
   15341 s/.\{148\}/&'"$ac_delim"'/g
   15342 t clear
   15343 :clear
   15344 s/\\$//
   15345 t bsnlc
   15346 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   15347 d
   15348 :bsnlc
   15349 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   15350 b cont
   15351 ' <confdefs.h | sed '
   15352 s/'"$ac_delim"'/"\\\
   15353 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   15354 
   15355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15356   for (key in D) D_is_set[key] = 1
   15357   FS = ""
   15358 }
   15359 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   15360   line = \$ 0
   15361   split(line, arg, " ")
   15362   if (arg[1] == "#") {
   15363     defundef = arg[2]
   15364     mac1 = arg[3]
   15365   } else {
   15366     defundef = substr(arg[1], 2)
   15367     mac1 = arg[2]
   15368   }
   15369   split(mac1, mac2, "(") #)
   15370   macro = mac2[1]
   15371   prefix = substr(line, 1, index(line, defundef) - 1)
   15372   if (D_is_set[macro]) {
   15373     # Preserve the white space surrounding the "#".
   15374     print prefix "define", macro P[macro] D[macro]
   15375     next
   15376   } else {
   15377     # Replace #undef with comments.  This is necessary, for example,
   15378     # in the case of _POSIX_SOURCE, which is predefined and required
   15379     # on some systems where configure will not decide to define it.
   15380     if (defundef == "undef") {
   15381       print "/*", prefix defundef, macro, "*/"
   15382       next
   15383     }
   15384   }
   15385 }
   15386 { print }
   15387 _ACAWK
   15388 _ACEOF
   15389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15390   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
   15391 fi # test -n "$CONFIG_HEADERS"
   15392 
   15393 
   15394 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
   15395 shift
   15396 for ac_tag
   15397 do
   15398   case $ac_tag in
   15399   :[FHLC]) ac_mode=$ac_tag; continue;;
   15400   esac
   15401   case $ac_mode$ac_tag in
   15402   :[FHL]*:*);;
   15403   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
   15404   :[FH]-) ac_tag=-:-;;
   15405   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   15406   esac
   15407   ac_save_IFS=$IFS
   15408   IFS=:
   15409   set x $ac_tag
   15410   IFS=$ac_save_IFS
   15411   shift
   15412   ac_file=$1
   15413   shift
   15414 
   15415   case $ac_mode in
   15416   :L) ac_source=$1;;
   15417   :[FH])
   15418     ac_file_inputs=
   15419     for ac_f
   15420     do
   15421       case $ac_f in
   15422       -) ac_f="$ac_tmp/stdin";;
   15423       *) # Look for the file first in the build tree, then in the source tree
   15424 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   15425 	 # because $ac_f cannot contain `:'.
   15426 	 test -f "$ac_f" ||
   15427 	   case $ac_f in
   15428 	   [\\/$]*) false;;
   15429 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   15430 	   esac ||
   15431 	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   15432       esac
   15433       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   15434       as_fn_append ac_file_inputs " '$ac_f'"
   15435     done
   15436 
   15437     # Let's still pretend it is `configure' which instantiates (i.e., don't
   15438     # use $as_me), people would be surprised to read:
   15439     #    /* config.h.  Generated by config.status.  */
   15440     configure_input='Generated from '`
   15441 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   15442 	`' by configure.'
   15443     if test x"$ac_file" != x-; then
   15444       configure_input="$ac_file.  $configure_input"
   15445       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   15446 $as_echo "$as_me: creating $ac_file" >&6;}
   15447     fi
   15448     # Neutralize special characters interpreted by sed in replacement strings.
   15449     case $configure_input in #(
   15450     *\&* | *\|* | *\\* )
   15451        ac_sed_conf_input=`$as_echo "$configure_input" |
   15452        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   15453     *) ac_sed_conf_input=$configure_input;;
   15454     esac
   15455 
   15456     case $ac_tag in
   15457     *:-:* | *:-) cat >"$ac_tmp/stdin" \
   15458       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
   15459     esac
   15460     ;;
   15461   esac
   15462 
   15463   ac_dir=`$as_dirname -- "$ac_file" ||
   15464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15465 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   15466 	 X"$ac_file" : 'X\(//\)$' \| \
   15467 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   15468 $as_echo X"$ac_file" |
   15469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   15470 	    s//\1/
   15471 	    q
   15472 	  }
   15473 	  /^X\(\/\/\)[^/].*/{
   15474 	    s//\1/
   15475 	    q
   15476 	  }
   15477 	  /^X\(\/\/\)$/{
   15478 	    s//\1/
   15479 	    q
   15480 	  }
   15481 	  /^X\(\/\).*/{
   15482 	    s//\1/
   15483 	    q
   15484 	  }
   15485 	  s/.*/./; q'`
   15486   as_dir="$ac_dir"; as_fn_mkdir_p
   15487   ac_builddir=.
   15488 
   15489 case "$ac_dir" in
   15490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   15491 *)
   15492   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   15493   # A ".." for each directory in $ac_dir_suffix.
   15494   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   15495   case $ac_top_builddir_sub in
   15496   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   15497   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   15498   esac ;;
   15499 esac
   15500 ac_abs_top_builddir=$ac_pwd
   15501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   15502 # for backward compatibility:
   15503 ac_top_builddir=$ac_top_build_prefix
   15504 
   15505 case $srcdir in
   15506   .)  # We are building in place.
   15507     ac_srcdir=.
   15508     ac_top_srcdir=$ac_top_builddir_sub
   15509     ac_abs_top_srcdir=$ac_pwd ;;
   15510   [\\/]* | ?:[\\/]* )  # Absolute name.
   15511     ac_srcdir=$srcdir$ac_dir_suffix;
   15512     ac_top_srcdir=$srcdir
   15513     ac_abs_top_srcdir=$srcdir ;;
   15514   *) # Relative name.
   15515     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   15516     ac_top_srcdir=$ac_top_build_prefix$srcdir
   15517     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   15518 esac
   15519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   15520 
   15521 
   15522   case $ac_mode in
   15523   :F)
   15524   #
   15525   # CONFIG_FILE
   15526   #
   15527 
   15528   case $INSTALL in
   15529   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   15530   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   15531   esac
   15532   ac_MKDIR_P=$MKDIR_P
   15533   case $MKDIR_P in
   15534   [\\/$]* | ?:[\\/]* ) ;;
   15535   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
   15536   esac
   15537 _ACEOF
   15538 
   15539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15540 # If the template does not know about datarootdir, expand it.
   15541 # FIXME: This hack should be removed a few years after 2.60.
   15542 ac_datarootdir_hack=; ac_datarootdir_seen=
   15543 ac_sed_dataroot='
   15544 /datarootdir/ {
   15545   p
   15546   q
   15547 }
   15548 /@datadir@/p
   15549 /@docdir@/p
   15550 /@infodir@/p
   15551 /@localedir@/p
   15552 /@mandir@/p'
   15553 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   15554 *datarootdir*) ac_datarootdir_seen=yes;;
   15555 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   15556   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   15557 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   15558 _ACEOF
   15559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15560   ac_datarootdir_hack='
   15561   s&@datadir@&$datadir&g
   15562   s&@docdir@&$docdir&g
   15563   s&@infodir@&$infodir&g
   15564   s&@localedir@&$localedir&g
   15565   s&@mandir@&$mandir&g
   15566   s&\\\${datarootdir}&$datarootdir&g' ;;
   15567 esac
   15568 _ACEOF
   15569 
   15570 # Neutralize VPATH when `$srcdir' = `.'.
   15571 # Shell code in configure.ac might set extrasub.
   15572 # FIXME: do we really want to maintain this feature?
   15573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15574 ac_sed_extra="$ac_vpsub
   15575 $extrasub
   15576 _ACEOF
   15577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15578 :t
   15579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   15580 s|@configure_input@|$ac_sed_conf_input|;t t
   15581 s&@top_builddir@&$ac_top_builddir_sub&;t t
   15582 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   15583 s&@srcdir@&$ac_srcdir&;t t
   15584 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   15585 s&@top_srcdir@&$ac_top_srcdir&;t t
   15586 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   15587 s&@builddir@&$ac_builddir&;t t
   15588 s&@abs_builddir@&$ac_abs_builddir&;t t
   15589 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   15590 s&@INSTALL@&$ac_INSTALL&;t t
   15591 s&@MKDIR_P@&$ac_MKDIR_P&;t t
   15592 $ac_datarootdir_hack
   15593 "
   15594 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
   15595   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   15596 
   15597 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   15598   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
   15599   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
   15600       "$ac_tmp/out"`; test -z "$ac_out"; } &&
   15601   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   15602 which seems to be undefined.  Please make sure it is defined" >&5
   15603 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   15604 which seems to be undefined.  Please make sure it is defined" >&2;}
   15605 
   15606   rm -f "$ac_tmp/stdin"
   15607   case $ac_file in
   15608   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
   15609   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
   15610   esac \
   15611   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   15612  ;;
   15613   :H)
   15614   #
   15615   # CONFIG_HEADER
   15616   #
   15617   if test x"$ac_file" != x-; then
   15618     {
   15619       $as_echo "/* $configure_input  */" \
   15620       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
   15621     } >"$ac_tmp/config.h" \
   15622       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
   15623     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
   15624       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   15625 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   15626     else
   15627       rm -f "$ac_file"
   15628       mv "$ac_tmp/config.h" "$ac_file" \
   15629 	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
   15630     fi
   15631   else
   15632     $as_echo "/* $configure_input  */" \
   15633       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
   15634       || as_fn_error $? "could not create -" "$LINENO" 5
   15635   fi
   15636 # Compute "$ac_file"'s index in $config_headers.
   15637 _am_arg="$ac_file"
   15638 _am_stamp_count=1
   15639 for _am_header in $config_headers :; do
   15640   case $_am_header in
   15641     $_am_arg | $_am_arg:* )
   15642       break ;;
   15643     * )
   15644       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
   15645   esac
   15646 done
   15647 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
   15648 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15649 	 X"$_am_arg" : 'X\(//\)[^/]' \| \
   15650 	 X"$_am_arg" : 'X\(//\)$' \| \
   15651 	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
   15652 $as_echo X"$_am_arg" |
   15653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   15654 	    s//\1/
   15655 	    q
   15656 	  }
   15657 	  /^X\(\/\/\)[^/].*/{
   15658 	    s//\1/
   15659 	    q
   15660 	  }
   15661 	  /^X\(\/\/\)$/{
   15662 	    s//\1/
   15663 	    q
   15664 	  }
   15665 	  /^X\(\/\).*/{
   15666 	    s//\1/
   15667 	    q
   15668 	  }
   15669 	  s/.*/./; q'`/stamp-h$_am_stamp_count
   15670  ;;
   15671 
   15672   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   15673 $as_echo "$as_me: executing $ac_file commands" >&6;}
   15674  ;;
   15675   esac
   15676 
   15677 
   15678   case $ac_file$ac_mode in
   15679     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
   15680   # Older Autoconf quotes --file arguments for eval, but not when files
   15681   # are listed without --file.  Let's play safe and only enable the eval
   15682   # if we detect the quoting.
   15683   case $CONFIG_FILES in
   15684   *\'*) eval set x "$CONFIG_FILES" ;;
   15685   *)   set x $CONFIG_FILES ;;
   15686   esac
   15687   shift
   15688   for mf
   15689   do
   15690     # Strip MF so we end up with the name of the file.
   15691     mf=`echo "$mf" | sed -e 's/:.*$//'`
   15692     # Check whether this is an Automake generated Makefile or not.
   15693     # We used to match only the files named 'Makefile.in', but
   15694     # some people rename them; so instead we look at the file content.
   15695     # Grep'ing the first line is not enough: some people post-process
   15696     # each Makefile.in and add a new line on top of each file to say so.
   15697     # Grep'ing the whole file is not good either: AIX grep has a line
   15698     # limit of 2048, but all sed's we know have understand at least 4000.
   15699     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
   15700       dirpart=`$as_dirname -- "$mf" ||
   15701 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15702 	 X"$mf" : 'X\(//\)[^/]' \| \
   15703 	 X"$mf" : 'X\(//\)$' \| \
   15704 	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
   15705 $as_echo X"$mf" |
   15706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   15707 	    s//\1/
   15708 	    q
   15709 	  }
   15710 	  /^X\(\/\/\)[^/].*/{
   15711 	    s//\1/
   15712 	    q
   15713 	  }
   15714 	  /^X\(\/\/\)$/{
   15715 	    s//\1/
   15716 	    q
   15717 	  }
   15718 	  /^X\(\/\).*/{
   15719 	    s//\1/
   15720 	    q
   15721 	  }
   15722 	  s/.*/./; q'`
   15723     else
   15724       continue
   15725     fi
   15726     # Extract the definition of DEPDIR, am__include, and am__quote
   15727     # from the Makefile without running 'make'.
   15728     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
   15729     test -z "$DEPDIR" && continue
   15730     am__include=`sed -n 's/^am__include = //p' < "$mf"`
   15731     test -z "$am__include" && continue
   15732     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
   15733     # Find all dependency output files, they are included files with
   15734     # $(DEPDIR) in their names.  We invoke sed twice because it is the
   15735     # simplest approach to changing $(DEPDIR) to its actual value in the
   15736     # expansion.
   15737     for file in `sed -n "
   15738       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
   15739 	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
   15740       # Make sure the directory exists.
   15741       test -f "$dirpart/$file" && continue
   15742       fdir=`$as_dirname -- "$file" ||
   15743 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15744 	 X"$file" : 'X\(//\)[^/]' \| \
   15745 	 X"$file" : 'X\(//\)$' \| \
   15746 	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
   15747 $as_echo X"$file" |
   15748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   15749 	    s//\1/
   15750 	    q
   15751 	  }
   15752 	  /^X\(\/\/\)[^/].*/{
   15753 	    s//\1/
   15754 	    q
   15755 	  }
   15756 	  /^X\(\/\/\)$/{
   15757 	    s//\1/
   15758 	    q
   15759 	  }
   15760 	  /^X\(\/\).*/{
   15761 	    s//\1/
   15762 	    q
   15763 	  }
   15764 	  s/.*/./; q'`
   15765       as_dir=$dirpart/$fdir; as_fn_mkdir_p
   15766       # echo "creating $dirpart/$file"
   15767       echo '# dummy' > "$dirpart/$file"
   15768     done
   15769   done
   15770 }
   15771  ;;
   15772     "default-1":C)
   15773     for ac_file in $CONFIG_FILES; do
   15774       # Support "outfile[:infile[:infile...]]"
   15775       case "$ac_file" in
   15776         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
   15777       esac
   15778       # PO directories have a Makefile.in generated from Makefile.in.in.
   15779       case "$ac_file" in */Makefile.in)
   15780         # Adjust a relative srcdir.
   15781         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
   15782         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
   15783         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
   15784         # In autoconf-2.13 it is called $ac_given_srcdir.
   15785         # In autoconf-2.50 it is called $srcdir.
   15786         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
   15787         case "$ac_given_srcdir" in
   15788           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
   15789           /*) top_srcdir="$ac_given_srcdir" ;;
   15790           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
   15791         esac
   15792         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
   15793           rm -f "$ac_dir/POTFILES"
   15794           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
   15795           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
   15796           POMAKEFILEDEPS="POTFILES.in"
   15797           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
   15798           # on $ac_dir but don't depend on user-specified configuration
   15799           # parameters.
   15800           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
   15801             # The LINGUAS file contains the set of available languages.
   15802             if test -n "$OBSOLETE_ALL_LINGUAS"; then
   15803               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
   15804             fi
   15805             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
   15806             # Hide the ALL_LINGUAS assigment from automake.
   15807             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
   15808             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
   15809           else
   15810             # The set of available languages was given in configure.ac.
   15811             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
   15812           fi
   15813           case "$ac_given_srcdir" in
   15814             .) srcdirpre= ;;
   15815             *) srcdirpre='$(srcdir)/' ;;
   15816           esac
   15817           POFILES=
   15818           GMOFILES=
   15819           UPDATEPOFILES=
   15820           DUMMYPOFILES=
   15821           for lang in $ALL_LINGUAS; do
   15822             POFILES="$POFILES $srcdirpre$lang.po"
   15823             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
   15824             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
   15825             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
   15826           done
   15827           # CATALOGS depends on both $ac_dir and the user's LINGUAS
   15828           # environment variable.
   15829           INST_LINGUAS=
   15830           if test -n "$ALL_LINGUAS"; then
   15831             for presentlang in $ALL_LINGUAS; do
   15832               useit=no
   15833               if test "%UNSET%" != "$LINGUAS"; then
   15834                 desiredlanguages="$LINGUAS"
   15835               else
   15836                 desiredlanguages="$ALL_LINGUAS"
   15837               fi
   15838               for desiredlang in $desiredlanguages; do
   15839                 # Use the presentlang catalog if desiredlang is
   15840                 #   a. equal to presentlang, or
   15841                 #   b. a variant of presentlang (because in this case,
   15842                 #      presentlang can be used as a fallback for messages
   15843                 #      which are not translated in the desiredlang catalog).
   15844                 case "$desiredlang" in
   15845                   "$presentlang"*) useit=yes;;
   15846                 esac
   15847               done
   15848               if test $useit = yes; then
   15849                 INST_LINGUAS="$INST_LINGUAS $presentlang"
   15850               fi
   15851             done
   15852           fi
   15853           CATALOGS=
   15854           if test -n "$INST_LINGUAS"; then
   15855             for lang in $INST_LINGUAS; do
   15856               CATALOGS="$CATALOGS $lang.gmo"
   15857             done
   15858           fi
   15859           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
   15860           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
   15861           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
   15862             if test -f "$f"; then
   15863               case "$f" in
   15864                 *.orig | *.bak | *~) ;;
   15865                 *) cat "$f" >> "$ac_dir/Makefile" ;;
   15866               esac
   15867             fi
   15868           done
   15869         fi
   15870         ;;
   15871       esac
   15872     done ;;
   15873 
   15874   esac
   15875 done # for ac_tag
   15876 
   15877 
   15878 as_fn_exit 0
   15879 _ACEOF
   15880 ac_clean_files=$ac_clean_files_save
   15881 
   15882 test $ac_write_fail = 0 ||
   15883   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
   15884 
   15885 
   15886 # configure is writing to config.log, and then calls config.status.
   15887 # config.status does its own redirection, appending to config.log.
   15888 # Unfortunately, on DOS this fails, as config.log is still kept open
   15889 # by configure, so config.status won't be able to write to it; its
   15890 # output is simply discarded.  So we exec the FD to /dev/null,
   15891 # effectively closing config.log, so it can be properly (re)opened and
   15892 # appended to by config.status.  When coming back to configure, we
   15893 # need to make the FD available again.
   15894 if test "$no_create" != yes; then
   15895   ac_cs_success=:
   15896   ac_config_status_args=
   15897   test "$silent" = yes &&
   15898     ac_config_status_args="$ac_config_status_args --quiet"
   15899   exec 5>/dev/null
   15900   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   15901   exec 5>>config.log
   15902   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   15903   # would make configure fail if this is the last instruction.
   15904   $ac_cs_success || as_fn_exit 1
   15905 fi
   15906 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   15907   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   15908 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   15909 fi
   15910 
   15911