/ configure
configure
    1  #! /bin/sh
    2  # Guess values for system-dependent variables and create Makefiles.
    3  # Generated by GNU Autoconf 2.71 for breakpad 0.1.
    4  #
    5  # Report bugs to <google-breakpad-dev@googlegroups.com>.
    6  #
    7  #
    8  # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
    9  # Inc.
   10  #
   11  #
   12  # This configure script is free software; the Free Software Foundation
   13  # gives unlimited permission to copy, distribute and modify it.
   14  ## -------------------- ##
   15  ## M4sh Initialization. ##
   16  ## -------------------- ##
   17  
   18  # Be more Bourne compatible
   19  DUALCASE=1; export DUALCASE # for MKS sh
   20  as_nop=:
   21  if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
   22  then :
   23    emulate sh
   24    NULLCMD=:
   25    # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   26    # is contrary to our usage.  Disable this feature.
   27    alias -g '${1+"$@"}'='"$@"'
   28    setopt NO_GLOB_SUBST
   29  else $as_nop
   30    case `(set -o) 2>/dev/null` in #(
   31    *posix*) :
   32      set -o posix ;; #(
   33    *) :
   34       ;;
   35  esac
   36  fi
   37  
   38  
   39  
   40  # Reset variables that may have inherited troublesome values from
   41  # the environment.
   42  
   43  # IFS needs to be set, to space, tab, and newline, in precisely that order.
   44  # (If _AS_PATH_WALK were called with IFS unset, it would have the
   45  # side effect of setting IFS to empty, thus disabling word splitting.)
   46  # Quoting is to prevent editors from complaining about space-tab.
   47  as_nl='
   48  '
   49  export as_nl
   50  IFS=" ""	$as_nl"
   51  
   52  PS1='$ '
   53  PS2='> '
   54  PS4='+ '
   55  
   56  # Ensure predictable behavior from utilities with locale-dependent output.
   57  LC_ALL=C
   58  export LC_ALL
   59  LANGUAGE=C
   60  export LANGUAGE
   61  
   62  # We cannot yet rely on "unset" to work, but we need these variables
   63  # to be unset--not just set to an empty or harmless value--now, to
   64  # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
   65  # also avoids known problems related to "unset" and subshell syntax
   66  # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
   67  for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
   68  do eval test \${$as_var+y} \
   69    && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   70  done
   71  
   72  # Ensure that fds 0, 1, and 2 are open.
   73  if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
   74  if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
   75  if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
   76  
   77  # The user is always right.
   78  if ${PATH_SEPARATOR+false} :; then
   79    PATH_SEPARATOR=:
   80    (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   81      (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   82        PATH_SEPARATOR=';'
   83    }
   84  fi
   85  
   86  
   87  # Find who we are.  Look in the path if we contain no directory separator.
   88  as_myself=
   89  case $0 in #((
   90    *[\\/]* ) as_myself=$0 ;;
   91    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   92  for as_dir in $PATH
   93  do
   94    IFS=$as_save_IFS
   95    case $as_dir in #(((
   96      '') as_dir=./ ;;
   97      */) ;;
   98      *) as_dir=$as_dir/ ;;
   99    esac
  100      test -r "$as_dir$0" && as_myself=$as_dir$0 && break
  101    done
  102  IFS=$as_save_IFS
  103  
  104       ;;
  105  esac
  106  # We did not find ourselves, most probably we were run as `sh COMMAND'
  107  # in which case we are not to be found in the path.
  108  if test "x$as_myself" = x; then
  109    as_myself=$0
  110  fi
  111  if test ! -f "$as_myself"; then
  112    printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113    exit 1
  114  fi
  115  
  116  
  117  # Use a proper internal environment variable to ensure we don't fall
  118    # into an infinite loop, continuously re-executing ourselves.
  119    if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  120      _as_can_reexec=no; export _as_can_reexec;
  121      # We cannot yet assume a decent shell, so we have to provide a
  122  # neutralization value for shells without unset; and this also
  123  # works around shells that cannot unset nonexistent variables.
  124  # Preserve -v and -x to the replacement shell.
  125  BASH_ENV=/dev/null
  126  ENV=/dev/null
  127  (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  128  case $- in # ((((
  129    *v*x* | *x*v* ) as_opts=-vx ;;
  130    *v* ) as_opts=-v ;;
  131    *x* ) as_opts=-x ;;
  132    * ) as_opts= ;;
  133  esac
  134  exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  135  # Admittedly, this is quite paranoid, since all the known shells bail
  136  # out after a failed `exec'.
  137  printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  138  exit 255
  139    fi
  140    # We don't want this to propagate to other subprocesses.
  141            { _as_can_reexec=; unset _as_can_reexec;}
  142  if test "x$CONFIG_SHELL" = x; then
  143    as_bourne_compatible="as_nop=:
  144  if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
  145  then :
  146    emulate sh
  147    NULLCMD=:
  148    # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  149    # is contrary to our usage.  Disable this feature.
  150    alias -g '\${1+\"\$@\"}'='\"\$@\"'
  151    setopt NO_GLOB_SUBST
  152  else \$as_nop
  153    case \`(set -o) 2>/dev/null\` in #(
  154    *posix*) :
  155      set -o posix ;; #(
  156    *) :
  157       ;;
  158  esac
  159  fi
  160  "
  161    as_required="as_fn_return () { (exit \$1); }
  162  as_fn_success () { as_fn_return 0; }
  163  as_fn_failure () { as_fn_return 1; }
  164  as_fn_ret_success () { return 0; }
  165  as_fn_ret_failure () { return 1; }
  166  
  167  exitcode=0
  168  as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  169  as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  170  as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  171  as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  172  if ( set x; as_fn_ret_success y && test x = \"\$1\" )
  173  then :
  174  
  175  else \$as_nop
  176    exitcode=1; echo positional parameters were not saved.
  177  fi
  178  test x\$exitcode = x0 || exit 1
  179  blah=\$(echo \$(echo blah))
  180  test x\"\$blah\" = xblah || exit 1
  181  test -x / || exit 1"
  182    as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  183    as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  184    eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  185    test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  186    if (eval "$as_required") 2>/dev/null
  187  then :
  188    as_have_required=yes
  189  else $as_nop
  190    as_have_required=no
  191  fi
  192    if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
  193  then :
  194  
  195  else $as_nop
  196    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  197  as_found=false
  198  for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  199  do
  200    IFS=$as_save_IFS
  201    case $as_dir in #(((
  202      '') as_dir=./ ;;
  203      */) ;;
  204      *) as_dir=$as_dir/ ;;
  205    esac
  206    as_found=:
  207    case $as_dir in #(
  208  	 /*)
  209  	   for as_base in sh bash ksh sh5; do
  210  	     # Try only shells that exist, to save several forks.
  211  	     as_shell=$as_dir$as_base
  212  	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213  		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  214  then :
  215    CONFIG_SHELL=$as_shell as_have_required=yes
  216  		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
  217  then :
  218    break 2
  219  fi
  220  fi
  221  	   done;;
  222         esac
  223    as_found=false
  224  done
  225  IFS=$as_save_IFS
  226  if $as_found
  227  then :
  228  
  229  else $as_nop
  230    if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  231  	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
  232  then :
  233    CONFIG_SHELL=$SHELL as_have_required=yes
  234  fi
  235  fi
  236  
  237  
  238        if test "x$CONFIG_SHELL" != x
  239  then :
  240    export CONFIG_SHELL
  241               # We cannot yet assume a decent shell, so we have to provide a
  242  # neutralization value for shells without unset; and this also
  243  # works around shells that cannot unset nonexistent variables.
  244  # Preserve -v and -x to the replacement shell.
  245  BASH_ENV=/dev/null
  246  ENV=/dev/null
  247  (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  248  case $- in # ((((
  249    *v*x* | *x*v* ) as_opts=-vx ;;
  250    *v* ) as_opts=-v ;;
  251    *x* ) as_opts=-x ;;
  252    * ) as_opts= ;;
  253  esac
  254  exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  255  # Admittedly, this is quite paranoid, since all the known shells bail
  256  # out after a failed `exec'.
  257  printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
  258  exit 255
  259  fi
  260  
  261      if test x$as_have_required = xno
  262  then :
  263    printf "%s\n" "$0: This script requires a shell more modern than all"
  264    printf "%s\n" "$0: the shells that I found on your system."
  265    if test ${ZSH_VERSION+y} ; then
  266      printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  267      printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
  268    else
  269      printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
  270  $0: google-breakpad-dev@googlegroups.com about your system,
  271  $0: including any error possibly output before this
  272  $0: message. Then install a modern shell, or manually run
  273  $0: the script under such a shell if you do have one."
  274    fi
  275    exit 1
  276  fi
  277  fi
  278  fi
  279  SHELL=${CONFIG_SHELL-/bin/sh}
  280  export SHELL
  281  # Unset more variables known to interfere with behavior of common tools.
  282  CLICOLOR_FORCE= GREP_OPTIONS=
  283  unset CLICOLOR_FORCE GREP_OPTIONS
  284  
  285  ## --------------------- ##
  286  ## M4sh Shell Functions. ##
  287  ## --------------------- ##
  288  # as_fn_unset VAR
  289  # ---------------
  290  # Portably unset VAR.
  291  as_fn_unset ()
  292  {
  293    { eval $1=; unset $1;}
  294  }
  295  as_unset=as_fn_unset
  296  
  297  
  298  # as_fn_set_status STATUS
  299  # -----------------------
  300  # Set $? to STATUS, without forking.
  301  as_fn_set_status ()
  302  {
  303    return $1
  304  } # as_fn_set_status
  305  
  306  # as_fn_exit STATUS
  307  # -----------------
  308  # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  309  as_fn_exit ()
  310  {
  311    set +e
  312    as_fn_set_status $1
  313    exit $1
  314  } # as_fn_exit
  315  # as_fn_nop
  316  # ---------
  317  # Do nothing but, unlike ":", preserve the value of $?.
  318  as_fn_nop ()
  319  {
  320    return $?
  321  }
  322  as_nop=as_fn_nop
  323  
  324  # as_fn_mkdir_p
  325  # -------------
  326  # Create "$as_dir" as a directory, including parents if necessary.
  327  as_fn_mkdir_p ()
  328  {
  329  
  330    case $as_dir in #(
  331    -*) as_dir=./$as_dir;;
  332    esac
  333    test -d "$as_dir" || eval $as_mkdir_p || {
  334      as_dirs=
  335      while :; do
  336        case $as_dir in #(
  337        *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  338        *) as_qdir=$as_dir;;
  339        esac
  340        as_dirs="'$as_qdir' $as_dirs"
  341        as_dir=`$as_dirname -- "$as_dir" ||
  342  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  343  	 X"$as_dir" : 'X\(//\)[^/]' \| \
  344  	 X"$as_dir" : 'X\(//\)$' \| \
  345  	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  346  printf "%s\n" X"$as_dir" |
  347      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  348  	    s//\1/
  349  	    q
  350  	  }
  351  	  /^X\(\/\/\)[^/].*/{
  352  	    s//\1/
  353  	    q
  354  	  }
  355  	  /^X\(\/\/\)$/{
  356  	    s//\1/
  357  	    q
  358  	  }
  359  	  /^X\(\/\).*/{
  360  	    s//\1/
  361  	    q
  362  	  }
  363  	  s/.*/./; q'`
  364        test -d "$as_dir" && break
  365      done
  366      test -z "$as_dirs" || eval "mkdir $as_dirs"
  367    } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  368  
  369  
  370  } # as_fn_mkdir_p
  371  
  372  # as_fn_executable_p FILE
  373  # -----------------------
  374  # Test if FILE is an executable regular file.
  375  as_fn_executable_p ()
  376  {
  377    test -f "$1" && test -x "$1"
  378  } # as_fn_executable_p
  379  # as_fn_append VAR VALUE
  380  # ----------------------
  381  # Append the text in VALUE to the end of the definition contained in VAR. Take
  382  # advantage of any shell optimizations that allow amortized linear growth over
  383  # repeated appends, instead of the typical quadratic growth present in naive
  384  # implementations.
  385  if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
  386  then :
  387    eval 'as_fn_append ()
  388    {
  389      eval $1+=\$2
  390    }'
  391  else $as_nop
  392    as_fn_append ()
  393    {
  394      eval $1=\$$1\$2
  395    }
  396  fi # as_fn_append
  397  
  398  # as_fn_arith ARG...
  399  # ------------------
  400  # Perform arithmetic evaluation on the ARGs, and store the result in the
  401  # global $as_val. Take advantage of shells that can avoid forks. The arguments
  402  # must be portable across $(()) and expr.
  403  if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
  404  then :
  405    eval 'as_fn_arith ()
  406    {
  407      as_val=$(( $* ))
  408    }'
  409  else $as_nop
  410    as_fn_arith ()
  411    {
  412      as_val=`expr "$@" || test $? -eq 1`
  413    }
  414  fi # as_fn_arith
  415  
  416  # as_fn_nop
  417  # ---------
  418  # Do nothing but, unlike ":", preserve the value of $?.
  419  as_fn_nop ()
  420  {
  421    return $?
  422  }
  423  as_nop=as_fn_nop
  424  
  425  # as_fn_error STATUS ERROR [LINENO LOG_FD]
  426  # ----------------------------------------
  427  # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  428  # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  429  # script with STATUS, using 1 if that was 0.
  430  as_fn_error ()
  431  {
  432    as_status=$1; test $as_status -eq 0 && as_status=1
  433    if test "$4"; then
  434      as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  435      printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  436    fi
  437    printf "%s\n" "$as_me: error: $2" >&2
  438    as_fn_exit $as_status
  439  } # as_fn_error
  440  
  441  if expr a : '\(a\)' >/dev/null 2>&1 &&
  442     test "X`expr 00001 : '.*\(...\)'`" = X001; then
  443    as_expr=expr
  444  else
  445    as_expr=false
  446  fi
  447  
  448  if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  449    as_basename=basename
  450  else
  451    as_basename=false
  452  fi
  453  
  454  if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  455    as_dirname=dirname
  456  else
  457    as_dirname=false
  458  fi
  459  
  460  as_me=`$as_basename -- "$0" ||
  461  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  462  	 X"$0" : 'X\(//\)$' \| \
  463  	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  464  printf "%s\n" X/"$0" |
  465      sed '/^.*\/\([^/][^/]*\)\/*$/{
  466  	    s//\1/
  467  	    q
  468  	  }
  469  	  /^X\/\(\/\/\)$/{
  470  	    s//\1/
  471  	    q
  472  	  }
  473  	  /^X\/\(\/\).*/{
  474  	    s//\1/
  475  	    q
  476  	  }
  477  	  s/.*/./; q'`
  478  
  479  # Avoid depending upon Character Ranges.
  480  as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  481  as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  482  as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  483  as_cr_digits='0123456789'
  484  as_cr_alnum=$as_cr_Letters$as_cr_digits
  485  
  486  
  487    as_lineno_1=$LINENO as_lineno_1a=$LINENO
  488    as_lineno_2=$LINENO as_lineno_2a=$LINENO
  489    eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  490    test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  491    # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  492    sed -n '
  493      p
  494      /[$]LINENO/=
  495    ' <$as_myself |
  496      sed '
  497        s/[$]LINENO.*/&-/
  498        t lineno
  499        b
  500        :lineno
  501        N
  502        :loop
  503        s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  504        t loop
  505        s/-\n.*//
  506      ' >$as_me.lineno &&
  507    chmod +x "$as_me.lineno" ||
  508      { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  509  
  510    # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  511    # already done that, so ensure we don't try to do so again and fall
  512    # in an infinite loop.  This has already happened in practice.
  513    _as_can_reexec=no; export _as_can_reexec
  514    # Don't try to exec as it changes $[0], causing all sort of problems
  515    # (the dirname of $[0] is not the place where we might find the
  516    # original and so on.  Autoconf is especially sensitive to this).
  517    . "./$as_me.lineno"
  518    # Exit status is that of the last command.
  519    exit
  520  }
  521  
  522  
  523  # Determine whether it's possible to make 'echo' print without a newline.
  524  # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
  525  # for compatibility with existing Makefiles.
  526  ECHO_C= ECHO_N= ECHO_T=
  527  case `echo -n x` in #(((((
  528  -n*)
  529    case `echo 'xy\c'` in
  530    *c*) ECHO_T='	';;	# ECHO_T is single tab character.
  531    xy)  ECHO_C='\c';;
  532    *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  533         ECHO_T='	';;
  534    esac;;
  535  *)
  536    ECHO_N='-n';;
  537  esac
  538  
  539  # For backward compatibility with old third-party macros, we provide
  540  # the shell variables $as_echo and $as_echo_n.  New code should use
  541  # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
  542  as_echo='printf %s\n'
  543  as_echo_n='printf %s'
  544  
  545  
  546  rm -f conf$$ conf$$.exe conf$$.file
  547  if test -d conf$$.dir; then
  548    rm -f conf$$.dir/conf$$.file
  549  else
  550    rm -f conf$$.dir
  551    mkdir conf$$.dir 2>/dev/null
  552  fi
  553  if (echo >conf$$.file) 2>/dev/null; then
  554    if ln -s conf$$.file conf$$ 2>/dev/null; then
  555      as_ln_s='ln -s'
  556      # ... but there are two gotchas:
  557      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  558      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  559      # In both cases, we have to default to `cp -pR'.
  560      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  561        as_ln_s='cp -pR'
  562    elif ln conf$$.file conf$$ 2>/dev/null; then
  563      as_ln_s=ln
  564    else
  565      as_ln_s='cp -pR'
  566    fi
  567  else
  568    as_ln_s='cp -pR'
  569  fi
  570  rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  571  rmdir conf$$.dir 2>/dev/null
  572  
  573  if mkdir -p . 2>/dev/null; then
  574    as_mkdir_p='mkdir -p "$as_dir"'
  575  else
  576    test -d ./-p && rmdir ./-p
  577    as_mkdir_p=false
  578  fi
  579  
  580  as_test_x='test -x'
  581  as_executable_p=as_fn_executable_p
  582  
  583  # Sed expression to map a string onto a valid CPP name.
  584  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  585  
  586  # Sed expression to map a string onto a valid variable name.
  587  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  588  
  589  
  590  test -n "$DJDIR" || exec 7<&0 </dev/null
  591  exec 6>&1
  592  
  593  # Name of the host.
  594  # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  595  # so uname gets run too.
  596  ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  597  
  598  #
  599  # Initializations.
  600  #
  601  ac_default_prefix=/usr/local
  602  ac_clean_files=
  603  ac_config_libobj_dir=.
  604  LIBOBJS=
  605  cross_compiling=no
  606  subdirs=
  607  MFLAGS=
  608  MAKEFLAGS=
  609  
  610  # Identity of this package.
  611  PACKAGE_NAME='breakpad'
  612  PACKAGE_TARNAME='breakpad'
  613  PACKAGE_VERSION='0.1'
  614  PACKAGE_STRING='breakpad 0.1'
  615  PACKAGE_BUGREPORT='google-breakpad-dev@googlegroups.com'
  616  PACKAGE_URL=''
  617  
  618  ac_unique_file="README.md"
  619  # Factoring default headers for most tests.
  620  ac_includes_default="\
  621  #include <stddef.h>
  622  #ifdef HAVE_STDIO_H
  623  # include <stdio.h>
  624  #endif
  625  #ifdef HAVE_STDLIB_H
  626  # include <stdlib.h>
  627  #endif
  628  #ifdef HAVE_STRING_H
  629  # include <string.h>
  630  #endif
  631  #ifdef HAVE_INTTYPES_H
  632  # include <inttypes.h>
  633  #endif
  634  #ifdef HAVE_STDINT_H
  635  # include <stdint.h>
  636  #endif
  637  #ifdef HAVE_STRINGS_H
  638  # include <strings.h>
  639  #endif
  640  #ifdef HAVE_SYS_TYPES_H
  641  # include <sys/types.h>
  642  #endif
  643  #ifdef HAVE_SYS_STAT_H
  644  # include <sys/stat.h>
  645  #endif
  646  #ifdef HAVE_UNISTD_H
  647  # include <unistd.h>
  648  #endif"
  649  
  650  ac_header_c_list=
  651  ac_subst_vars='am__EXEEXT_FALSE
  652  am__EXEEXT_TRUE
  653  LTLIBOBJS
  654  LIBOBJS
  655  TESTS_AS_ROOT_FALSE
  656  TESTS_AS_ROOT_TRUE
  657  RUSTC_DEMANGLE_LIBS
  658  RUSTC_DEMANGLE_CFLAGS
  659  SELFTEST_FALSE
  660  SELFTEST_TRUE
  661  GTEST_LIBS
  662  GTEST_CFLAGS
  663  GMOCK_LIBS
  664  GMOCK_CFLAGS
  665  SYSTEM_TEST_LIBS_FALSE
  666  SYSTEM_TEST_LIBS_TRUE
  667  DISABLE_TOOLS_FALSE
  668  DISABLE_TOOLS_TRUE
  669  DISABLE_PROCESSOR_FALSE
  670  DISABLE_PROCESSOR_TRUE
  671  X86_HOST_FALSE
  672  X86_HOST_TRUE
  673  ANDROID_HOST_FALSE
  674  ANDROID_HOST_TRUE
  675  LINUX_HOST_FALSE
  676  LINUX_HOST_TRUE
  677  WARN_CXXFLAGS
  678  HAVE_CXX17
  679  HAVE_MEMFD_CREATE_FALSE
  680  HAVE_MEMFD_CREATE_TRUE
  681  HAVE_GETCONTEXT_FALSE
  682  HAVE_GETCONTEXT_TRUE
  683  PTHREAD_CFLAGS
  684  PTHREAD_LIBS
  685  PTHREAD_CC
  686  ax_pthread_config
  687  RANLIB
  688  am__fastdepCXX_FALSE
  689  am__fastdepCXX_TRUE
  690  CXXDEPMODE
  691  ac_ct_CXX
  692  CXXFLAGS
  693  CXX
  694  CPP
  695  am__fastdepCCAS_FALSE
  696  am__fastdepCCAS_TRUE
  697  CCASDEPMODE
  698  CCASFLAGS
  699  CCAS
  700  am__fastdepCC_FALSE
  701  am__fastdepCC_TRUE
  702  CCDEPMODE
  703  am__nodep
  704  AMDEPBACKSLASH
  705  AMDEP_FALSE
  706  AMDEP_TRUE
  707  am__include
  708  DEPDIR
  709  OBJEXT
  710  EXEEXT
  711  ac_ct_CC
  712  CPPFLAGS
  713  LDFLAGS
  714  CFLAGS
  715  CC
  716  ac_ct_AR
  717  AR
  718  MAINT
  719  MAINTAINER_MODE_FALSE
  720  MAINTAINER_MODE_TRUE
  721  AM_BACKSLASH
  722  AM_DEFAULT_VERBOSITY
  723  AM_DEFAULT_V
  724  AM_V
  725  CSCOPE
  726  ETAGS
  727  CTAGS
  728  am__untar
  729  am__tar
  730  AMTAR
  731  am__leading_dot
  732  SET_MAKE
  733  AWK
  734  mkdir_p
  735  MKDIR_P
  736  INSTALL_STRIP_PROGRAM
  737  STRIP
  738  install_sh
  739  MAKEINFO
  740  AUTOHEADER
  741  AUTOMAKE
  742  AUTOCONF
  743  ACLOCAL
  744  VERSION
  745  PACKAGE
  746  CYGPATH_W
  747  am__isrc
  748  INSTALL_DATA
  749  INSTALL_SCRIPT
  750  INSTALL_PROGRAM
  751  host_os
  752  host_vendor
  753  host_cpu
  754  host
  755  build_os
  756  build_vendor
  757  build_cpu
  758  build
  759  target_alias
  760  host_alias
  761  build_alias
  762  LIBS
  763  ECHO_T
  764  ECHO_N
  765  ECHO_C
  766  DEFS
  767  mandir
  768  localedir
  769  libdir
  770  psdir
  771  pdfdir
  772  dvidir
  773  htmldir
  774  infodir
  775  docdir
  776  oldincludedir
  777  includedir
  778  runstatedir
  779  localstatedir
  780  sharedstatedir
  781  sysconfdir
  782  datadir
  783  datarootdir
  784  libexecdir
  785  sbindir
  786  bindir
  787  program_transform_name
  788  prefix
  789  exec_prefix
  790  PACKAGE_URL
  791  PACKAGE_BUGREPORT
  792  PACKAGE_STRING
  793  PACKAGE_VERSION
  794  PACKAGE_TARNAME
  795  PACKAGE_NAME
  796  PATH_SEPARATOR
  797  SHELL
  798  am__quote'
  799  ac_subst_files=''
  800  ac_user_opts='
  801  enable_option_checking
  802  enable_silent_rules
  803  enable_maintainer_mode
  804  enable_dependency_tracking
  805  enable_m32
  806  enable_largefile
  807  enable_processor
  808  enable_tools
  809  enable_system_test_libs
  810  enable_selftest
  811  with_rustc_demangle
  812  enable_system_rustc_demangle
  813  enable_zstd
  814  with_tests_as_root
  815  '
  816        ac_precious_vars='build_alias
  817  host_alias
  818  target_alias
  819  CC
  820  CFLAGS
  821  LDFLAGS
  822  LIBS
  823  CPPFLAGS
  824  CCAS
  825  CCASFLAGS
  826  CPP
  827  CXX
  828  CXXFLAGS
  829  CCC
  830  GMOCK_CFLAGS
  831  GMOCK_LIBS
  832  GTEST_CFLAGS
  833  GTEST_LIBS
  834  RUSTC_DEMANGLE_CFLAGS
  835  RUSTC_DEMANGLE_LIBS'
  836  
  837  
  838  # Initialize some variables set by options.
  839  ac_init_help=
  840  ac_init_version=false
  841  ac_unrecognized_opts=
  842  ac_unrecognized_sep=
  843  # The variables have the same names as the options, with
  844  # dashes changed to underlines.
  845  cache_file=/dev/null
  846  exec_prefix=NONE
  847  no_create=
  848  no_recursion=
  849  prefix=NONE
  850  program_prefix=NONE
  851  program_suffix=NONE
  852  program_transform_name=s,x,x,
  853  silent=
  854  site=
  855  srcdir=
  856  verbose=
  857  x_includes=NONE
  858  x_libraries=NONE
  859  
  860  # Installation directory options.
  861  # These are left unexpanded so users can "make install exec_prefix=/foo"
  862  # and all the variables that are supposed to be based on exec_prefix
  863  # by default will actually change.
  864  # Use braces instead of parens because sh, perl, etc. also accept them.
  865  # (The list follows the same order as the GNU Coding Standards.)
  866  bindir='${exec_prefix}/bin'
  867  sbindir='${exec_prefix}/sbin'
  868  libexecdir='${exec_prefix}/libexec'
  869  datarootdir='${prefix}/share'
  870  datadir='${datarootdir}'
  871  sysconfdir='${prefix}/etc'
  872  sharedstatedir='${prefix}/com'
  873  localstatedir='${prefix}/var'
  874  runstatedir='${localstatedir}/run'
  875  includedir='${prefix}/include'
  876  oldincludedir='/usr/include'
  877  docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  878  infodir='${datarootdir}/info'
  879  htmldir='${docdir}'
  880  dvidir='${docdir}'
  881  pdfdir='${docdir}'
  882  psdir='${docdir}'
  883  libdir='${exec_prefix}/lib'
  884  localedir='${datarootdir}/locale'
  885  mandir='${datarootdir}/man'
  886  
  887  ac_prev=
  888  ac_dashdash=
  889  for ac_option
  890  do
  891    # If the previous option needs an argument, assign it.
  892    if test -n "$ac_prev"; then
  893      eval $ac_prev=\$ac_option
  894      ac_prev=
  895      continue
  896    fi
  897  
  898    case $ac_option in
  899    *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  900    *=)   ac_optarg= ;;
  901    *)    ac_optarg=yes ;;
  902    esac
  903  
  904    case $ac_dashdash$ac_option in
  905    --)
  906      ac_dashdash=yes ;;
  907  
  908    -bindir | --bindir | --bindi | --bind | --bin | --bi)
  909      ac_prev=bindir ;;
  910    -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  911      bindir=$ac_optarg ;;
  912  
  913    -build | --build | --buil | --bui | --bu)
  914      ac_prev=build_alias ;;
  915    -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  916      build_alias=$ac_optarg ;;
  917  
  918    -cache-file | --cache-file | --cache-fil | --cache-fi \
  919    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  920      ac_prev=cache_file ;;
  921    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  922    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  923      cache_file=$ac_optarg ;;
  924  
  925    --config-cache | -C)
  926      cache_file=config.cache ;;
  927  
  928    -datadir | --datadir | --datadi | --datad)
  929      ac_prev=datadir ;;
  930    -datadir=* | --datadir=* | --datadi=* | --datad=*)
  931      datadir=$ac_optarg ;;
  932  
  933    -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  934    | --dataroo | --dataro | --datar)
  935      ac_prev=datarootdir ;;
  936    -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  937    | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  938      datarootdir=$ac_optarg ;;
  939  
  940    -disable-* | --disable-*)
  941      ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  942      # Reject names that are not valid shell variable names.
  943      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  944        as_fn_error $? "invalid feature name: \`$ac_useropt'"
  945      ac_useropt_orig=$ac_useropt
  946      ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  947      case $ac_user_opts in
  948        *"
  949  "enable_$ac_useropt"
  950  "*) ;;
  951        *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  952  	 ac_unrecognized_sep=', ';;
  953      esac
  954      eval enable_$ac_useropt=no ;;
  955  
  956    -docdir | --docdir | --docdi | --doc | --do)
  957      ac_prev=docdir ;;
  958    -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  959      docdir=$ac_optarg ;;
  960  
  961    -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  962      ac_prev=dvidir ;;
  963    -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  964      dvidir=$ac_optarg ;;
  965  
  966    -enable-* | --enable-*)
  967      ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  968      # Reject names that are not valid shell variable names.
  969      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  970        as_fn_error $? "invalid feature name: \`$ac_useropt'"
  971      ac_useropt_orig=$ac_useropt
  972      ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
  973      case $ac_user_opts in
  974        *"
  975  "enable_$ac_useropt"
  976  "*) ;;
  977        *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  978  	 ac_unrecognized_sep=', ';;
  979      esac
  980      eval enable_$ac_useropt=\$ac_optarg ;;
  981  
  982    -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  983    | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  984    | --exec | --exe | --ex)
  985      ac_prev=exec_prefix ;;
  986    -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  987    | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  988    | --exec=* | --exe=* | --ex=*)
  989      exec_prefix=$ac_optarg ;;
  990  
  991    -gas | --gas | --ga | --g)
  992      # Obsolete; use --with-gas.
  993      with_gas=yes ;;
  994  
  995    -help | --help | --hel | --he | -h)
  996      ac_init_help=long ;;
  997    -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  998      ac_init_help=recursive ;;
  999    -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 1000      ac_init_help=short ;;
 1001  
 1002    -host | --host | --hos | --ho)
 1003      ac_prev=host_alias ;;
 1004    -host=* | --host=* | --hos=* | --ho=*)
 1005      host_alias=$ac_optarg ;;
 1006  
 1007    -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 1008      ac_prev=htmldir ;;
 1009    -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 1010    | --ht=*)
 1011      htmldir=$ac_optarg ;;
 1012  
 1013    -includedir | --includedir | --includedi | --included | --include \
 1014    | --includ | --inclu | --incl | --inc)
 1015      ac_prev=includedir ;;
 1016    -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 1017    | --includ=* | --inclu=* | --incl=* | --inc=*)
 1018      includedir=$ac_optarg ;;
 1019  
 1020    -infodir | --infodir | --infodi | --infod | --info | --inf)
 1021      ac_prev=infodir ;;
 1022    -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 1023      infodir=$ac_optarg ;;
 1024  
 1025    -libdir | --libdir | --libdi | --libd)
 1026      ac_prev=libdir ;;
 1027    -libdir=* | --libdir=* | --libdi=* | --libd=*)
 1028      libdir=$ac_optarg ;;
 1029  
 1030    -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 1031    | --libexe | --libex | --libe)
 1032      ac_prev=libexecdir ;;
 1033    -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 1034    | --libexe=* | --libex=* | --libe=*)
 1035      libexecdir=$ac_optarg ;;
 1036  
 1037    -localedir | --localedir | --localedi | --localed | --locale)
 1038      ac_prev=localedir ;;
 1039    -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 1040      localedir=$ac_optarg ;;
 1041  
 1042    -localstatedir | --localstatedir | --localstatedi | --localstated \
 1043    | --localstate | --localstat | --localsta | --localst | --locals)
 1044      ac_prev=localstatedir ;;
 1045    -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 1046    | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 1047      localstatedir=$ac_optarg ;;
 1048  
 1049    -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 1050      ac_prev=mandir ;;
 1051    -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 1052      mandir=$ac_optarg ;;
 1053  
 1054    -nfp | --nfp | --nf)
 1055      # Obsolete; use --without-fp.
 1056      with_fp=no ;;
 1057  
 1058    -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 1059    | --no-cr | --no-c | -n)
 1060      no_create=yes ;;
 1061  
 1062    -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 1063    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 1064      no_recursion=yes ;;
 1065  
 1066    -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 1067    | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 1068    | --oldin | --oldi | --old | --ol | --o)
 1069      ac_prev=oldincludedir ;;
 1070    -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 1071    | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 1072    | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 1073      oldincludedir=$ac_optarg ;;
 1074  
 1075    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 1076      ac_prev=prefix ;;
 1077    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 1078      prefix=$ac_optarg ;;
 1079  
 1080    -program-prefix | --program-prefix | --program-prefi | --program-pref \
 1081    | --program-pre | --program-pr | --program-p)
 1082      ac_prev=program_prefix ;;
 1083    -program-prefix=* | --program-prefix=* | --program-prefi=* \
 1084    | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 1085      program_prefix=$ac_optarg ;;
 1086  
 1087    -program-suffix | --program-suffix | --program-suffi | --program-suff \
 1088    | --program-suf | --program-su | --program-s)
 1089      ac_prev=program_suffix ;;
 1090    -program-suffix=* | --program-suffix=* | --program-suffi=* \
 1091    | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 1092      program_suffix=$ac_optarg ;;
 1093  
 1094    -program-transform-name | --program-transform-name \
 1095    | --program-transform-nam | --program-transform-na \
 1096    | --program-transform-n | --program-transform- \
 1097    | --program-transform | --program-transfor \
 1098    | --program-transfo | --program-transf \
 1099    | --program-trans | --program-tran \
 1100    | --progr-tra | --program-tr | --program-t)
 1101      ac_prev=program_transform_name ;;
 1102    -program-transform-name=* | --program-transform-name=* \
 1103    | --program-transform-nam=* | --program-transform-na=* \
 1104    | --program-transform-n=* | --program-transform-=* \
 1105    | --program-transform=* | --program-transfor=* \
 1106    | --program-transfo=* | --program-transf=* \
 1107    | --program-trans=* | --program-tran=* \
 1108    | --progr-tra=* | --program-tr=* | --program-t=*)
 1109      program_transform_name=$ac_optarg ;;
 1110  
 1111    -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 1112      ac_prev=pdfdir ;;
 1113    -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 1114      pdfdir=$ac_optarg ;;
 1115  
 1116    -psdir | --psdir | --psdi | --psd | --ps)
 1117      ac_prev=psdir ;;
 1118    -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 1119      psdir=$ac_optarg ;;
 1120  
 1121    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1122    | -silent | --silent | --silen | --sile | --sil)
 1123      silent=yes ;;
 1124  
 1125    -runstatedir | --runstatedir | --runstatedi | --runstated \
 1126    | --runstate | --runstat | --runsta | --runst | --runs \
 1127    | --run | --ru | --r)
 1128      ac_prev=runstatedir ;;
 1129    -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
 1130    | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
 1131    | --run=* | --ru=* | --r=*)
 1132      runstatedir=$ac_optarg ;;
 1133  
 1134    -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 1135      ac_prev=sbindir ;;
 1136    -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 1137    | --sbi=* | --sb=*)
 1138      sbindir=$ac_optarg ;;
 1139  
 1140    -sharedstatedir | --sharedstatedir | --sharedstatedi \
 1141    | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 1142    | --sharedst | --shareds | --shared | --share | --shar \
 1143    | --sha | --sh)
 1144      ac_prev=sharedstatedir ;;
 1145    -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 1146    | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 1147    | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 1148    | --sha=* | --sh=*)
 1149      sharedstatedir=$ac_optarg ;;
 1150  
 1151    -site | --site | --sit)
 1152      ac_prev=site ;;
 1153    -site=* | --site=* | --sit=*)
 1154      site=$ac_optarg ;;
 1155  
 1156    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1157      ac_prev=srcdir ;;
 1158    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1159      srcdir=$ac_optarg ;;
 1160  
 1161    -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1162    | --syscon | --sysco | --sysc | --sys | --sy)
 1163      ac_prev=sysconfdir ;;
 1164    -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1165    | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1166      sysconfdir=$ac_optarg ;;
 1167  
 1168    -target | --target | --targe | --targ | --tar | --ta | --t)
 1169      ac_prev=target_alias ;;
 1170    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1171      target_alias=$ac_optarg ;;
 1172  
 1173    -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1174      verbose=yes ;;
 1175  
 1176    -version | --version | --versio | --versi | --vers | -V)
 1177      ac_init_version=: ;;
 1178  
 1179    -with-* | --with-*)
 1180      ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1181      # Reject names that are not valid shell variable names.
 1182      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1183        as_fn_error $? "invalid package name: \`$ac_useropt'"
 1184      ac_useropt_orig=$ac_useropt
 1185      ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
 1186      case $ac_user_opts in
 1187        *"
 1188  "with_$ac_useropt"
 1189  "*) ;;
 1190        *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1191  	 ac_unrecognized_sep=', ';;
 1192      esac
 1193      eval with_$ac_useropt=\$ac_optarg ;;
 1194  
 1195    -without-* | --without-*)
 1196      ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1197      # Reject names that are not valid shell variable names.
 1198      expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1199        as_fn_error $? "invalid package name: \`$ac_useropt'"
 1200      ac_useropt_orig=$ac_useropt
 1201      ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
 1202      case $ac_user_opts in
 1203        *"
 1204  "with_$ac_useropt"
 1205  "*) ;;
 1206        *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1207  	 ac_unrecognized_sep=', ';;
 1208      esac
 1209      eval with_$ac_useropt=no ;;
 1210  
 1211    --x)
 1212      # Obsolete; use --with-x.
 1213      with_x=yes ;;
 1214  
 1215    -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1216    | --x-incl | --x-inc | --x-in | --x-i)
 1217      ac_prev=x_includes ;;
 1218    -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1219    | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1220      x_includes=$ac_optarg ;;
 1221  
 1222    -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1223    | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1224      ac_prev=x_libraries ;;
 1225    -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1226    | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1227      x_libraries=$ac_optarg ;;
 1228  
 1229    -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1230  Try \`$0 --help' for more information"
 1231      ;;
 1232  
 1233    *=*)
 1234      ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1235      # Reject names that are not valid shell variable names.
 1236      case $ac_envvar in #(
 1237        '' | [0-9]* | *[!_$as_cr_alnum]* )
 1238        as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1239      esac
 1240      eval $ac_envvar=\$ac_optarg
 1241      export $ac_envvar ;;
 1242  
 1243    *)
 1244      # FIXME: should be removed in autoconf 3.0.
 1245      printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
 1246      expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1247        printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
 1248      : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1249      ;;
 1250  
 1251    esac
 1252  done
 1253  
 1254  if test -n "$ac_prev"; then
 1255    ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1256    as_fn_error $? "missing argument to $ac_option"
 1257  fi
 1258  
 1259  if test -n "$ac_unrecognized_opts"; then
 1260    case $enable_option_checking in
 1261      no) ;;
 1262      fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1263      *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1264    esac
 1265  fi
 1266  
 1267  # Check all directory arguments for consistency.
 1268  for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1269  		datadir sysconfdir sharedstatedir localstatedir includedir \
 1270  		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1271  		libdir localedir mandir runstatedir
 1272  do
 1273    eval ac_val=\$$ac_var
 1274    # Remove trailing slashes.
 1275    case $ac_val in
 1276      */ )
 1277        ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1278        eval $ac_var=\$ac_val;;
 1279    esac
 1280    # Be sure to have absolute directory names.
 1281    case $ac_val in
 1282      [\\/$]* | ?:[\\/]* )  continue;;
 1283      NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1284    esac
 1285    as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1286  done
 1287  
 1288  # There might be people who depend on the old broken behavior: `$host'
 1289  # used to hold the argument of --host etc.
 1290  # FIXME: To remove some day.
 1291  build=$build_alias
 1292  host=$host_alias
 1293  target=$target_alias
 1294  
 1295  # FIXME: To remove some day.
 1296  if test "x$host_alias" != x; then
 1297    if test "x$build_alias" = x; then
 1298      cross_compiling=maybe
 1299    elif test "x$build_alias" != "x$host_alias"; then
 1300      cross_compiling=yes
 1301    fi
 1302  fi
 1303  
 1304  ac_tool_prefix=
 1305  test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1306  
 1307  test "$silent" = yes && exec 6>/dev/null
 1308  
 1309  
 1310  ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1311  ac_ls_di=`ls -di .` &&
 1312  ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1313    as_fn_error $? "working directory cannot be determined"
 1314  test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1315    as_fn_error $? "pwd does not report name of working directory"
 1316  
 1317  
 1318  # Find the source files, if location was not specified.
 1319  if test -z "$srcdir"; then
 1320    ac_srcdir_defaulted=yes
 1321    # Try the directory containing this script, then the parent directory.
 1322    ac_confdir=`$as_dirname -- "$as_myself" ||
 1323  $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1324  	 X"$as_myself" : 'X\(//\)[^/]' \| \
 1325  	 X"$as_myself" : 'X\(//\)$' \| \
 1326  	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1327  printf "%s\n" X"$as_myself" |
 1328      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1329  	    s//\1/
 1330  	    q
 1331  	  }
 1332  	  /^X\(\/\/\)[^/].*/{
 1333  	    s//\1/
 1334  	    q
 1335  	  }
 1336  	  /^X\(\/\/\)$/{
 1337  	    s//\1/
 1338  	    q
 1339  	  }
 1340  	  /^X\(\/\).*/{
 1341  	    s//\1/
 1342  	    q
 1343  	  }
 1344  	  s/.*/./; q'`
 1345    srcdir=$ac_confdir
 1346    if test ! -r "$srcdir/$ac_unique_file"; then
 1347      srcdir=..
 1348    fi
 1349  else
 1350    ac_srcdir_defaulted=no
 1351  fi
 1352  if test ! -r "$srcdir/$ac_unique_file"; then
 1353    test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1354    as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1355  fi
 1356  ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1357  ac_abs_confdir=`(
 1358  	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1359  	pwd)`
 1360  # When building in place, set srcdir=.
 1361  if test "$ac_abs_confdir" = "$ac_pwd"; then
 1362    srcdir=.
 1363  fi
 1364  # Remove unnecessary trailing slashes from srcdir.
 1365  # Double slashes in file names in object file debugging info
 1366  # mess up M-x gdb in Emacs.
 1367  case $srcdir in
 1368  */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1369  esac
 1370  for ac_var in $ac_precious_vars; do
 1371    eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1372    eval ac_env_${ac_var}_value=\$${ac_var}
 1373    eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1374    eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1375  done
 1376  
 1377  #
 1378  # Report the --help message.
 1379  #
 1380  if test "$ac_init_help" = "long"; then
 1381    # Omit some internal or obsolete options to make the list less imposing.
 1382    # This message is too long to be a string in the A/UX 3.1 sh.
 1383    cat <<_ACEOF
 1384  \`configure' configures breakpad 0.1 to adapt to many kinds of systems.
 1385  
 1386  Usage: $0 [OPTION]... [VAR=VALUE]...
 1387  
 1388  To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1389  VAR=VALUE.  See below for descriptions of some of the useful variables.
 1390  
 1391  Defaults for the options are specified in brackets.
 1392  
 1393  Configuration:
 1394    -h, --help              display this help and exit
 1395        --help=short        display options specific to this package
 1396        --help=recursive    display the short help of all the included packages
 1397    -V, --version           display version information and exit
 1398    -q, --quiet, --silent   do not print \`checking ...' messages
 1399        --cache-file=FILE   cache test results in FILE [disabled]
 1400    -C, --config-cache      alias for \`--cache-file=config.cache'
 1401    -n, --no-create         do not create output files
 1402        --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1403  
 1404  Installation directories:
 1405    --prefix=PREFIX         install architecture-independent files in PREFIX
 1406                            [$ac_default_prefix]
 1407    --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1408                            [PREFIX]
 1409  
 1410  By default, \`make install' will install all the files in
 1411  \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1412  an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1413  for instance \`--prefix=\$HOME'.
 1414  
 1415  For better control, use the options below.
 1416  
 1417  Fine tuning of the installation directories:
 1418    --bindir=DIR            user executables [EPREFIX/bin]
 1419    --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1420    --libexecdir=DIR        program executables [EPREFIX/libexec]
 1421    --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1422    --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1423    --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1424    --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
 1425    --libdir=DIR            object code libraries [EPREFIX/lib]
 1426    --includedir=DIR        C header files [PREFIX/include]
 1427    --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1428    --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1429    --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1430    --infodir=DIR           info documentation [DATAROOTDIR/info]
 1431    --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1432    --mandir=DIR            man documentation [DATAROOTDIR/man]
 1433    --docdir=DIR            documentation root [DATAROOTDIR/doc/breakpad]
 1434    --htmldir=DIR           html documentation [DOCDIR]
 1435    --dvidir=DIR            dvi documentation [DOCDIR]
 1436    --pdfdir=DIR            pdf documentation [DOCDIR]
 1437    --psdir=DIR             ps documentation [DOCDIR]
 1438  _ACEOF
 1439  
 1440    cat <<\_ACEOF
 1441  
 1442  Program names:
 1443    --program-prefix=PREFIX            prepend PREFIX to installed program names
 1444    --program-suffix=SUFFIX            append SUFFIX to installed program names
 1445    --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 1446  
 1447  System types:
 1448    --build=BUILD     configure for building on BUILD [guessed]
 1449    --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1450  _ACEOF
 1451  fi
 1452  
 1453  if test -n "$ac_init_help"; then
 1454    case $ac_init_help in
 1455       short | recursive ) echo "Configuration of breakpad 0.1:";;
 1456     esac
 1457    cat <<\_ACEOF
 1458  
 1459  Optional Features:
 1460    --disable-option-checking  ignore unrecognized --enable/--with options
 1461    --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1462    --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1463    --enable-silent-rules   less verbose build output (undo: "make V=1")
 1464    --disable-silent-rules  verbose build output (undo: "make V=0")
 1465    --enable-maintainer-mode
 1466                            enable make rules and dependencies not useful (and
 1467                            sometimes confusing) to the casual installer
 1468    --enable-dependency-tracking
 1469                            do not reject slow dependency extractors
 1470    --disable-dependency-tracking
 1471                            speeds up one-time build
 1472    --enable-m32            Compile/build with -m32 (default is no)
 1473    --disable-largefile     omit support for large files
 1474    --disable-processor     Don't build processor library (default is no)
 1475    --disable-tools         Don't build tool binaries (default is no)
 1476    --enable-system-test-libs
 1477                            Use gtest/gmock/etc... from the system instead of
 1478                            the local copies (default is local)
 1479    --enable-selftest       Run extra tests with "make check" (may conflict with
 1480                            optimizations) (default is no)
 1481    --enable-system-rustc-demangle
 1482                            Link against the rustc-demangle library to demangle
 1483                            Rust language symbols during symbol dumping (default
 1484                            is no). This assumes that rustc-demangle is
 1485                            installed in your sysroot, and all headers from it
 1486                            are available in your standard include path
 1487    --enable-zstd           Enable decompression of ELF sections with zstd
 1488  
 1489  Optional Packages:
 1490    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1491    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1492    --with-rustc-demangle=/path/to/rustc-demangle
 1493                            Link against the rustc-demangle library to demangle
 1494                            Rust language symbols during symbol dumping (default
 1495                            is no) Pass the path to the crate root.
 1496    --with-tests-as-root    Run the tests as root. Use this on platforms like
 1497                            travis-ci.org that require root privileges to use
 1498                            ptrace (default is no)
 1499  
 1500  Some influential environment variables:
 1501    CC          C compiler command
 1502    CFLAGS      C compiler flags
 1503    LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 1504                nonstandard directory <lib dir>
 1505    LIBS        libraries to pass to the linker, e.g. -l<library>
 1506    CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
 1507                you have headers in a nonstandard directory <include dir>
 1508    CCAS        assembler compiler command (defaults to CC)
 1509    CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 1510    CPP         C preprocessor
 1511    CXX         C++ compiler command
 1512    CXXFLAGS    C++ compiler flags
 1513    GMOCK_CFLAGS
 1514                Compiler flags for gmock
 1515    GMOCK_LIBS  Linker flags for gmock
 1516    GTEST_CFLAGS
 1517                Compiler flags for gtest
 1518    GTEST_LIBS  Linker flags for gtest
 1519    RUSTC_DEMANGLE_CFLAGS
 1520                Compiler flags for rustc-demangle
 1521    RUSTC_DEMANGLE_LIBS
 1522                Linker flags for rustc-demangle
 1523  
 1524  Use these variables to override the choices made by `configure' or to help
 1525  it to find libraries and programs with nonstandard names/locations.
 1526  
 1527  Report bugs to <google-breakpad-dev@googlegroups.com>.
 1528  _ACEOF
 1529  ac_status=$?
 1530  fi
 1531  
 1532  if test "$ac_init_help" = "recursive"; then
 1533    # If there are subdirs, report their specific --help.
 1534    for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1535      test -d "$ac_dir" ||
 1536        { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1537        continue
 1538      ac_builddir=.
 1539  
 1540  case "$ac_dir" in
 1541  .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1542  *)
 1543    ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
 1544    # A ".." for each directory in $ac_dir_suffix.
 1545    ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1546    case $ac_top_builddir_sub in
 1547    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1548    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1549    esac ;;
 1550  esac
 1551  ac_abs_top_builddir=$ac_pwd
 1552  ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1553  # for backward compatibility:
 1554  ac_top_builddir=$ac_top_build_prefix
 1555  
 1556  case $srcdir in
 1557    .)  # We are building in place.
 1558      ac_srcdir=.
 1559      ac_top_srcdir=$ac_top_builddir_sub
 1560      ac_abs_top_srcdir=$ac_pwd ;;
 1561    [\\/]* | ?:[\\/]* )  # Absolute name.
 1562      ac_srcdir=$srcdir$ac_dir_suffix;
 1563      ac_top_srcdir=$srcdir
 1564      ac_abs_top_srcdir=$srcdir ;;
 1565    *) # Relative name.
 1566      ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1567      ac_top_srcdir=$ac_top_build_prefix$srcdir
 1568      ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1569  esac
 1570  ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1571  
 1572      cd "$ac_dir" || { ac_status=$?; continue; }
 1573      # Check for configure.gnu first; this name is used for a wrapper for
 1574      # Metaconfig's "Configure" on case-insensitive file systems.
 1575      if test -f "$ac_srcdir/configure.gnu"; then
 1576        echo &&
 1577        $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1578      elif test -f "$ac_srcdir/configure"; then
 1579        echo &&
 1580        $SHELL "$ac_srcdir/configure" --help=recursive
 1581      else
 1582        printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1583      fi || ac_status=$?
 1584      cd "$ac_pwd" || { ac_status=$?; break; }
 1585    done
 1586  fi
 1587  
 1588  test -n "$ac_init_help" && exit $ac_status
 1589  if $ac_init_version; then
 1590    cat <<\_ACEOF
 1591  breakpad configure 0.1
 1592  generated by GNU Autoconf 2.71
 1593  
 1594  Copyright (C) 2021 Free Software Foundation, Inc.
 1595  This configure script is free software; the Free Software Foundation
 1596  gives unlimited permission to copy, distribute and modify it.
 1597  _ACEOF
 1598    exit
 1599  fi
 1600  
 1601  ## ------------------------ ##
 1602  ## Autoconf initialization. ##
 1603  ## ------------------------ ##
 1604  
 1605  # ac_fn_c_try_compile LINENO
 1606  # --------------------------
 1607  # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1608  ac_fn_c_try_compile ()
 1609  {
 1610    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1611    rm -f conftest.$ac_objext conftest.beam
 1612    if { { ac_try="$ac_compile"
 1613  case "(($ac_try" in
 1614    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1615    *) ac_try_echo=$ac_try;;
 1616  esac
 1617  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1618  printf "%s\n" "$ac_try_echo"; } >&5
 1619    (eval "$ac_compile") 2>conftest.err
 1620    ac_status=$?
 1621    if test -s conftest.err; then
 1622      grep -v '^ *+' conftest.err >conftest.er1
 1623      cat conftest.er1 >&5
 1624      mv -f conftest.er1 conftest.err
 1625    fi
 1626    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1627    test $ac_status = 0; } && {
 1628  	 test -z "$ac_c_werror_flag" ||
 1629  	 test ! -s conftest.err
 1630         } && test -s conftest.$ac_objext
 1631  then :
 1632    ac_retval=0
 1633  else $as_nop
 1634    printf "%s\n" "$as_me: failed program was:" >&5
 1635  sed 's/^/| /' conftest.$ac_ext >&5
 1636  
 1637  	ac_retval=1
 1638  fi
 1639    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1640    as_fn_set_status $ac_retval
 1641  
 1642  } # ac_fn_c_try_compile
 1643  
 1644  # ac_fn_c_try_cpp LINENO
 1645  # ----------------------
 1646  # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
 1647  ac_fn_c_try_cpp ()
 1648  {
 1649    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1650    if { { ac_try="$ac_cpp conftest.$ac_ext"
 1651  case "(($ac_try" in
 1652    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1653    *) ac_try_echo=$ac_try;;
 1654  esac
 1655  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1656  printf "%s\n" "$ac_try_echo"; } >&5
 1657    (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
 1658    ac_status=$?
 1659    if test -s conftest.err; then
 1660      grep -v '^ *+' conftest.err >conftest.er1
 1661      cat conftest.er1 >&5
 1662      mv -f conftest.er1 conftest.err
 1663    fi
 1664    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1665    test $ac_status = 0; } > conftest.i && {
 1666  	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 1667  	 test ! -s conftest.err
 1668         }
 1669  then :
 1670    ac_retval=0
 1671  else $as_nop
 1672    printf "%s\n" "$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_cxx_try_compile LINENO
 1683  # ----------------------------
 1684  # Try to compile conftest.$ac_ext, and return whether this succeeded.
 1685  ac_fn_cxx_try_compile ()
 1686  {
 1687    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1688    rm -f conftest.$ac_objext conftest.beam
 1689    if { { ac_try="$ac_compile"
 1690  case "(($ac_try" in
 1691    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1692    *) ac_try_echo=$ac_try;;
 1693  esac
 1694  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1695  printf "%s\n" "$ac_try_echo"; } >&5
 1696    (eval "$ac_compile") 2>conftest.err
 1697    ac_status=$?
 1698    if test -s conftest.err; then
 1699      grep -v '^ *+' conftest.err >conftest.er1
 1700      cat conftest.er1 >&5
 1701      mv -f conftest.er1 conftest.err
 1702    fi
 1703    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1704    test $ac_status = 0; } && {
 1705  	 test -z "$ac_cxx_werror_flag" ||
 1706  	 test ! -s conftest.err
 1707         } && test -s conftest.$ac_objext
 1708  then :
 1709    ac_retval=0
 1710  else $as_nop
 1711    printf "%s\n" "$as_me: failed program was:" >&5
 1712  sed 's/^/| /' conftest.$ac_ext >&5
 1713  
 1714  	ac_retval=1
 1715  fi
 1716    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1717    as_fn_set_status $ac_retval
 1718  
 1719  } # ac_fn_cxx_try_compile
 1720  
 1721  # ac_fn_c_try_link LINENO
 1722  # -----------------------
 1723  # Try to link conftest.$ac_ext, and return whether this succeeded.
 1724  ac_fn_c_try_link ()
 1725  {
 1726    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1727    rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
 1728    if { { ac_try="$ac_link"
 1729  case "(($ac_try" in
 1730    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 1731    *) ac_try_echo=$ac_try;;
 1732  esac
 1733  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 1734  printf "%s\n" "$ac_try_echo"; } >&5
 1735    (eval "$ac_link") 2>conftest.err
 1736    ac_status=$?
 1737    if test -s conftest.err; then
 1738      grep -v '^ *+' conftest.err >conftest.er1
 1739      cat conftest.er1 >&5
 1740      mv -f conftest.er1 conftest.err
 1741    fi
 1742    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 1743    test $ac_status = 0; } && {
 1744  	 test -z "$ac_c_werror_flag" ||
 1745  	 test ! -s conftest.err
 1746         } && test -s conftest$ac_exeext && {
 1747  	 test "$cross_compiling" = yes ||
 1748  	 test -x conftest$ac_exeext
 1749         }
 1750  then :
 1751    ac_retval=0
 1752  else $as_nop
 1753    printf "%s\n" "$as_me: failed program was:" >&5
 1754  sed 's/^/| /' conftest.$ac_ext >&5
 1755  
 1756  	ac_retval=1
 1757  fi
 1758    # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
 1759    # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
 1760    # interfere with the next link command; also delete a directory that is
 1761    # left behind by Apple's compiler.  We do this before executing the actions.
 1762    rm -rf conftest.dSYM conftest_ipa8_conftest.oo
 1763    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1764    as_fn_set_status $ac_retval
 1765  
 1766  } # ac_fn_c_try_link
 1767  
 1768  # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
 1769  # -------------------------------------------------------
 1770  # Tests whether HEADER exists and can be compiled using the include files in
 1771  # INCLUDES, setting the cache variable VAR accordingly.
 1772  ac_fn_c_check_header_compile ()
 1773  {
 1774    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1775    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1776  printf %s "checking for $2... " >&6; }
 1777  if eval test \${$3+y}
 1778  then :
 1779    printf %s "(cached) " >&6
 1780  else $as_nop
 1781    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1782  /* end confdefs.h.  */
 1783  $4
 1784  #include <$2>
 1785  _ACEOF
 1786  if ac_fn_c_try_compile "$LINENO"
 1787  then :
 1788    eval "$3=yes"
 1789  else $as_nop
 1790    eval "$3=no"
 1791  fi
 1792  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 1793  fi
 1794  eval ac_res=\$$3
 1795  	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1796  printf "%s\n" "$ac_res" >&6; }
 1797    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1798  
 1799  } # ac_fn_c_check_header_compile
 1800  
 1801  # ac_fn_c_check_func LINENO FUNC VAR
 1802  # ----------------------------------
 1803  # Tests whether FUNC exists, setting the cache variable VAR accordingly
 1804  ac_fn_c_check_func ()
 1805  {
 1806    as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 1807    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
 1808  printf %s "checking for $2... " >&6; }
 1809  if eval test \${$3+y}
 1810  then :
 1811    printf %s "(cached) " >&6
 1812  else $as_nop
 1813    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 1814  /* end confdefs.h.  */
 1815  /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
 1816     For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 1817  #define $2 innocuous_$2
 1818  
 1819  /* System header to define __stub macros and hopefully few prototypes,
 1820     which can conflict with char $2 (); below.  */
 1821  
 1822  #include <limits.h>
 1823  #undef $2
 1824  
 1825  /* Override any GCC internal prototype to avoid an error.
 1826     Use char because int might match the return type of a GCC
 1827     builtin and then its argument prototype would still apply.  */
 1828  #ifdef __cplusplus
 1829  extern "C"
 1830  #endif
 1831  char $2 ();
 1832  /* The GNU C library defines this for functions which it implements
 1833      to always fail with ENOSYS.  Some functions are actually named
 1834      something starting with __ and the normal name is an alias.  */
 1835  #if defined __stub_$2 || defined __stub___$2
 1836  choke me
 1837  #endif
 1838  
 1839  int
 1840  main (void)
 1841  {
 1842  return $2 ();
 1843    ;
 1844    return 0;
 1845  }
 1846  _ACEOF
 1847  if ac_fn_c_try_link "$LINENO"
 1848  then :
 1849    eval "$3=yes"
 1850  else $as_nop
 1851    eval "$3=no"
 1852  fi
 1853  rm -f core conftest.err conftest.$ac_objext conftest.beam \
 1854      conftest$ac_exeext conftest.$ac_ext
 1855  fi
 1856  eval ac_res=\$$3
 1857  	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 1858  printf "%s\n" "$ac_res" >&6; }
 1859    eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
 1860  
 1861  } # ac_fn_c_check_func
 1862  ac_configure_args_raw=
 1863  for ac_arg
 1864  do
 1865    case $ac_arg in
 1866    *\'*)
 1867      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 1868    esac
 1869    as_fn_append ac_configure_args_raw " '$ac_arg'"
 1870  done
 1871  
 1872  case $ac_configure_args_raw in
 1873    *$as_nl*)
 1874      ac_safe_unquote= ;;
 1875    *)
 1876      ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
 1877      ac_unsafe_a="$ac_unsafe_z#~"
 1878      ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
 1879      ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
 1880  esac
 1881  
 1882  cat >config.log <<_ACEOF
 1883  This file contains any messages produced by compilers while
 1884  running configure, to aid debugging if configure makes a mistake.
 1885  
 1886  It was created by breakpad $as_me 0.1, which was
 1887  generated by GNU Autoconf 2.71.  Invocation command line was
 1888  
 1889    $ $0$ac_configure_args_raw
 1890  
 1891  _ACEOF
 1892  exec 5>>config.log
 1893  {
 1894  cat <<_ASUNAME
 1895  ## --------- ##
 1896  ## Platform. ##
 1897  ## --------- ##
 1898  
 1899  hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 1900  uname -m = `(uname -m) 2>/dev/null || echo unknown`
 1901  uname -r = `(uname -r) 2>/dev/null || echo unknown`
 1902  uname -s = `(uname -s) 2>/dev/null || echo unknown`
 1903  uname -v = `(uname -v) 2>/dev/null || echo unknown`
 1904  
 1905  /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 1906  /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 1907  
 1908  /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 1909  /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 1910  /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 1911  /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 1912  /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 1913  /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 1914  /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 1915  
 1916  _ASUNAME
 1917  
 1918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1919  for as_dir in $PATH
 1920  do
 1921    IFS=$as_save_IFS
 1922    case $as_dir in #(((
 1923      '') as_dir=./ ;;
 1924      */) ;;
 1925      *) as_dir=$as_dir/ ;;
 1926    esac
 1927      printf "%s\n" "PATH: $as_dir"
 1928    done
 1929  IFS=$as_save_IFS
 1930  
 1931  } >&5
 1932  
 1933  cat >&5 <<_ACEOF
 1934  
 1935  
 1936  ## ----------- ##
 1937  ## Core tests. ##
 1938  ## ----------- ##
 1939  
 1940  _ACEOF
 1941  
 1942  
 1943  # Keep a trace of the command line.
 1944  # Strip out --no-create and --no-recursion so they do not pile up.
 1945  # Strip out --silent because we don't want to record it for future runs.
 1946  # Also quote any args containing shell meta-characters.
 1947  # Make two passes to allow for proper duplicate-argument suppression.
 1948  ac_configure_args=
 1949  ac_configure_args0=
 1950  ac_configure_args1=
 1951  ac_must_keep_next=false
 1952  for ac_pass in 1 2
 1953  do
 1954    for ac_arg
 1955    do
 1956      case $ac_arg in
 1957      -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 1958      -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1959      | -silent | --silent | --silen | --sile | --sil)
 1960        continue ;;
 1961      *\'*)
 1962        ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 1963      esac
 1964      case $ac_pass in
 1965      1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 1966      2)
 1967        as_fn_append ac_configure_args1 " '$ac_arg'"
 1968        if test $ac_must_keep_next = true; then
 1969  	ac_must_keep_next=false # Got value, back to normal.
 1970        else
 1971  	case $ac_arg in
 1972  	  *=* | --config-cache | -C | -disable-* | --disable-* \
 1973  	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 1974  	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 1975  	  | -with-* | --with-* | -without-* | --without-* | --x)
 1976  	    case "$ac_configure_args0 " in
 1977  	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 1978  	    esac
 1979  	    ;;
 1980  	  -* ) ac_must_keep_next=true ;;
 1981  	esac
 1982        fi
 1983        as_fn_append ac_configure_args " '$ac_arg'"
 1984        ;;
 1985      esac
 1986    done
 1987  done
 1988  { ac_configure_args0=; unset ac_configure_args0;}
 1989  { ac_configure_args1=; unset ac_configure_args1;}
 1990  
 1991  # When interrupted or exit'd, cleanup temporary files, and complete
 1992  # config.log.  We remove comments because anyway the quotes in there
 1993  # would cause problems or look ugly.
 1994  # WARNING: Use '\'' to represent an apostrophe within the trap.
 1995  # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 1996  trap 'exit_status=$?
 1997    # Sanitize IFS.
 1998    IFS=" ""	$as_nl"
 1999    # Save into config.log some information that might help in debugging.
 2000    {
 2001      echo
 2002  
 2003      printf "%s\n" "## ---------------- ##
 2004  ## Cache variables. ##
 2005  ## ---------------- ##"
 2006      echo
 2007      # The following way of writing the cache mishandles newlines in values,
 2008  (
 2009    for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 2010      eval ac_val=\$$ac_var
 2011      case $ac_val in #(
 2012      *${as_nl}*)
 2013        case $ac_var in #(
 2014        *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 2015  printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 2016        esac
 2017        case $ac_var in #(
 2018        _ | IFS | as_nl) ;; #(
 2019        BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 2020        *) { eval $ac_var=; unset $ac_var;} ;;
 2021        esac ;;
 2022      esac
 2023    done
 2024    (set) 2>&1 |
 2025      case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 2026      *${as_nl}ac_space=\ *)
 2027        sed -n \
 2028  	"s/'\''/'\''\\\\'\'''\''/g;
 2029  	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 2030        ;; #(
 2031      *)
 2032        sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 2033        ;;
 2034      esac |
 2035      sort
 2036  )
 2037      echo
 2038  
 2039      printf "%s\n" "## ----------------- ##
 2040  ## Output variables. ##
 2041  ## ----------------- ##"
 2042      echo
 2043      for ac_var in $ac_subst_vars
 2044      do
 2045        eval ac_val=\$$ac_var
 2046        case $ac_val in
 2047        *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2048        esac
 2049        printf "%s\n" "$ac_var='\''$ac_val'\''"
 2050      done | sort
 2051      echo
 2052  
 2053      if test -n "$ac_subst_files"; then
 2054        printf "%s\n" "## ------------------- ##
 2055  ## File substitutions. ##
 2056  ## ------------------- ##"
 2057        echo
 2058        for ac_var in $ac_subst_files
 2059        do
 2060  	eval ac_val=\$$ac_var
 2061  	case $ac_val in
 2062  	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 2063  	esac
 2064  	printf "%s\n" "$ac_var='\''$ac_val'\''"
 2065        done | sort
 2066        echo
 2067      fi
 2068  
 2069      if test -s confdefs.h; then
 2070        printf "%s\n" "## ----------- ##
 2071  ## confdefs.h. ##
 2072  ## ----------- ##"
 2073        echo
 2074        cat confdefs.h
 2075        echo
 2076      fi
 2077      test "$ac_signal" != 0 &&
 2078        printf "%s\n" "$as_me: caught signal $ac_signal"
 2079      printf "%s\n" "$as_me: exit $exit_status"
 2080    } >&5
 2081    rm -f core *.core core.conftest.* &&
 2082      rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 2083      exit $exit_status
 2084  ' 0
 2085  for ac_signal in 1 2 13 15; do
 2086    trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 2087  done
 2088  ac_signal=0
 2089  
 2090  # confdefs.h avoids OS command line length limits that DEFS can exceed.
 2091  rm -f -r conftest* confdefs.h
 2092  
 2093  printf "%s\n" "/* confdefs.h */" > confdefs.h
 2094  
 2095  # Predefined preprocessor variables.
 2096  
 2097  printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
 2098  
 2099  printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
 2100  
 2101  printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
 2102  
 2103  printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
 2104  
 2105  printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
 2106  
 2107  printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
 2108  
 2109  
 2110  # Let the site file select an alternate cache file if it wants to.
 2111  # Prefer an explicitly selected file to automatically selected ones.
 2112  if test -n "$CONFIG_SITE"; then
 2113    ac_site_files="$CONFIG_SITE"
 2114  elif test "x$prefix" != xNONE; then
 2115    ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
 2116  else
 2117    ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 2118  fi
 2119  
 2120  for ac_site_file in $ac_site_files
 2121  do
 2122    case $ac_site_file in #(
 2123    */*) :
 2124       ;; #(
 2125    *) :
 2126      ac_site_file=./$ac_site_file ;;
 2127  esac
 2128    if test -f "$ac_site_file" && test -r "$ac_site_file"; then
 2129      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 2130  printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
 2131      sed 's/^/| /' "$ac_site_file" >&5
 2132      . "$ac_site_file" \
 2133        || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2134  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 2135  as_fn_error $? "failed to load site script $ac_site_file
 2136  See \`config.log' for more details" "$LINENO" 5; }
 2137    fi
 2138  done
 2139  
 2140  if test -r "$cache_file"; then
 2141    # Some versions of bash will fail to source /dev/null (special files
 2142    # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 2143    if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 2144      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 2145  printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
 2146      case $cache_file in
 2147        [\\/]* | ?:[\\/]* ) . "$cache_file";;
 2148        *)                      . "./$cache_file";;
 2149      esac
 2150    fi
 2151  else
 2152    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 2153  printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
 2154    >$cache_file
 2155  fi
 2156  
 2157  # Test code for whether the C compiler supports C89 (global declarations)
 2158  ac_c_conftest_c89_globals='
 2159  /* Does the compiler advertise C89 conformance?
 2160     Do not test the value of __STDC__, because some compilers set it to 0
 2161     while being otherwise adequately conformant. */
 2162  #if !defined __STDC__
 2163  # error "Compiler does not advertise C89 conformance"
 2164  #endif
 2165  
 2166  #include <stddef.h>
 2167  #include <stdarg.h>
 2168  struct stat;
 2169  /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
 2170  struct buf { int x; };
 2171  struct buf * (*rcsopen) (struct buf *, struct stat *, int);
 2172  static char *e (p, i)
 2173       char **p;
 2174       int i;
 2175  {
 2176    return p[i];
 2177  }
 2178  static char *f (char * (*g) (char **, int), char **p, ...)
 2179  {
 2180    char *s;
 2181    va_list v;
 2182    va_start (v,p);
 2183    s = g (p, va_arg (v,int));
 2184    va_end (v);
 2185    return s;
 2186  }
 2187  
 2188  /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 2189     function prototypes and stuff, but not \xHH hex character constants.
 2190     These do not provoke an error unfortunately, instead are silently treated
 2191     as an "x".  The following induces an error, until -std is added to get
 2192     proper ANSI mode.  Curiously \x00 != x always comes out true, for an
 2193     array size at least.  It is necessary to write \x00 == 0 to get something
 2194     that is true only with -std.  */
 2195  int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
 2196  
 2197  /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 2198     inside strings and character constants.  */
 2199  #define FOO(x) '\''x'\''
 2200  int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
 2201  
 2202  int test (int i, double x);
 2203  struct s1 {int (*f) (int a);};
 2204  struct s2 {int (*f) (double a);};
 2205  int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
 2206                 int, int);'
 2207  
 2208  # Test code for whether the C compiler supports C89 (body of main).
 2209  ac_c_conftest_c89_main='
 2210  ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
 2211  '
 2212  
 2213  # Test code for whether the C compiler supports C99 (global declarations)
 2214  ac_c_conftest_c99_globals='
 2215  // Does the compiler advertise C99 conformance?
 2216  #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
 2217  # error "Compiler does not advertise C99 conformance"
 2218  #endif
 2219  
 2220  #include <stdbool.h>
 2221  extern int puts (const char *);
 2222  extern int printf (const char *, ...);
 2223  extern int dprintf (int, const char *, ...);
 2224  extern void *malloc (size_t);
 2225  
 2226  // Check varargs macros.  These examples are taken from C99 6.10.3.5.
 2227  // dprintf is used instead of fprintf to avoid needing to declare
 2228  // FILE and stderr.
 2229  #define debug(...) dprintf (2, __VA_ARGS__)
 2230  #define showlist(...) puts (#__VA_ARGS__)
 2231  #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
 2232  static void
 2233  test_varargs_macros (void)
 2234  {
 2235    int x = 1234;
 2236    int y = 5678;
 2237    debug ("Flag");
 2238    debug ("X = %d\n", x);
 2239    showlist (The first, second, and third items.);
 2240    report (x>y, "x is %d but y is %d", x, y);
 2241  }
 2242  
 2243  // Check long long types.
 2244  #define BIG64 18446744073709551615ull
 2245  #define BIG32 4294967295ul
 2246  #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
 2247  #if !BIG_OK
 2248    #error "your preprocessor is broken"
 2249  #endif
 2250  #if BIG_OK
 2251  #else
 2252    #error "your preprocessor is broken"
 2253  #endif
 2254  static long long int bignum = -9223372036854775807LL;
 2255  static unsigned long long int ubignum = BIG64;
 2256  
 2257  struct incomplete_array
 2258  {
 2259    int datasize;
 2260    double data[];
 2261  };
 2262  
 2263  struct named_init {
 2264    int number;
 2265    const wchar_t *name;
 2266    double average;
 2267  };
 2268  
 2269  typedef const char *ccp;
 2270  
 2271  static inline int
 2272  test_restrict (ccp restrict text)
 2273  {
 2274    // See if C++-style comments work.
 2275    // Iterate through items via the restricted pointer.
 2276    // Also check for declarations in for loops.
 2277    for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
 2278      continue;
 2279    return 0;
 2280  }
 2281  
 2282  // Check varargs and va_copy.
 2283  static bool
 2284  test_varargs (const char *format, ...)
 2285  {
 2286    va_list args;
 2287    va_start (args, format);
 2288    va_list args_copy;
 2289    va_copy (args_copy, args);
 2290  
 2291    const char *str = "";
 2292    int number = 0;
 2293    float fnumber = 0;
 2294  
 2295    while (*format)
 2296      {
 2297        switch (*format++)
 2298  	{
 2299  	case '\''s'\'': // string
 2300  	  str = va_arg (args_copy, const char *);
 2301  	  break;
 2302  	case '\''d'\'': // int
 2303  	  number = va_arg (args_copy, int);
 2304  	  break;
 2305  	case '\''f'\'': // float
 2306  	  fnumber = va_arg (args_copy, double);
 2307  	  break;
 2308  	default:
 2309  	  break;
 2310  	}
 2311      }
 2312    va_end (args_copy);
 2313    va_end (args);
 2314  
 2315    return *str && number && fnumber;
 2316  }
 2317  '
 2318  
 2319  # Test code for whether the C compiler supports C99 (body of main).
 2320  ac_c_conftest_c99_main='
 2321    // Check bool.
 2322    _Bool success = false;
 2323    success |= (argc != 0);
 2324  
 2325    // Check restrict.
 2326    if (test_restrict ("String literal") == 0)
 2327      success = true;
 2328    char *restrict newvar = "Another string";
 2329  
 2330    // Check varargs.
 2331    success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
 2332    test_varargs_macros ();
 2333  
 2334    // Check flexible array members.
 2335    struct incomplete_array *ia =
 2336      malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
 2337    ia->datasize = 10;
 2338    for (int i = 0; i < ia->datasize; ++i)
 2339      ia->data[i] = i * 1.234;
 2340  
 2341    // Check named initializers.
 2342    struct named_init ni = {
 2343      .number = 34,
 2344      .name = L"Test wide string",
 2345      .average = 543.34343,
 2346    };
 2347  
 2348    ni.number = 58;
 2349  
 2350    int dynamic_array[ni.number];
 2351    dynamic_array[0] = argv[0][0];
 2352    dynamic_array[ni.number - 1] = 543;
 2353  
 2354    // work around unused variable warnings
 2355    ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
 2356  	 || dynamic_array[ni.number - 1] != 543);
 2357  '
 2358  
 2359  # Test code for whether the C compiler supports C11 (global declarations)
 2360  ac_c_conftest_c11_globals='
 2361  // Does the compiler advertise C11 conformance?
 2362  #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
 2363  # error "Compiler does not advertise C11 conformance"
 2364  #endif
 2365  
 2366  // Check _Alignas.
 2367  char _Alignas (double) aligned_as_double;
 2368  char _Alignas (0) no_special_alignment;
 2369  extern char aligned_as_int;
 2370  char _Alignas (0) _Alignas (int) aligned_as_int;
 2371  
 2372  // Check _Alignof.
 2373  enum
 2374  {
 2375    int_alignment = _Alignof (int),
 2376    int_array_alignment = _Alignof (int[100]),
 2377    char_alignment = _Alignof (char)
 2378  };
 2379  _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
 2380  
 2381  // Check _Noreturn.
 2382  int _Noreturn does_not_return (void) { for (;;) continue; }
 2383  
 2384  // Check _Static_assert.
 2385  struct test_static_assert
 2386  {
 2387    int x;
 2388    _Static_assert (sizeof (int) <= sizeof (long int),
 2389                    "_Static_assert does not work in struct");
 2390    long int y;
 2391  };
 2392  
 2393  // Check UTF-8 literals.
 2394  #define u8 syntax error!
 2395  char const utf8_literal[] = u8"happens to be ASCII" "another string";
 2396  
 2397  // Check duplicate typedefs.
 2398  typedef long *long_ptr;
 2399  typedef long int *long_ptr;
 2400  typedef long_ptr long_ptr;
 2401  
 2402  // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
 2403  struct anonymous
 2404  {
 2405    union {
 2406      struct { int i; int j; };
 2407      struct { int k; long int l; } w;
 2408    };
 2409    int m;
 2410  } v1;
 2411  '
 2412  
 2413  # Test code for whether the C compiler supports C11 (body of main).
 2414  ac_c_conftest_c11_main='
 2415    _Static_assert ((offsetof (struct anonymous, i)
 2416  		   == offsetof (struct anonymous, w.k)),
 2417  		  "Anonymous union alignment botch");
 2418    v1.i = 2;
 2419    v1.w.k = 5;
 2420    ok |= v1.i != 5;
 2421  '
 2422  
 2423  # Test code for whether the C compiler supports C11 (complete).
 2424  ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
 2425  ${ac_c_conftest_c99_globals}
 2426  ${ac_c_conftest_c11_globals}
 2427  
 2428  int
 2429  main (int argc, char **argv)
 2430  {
 2431    int ok = 0;
 2432    ${ac_c_conftest_c89_main}
 2433    ${ac_c_conftest_c99_main}
 2434    ${ac_c_conftest_c11_main}
 2435    return ok;
 2436  }
 2437  "
 2438  
 2439  # Test code for whether the C compiler supports C99 (complete).
 2440  ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
 2441  ${ac_c_conftest_c99_globals}
 2442  
 2443  int
 2444  main (int argc, char **argv)
 2445  {
 2446    int ok = 0;
 2447    ${ac_c_conftest_c89_main}
 2448    ${ac_c_conftest_c99_main}
 2449    return ok;
 2450  }
 2451  "
 2452  
 2453  # Test code for whether the C compiler supports C89 (complete).
 2454  ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
 2455  
 2456  int
 2457  main (int argc, char **argv)
 2458  {
 2459    int ok = 0;
 2460    ${ac_c_conftest_c89_main}
 2461    return ok;
 2462  }
 2463  "
 2464  
 2465  # Test code for whether the C++ compiler supports C++98 (global declarations)
 2466  ac_cxx_conftest_cxx98_globals='
 2467  // Does the compiler advertise C++98 conformance?
 2468  #if !defined __cplusplus || __cplusplus < 199711L
 2469  # error "Compiler does not advertise C++98 conformance"
 2470  #endif
 2471  
 2472  // These inclusions are to reject old compilers that
 2473  // lack the unsuffixed header files.
 2474  #include <cstdlib>
 2475  #include <exception>
 2476  
 2477  // <cassert> and <cstring> are *not* freestanding headers in C++98.
 2478  extern void assert (int);
 2479  namespace std {
 2480    extern int strcmp (const char *, const char *);
 2481  }
 2482  
 2483  // Namespaces, exceptions, and templates were all added after "C++ 2.0".
 2484  using std::exception;
 2485  using std::strcmp;
 2486  
 2487  namespace {
 2488  
 2489  void test_exception_syntax()
 2490  {
 2491    try {
 2492      throw "test";
 2493    } catch (const char *s) {
 2494      // Extra parentheses suppress a warning when building autoconf itself,
 2495      // due to lint rules shared with more typical C programs.
 2496      assert (!(strcmp) (s, "test"));
 2497    }
 2498  }
 2499  
 2500  template <typename T> struct test_template
 2501  {
 2502    T const val;
 2503    explicit test_template(T t) : val(t) {}
 2504    template <typename U> T add(U u) { return static_cast<T>(u) + val; }
 2505  };
 2506  
 2507  } // anonymous namespace
 2508  '
 2509  
 2510  # Test code for whether the C++ compiler supports C++98 (body of main)
 2511  ac_cxx_conftest_cxx98_main='
 2512    assert (argc);
 2513    assert (! argv[0]);
 2514  {
 2515    test_exception_syntax ();
 2516    test_template<double> tt (2.0);
 2517    assert (tt.add (4) == 6.0);
 2518    assert (true && !false);
 2519  }
 2520  '
 2521  
 2522  # Test code for whether the C++ compiler supports C++11 (global declarations)
 2523  ac_cxx_conftest_cxx11_globals='
 2524  // Does the compiler advertise C++ 2011 conformance?
 2525  #if !defined __cplusplus || __cplusplus < 201103L
 2526  # error "Compiler does not advertise C++11 conformance"
 2527  #endif
 2528  
 2529  namespace cxx11test
 2530  {
 2531    constexpr int get_val() { return 20; }
 2532  
 2533    struct testinit
 2534    {
 2535      int i;
 2536      double d;
 2537    };
 2538  
 2539    class delegate
 2540    {
 2541    public:
 2542      delegate(int n) : n(n) {}
 2543      delegate(): delegate(2354) {}
 2544  
 2545      virtual int getval() { return this->n; };
 2546    protected:
 2547      int n;
 2548    };
 2549  
 2550    class overridden : public delegate
 2551    {
 2552    public:
 2553      overridden(int n): delegate(n) {}
 2554      virtual int getval() override final { return this->n * 2; }
 2555    };
 2556  
 2557    class nocopy
 2558    {
 2559    public:
 2560      nocopy(int i): i(i) {}
 2561      nocopy() = default;
 2562      nocopy(const nocopy&) = delete;
 2563      nocopy & operator=(const nocopy&) = delete;
 2564    private:
 2565      int i;
 2566    };
 2567  
 2568    // for testing lambda expressions
 2569    template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
 2570    {
 2571      return f(v);
 2572    }
 2573  
 2574    // for testing variadic templates and trailing return types
 2575    template <typename V> auto sum(V first) -> V
 2576    {
 2577      return first;
 2578    }
 2579    template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
 2580    {
 2581      return first + sum(rest...);
 2582    }
 2583  }
 2584  '
 2585  
 2586  # Test code for whether the C++ compiler supports C++11 (body of main)
 2587  ac_cxx_conftest_cxx11_main='
 2588  {
 2589    // Test auto and decltype
 2590    auto a1 = 6538;
 2591    auto a2 = 48573953.4;
 2592    auto a3 = "String literal";
 2593  
 2594    int total = 0;
 2595    for (auto i = a3; *i; ++i) { total += *i; }
 2596  
 2597    decltype(a2) a4 = 34895.034;
 2598  }
 2599  {
 2600    // Test constexpr
 2601    short sa[cxx11test::get_val()] = { 0 };
 2602  }
 2603  {
 2604    // Test initializer lists
 2605    cxx11test::testinit il = { 4323, 435234.23544 };
 2606  }
 2607  {
 2608    // Test range-based for
 2609    int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
 2610                   14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
 2611    for (auto &x : array) { x += 23; }
 2612  }
 2613  {
 2614    // Test lambda expressions
 2615    using cxx11test::eval;
 2616    assert (eval ([](int x) { return x*2; }, 21) == 42);
 2617    double d = 2.0;
 2618    assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
 2619    assert (d == 5.0);
 2620    assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
 2621    assert (d == 5.0);
 2622  }
 2623  {
 2624    // Test use of variadic templates
 2625    using cxx11test::sum;
 2626    auto a = sum(1);
 2627    auto b = sum(1, 2);
 2628    auto c = sum(1.0, 2.0, 3.0);
 2629  }
 2630  {
 2631    // Test constructor delegation
 2632    cxx11test::delegate d1;
 2633    cxx11test::delegate d2();
 2634    cxx11test::delegate d3(45);
 2635  }
 2636  {
 2637    // Test override and final
 2638    cxx11test::overridden o1(55464);
 2639  }
 2640  {
 2641    // Test nullptr
 2642    char *c = nullptr;
 2643  }
 2644  {
 2645    // Test template brackets
 2646    test_template<::test_template<int>> v(test_template<int>(12));
 2647  }
 2648  {
 2649    // Unicode literals
 2650    char const *utf8 = u8"UTF-8 string \u2500";
 2651    char16_t const *utf16 = u"UTF-8 string \u2500";
 2652    char32_t const *utf32 = U"UTF-32 string \u2500";
 2653  }
 2654  '
 2655  
 2656  # Test code for whether the C compiler supports C++11 (complete).
 2657  ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
 2658  ${ac_cxx_conftest_cxx11_globals}
 2659  
 2660  int
 2661  main (int argc, char **argv)
 2662  {
 2663    int ok = 0;
 2664    ${ac_cxx_conftest_cxx98_main}
 2665    ${ac_cxx_conftest_cxx11_main}
 2666    return ok;
 2667  }
 2668  "
 2669  
 2670  # Test code for whether the C compiler supports C++98 (complete).
 2671  ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
 2672  int
 2673  main (int argc, char **argv)
 2674  {
 2675    int ok = 0;
 2676    ${ac_cxx_conftest_cxx98_main}
 2677    return ok;
 2678  }
 2679  "
 2680  
 2681  as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
 2682  as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
 2683  as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
 2684  as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
 2685  as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
 2686  as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
 2687  as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
 2688  as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
 2689  as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
 2690  
 2691  # Auxiliary files required by this configure script.
 2692  ac_aux_files="compile ar-lib missing install-sh config.guess config.sub"
 2693  
 2694  # Locations in which to look for auxiliary files.
 2695  ac_aux_dir_candidates="${srcdir}/autotools"
 2696  
 2697  # Search for a directory containing all of the required auxiliary files,
 2698  # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
 2699  # If we don't find one directory that contains all the files we need,
 2700  # we report the set of missing files from the *first* directory in
 2701  # $ac_aux_dir_candidates and give up.
 2702  ac_missing_aux_files=""
 2703  ac_first_candidate=:
 2704  printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
 2705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2706  as_found=false
 2707  for as_dir in $ac_aux_dir_candidates
 2708  do
 2709    IFS=$as_save_IFS
 2710    case $as_dir in #(((
 2711      '') as_dir=./ ;;
 2712      */) ;;
 2713      *) as_dir=$as_dir/ ;;
 2714    esac
 2715    as_found=:
 2716  
 2717    printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
 2718    ac_aux_dir_found=yes
 2719    ac_install_sh=
 2720    for ac_aux in $ac_aux_files
 2721    do
 2722      # As a special case, if "install-sh" is required, that requirement
 2723      # can be satisfied by any of "install-sh", "install.sh", or "shtool",
 2724      # and $ac_install_sh is set appropriately for whichever one is found.
 2725      if test x"$ac_aux" = x"install-sh"
 2726      then
 2727        if test -f "${as_dir}install-sh"; then
 2728          printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
 2729          ac_install_sh="${as_dir}install-sh -c"
 2730        elif test -f "${as_dir}install.sh"; then
 2731          printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
 2732          ac_install_sh="${as_dir}install.sh -c"
 2733        elif test -f "${as_dir}shtool"; then
 2734          printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
 2735          ac_install_sh="${as_dir}shtool install -c"
 2736        else
 2737          ac_aux_dir_found=no
 2738          if $ac_first_candidate; then
 2739            ac_missing_aux_files="${ac_missing_aux_files} install-sh"
 2740          else
 2741            break
 2742          fi
 2743        fi
 2744      else
 2745        if test -f "${as_dir}${ac_aux}"; then
 2746          printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
 2747        else
 2748          ac_aux_dir_found=no
 2749          if $ac_first_candidate; then
 2750            ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
 2751          else
 2752            break
 2753          fi
 2754        fi
 2755      fi
 2756    done
 2757    if test "$ac_aux_dir_found" = yes; then
 2758      ac_aux_dir="$as_dir"
 2759      break
 2760    fi
 2761    ac_first_candidate=false
 2762  
 2763    as_found=false
 2764  done
 2765  IFS=$as_save_IFS
 2766  if $as_found
 2767  then :
 2768  
 2769  else $as_nop
 2770    as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
 2771  fi
 2772  
 2773  
 2774  # These three variables are undocumented and unsupported,
 2775  # and are intended to be withdrawn in a future Autoconf release.
 2776  # They can cause serious problems if a builder's source tree is in a directory
 2777  # whose full name contains unusual characters.
 2778  if test -f "${ac_aux_dir}config.guess"; then
 2779    ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
 2780  fi
 2781  if test -f "${ac_aux_dir}config.sub"; then
 2782    ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
 2783  fi
 2784  if test -f "$ac_aux_dir/configure"; then
 2785    ac_configure="$SHELL ${ac_aux_dir}configure"
 2786  fi
 2787  
 2788  # Check that the precious variables saved in the cache have kept the same
 2789  # value.
 2790  ac_cache_corrupted=false
 2791  for ac_var in $ac_precious_vars; do
 2792    eval ac_old_set=\$ac_cv_env_${ac_var}_set
 2793    eval ac_new_set=\$ac_env_${ac_var}_set
 2794    eval ac_old_val=\$ac_cv_env_${ac_var}_value
 2795    eval ac_new_val=\$ac_env_${ac_var}_value
 2796    case $ac_old_set,$ac_new_set in
 2797      set,)
 2798        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 2799  printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 2800        ac_cache_corrupted=: ;;
 2801      ,set)
 2802        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 2803  printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 2804        ac_cache_corrupted=: ;;
 2805      ,);;
 2806      *)
 2807        if test "x$ac_old_val" != "x$ac_new_val"; then
 2808  	# differences in whitespace do not lead to failure.
 2809  	ac_old_val_w=`echo x $ac_old_val`
 2810  	ac_new_val_w=`echo x $ac_new_val`
 2811  	if test "$ac_old_val_w" != "$ac_new_val_w"; then
 2812  	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 2813  printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 2814  	  ac_cache_corrupted=:
 2815  	else
 2816  	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 2817  printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 2818  	  eval $ac_var=\$ac_old_val
 2819  	fi
 2820  	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 2821  printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
 2822  	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 2823  printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
 2824        fi;;
 2825    esac
 2826    # Pass precious variables to config.status.
 2827    if test "$ac_new_set" = set; then
 2828      case $ac_new_val in
 2829      *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 2830      *) ac_arg=$ac_var=$ac_new_val ;;
 2831      esac
 2832      case " $ac_configure_args " in
 2833        *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 2834        *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 2835      esac
 2836    fi
 2837  done
 2838  if $ac_cache_corrupted; then
 2839    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 2840  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 2841    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 2842  printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
 2843    as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
 2844  	    and start over" "$LINENO" 5
 2845  fi
 2846  ## -------------------- ##
 2847  ## Main body of script. ##
 2848  ## -------------------- ##
 2849  
 2850  ac_ext=c
 2851  ac_cpp='$CPP $CPPFLAGS'
 2852  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2853  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2854  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2855  
 2856  
 2857  
 2858  
 2859  
 2860  
 2861  
 2862  
 2863    # Make sure we can run config.sub.
 2864  $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
 2865    as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
 2866  
 2867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
 2868  printf %s "checking build system type... " >&6; }
 2869  if test ${ac_cv_build+y}
 2870  then :
 2871    printf %s "(cached) " >&6
 2872  else $as_nop
 2873    ac_build_alias=$build_alias
 2874  test "x$ac_build_alias" = x &&
 2875    ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
 2876  test "x$ac_build_alias" = x &&
 2877    as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
 2878  ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
 2879    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
 2880  
 2881  fi
 2882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
 2883  printf "%s\n" "$ac_cv_build" >&6; }
 2884  case $ac_cv_build in
 2885  *-*-*) ;;
 2886  *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
 2887  esac
 2888  build=$ac_cv_build
 2889  ac_save_IFS=$IFS; IFS='-'
 2890  set x $ac_cv_build
 2891  shift
 2892  build_cpu=$1
 2893  build_vendor=$2
 2894  shift; shift
 2895  # Remember, the first character of IFS is used to create $*,
 2896  # except with old shells:
 2897  build_os=$*
 2898  IFS=$ac_save_IFS
 2899  case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 2900  
 2901  
 2902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
 2903  printf %s "checking host system type... " >&6; }
 2904  if test ${ac_cv_host+y}
 2905  then :
 2906    printf %s "(cached) " >&6
 2907  else $as_nop
 2908    if test "x$host_alias" = x; then
 2909    ac_cv_host=$ac_cv_build
 2910  else
 2911    ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
 2912      as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
 2913  fi
 2914  
 2915  fi
 2916  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
 2917  printf "%s\n" "$ac_cv_host" >&6; }
 2918  case $ac_cv_host in
 2919  *-*-*) ;;
 2920  *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
 2921  esac
 2922  host=$ac_cv_host
 2923  ac_save_IFS=$IFS; IFS='-'
 2924  set x $ac_cv_host
 2925  shift
 2926  host_cpu=$1
 2927  host_vendor=$2
 2928  shift; shift
 2929  # Remember, the first character of IFS is used to create $*,
 2930  # except with old shells:
 2931  host_os=$*
 2932  IFS=$ac_save_IFS
 2933  case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 2934  
 2935  
 2936  
 2937  am__api_version='1.16'
 2938  
 2939  
 2940    # Find a good install program.  We prefer a C program (faster),
 2941  # so one script is as good as another.  But avoid the broken or
 2942  # incompatible versions:
 2943  # SysV /etc/install, /usr/sbin/install
 2944  # SunOS /usr/etc/install
 2945  # IRIX /sbin/install
 2946  # AIX /bin/install
 2947  # AmigaOS /C/install, which installs bootblocks on floppy discs
 2948  # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 2949  # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 2950  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 2951  # OS/2's system install, which has a completely different semantic
 2952  # ./install, which can be erroneously created by make from ./install.sh.
 2953  # Reject install programs that cannot install multiple files.
 2954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 2955  printf %s "checking for a BSD-compatible install... " >&6; }
 2956  if test -z "$INSTALL"; then
 2957  if test ${ac_cv_path_install+y}
 2958  then :
 2959    printf %s "(cached) " >&6
 2960  else $as_nop
 2961    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2962  for as_dir in $PATH
 2963  do
 2964    IFS=$as_save_IFS
 2965    case $as_dir in #(((
 2966      '') as_dir=./ ;;
 2967      */) ;;
 2968      *) as_dir=$as_dir/ ;;
 2969    esac
 2970      # Account for fact that we put trailing slashes in our PATH walk.
 2971  case $as_dir in #((
 2972    ./ | /[cC]/* | \
 2973    /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 2974    ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 2975    /usr/ucb/* ) ;;
 2976    *)
 2977      # OSF1 and SCO ODT 3.0 have their own names for install.
 2978      # Don't use installbsd from OSF since it installs stuff as root
 2979      # by default.
 2980      for ac_prog in ginstall scoinst install; do
 2981        for ac_exec_ext in '' $ac_executable_extensions; do
 2982  	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
 2983  	  if test $ac_prog = install &&
 2984  	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 2985  	    # AIX install.  It has an incompatible calling convention.
 2986  	    :
 2987  	  elif test $ac_prog = install &&
 2988  	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 2989  	    # program-specific install script used by HP pwplus--don't use.
 2990  	    :
 2991  	  else
 2992  	    rm -rf conftest.one conftest.two conftest.dir
 2993  	    echo one > conftest.one
 2994  	    echo two > conftest.two
 2995  	    mkdir conftest.dir
 2996  	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
 2997  	      test -s conftest.one && test -s conftest.two &&
 2998  	      test -s conftest.dir/conftest.one &&
 2999  	      test -s conftest.dir/conftest.two
 3000  	    then
 3001  	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
 3002  	      break 3
 3003  	    fi
 3004  	  fi
 3005  	fi
 3006        done
 3007      done
 3008      ;;
 3009  esac
 3010  
 3011    done
 3012  IFS=$as_save_IFS
 3013  
 3014  rm -rf conftest.one conftest.two conftest.dir
 3015  
 3016  fi
 3017    if test ${ac_cv_path_install+y}; then
 3018      INSTALL=$ac_cv_path_install
 3019    else
 3020      # As a last resort, use the slow shell script.  Don't cache a
 3021      # value for INSTALL within a source directory, because that will
 3022      # break other packages using the cache if that directory is
 3023      # removed, or if the value is a relative name.
 3024      INSTALL=$ac_install_sh
 3025    fi
 3026  fi
 3027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 3028  printf "%s\n" "$INSTALL" >&6; }
 3029  
 3030  # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 3031  # It thinks the first close brace ends the variable substitution.
 3032  test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 3033  
 3034  test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 3035  
 3036  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 3037  
 3038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
 3039  printf %s "checking whether build environment is sane... " >&6; }
 3040  # Reject unsafe characters in $srcdir or the absolute working directory
 3041  # name.  Accept space and tab only in the latter.
 3042  am_lf='
 3043  '
 3044  case `pwd` in
 3045    *[\\\"\#\$\&\'\`$am_lf]*)
 3046      as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
 3047  esac
 3048  case $srcdir in
 3049    *[\\\"\#\$\&\'\`$am_lf\ \	]*)
 3050      as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
 3051  esac
 3052  
 3053  # Do 'set' in a subshell so we don't clobber the current shell's
 3054  # arguments.  Must try -L first in case configure is actually a
 3055  # symlink; some systems play weird games with the mod time of symlinks
 3056  # (eg FreeBSD returns the mod time of the symlink's containing
 3057  # directory).
 3058  if (
 3059     am_has_slept=no
 3060     for am_try in 1 2; do
 3061       echo "timestamp, slept: $am_has_slept" > conftest.file
 3062       set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 3063       if test "$*" = "X"; then
 3064  	# -L didn't work.
 3065  	set X `ls -t "$srcdir/configure" conftest.file`
 3066       fi
 3067       if test "$*" != "X $srcdir/configure conftest.file" \
 3068  	&& test "$*" != "X conftest.file $srcdir/configure"; then
 3069  
 3070  	# If neither matched, then we have a broken ls.  This can happen
 3071  	# if, for instance, CONFIG_SHELL is bash and it inherits a
 3072  	# broken ls alias from the environment.  This has actually
 3073  	# happened.  Such a system could not be considered "sane".
 3074  	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
 3075    alias in your environment" "$LINENO" 5
 3076       fi
 3077       if test "$2" = conftest.file || test $am_try -eq 2; then
 3078         break
 3079       fi
 3080       # Just in case.
 3081       sleep 1
 3082       am_has_slept=yes
 3083     done
 3084     test "$2" = conftest.file
 3085     )
 3086  then
 3087     # Ok.
 3088     :
 3089  else
 3090     as_fn_error $? "newly created file is older than distributed files!
 3091  Check your system clock" "$LINENO" 5
 3092  fi
 3093  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3094  printf "%s\n" "yes" >&6; }
 3095  # If we didn't sleep, we still need to ensure time stamps of config.status and
 3096  # generated files are strictly newer.
 3097  am_sleep_pid=
 3098  if grep 'slept: no' conftest.file >/dev/null 2>&1; then
 3099    ( sleep 1 ) &
 3100    am_sleep_pid=$!
 3101  fi
 3102  
 3103  rm -f conftest.file
 3104  
 3105  test "$program_prefix" != NONE &&
 3106    program_transform_name="s&^&$program_prefix&;$program_transform_name"
 3107  # Use a double $ so make ignores it.
 3108  test "$program_suffix" != NONE &&
 3109    program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 3110  # Double any \ or $.
 3111  # By default was `s,x,x', remove it if useless.
 3112  ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 3113  program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
 3114  
 3115  
 3116  # Expand $ac_aux_dir to an absolute path.
 3117  am_aux_dir=`cd "$ac_aux_dir" && pwd`
 3118  
 3119  
 3120    if test x"${MISSING+set}" != xset; then
 3121    MISSING="\${SHELL} '$am_aux_dir/missing'"
 3122  fi
 3123  # Use eval to expand $SHELL
 3124  if eval "$MISSING --is-lightweight"; then
 3125    am_missing_run="$MISSING "
 3126  else
 3127    am_missing_run=
 3128    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
 3129  printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
 3130  fi
 3131  
 3132  if test x"${install_sh+set}" != xset; then
 3133    case $am_aux_dir in
 3134    *\ * | *\	*)
 3135      install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 3136    *)
 3137      install_sh="\${SHELL} $am_aux_dir/install-sh"
 3138    esac
 3139  fi
 3140  
 3141  # Installed binaries are usually stripped using 'strip' when the user
 3142  # run "make install-strip".  However 'strip' might not be the right
 3143  # tool to use in cross-compilation environments, therefore Automake
 3144  # will honor the 'STRIP' environment variable to overrule this program.
 3145  if test "$cross_compiling" != no; then
 3146    if test -n "$ac_tool_prefix"; then
 3147    # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 3148  set dummy ${ac_tool_prefix}strip; ac_word=$2
 3149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3150  printf %s "checking for $ac_word... " >&6; }
 3151  if test ${ac_cv_prog_STRIP+y}
 3152  then :
 3153    printf %s "(cached) " >&6
 3154  else $as_nop
 3155    if test -n "$STRIP"; then
 3156    ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 3157  else
 3158  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3159  for as_dir in $PATH
 3160  do
 3161    IFS=$as_save_IFS
 3162    case $as_dir in #(((
 3163      '') as_dir=./ ;;
 3164      */) ;;
 3165      *) as_dir=$as_dir/ ;;
 3166    esac
 3167      for ac_exec_ext in '' $ac_executable_extensions; do
 3168    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 3169      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 3170      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 3171      break 2
 3172    fi
 3173  done
 3174    done
 3175  IFS=$as_save_IFS
 3176  
 3177  fi
 3178  fi
 3179  STRIP=$ac_cv_prog_STRIP
 3180  if test -n "$STRIP"; then
 3181    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
 3182  printf "%s\n" "$STRIP" >&6; }
 3183  else
 3184    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3185  printf "%s\n" "no" >&6; }
 3186  fi
 3187  
 3188  
 3189  fi
 3190  if test -z "$ac_cv_prog_STRIP"; then
 3191    ac_ct_STRIP=$STRIP
 3192    # Extract the first word of "strip", so it can be a program name with args.
 3193  set dummy strip; ac_word=$2
 3194  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3195  printf %s "checking for $ac_word... " >&6; }
 3196  if test ${ac_cv_prog_ac_ct_STRIP+y}
 3197  then :
 3198    printf %s "(cached) " >&6
 3199  else $as_nop
 3200    if test -n "$ac_ct_STRIP"; then
 3201    ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 3202  else
 3203  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3204  for as_dir in $PATH
 3205  do
 3206    IFS=$as_save_IFS
 3207    case $as_dir in #(((
 3208      '') as_dir=./ ;;
 3209      */) ;;
 3210      *) as_dir=$as_dir/ ;;
 3211    esac
 3212      for ac_exec_ext in '' $ac_executable_extensions; do
 3213    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 3214      ac_cv_prog_ac_ct_STRIP="strip"
 3215      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 3216      break 2
 3217    fi
 3218  done
 3219    done
 3220  IFS=$as_save_IFS
 3221  
 3222  fi
 3223  fi
 3224  ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 3225  if test -n "$ac_ct_STRIP"; then
 3226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
 3227  printf "%s\n" "$ac_ct_STRIP" >&6; }
 3228  else
 3229    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3230  printf "%s\n" "no" >&6; }
 3231  fi
 3232  
 3233    if test "x$ac_ct_STRIP" = x; then
 3234      STRIP=":"
 3235    else
 3236      case $cross_compiling:$ac_tool_warned in
 3237  yes:)
 3238  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3239  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3240  ac_tool_warned=yes ;;
 3241  esac
 3242      STRIP=$ac_ct_STRIP
 3243    fi
 3244  else
 3245    STRIP="$ac_cv_prog_STRIP"
 3246  fi
 3247  
 3248  fi
 3249  INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 3250  
 3251  
 3252    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
 3253  printf %s "checking for a race-free mkdir -p... " >&6; }
 3254  if test -z "$MKDIR_P"; then
 3255    if test ${ac_cv_path_mkdir+y}
 3256  then :
 3257    printf %s "(cached) " >&6
 3258  else $as_nop
 3259    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3260  for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 3261  do
 3262    IFS=$as_save_IFS
 3263    case $as_dir in #(((
 3264      '') as_dir=./ ;;
 3265      */) ;;
 3266      *) as_dir=$as_dir/ ;;
 3267    esac
 3268      for ac_prog in mkdir gmkdir; do
 3269  	 for ac_exec_ext in '' $ac_executable_extensions; do
 3270  	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
 3271  	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
 3272  	     'mkdir ('*'coreutils) '* | \
 3273  	     'BusyBox '* | \
 3274  	     'mkdir (fileutils) '4.1*)
 3275  	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
 3276  	       break 3;;
 3277  	   esac
 3278  	 done
 3279         done
 3280    done
 3281  IFS=$as_save_IFS
 3282  
 3283  fi
 3284  
 3285    test -d ./--version && rmdir ./--version
 3286    if test ${ac_cv_path_mkdir+y}; then
 3287      MKDIR_P="$ac_cv_path_mkdir -p"
 3288    else
 3289      # As a last resort, use the slow shell script.  Don't cache a
 3290      # value for MKDIR_P within a source directory, because that will
 3291      # break other packages using the cache if that directory is
 3292      # removed, or if the value is a relative name.
 3293      MKDIR_P="$ac_install_sh -d"
 3294    fi
 3295  fi
 3296  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
 3297  printf "%s\n" "$MKDIR_P" >&6; }
 3298  
 3299  for ac_prog in gawk mawk nawk awk
 3300  do
 3301    # Extract the first word of "$ac_prog", so it can be a program name with args.
 3302  set dummy $ac_prog; ac_word=$2
 3303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3304  printf %s "checking for $ac_word... " >&6; }
 3305  if test ${ac_cv_prog_AWK+y}
 3306  then :
 3307    printf %s "(cached) " >&6
 3308  else $as_nop
 3309    if test -n "$AWK"; then
 3310    ac_cv_prog_AWK="$AWK" # Let the user override the test.
 3311  else
 3312  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3313  for as_dir in $PATH
 3314  do
 3315    IFS=$as_save_IFS
 3316    case $as_dir in #(((
 3317      '') as_dir=./ ;;
 3318      */) ;;
 3319      *) as_dir=$as_dir/ ;;
 3320    esac
 3321      for ac_exec_ext in '' $ac_executable_extensions; do
 3322    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 3323      ac_cv_prog_AWK="$ac_prog"
 3324      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 3325      break 2
 3326    fi
 3327  done
 3328    done
 3329  IFS=$as_save_IFS
 3330  
 3331  fi
 3332  fi
 3333  AWK=$ac_cv_prog_AWK
 3334  if test -n "$AWK"; then
 3335    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
 3336  printf "%s\n" "$AWK" >&6; }
 3337  else
 3338    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3339  printf "%s\n" "no" >&6; }
 3340  fi
 3341  
 3342  
 3343    test -n "$AWK" && break
 3344  done
 3345  
 3346  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 3347  printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 3348  set x ${MAKE-make}
 3349  ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 3350  if eval test \${ac_cv_prog_make_${ac_make}_set+y}
 3351  then :
 3352    printf %s "(cached) " >&6
 3353  else $as_nop
 3354    cat >conftest.make <<\_ACEOF
 3355  SHELL = /bin/sh
 3356  all:
 3357  	@echo '@@@%%%=$(MAKE)=@@@%%%'
 3358  _ACEOF
 3359  # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 3360  case `${MAKE-make} -f conftest.make 2>/dev/null` in
 3361    *@@@%%%=?*=@@@%%%*)
 3362      eval ac_cv_prog_make_${ac_make}_set=yes;;
 3363    *)
 3364      eval ac_cv_prog_make_${ac_make}_set=no;;
 3365  esac
 3366  rm -f conftest.make
 3367  fi
 3368  if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 3369    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3370  printf "%s\n" "yes" >&6; }
 3371    SET_MAKE=
 3372  else
 3373    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3374  printf "%s\n" "no" >&6; }
 3375    SET_MAKE="MAKE=${MAKE-make}"
 3376  fi
 3377  
 3378  rm -rf .tst 2>/dev/null
 3379  mkdir .tst 2>/dev/null
 3380  if test -d .tst; then
 3381    am__leading_dot=.
 3382  else
 3383    am__leading_dot=_
 3384  fi
 3385  rmdir .tst 2>/dev/null
 3386  
 3387  # Check whether --enable-silent-rules was given.
 3388  if test ${enable_silent_rules+y}
 3389  then :
 3390    enableval=$enable_silent_rules;
 3391  fi
 3392  
 3393  case $enable_silent_rules in # (((
 3394    yes) AM_DEFAULT_VERBOSITY=0;;
 3395     no) AM_DEFAULT_VERBOSITY=1;;
 3396      *) AM_DEFAULT_VERBOSITY=1;;
 3397  esac
 3398  am_make=${MAKE-make}
 3399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
 3400  printf %s "checking whether $am_make supports nested variables... " >&6; }
 3401  if test ${am_cv_make_support_nested_variables+y}
 3402  then :
 3403    printf %s "(cached) " >&6
 3404  else $as_nop
 3405    if printf "%s\n" 'TRUE=$(BAR$(V))
 3406  BAR0=false
 3407  BAR1=true
 3408  V=1
 3409  am__doit:
 3410  	@$(TRUE)
 3411  .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
 3412    am_cv_make_support_nested_variables=yes
 3413  else
 3414    am_cv_make_support_nested_variables=no
 3415  fi
 3416  fi
 3417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
 3418  printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
 3419  if test $am_cv_make_support_nested_variables = yes; then
 3420      AM_V='$(V)'
 3421    AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
 3422  else
 3423    AM_V=$AM_DEFAULT_VERBOSITY
 3424    AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
 3425  fi
 3426  AM_BACKSLASH='\'
 3427  
 3428  if test "`cd $srcdir && pwd`" != "`pwd`"; then
 3429    # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 3430    # is not polluted with repeated "-I."
 3431    am__isrc=' -I$(srcdir)'
 3432    # test to see if srcdir already configured
 3433    if test -f $srcdir/config.status; then
 3434      as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
 3435    fi
 3436  fi
 3437  
 3438  # test whether we have cygpath
 3439  if test -z "$CYGPATH_W"; then
 3440    if (cygpath --version) >/dev/null 2>/dev/null; then
 3441      CYGPATH_W='cygpath -w'
 3442    else
 3443      CYGPATH_W=echo
 3444    fi
 3445  fi
 3446  
 3447  
 3448  # Define the identity of the package.
 3449   PACKAGE='breakpad'
 3450   VERSION='0.1'
 3451  
 3452  
 3453  printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
 3454  
 3455  
 3456  printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
 3457  
 3458  # Some tools Automake needs.
 3459  
 3460  ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 3461  
 3462  
 3463  AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 3464  
 3465  
 3466  AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 3467  
 3468  
 3469  AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 3470  
 3471  
 3472  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 3473  
 3474  # For better backward compatibility.  To be removed once Automake 1.9.x
 3475  # dies out for good.  For more background, see:
 3476  # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
 3477  # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
 3478  mkdir_p='$(MKDIR_P)'
 3479  
 3480  # We need awk for the "check" target (and possibly the TAP driver).  The
 3481  # system "awk" is bad on some platforms.
 3482  # Always define AMTAR for backward compatibility.  Yes, it's still used
 3483  # in the wild :-(  We should find a proper way to deprecate it ...
 3484  AMTAR='$${TAR-tar}'
 3485  
 3486  
 3487  # We'll loop over all known methods to create a tar archive until one works.
 3488  _am_tools='gnutar plaintar pax cpio none'
 3489  
 3490  # The POSIX 1988 'ustar' format is defined with fixed-size fields.
 3491        # There is notably a 21 bits limit for the UID and the GID.  In fact,
 3492        # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
 3493        # and bug#13588).
 3494        am_max_uid=2097151 # 2^21 - 1
 3495        am_max_gid=$am_max_uid
 3496        # The $UID and $GID variables are not portable, so we need to resort
 3497        # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
 3498        # below are definitely unexpected, so allow the users to see them
 3499        # (that is, avoid stderr redirection).
 3500        am_uid=`id -u || echo unknown`
 3501        am_gid=`id -g || echo unknown`
 3502        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
 3503  printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
 3504        if test $am_uid -le $am_max_uid; then
 3505           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3506  printf "%s\n" "yes" >&6; }
 3507        else
 3508           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3509  printf "%s\n" "no" >&6; }
 3510           _am_tools=none
 3511        fi
 3512        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
 3513  printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
 3514        if test $am_gid -le $am_max_gid; then
 3515           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 3516  printf "%s\n" "yes" >&6; }
 3517        else
 3518          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3519  printf "%s\n" "no" >&6; }
 3520          _am_tools=none
 3521        fi
 3522  
 3523    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
 3524  printf %s "checking how to create a ustar tar archive... " >&6; }
 3525  
 3526    # Go ahead even if we have the value already cached.  We do so because we
 3527    # need to set the values for the 'am__tar' and 'am__untar' variables.
 3528    _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
 3529  
 3530    for _am_tool in $_am_tools; do
 3531      case $_am_tool in
 3532      gnutar)
 3533        for _am_tar in tar gnutar gtar; do
 3534          { echo "$as_me:$LINENO: $_am_tar --version" >&5
 3535     ($_am_tar --version) >&5 2>&5
 3536     ac_status=$?
 3537     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3538     (exit $ac_status); } && break
 3539        done
 3540        am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
 3541        am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
 3542        am__untar="$_am_tar -xf -"
 3543        ;;
 3544      plaintar)
 3545        # Must skip GNU tar: if it does not support --format= it doesn't create
 3546        # ustar tarball either.
 3547        (tar --version) >/dev/null 2>&1 && continue
 3548        am__tar='tar chf - "$$tardir"'
 3549        am__tar_='tar chf - "$tardir"'
 3550        am__untar='tar xf -'
 3551        ;;
 3552      pax)
 3553        am__tar='pax -L -x ustar -w "$$tardir"'
 3554        am__tar_='pax -L -x ustar -w "$tardir"'
 3555        am__untar='pax -r'
 3556        ;;
 3557      cpio)
 3558        am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
 3559        am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
 3560        am__untar='cpio -i -H ustar -d'
 3561        ;;
 3562      none)
 3563        am__tar=false
 3564        am__tar_=false
 3565        am__untar=false
 3566        ;;
 3567      esac
 3568  
 3569      # If the value was cached, stop now.  We just wanted to have am__tar
 3570      # and am__untar set.
 3571      test -n "${am_cv_prog_tar_ustar}" && break
 3572  
 3573      # tar/untar a dummy directory, and stop if the command works.
 3574      rm -rf conftest.dir
 3575      mkdir conftest.dir
 3576      echo GrepMe > conftest.dir/file
 3577      { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
 3578     (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
 3579     ac_status=$?
 3580     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3581     (exit $ac_status); }
 3582      rm -rf conftest.dir
 3583      if test -s conftest.tar; then
 3584        { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
 3585     ($am__untar <conftest.tar) >&5 2>&5
 3586     ac_status=$?
 3587     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3588     (exit $ac_status); }
 3589        { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
 3590     (cat conftest.dir/file) >&5 2>&5
 3591     ac_status=$?
 3592     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3593     (exit $ac_status); }
 3594        grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 3595      fi
 3596    done
 3597    rm -rf conftest.dir
 3598  
 3599    if test ${am_cv_prog_tar_ustar+y}
 3600  then :
 3601    printf %s "(cached) " >&6
 3602  else $as_nop
 3603    am_cv_prog_tar_ustar=$_am_tool
 3604  fi
 3605  
 3606    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
 3607  printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
 3608  
 3609  
 3610  
 3611  
 3612  
 3613  # Variables for tags utilities; see am/tags.am
 3614  if test -z "$CTAGS"; then
 3615    CTAGS=ctags
 3616  fi
 3617  
 3618  if test -z "$ETAGS"; then
 3619    ETAGS=etags
 3620  fi
 3621  
 3622  if test -z "$CSCOPE"; then
 3623    CSCOPE=cscope
 3624  fi
 3625  
 3626  
 3627  
 3628  # POSIX will say in a future version that running "rm -f" with no argument
 3629  # is OK; and we want to be able to make that assumption in our Makefile
 3630  # recipes.  So use an aggressive probe to check that the usage we want is
 3631  # actually supported "in the wild" to an acceptable degree.
 3632  # See automake bug#10828.
 3633  # To make any issue more visible, cause the running configure to be aborted
 3634  # by default if the 'rm' program in use doesn't match our expectations; the
 3635  # user can still override this though.
 3636  if rm -f && rm -fr && rm -rf; then : OK; else
 3637    cat >&2 <<'END'
 3638  Oops!
 3639  
 3640  Your 'rm' program seems unable to run without file operands specified
 3641  on the command line, even when the '-f' option is present.  This is contrary
 3642  to the behaviour of most rm programs out there, and not conforming with
 3643  the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
 3644  
 3645  Please tell bug-automake@gnu.org about your system, including the value
 3646  of your $PATH and any error possibly output before this message.  This
 3647  can help us improve future automake versions.
 3648  
 3649  END
 3650    if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
 3651      echo 'Configuration will proceed anyway, since you have set the' >&2
 3652      echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
 3653      echo >&2
 3654    else
 3655      cat >&2 <<'END'
 3656  Aborting the configuration process, to ensure you take notice of the issue.
 3657  
 3658  You can download and install GNU coreutils to get an 'rm' implementation
 3659  that behaves properly: <https://www.gnu.org/software/coreutils/>.
 3660  
 3661  If you want to complete the configuration process using your problematic
 3662  'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
 3663  to "yes", and re-run configure.
 3664  
 3665  END
 3666      as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
 3667    fi
 3668  fi
 3669  
 3670  ac_config_headers="$ac_config_headers src/config.h"
 3671  
 3672  
 3673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
 3674  printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 3675      # Check whether --enable-maintainer-mode was given.
 3676  if test ${enable_maintainer_mode+y}
 3677  then :
 3678    enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 3679  else $as_nop
 3680    USE_MAINTAINER_MODE=no
 3681  fi
 3682  
 3683    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
 3684  printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
 3685     if test $USE_MAINTAINER_MODE = yes; then
 3686    MAINTAINER_MODE_TRUE=
 3687    MAINTAINER_MODE_FALSE='#'
 3688  else
 3689    MAINTAINER_MODE_TRUE='#'
 3690    MAINTAINER_MODE_FALSE=
 3691  fi
 3692  
 3693    MAINT=$MAINTAINER_MODE_TRUE
 3694  
 3695  
 3696  
 3697  
 3698  
 3699  
 3700  
 3701  
 3702  
 3703  
 3704  
 3705  
 3706  DEPDIR="${am__leading_dot}deps"
 3707  
 3708  ac_config_commands="$ac_config_commands depfiles"
 3709  
 3710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
 3711  printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
 3712  cat > confinc.mk << 'END'
 3713  am__doit:
 3714  	@echo this is the am__doit target >confinc.out
 3715  .PHONY: am__doit
 3716  END
 3717  am__include="#"
 3718  am__quote=
 3719  # BSD make does it like this.
 3720  echo '.include "confinc.mk" # ignored' > confmf.BSD
 3721  # Other make implementations (GNU, Solaris 10, AIX) do it like this.
 3722  echo 'include confinc.mk # ignored' > confmf.GNU
 3723  _am_result=no
 3724  for s in GNU BSD; do
 3725    { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
 3726     (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
 3727     ac_status=$?
 3728     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3729     (exit $ac_status); }
 3730    case $?:`cat confinc.out 2>/dev/null` in #(
 3731    '0:this is the am__doit target') :
 3732      case $s in #(
 3733    BSD) :
 3734      am__include='.include' am__quote='"' ;; #(
 3735    *) :
 3736      am__include='include' am__quote='' ;;
 3737  esac ;; #(
 3738    *) :
 3739       ;;
 3740  esac
 3741    if test "$am__include" != "#"; then
 3742      _am_result="yes ($s style)"
 3743      break
 3744    fi
 3745  done
 3746  rm -f confinc.* confmf.*
 3747  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
 3748  printf "%s\n" "${_am_result}" >&6; }
 3749  
 3750  # Check whether --enable-dependency-tracking was given.
 3751  if test ${enable_dependency_tracking+y}
 3752  then :
 3753    enableval=$enable_dependency_tracking;
 3754  fi
 3755  
 3756  if test "x$enable_dependency_tracking" != xno; then
 3757    am_depcomp="$ac_aux_dir/depcomp"
 3758    AMDEPBACKSLASH='\'
 3759    am__nodep='_no'
 3760  fi
 3761   if test "x$enable_dependency_tracking" != xno; then
 3762    AMDEP_TRUE=
 3763    AMDEP_FALSE='#'
 3764  else
 3765    AMDEP_TRUE='#'
 3766    AMDEP_FALSE=
 3767  fi
 3768  
 3769  
 3770  ac_ext=c
 3771  ac_cpp='$CPP $CPPFLAGS'
 3772  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3773  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3774  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3775  if test -n "$ac_tool_prefix"; then
 3776    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 3777  set dummy ${ac_tool_prefix}gcc; ac_word=$2
 3778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3779  printf %s "checking for $ac_word... " >&6; }
 3780  if test ${ac_cv_prog_CC+y}
 3781  then :
 3782    printf %s "(cached) " >&6
 3783  else $as_nop
 3784    if test -n "$CC"; then
 3785    ac_cv_prog_CC="$CC" # Let the user override the test.
 3786  else
 3787  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3788  for as_dir in $PATH
 3789  do
 3790    IFS=$as_save_IFS
 3791    case $as_dir in #(((
 3792      '') as_dir=./ ;;
 3793      */) ;;
 3794      *) as_dir=$as_dir/ ;;
 3795    esac
 3796      for ac_exec_ext in '' $ac_executable_extensions; do
 3797    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 3798      ac_cv_prog_CC="${ac_tool_prefix}gcc"
 3799      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 3800      break 2
 3801    fi
 3802  done
 3803    done
 3804  IFS=$as_save_IFS
 3805  
 3806  fi
 3807  fi
 3808  CC=$ac_cv_prog_CC
 3809  if test -n "$CC"; then
 3810    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3811  printf "%s\n" "$CC" >&6; }
 3812  else
 3813    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3814  printf "%s\n" "no" >&6; }
 3815  fi
 3816  
 3817  
 3818  fi
 3819  if test -z "$ac_cv_prog_CC"; then
 3820    ac_ct_CC=$CC
 3821    # Extract the first word of "gcc", so it can be a program name with args.
 3822  set dummy gcc; ac_word=$2
 3823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3824  printf %s "checking for $ac_word... " >&6; }
 3825  if test ${ac_cv_prog_ac_ct_CC+y}
 3826  then :
 3827    printf %s "(cached) " >&6
 3828  else $as_nop
 3829    if test -n "$ac_ct_CC"; then
 3830    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 3831  else
 3832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3833  for as_dir in $PATH
 3834  do
 3835    IFS=$as_save_IFS
 3836    case $as_dir in #(((
 3837      '') as_dir=./ ;;
 3838      */) ;;
 3839      *) as_dir=$as_dir/ ;;
 3840    esac
 3841      for ac_exec_ext in '' $ac_executable_extensions; do
 3842    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 3843      ac_cv_prog_ac_ct_CC="gcc"
 3844      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 3845      break 2
 3846    fi
 3847  done
 3848    done
 3849  IFS=$as_save_IFS
 3850  
 3851  fi
 3852  fi
 3853  ac_ct_CC=$ac_cv_prog_ac_ct_CC
 3854  if test -n "$ac_ct_CC"; then
 3855    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 3856  printf "%s\n" "$ac_ct_CC" >&6; }
 3857  else
 3858    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3859  printf "%s\n" "no" >&6; }
 3860  fi
 3861  
 3862    if test "x$ac_ct_CC" = x; then
 3863      CC=""
 3864    else
 3865      case $cross_compiling:$ac_tool_warned in
 3866  yes:)
 3867  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 3868  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 3869  ac_tool_warned=yes ;;
 3870  esac
 3871      CC=$ac_ct_CC
 3872    fi
 3873  else
 3874    CC="$ac_cv_prog_CC"
 3875  fi
 3876  
 3877  if test -z "$CC"; then
 3878            if test -n "$ac_tool_prefix"; then
 3879      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 3880  set dummy ${ac_tool_prefix}cc; ac_word=$2
 3881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3882  printf %s "checking for $ac_word... " >&6; }
 3883  if test ${ac_cv_prog_CC+y}
 3884  then :
 3885    printf %s "(cached) " >&6
 3886  else $as_nop
 3887    if test -n "$CC"; then
 3888    ac_cv_prog_CC="$CC" # Let the user override the test.
 3889  else
 3890  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3891  for as_dir in $PATH
 3892  do
 3893    IFS=$as_save_IFS
 3894    case $as_dir in #(((
 3895      '') as_dir=./ ;;
 3896      */) ;;
 3897      *) as_dir=$as_dir/ ;;
 3898    esac
 3899      for ac_exec_ext in '' $ac_executable_extensions; do
 3900    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 3901      ac_cv_prog_CC="${ac_tool_prefix}cc"
 3902      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 3903      break 2
 3904    fi
 3905  done
 3906    done
 3907  IFS=$as_save_IFS
 3908  
 3909  fi
 3910  fi
 3911  CC=$ac_cv_prog_CC
 3912  if test -n "$CC"; then
 3913    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3914  printf "%s\n" "$CC" >&6; }
 3915  else
 3916    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3917  printf "%s\n" "no" >&6; }
 3918  fi
 3919  
 3920  
 3921    fi
 3922  fi
 3923  if test -z "$CC"; then
 3924    # Extract the first word of "cc", so it can be a program name with args.
 3925  set dummy cc; ac_word=$2
 3926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3927  printf %s "checking for $ac_word... " >&6; }
 3928  if test ${ac_cv_prog_CC+y}
 3929  then :
 3930    printf %s "(cached) " >&6
 3931  else $as_nop
 3932    if test -n "$CC"; then
 3933    ac_cv_prog_CC="$CC" # Let the user override the test.
 3934  else
 3935    ac_prog_rejected=no
 3936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3937  for as_dir in $PATH
 3938  do
 3939    IFS=$as_save_IFS
 3940    case $as_dir in #(((
 3941      '') as_dir=./ ;;
 3942      */) ;;
 3943      *) as_dir=$as_dir/ ;;
 3944    esac
 3945      for ac_exec_ext in '' $ac_executable_extensions; do
 3946    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 3947      if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 3948         ac_prog_rejected=yes
 3949         continue
 3950       fi
 3951      ac_cv_prog_CC="cc"
 3952      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 3953      break 2
 3954    fi
 3955  done
 3956    done
 3957  IFS=$as_save_IFS
 3958  
 3959  if test $ac_prog_rejected = yes; then
 3960    # We found a bogon in the path, so make sure we never use it.
 3961    set dummy $ac_cv_prog_CC
 3962    shift
 3963    if test $# != 0; then
 3964      # We chose a different compiler from the bogus one.
 3965      # However, it has the same basename, so the bogon will be chosen
 3966      # first if we set CC to just the basename; use the full file name.
 3967      shift
 3968      ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
 3969    fi
 3970  fi
 3971  fi
 3972  fi
 3973  CC=$ac_cv_prog_CC
 3974  if test -n "$CC"; then
 3975    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 3976  printf "%s\n" "$CC" >&6; }
 3977  else
 3978    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3979  printf "%s\n" "no" >&6; }
 3980  fi
 3981  
 3982  
 3983  fi
 3984  if test -z "$CC"; then
 3985    if test -n "$ac_tool_prefix"; then
 3986    for ac_prog in cl.exe
 3987    do
 3988      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3989  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3991  printf %s "checking for $ac_word... " >&6; }
 3992  if test ${ac_cv_prog_CC+y}
 3993  then :
 3994    printf %s "(cached) " >&6
 3995  else $as_nop
 3996    if test -n "$CC"; then
 3997    ac_cv_prog_CC="$CC" # Let the user override the test.
 3998  else
 3999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4000  for as_dir in $PATH
 4001  do
 4002    IFS=$as_save_IFS
 4003    case $as_dir in #(((
 4004      '') as_dir=./ ;;
 4005      */) ;;
 4006      *) as_dir=$as_dir/ ;;
 4007    esac
 4008      for ac_exec_ext in '' $ac_executable_extensions; do
 4009    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 4010      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 4011      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 4012      break 2
 4013    fi
 4014  done
 4015    done
 4016  IFS=$as_save_IFS
 4017  
 4018  fi
 4019  fi
 4020  CC=$ac_cv_prog_CC
 4021  if test -n "$CC"; then
 4022    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 4023  printf "%s\n" "$CC" >&6; }
 4024  else
 4025    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4026  printf "%s\n" "no" >&6; }
 4027  fi
 4028  
 4029  
 4030      test -n "$CC" && break
 4031    done
 4032  fi
 4033  if test -z "$CC"; then
 4034    ac_ct_CC=$CC
 4035    for ac_prog in cl.exe
 4036  do
 4037    # Extract the first word of "$ac_prog", so it can be a program name with args.
 4038  set dummy $ac_prog; ac_word=$2
 4039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4040  printf %s "checking for $ac_word... " >&6; }
 4041  if test ${ac_cv_prog_ac_ct_CC+y}
 4042  then :
 4043    printf %s "(cached) " >&6
 4044  else $as_nop
 4045    if test -n "$ac_ct_CC"; then
 4046    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 4047  else
 4048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4049  for as_dir in $PATH
 4050  do
 4051    IFS=$as_save_IFS
 4052    case $as_dir in #(((
 4053      '') as_dir=./ ;;
 4054      */) ;;
 4055      *) as_dir=$as_dir/ ;;
 4056    esac
 4057      for ac_exec_ext in '' $ac_executable_extensions; do
 4058    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 4059      ac_cv_prog_ac_ct_CC="$ac_prog"
 4060      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 4061      break 2
 4062    fi
 4063  done
 4064    done
 4065  IFS=$as_save_IFS
 4066  
 4067  fi
 4068  fi
 4069  ac_ct_CC=$ac_cv_prog_ac_ct_CC
 4070  if test -n "$ac_ct_CC"; then
 4071    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 4072  printf "%s\n" "$ac_ct_CC" >&6; }
 4073  else
 4074    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4075  printf "%s\n" "no" >&6; }
 4076  fi
 4077  
 4078  
 4079    test -n "$ac_ct_CC" && break
 4080  done
 4081  
 4082    if test "x$ac_ct_CC" = x; then
 4083      CC=""
 4084    else
 4085      case $cross_compiling:$ac_tool_warned in
 4086  yes:)
 4087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4088  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4089  ac_tool_warned=yes ;;
 4090  esac
 4091      CC=$ac_ct_CC
 4092    fi
 4093  fi
 4094  
 4095  fi
 4096  if test -z "$CC"; then
 4097    if test -n "$ac_tool_prefix"; then
 4098    # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
 4099  set dummy ${ac_tool_prefix}clang; ac_word=$2
 4100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4101  printf %s "checking for $ac_word... " >&6; }
 4102  if test ${ac_cv_prog_CC+y}
 4103  then :
 4104    printf %s "(cached) " >&6
 4105  else $as_nop
 4106    if test -n "$CC"; then
 4107    ac_cv_prog_CC="$CC" # Let the user override the test.
 4108  else
 4109  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4110  for as_dir in $PATH
 4111  do
 4112    IFS=$as_save_IFS
 4113    case $as_dir in #(((
 4114      '') as_dir=./ ;;
 4115      */) ;;
 4116      *) as_dir=$as_dir/ ;;
 4117    esac
 4118      for ac_exec_ext in '' $ac_executable_extensions; do
 4119    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 4120      ac_cv_prog_CC="${ac_tool_prefix}clang"
 4121      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 4122      break 2
 4123    fi
 4124  done
 4125    done
 4126  IFS=$as_save_IFS
 4127  
 4128  fi
 4129  fi
 4130  CC=$ac_cv_prog_CC
 4131  if test -n "$CC"; then
 4132    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 4133  printf "%s\n" "$CC" >&6; }
 4134  else
 4135    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4136  printf "%s\n" "no" >&6; }
 4137  fi
 4138  
 4139  
 4140  fi
 4141  if test -z "$ac_cv_prog_CC"; then
 4142    ac_ct_CC=$CC
 4143    # Extract the first word of "clang", so it can be a program name with args.
 4144  set dummy clang; ac_word=$2
 4145  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4146  printf %s "checking for $ac_word... " >&6; }
 4147  if test ${ac_cv_prog_ac_ct_CC+y}
 4148  then :
 4149    printf %s "(cached) " >&6
 4150  else $as_nop
 4151    if test -n "$ac_ct_CC"; then
 4152    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 4153  else
 4154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4155  for as_dir in $PATH
 4156  do
 4157    IFS=$as_save_IFS
 4158    case $as_dir in #(((
 4159      '') as_dir=./ ;;
 4160      */) ;;
 4161      *) as_dir=$as_dir/ ;;
 4162    esac
 4163      for ac_exec_ext in '' $ac_executable_extensions; do
 4164    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 4165      ac_cv_prog_ac_ct_CC="clang"
 4166      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 4167      break 2
 4168    fi
 4169  done
 4170    done
 4171  IFS=$as_save_IFS
 4172  
 4173  fi
 4174  fi
 4175  ac_ct_CC=$ac_cv_prog_ac_ct_CC
 4176  if test -n "$ac_ct_CC"; then
 4177    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 4178  printf "%s\n" "$ac_ct_CC" >&6; }
 4179  else
 4180    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4181  printf "%s\n" "no" >&6; }
 4182  fi
 4183  
 4184    if test "x$ac_ct_CC" = x; then
 4185      CC=""
 4186    else
 4187      case $cross_compiling:$ac_tool_warned in
 4188  yes:)
 4189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 4190  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 4191  ac_tool_warned=yes ;;
 4192  esac
 4193      CC=$ac_ct_CC
 4194    fi
 4195  else
 4196    CC="$ac_cv_prog_CC"
 4197  fi
 4198  
 4199  fi
 4200  
 4201  
 4202  test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4203  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 4204  as_fn_error $? "no acceptable C compiler found in \$PATH
 4205  See \`config.log' for more details" "$LINENO" 5; }
 4206  
 4207  # Provide some information about the compiler.
 4208  printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 4209  set X $ac_compile
 4210  ac_compiler=$2
 4211  for ac_option in --version -v -V -qversion -version; do
 4212    { { ac_try="$ac_compiler $ac_option >&5"
 4213  case "(($ac_try" in
 4214    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4215    *) ac_try_echo=$ac_try;;
 4216  esac
 4217  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4218  printf "%s\n" "$ac_try_echo"; } >&5
 4219    (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 4220    ac_status=$?
 4221    if test -s conftest.err; then
 4222      sed '10a\
 4223  ... rest of stderr output deleted ...
 4224           10q' conftest.err >conftest.er1
 4225      cat conftest.er1 >&5
 4226    fi
 4227    rm -f conftest.er1 conftest.err
 4228    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4229    test $ac_status = 0; }
 4230  done
 4231  
 4232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4233  /* end confdefs.h.  */
 4234  
 4235  int
 4236  main (void)
 4237  {
 4238  
 4239    ;
 4240    return 0;
 4241  }
 4242  _ACEOF
 4243  ac_clean_files_save=$ac_clean_files
 4244  ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 4245  # Try to create an executable without -o first, disregard a.out.
 4246  # It will help us diagnose broken compilers, and finding out an intuition
 4247  # of exeext.
 4248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
 4249  printf %s "checking whether the C compiler works... " >&6; }
 4250  ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 4251  
 4252  # The possible output files:
 4253  ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 4254  
 4255  ac_rmfiles=
 4256  for ac_file in $ac_files
 4257  do
 4258    case $ac_file in
 4259      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 4260      * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 4261    esac
 4262  done
 4263  rm -f $ac_rmfiles
 4264  
 4265  if { { ac_try="$ac_link_default"
 4266  case "(($ac_try" in
 4267    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4268    *) ac_try_echo=$ac_try;;
 4269  esac
 4270  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4271  printf "%s\n" "$ac_try_echo"; } >&5
 4272    (eval "$ac_link_default") 2>&5
 4273    ac_status=$?
 4274    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4275    test $ac_status = 0; }
 4276  then :
 4277    # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 4278  # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 4279  # in a Makefile.  We should not override ac_cv_exeext if it was cached,
 4280  # so that the user can short-circuit this test for compilers unknown to
 4281  # Autoconf.
 4282  for ac_file in $ac_files ''
 4283  do
 4284    test -f "$ac_file" || continue
 4285    case $ac_file in
 4286      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 4287  	;;
 4288      [ab].out )
 4289  	# We found the default executable, but exeext='' is most
 4290  	# certainly right.
 4291  	break;;
 4292      *.* )
 4293  	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
 4294  	then :; else
 4295  	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 4296  	fi
 4297  	# We set ac_cv_exeext here because the later test for it is not
 4298  	# safe: cross compilers may not add the suffix if given an `-o'
 4299  	# argument, so we may need to know it at that point already.
 4300  	# Even if this section looks crufty: it has the advantage of
 4301  	# actually working.
 4302  	break;;
 4303      * )
 4304  	break;;
 4305    esac
 4306  done
 4307  test "$ac_cv_exeext" = no && ac_cv_exeext=
 4308  
 4309  else $as_nop
 4310    ac_file=''
 4311  fi
 4312  if test -z "$ac_file"
 4313  then :
 4314    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4315  printf "%s\n" "no" >&6; }
 4316  printf "%s\n" "$as_me: failed program was:" >&5
 4317  sed 's/^/| /' conftest.$ac_ext >&5
 4318  
 4319  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4320  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 4321  as_fn_error 77 "C compiler cannot create executables
 4322  See \`config.log' for more details" "$LINENO" 5; }
 4323  else $as_nop
 4324    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 4325  printf "%s\n" "yes" >&6; }
 4326  fi
 4327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
 4328  printf %s "checking for C compiler default output file name... " >&6; }
 4329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
 4330  printf "%s\n" "$ac_file" >&6; }
 4331  ac_exeext=$ac_cv_exeext
 4332  
 4333  rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 4334  ac_clean_files=$ac_clean_files_save
 4335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
 4336  printf %s "checking for suffix of executables... " >&6; }
 4337  if { { ac_try="$ac_link"
 4338  case "(($ac_try" in
 4339    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4340    *) ac_try_echo=$ac_try;;
 4341  esac
 4342  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4343  printf "%s\n" "$ac_try_echo"; } >&5
 4344    (eval "$ac_link") 2>&5
 4345    ac_status=$?
 4346    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4347    test $ac_status = 0; }
 4348  then :
 4349    # If both `conftest.exe' and `conftest' are `present' (well, observable)
 4350  # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 4351  # work properly (i.e., refer to `conftest.exe'), while it won't with
 4352  # `rm'.
 4353  for ac_file in conftest.exe conftest conftest.*; do
 4354    test -f "$ac_file" || continue
 4355    case $ac_file in
 4356      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 4357      *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 4358  	  break;;
 4359      * ) break;;
 4360    esac
 4361  done
 4362  else $as_nop
 4363    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4364  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 4365  as_fn_error $? "cannot compute suffix of executables: cannot compile and link
 4366  See \`config.log' for more details" "$LINENO" 5; }
 4367  fi
 4368  rm -f conftest conftest$ac_cv_exeext
 4369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
 4370  printf "%s\n" "$ac_cv_exeext" >&6; }
 4371  
 4372  rm -f conftest.$ac_ext
 4373  EXEEXT=$ac_cv_exeext
 4374  ac_exeext=$EXEEXT
 4375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4376  /* end confdefs.h.  */
 4377  #include <stdio.h>
 4378  int
 4379  main (void)
 4380  {
 4381  FILE *f = fopen ("conftest.out", "w");
 4382   return ferror (f) || fclose (f) != 0;
 4383  
 4384    ;
 4385    return 0;
 4386  }
 4387  _ACEOF
 4388  ac_clean_files="$ac_clean_files conftest.out"
 4389  # Check that the compiler produces executables we can run.  If not, either
 4390  # the compiler is broken, or we cross compile.
 4391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
 4392  printf %s "checking whether we are cross compiling... " >&6; }
 4393  if test "$cross_compiling" != yes; then
 4394    { { ac_try="$ac_link"
 4395  case "(($ac_try" in
 4396    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4397    *) ac_try_echo=$ac_try;;
 4398  esac
 4399  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4400  printf "%s\n" "$ac_try_echo"; } >&5
 4401    (eval "$ac_link") 2>&5
 4402    ac_status=$?
 4403    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4404    test $ac_status = 0; }
 4405    if { ac_try='./conftest$ac_cv_exeext'
 4406    { { case "(($ac_try" in
 4407    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4408    *) ac_try_echo=$ac_try;;
 4409  esac
 4410  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4411  printf "%s\n" "$ac_try_echo"; } >&5
 4412    (eval "$ac_try") 2>&5
 4413    ac_status=$?
 4414    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4415    test $ac_status = 0; }; }; then
 4416      cross_compiling=no
 4417    else
 4418      if test "$cross_compiling" = maybe; then
 4419  	cross_compiling=yes
 4420      else
 4421  	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4422  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 4423  as_fn_error 77 "cannot run C compiled programs.
 4424  If you meant to cross compile, use \`--host'.
 4425  See \`config.log' for more details" "$LINENO" 5; }
 4426      fi
 4427    fi
 4428  fi
 4429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
 4430  printf "%s\n" "$cross_compiling" >&6; }
 4431  
 4432  rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
 4433  ac_clean_files=$ac_clean_files_save
 4434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
 4435  printf %s "checking for suffix of object files... " >&6; }
 4436  if test ${ac_cv_objext+y}
 4437  then :
 4438    printf %s "(cached) " >&6
 4439  else $as_nop
 4440    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4441  /* end confdefs.h.  */
 4442  
 4443  int
 4444  main (void)
 4445  {
 4446  
 4447    ;
 4448    return 0;
 4449  }
 4450  _ACEOF
 4451  rm -f conftest.o conftest.obj
 4452  if { { ac_try="$ac_compile"
 4453  case "(($ac_try" in
 4454    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 4455    *) ac_try_echo=$ac_try;;
 4456  esac
 4457  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 4458  printf "%s\n" "$ac_try_echo"; } >&5
 4459    (eval "$ac_compile") 2>&5
 4460    ac_status=$?
 4461    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 4462    test $ac_status = 0; }
 4463  then :
 4464    for ac_file in conftest.o conftest.obj conftest.*; do
 4465    test -f "$ac_file" || continue;
 4466    case $ac_file in
 4467      *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 4468      *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 4469         break;;
 4470    esac
 4471  done
 4472  else $as_nop
 4473    printf "%s\n" "$as_me: failed program was:" >&5
 4474  sed 's/^/| /' conftest.$ac_ext >&5
 4475  
 4476  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 4477  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 4478  as_fn_error $? "cannot compute suffix of object files: cannot compile
 4479  See \`config.log' for more details" "$LINENO" 5; }
 4480  fi
 4481  rm -f conftest.$ac_cv_objext conftest.$ac_ext
 4482  fi
 4483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
 4484  printf "%s\n" "$ac_cv_objext" >&6; }
 4485  OBJEXT=$ac_cv_objext
 4486  ac_objext=$OBJEXT
 4487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
 4488  printf %s "checking whether the compiler supports GNU C... " >&6; }
 4489  if test ${ac_cv_c_compiler_gnu+y}
 4490  then :
 4491    printf %s "(cached) " >&6
 4492  else $as_nop
 4493    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4494  /* end confdefs.h.  */
 4495  
 4496  int
 4497  main (void)
 4498  {
 4499  #ifndef __GNUC__
 4500         choke me
 4501  #endif
 4502  
 4503    ;
 4504    return 0;
 4505  }
 4506  _ACEOF
 4507  if ac_fn_c_try_compile "$LINENO"
 4508  then :
 4509    ac_compiler_gnu=yes
 4510  else $as_nop
 4511    ac_compiler_gnu=no
 4512  fi
 4513  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 4514  ac_cv_c_compiler_gnu=$ac_compiler_gnu
 4515  
 4516  fi
 4517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 4518  printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
 4519  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4520  
 4521  if test $ac_compiler_gnu = yes; then
 4522    GCC=yes
 4523  else
 4524    GCC=
 4525  fi
 4526  ac_test_CFLAGS=${CFLAGS+y}
 4527  ac_save_CFLAGS=$CFLAGS
 4528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 4529  printf %s "checking whether $CC accepts -g... " >&6; }
 4530  if test ${ac_cv_prog_cc_g+y}
 4531  then :
 4532    printf %s "(cached) " >&6
 4533  else $as_nop
 4534    ac_save_c_werror_flag=$ac_c_werror_flag
 4535     ac_c_werror_flag=yes
 4536     ac_cv_prog_cc_g=no
 4537     CFLAGS="-g"
 4538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4539  /* end confdefs.h.  */
 4540  
 4541  int
 4542  main (void)
 4543  {
 4544  
 4545    ;
 4546    return 0;
 4547  }
 4548  _ACEOF
 4549  if ac_fn_c_try_compile "$LINENO"
 4550  then :
 4551    ac_cv_prog_cc_g=yes
 4552  else $as_nop
 4553    CFLAGS=""
 4554        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4555  /* end confdefs.h.  */
 4556  
 4557  int
 4558  main (void)
 4559  {
 4560  
 4561    ;
 4562    return 0;
 4563  }
 4564  _ACEOF
 4565  if ac_fn_c_try_compile "$LINENO"
 4566  then :
 4567  
 4568  else $as_nop
 4569    ac_c_werror_flag=$ac_save_c_werror_flag
 4570  	 CFLAGS="-g"
 4571  	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4572  /* end confdefs.h.  */
 4573  
 4574  int
 4575  main (void)
 4576  {
 4577  
 4578    ;
 4579    return 0;
 4580  }
 4581  _ACEOF
 4582  if ac_fn_c_try_compile "$LINENO"
 4583  then :
 4584    ac_cv_prog_cc_g=yes
 4585  fi
 4586  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 4587  fi
 4588  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 4589  fi
 4590  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 4591     ac_c_werror_flag=$ac_save_c_werror_flag
 4592  fi
 4593  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 4594  printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
 4595  if test $ac_test_CFLAGS; then
 4596    CFLAGS=$ac_save_CFLAGS
 4597  elif test $ac_cv_prog_cc_g = yes; then
 4598    if test "$GCC" = yes; then
 4599      CFLAGS="-g -O2"
 4600    else
 4601      CFLAGS="-g"
 4602    fi
 4603  else
 4604    if test "$GCC" = yes; then
 4605      CFLAGS="-O2"
 4606    else
 4607      CFLAGS=
 4608    fi
 4609  fi
 4610  ac_prog_cc_stdc=no
 4611  if test x$ac_prog_cc_stdc = xno
 4612  then :
 4613    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
 4614  printf %s "checking for $CC option to enable C11 features... " >&6; }
 4615  if test ${ac_cv_prog_cc_c11+y}
 4616  then :
 4617    printf %s "(cached) " >&6
 4618  else $as_nop
 4619    ac_cv_prog_cc_c11=no
 4620  ac_save_CC=$CC
 4621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4622  /* end confdefs.h.  */
 4623  $ac_c_conftest_c11_program
 4624  _ACEOF
 4625  for ac_arg in '' -std=gnu11
 4626  do
 4627    CC="$ac_save_CC $ac_arg"
 4628    if ac_fn_c_try_compile "$LINENO"
 4629  then :
 4630    ac_cv_prog_cc_c11=$ac_arg
 4631  fi
 4632  rm -f core conftest.err conftest.$ac_objext conftest.beam
 4633    test "x$ac_cv_prog_cc_c11" != "xno" && break
 4634  done
 4635  rm -f conftest.$ac_ext
 4636  CC=$ac_save_CC
 4637  fi
 4638  
 4639  if test "x$ac_cv_prog_cc_c11" = xno
 4640  then :
 4641    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4642  printf "%s\n" "unsupported" >&6; }
 4643  else $as_nop
 4644    if test "x$ac_cv_prog_cc_c11" = x
 4645  then :
 4646    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4647  printf "%s\n" "none needed" >&6; }
 4648  else $as_nop
 4649    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
 4650  printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
 4651       CC="$CC $ac_cv_prog_cc_c11"
 4652  fi
 4653    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
 4654    ac_prog_cc_stdc=c11
 4655  fi
 4656  fi
 4657  if test x$ac_prog_cc_stdc = xno
 4658  then :
 4659    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
 4660  printf %s "checking for $CC option to enable C99 features... " >&6; }
 4661  if test ${ac_cv_prog_cc_c99+y}
 4662  then :
 4663    printf %s "(cached) " >&6
 4664  else $as_nop
 4665    ac_cv_prog_cc_c99=no
 4666  ac_save_CC=$CC
 4667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4668  /* end confdefs.h.  */
 4669  $ac_c_conftest_c99_program
 4670  _ACEOF
 4671  for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
 4672  do
 4673    CC="$ac_save_CC $ac_arg"
 4674    if ac_fn_c_try_compile "$LINENO"
 4675  then :
 4676    ac_cv_prog_cc_c99=$ac_arg
 4677  fi
 4678  rm -f core conftest.err conftest.$ac_objext conftest.beam
 4679    test "x$ac_cv_prog_cc_c99" != "xno" && break
 4680  done
 4681  rm -f conftest.$ac_ext
 4682  CC=$ac_save_CC
 4683  fi
 4684  
 4685  if test "x$ac_cv_prog_cc_c99" = xno
 4686  then :
 4687    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4688  printf "%s\n" "unsupported" >&6; }
 4689  else $as_nop
 4690    if test "x$ac_cv_prog_cc_c99" = x
 4691  then :
 4692    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4693  printf "%s\n" "none needed" >&6; }
 4694  else $as_nop
 4695    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 4696  printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
 4697       CC="$CC $ac_cv_prog_cc_c99"
 4698  fi
 4699    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 4700    ac_prog_cc_stdc=c99
 4701  fi
 4702  fi
 4703  if test x$ac_prog_cc_stdc = xno
 4704  then :
 4705    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
 4706  printf %s "checking for $CC option to enable C89 features... " >&6; }
 4707  if test ${ac_cv_prog_cc_c89+y}
 4708  then :
 4709    printf %s "(cached) " >&6
 4710  else $as_nop
 4711    ac_cv_prog_cc_c89=no
 4712  ac_save_CC=$CC
 4713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4714  /* end confdefs.h.  */
 4715  $ac_c_conftest_c89_program
 4716  _ACEOF
 4717  for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 4718  do
 4719    CC="$ac_save_CC $ac_arg"
 4720    if ac_fn_c_try_compile "$LINENO"
 4721  then :
 4722    ac_cv_prog_cc_c89=$ac_arg
 4723  fi
 4724  rm -f core conftest.err conftest.$ac_objext conftest.beam
 4725    test "x$ac_cv_prog_cc_c89" != "xno" && break
 4726  done
 4727  rm -f conftest.$ac_ext
 4728  CC=$ac_save_CC
 4729  fi
 4730  
 4731  if test "x$ac_cv_prog_cc_c89" = xno
 4732  then :
 4733    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 4734  printf "%s\n" "unsupported" >&6; }
 4735  else $as_nop
 4736    if test "x$ac_cv_prog_cc_c89" = x
 4737  then :
 4738    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 4739  printf "%s\n" "none needed" >&6; }
 4740  else $as_nop
 4741    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 4742  printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
 4743       CC="$CC $ac_cv_prog_cc_c89"
 4744  fi
 4745    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 4746    ac_prog_cc_stdc=c89
 4747  fi
 4748  fi
 4749  
 4750  ac_ext=c
 4751  ac_cpp='$CPP $CPPFLAGS'
 4752  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4753  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4754  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4755  
 4756  
 4757    ac_ext=c
 4758  ac_cpp='$CPP $CPPFLAGS'
 4759  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4760  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4761  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 4763  printf %s "checking whether $CC understands -c and -o together... " >&6; }
 4764  if test ${am_cv_prog_cc_c_o+y}
 4765  then :
 4766    printf %s "(cached) " >&6
 4767  else $as_nop
 4768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 4769  /* end confdefs.h.  */
 4770  
 4771  int
 4772  main (void)
 4773  {
 4774  
 4775    ;
 4776    return 0;
 4777  }
 4778  _ACEOF
 4779    # Make sure it works both with $CC and with simple cc.
 4780    # Following AC_PROG_CC_C_O, we do the test twice because some
 4781    # compilers refuse to overwrite an existing .o file with -o,
 4782    # though they will create one.
 4783    am_cv_prog_cc_c_o=yes
 4784    for am_i in 1 2; do
 4785      if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 4786     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 4787     ac_status=$?
 4788     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4789     (exit $ac_status); } \
 4790           && test -f conftest2.$ac_objext; then
 4791        : OK
 4792      else
 4793        am_cv_prog_cc_c_o=no
 4794        break
 4795      fi
 4796    done
 4797    rm -f core conftest*
 4798    unset am_i
 4799  fi
 4800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 4801  printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
 4802  if test "$am_cv_prog_cc_c_o" != yes; then
 4803     # Losing compiler, so override with the script.
 4804     # FIXME: It is wrong to rewrite CC.
 4805     # But if we don't then we get into trouble of one sort or another.
 4806     # A longer-term fix would be to have automake use am__CC in this case,
 4807     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 4808     CC="$am_aux_dir/compile $CC"
 4809  fi
 4810  ac_ext=c
 4811  ac_cpp='$CPP $CPPFLAGS'
 4812  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4813  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4814  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4815  
 4816  
 4817  depcc="$CC"   am_compiler_list=
 4818  
 4819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 4820  printf %s "checking dependency style of $depcc... " >&6; }
 4821  if test ${am_cv_CC_dependencies_compiler_type+y}
 4822  then :
 4823    printf %s "(cached) " >&6
 4824  else $as_nop
 4825    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 4826    # We make a subdir and do the tests there.  Otherwise we can end up
 4827    # making bogus files that we don't know about and never remove.  For
 4828    # instance it was reported that on HP-UX the gcc test will end up
 4829    # making a dummy file named 'D' -- because '-MD' means "put the output
 4830    # in D".
 4831    rm -rf conftest.dir
 4832    mkdir conftest.dir
 4833    # Copy depcomp to subdir because otherwise we won't find it if we're
 4834    # using a relative directory.
 4835    cp "$am_depcomp" conftest.dir
 4836    cd conftest.dir
 4837    # We will build objects and dependencies in a subdirectory because
 4838    # it helps to detect inapplicable dependency modes.  For instance
 4839    # both Tru64's cc and ICC support -MD to output dependencies as a
 4840    # side effect of compilation, but ICC will put the dependencies in
 4841    # the current directory while Tru64 will put them in the object
 4842    # directory.
 4843    mkdir sub
 4844  
 4845    am_cv_CC_dependencies_compiler_type=none
 4846    if test "$am_compiler_list" = ""; then
 4847       am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 4848    fi
 4849    am__universal=false
 4850    case " $depcc " in #(
 4851       *\ -arch\ *\ -arch\ *) am__universal=true ;;
 4852       esac
 4853  
 4854    for depmode in $am_compiler_list; do
 4855      # Setup a source with many dependencies, because some compilers
 4856      # like to wrap large dependency lists on column 80 (with \), and
 4857      # we should not choose a depcomp mode which is confused by this.
 4858      #
 4859      # We need to recreate these files for each test, as the compiler may
 4860      # overwrite some of them when testing with obscure command lines.
 4861      # This happens at least with the AIX C compiler.
 4862      : > sub/conftest.c
 4863      for i in 1 2 3 4 5 6; do
 4864        echo '#include "conftst'$i'.h"' >> sub/conftest.c
 4865        # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 4866        # Solaris 10 /bin/sh.
 4867        echo '/* dummy */' > sub/conftst$i.h
 4868      done
 4869      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 4870  
 4871      # We check with '-c' and '-o' for the sake of the "dashmstdout"
 4872      # mode.  It turns out that the SunPro C++ compiler does not properly
 4873      # handle '-M -o', and we need to detect this.  Also, some Intel
 4874      # versions had trouble with output in subdirs.
 4875      am__obj=sub/conftest.${OBJEXT-o}
 4876      am__minus_obj="-o $am__obj"
 4877      case $depmode in
 4878      gcc)
 4879        # This depmode causes a compiler race in universal mode.
 4880        test "$am__universal" = false || continue
 4881        ;;
 4882      nosideeffect)
 4883        # After this tag, mechanisms are not by side-effect, so they'll
 4884        # only be used when explicitly requested.
 4885        if test "x$enable_dependency_tracking" = xyes; then
 4886  	continue
 4887        else
 4888  	break
 4889        fi
 4890        ;;
 4891      msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 4892        # This compiler won't grok '-c -o', but also, the minuso test has
 4893        # not run yet.  These depmodes are late enough in the game, and
 4894        # so weak that their functioning should not be impacted.
 4895        am__obj=conftest.${OBJEXT-o}
 4896        am__minus_obj=
 4897        ;;
 4898      none) break ;;
 4899      esac
 4900      if depmode=$depmode \
 4901         source=sub/conftest.c object=$am__obj \
 4902         depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 4903         $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 4904           >/dev/null 2>conftest.err &&
 4905         grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 4906         grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 4907         grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 4908         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 4909        # icc doesn't choke on unknown options, it will just issue warnings
 4910        # or remarks (even with -Werror).  So we grep stderr for any message
 4911        # that says an option was ignored or not supported.
 4912        # When given -MP, icc 7.0 and 7.1 complain thusly:
 4913        #   icc: Command line warning: ignoring option '-M'; no argument required
 4914        # The diagnosis changed in icc 8.0:
 4915        #   icc: Command line remark: option '-MP' not supported
 4916        if (grep 'ignoring option' conftest.err ||
 4917            grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 4918          am_cv_CC_dependencies_compiler_type=$depmode
 4919          break
 4920        fi
 4921      fi
 4922    done
 4923  
 4924    cd ..
 4925    rm -rf conftest.dir
 4926  else
 4927    am_cv_CC_dependencies_compiler_type=none
 4928  fi
 4929  
 4930  fi
 4931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 4932  printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
 4933  CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 4934  
 4935   if
 4936    test "x$enable_dependency_tracking" != xno \
 4937    && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 4938    am__fastdepCC_TRUE=
 4939    am__fastdepCC_FALSE='#'
 4940  else
 4941    am__fastdepCC_TRUE='#'
 4942    am__fastdepCC_FALSE=
 4943  fi
 4944  
 4945  
 4946  
 4947  
 4948    if test -n "$ac_tool_prefix"; then
 4949    for ac_prog in ar lib "link -lib"
 4950    do
 4951      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 4952  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 4953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 4954  printf %s "checking for $ac_word... " >&6; }
 4955  if test ${ac_cv_prog_AR+y}
 4956  then :
 4957    printf %s "(cached) " >&6
 4958  else $as_nop
 4959    if test -n "$AR"; then
 4960    ac_cv_prog_AR="$AR" # Let the user override the test.
 4961  else
 4962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4963  for as_dir in $PATH
 4964  do
 4965    IFS=$as_save_IFS
 4966    case $as_dir in #(((
 4967      '') as_dir=./ ;;
 4968      */) ;;
 4969      *) as_dir=$as_dir/ ;;
 4970    esac
 4971      for ac_exec_ext in '' $ac_executable_extensions; do
 4972    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 4973      ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
 4974      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 4975      break 2
 4976    fi
 4977  done
 4978    done
 4979  IFS=$as_save_IFS
 4980  
 4981  fi
 4982  fi
 4983  AR=$ac_cv_prog_AR
 4984  if test -n "$AR"; then
 4985    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
 4986  printf "%s\n" "$AR" >&6; }
 4987  else
 4988    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 4989  printf "%s\n" "no" >&6; }
 4990  fi
 4991  
 4992  
 4993      test -n "$AR" && break
 4994    done
 4995  fi
 4996  if test -z "$AR"; then
 4997    ac_ct_AR=$AR
 4998    for ac_prog in ar lib "link -lib"
 4999  do
 5000    # Extract the first word of "$ac_prog", so it can be a program name with args.
 5001  set dummy $ac_prog; ac_word=$2
 5002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5003  printf %s "checking for $ac_word... " >&6; }
 5004  if test ${ac_cv_prog_ac_ct_AR+y}
 5005  then :
 5006    printf %s "(cached) " >&6
 5007  else $as_nop
 5008    if test -n "$ac_ct_AR"; then
 5009    ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 5010  else
 5011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5012  for as_dir in $PATH
 5013  do
 5014    IFS=$as_save_IFS
 5015    case $as_dir in #(((
 5016      '') as_dir=./ ;;
 5017      */) ;;
 5018      *) as_dir=$as_dir/ ;;
 5019    esac
 5020      for ac_exec_ext in '' $ac_executable_extensions; do
 5021    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 5022      ac_cv_prog_ac_ct_AR="$ac_prog"
 5023      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 5024      break 2
 5025    fi
 5026  done
 5027    done
 5028  IFS=$as_save_IFS
 5029  
 5030  fi
 5031  fi
 5032  ac_ct_AR=$ac_cv_prog_ac_ct_AR
 5033  if test -n "$ac_ct_AR"; then
 5034    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
 5035  printf "%s\n" "$ac_ct_AR" >&6; }
 5036  else
 5037    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5038  printf "%s\n" "no" >&6; }
 5039  fi
 5040  
 5041  
 5042    test -n "$ac_ct_AR" && break
 5043  done
 5044  
 5045    if test "x$ac_ct_AR" = x; then
 5046      AR="false"
 5047    else
 5048      case $cross_compiling:$ac_tool_warned in
 5049  yes:)
 5050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 5051  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 5052  ac_tool_warned=yes ;;
 5053  esac
 5054      AR=$ac_ct_AR
 5055    fi
 5056  fi
 5057  
 5058  : ${AR=ar}
 5059  
 5060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
 5061  printf %s "checking the archiver ($AR) interface... " >&6; }
 5062  if test ${am_cv_ar_interface+y}
 5063  then :
 5064    printf %s "(cached) " >&6
 5065  else $as_nop
 5066    ac_ext=c
 5067  ac_cpp='$CPP $CPPFLAGS'
 5068  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5069  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5070  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 5071  
 5072     am_cv_ar_interface=ar
 5073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5074  /* end confdefs.h.  */
 5075  int some_variable = 0;
 5076  _ACEOF
 5077  if ac_fn_c_try_compile "$LINENO"
 5078  then :
 5079    am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
 5080        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
 5081    (eval $am_ar_try) 2>&5
 5082    ac_status=$?
 5083    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 5084    test $ac_status = 0; }
 5085        if test "$ac_status" -eq 0; then
 5086          am_cv_ar_interface=ar
 5087        else
 5088          am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
 5089          { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
 5090    (eval $am_ar_try) 2>&5
 5091    ac_status=$?
 5092    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 5093    test $ac_status = 0; }
 5094          if test "$ac_status" -eq 0; then
 5095            am_cv_ar_interface=lib
 5096          else
 5097            am_cv_ar_interface=unknown
 5098          fi
 5099        fi
 5100        rm -f conftest.lib libconftest.a
 5101  
 5102  fi
 5103  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 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  
 5110  fi
 5111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
 5112  printf "%s\n" "$am_cv_ar_interface" >&6; }
 5113  
 5114  case $am_cv_ar_interface in
 5115  ar)
 5116    ;;
 5117  lib)
 5118    # Microsoft lib, so override with the ar-lib wrapper script.
 5119    # FIXME: It is wrong to rewrite AR.
 5120    # But if we don't then we get into trouble of one sort or another.
 5121    # A longer-term fix would be to have automake use am__AR in this case,
 5122    # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
 5123    # similar.
 5124    AR="$am_aux_dir/ar-lib $AR"
 5125    ;;
 5126  unknown)
 5127    as_fn_error $? "could not determine $AR interface" "$LINENO" 5
 5128    ;;
 5129  esac
 5130  
 5131  # By default we simply use the C compiler to build assembly code.
 5132  
 5133  test "${CCAS+set}" = set || CCAS=$CC
 5134  test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 5135  
 5136  
 5137  
 5138  depcc="$CCAS"   am_compiler_list=
 5139  
 5140  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 5141  printf %s "checking dependency style of $depcc... " >&6; }
 5142  if test ${am_cv_CCAS_dependencies_compiler_type+y}
 5143  then :
 5144    printf %s "(cached) " >&6
 5145  else $as_nop
 5146    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 5147    # We make a subdir and do the tests there.  Otherwise we can end up
 5148    # making bogus files that we don't know about and never remove.  For
 5149    # instance it was reported that on HP-UX the gcc test will end up
 5150    # making a dummy file named 'D' -- because '-MD' means "put the output
 5151    # in D".
 5152    rm -rf conftest.dir
 5153    mkdir conftest.dir
 5154    # Copy depcomp to subdir because otherwise we won't find it if we're
 5155    # using a relative directory.
 5156    cp "$am_depcomp" conftest.dir
 5157    cd conftest.dir
 5158    # We will build objects and dependencies in a subdirectory because
 5159    # it helps to detect inapplicable dependency modes.  For instance
 5160    # both Tru64's cc and ICC support -MD to output dependencies as a
 5161    # side effect of compilation, but ICC will put the dependencies in
 5162    # the current directory while Tru64 will put them in the object
 5163    # directory.
 5164    mkdir sub
 5165  
 5166    am_cv_CCAS_dependencies_compiler_type=none
 5167    if test "$am_compiler_list" = ""; then
 5168       am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 5169    fi
 5170    am__universal=false
 5171  
 5172  
 5173    for depmode in $am_compiler_list; do
 5174      # Setup a source with many dependencies, because some compilers
 5175      # like to wrap large dependency lists on column 80 (with \), and
 5176      # we should not choose a depcomp mode which is confused by this.
 5177      #
 5178      # We need to recreate these files for each test, as the compiler may
 5179      # overwrite some of them when testing with obscure command lines.
 5180      # This happens at least with the AIX C compiler.
 5181      : > sub/conftest.c
 5182      for i in 1 2 3 4 5 6; do
 5183        echo '#include "conftst'$i'.h"' >> sub/conftest.c
 5184        # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 5185        # Solaris 10 /bin/sh.
 5186        echo '/* dummy */' > sub/conftst$i.h
 5187      done
 5188      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 5189  
 5190      # We check with '-c' and '-o' for the sake of the "dashmstdout"
 5191      # mode.  It turns out that the SunPro C++ compiler does not properly
 5192      # handle '-M -o', and we need to detect this.  Also, some Intel
 5193      # versions had trouble with output in subdirs.
 5194      am__obj=sub/conftest.${OBJEXT-o}
 5195      am__minus_obj="-o $am__obj"
 5196      case $depmode in
 5197      gcc)
 5198        # This depmode causes a compiler race in universal mode.
 5199        test "$am__universal" = false || continue
 5200        ;;
 5201      nosideeffect)
 5202        # After this tag, mechanisms are not by side-effect, so they'll
 5203        # only be used when explicitly requested.
 5204        if test "x$enable_dependency_tracking" = xyes; then
 5205  	continue
 5206        else
 5207  	break
 5208        fi
 5209        ;;
 5210      msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 5211        # This compiler won't grok '-c -o', but also, the minuso test has
 5212        # not run yet.  These depmodes are late enough in the game, and
 5213        # so weak that their functioning should not be impacted.
 5214        am__obj=conftest.${OBJEXT-o}
 5215        am__minus_obj=
 5216        ;;
 5217      none) break ;;
 5218      esac
 5219      if depmode=$depmode \
 5220         source=sub/conftest.c object=$am__obj \
 5221         depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 5222         $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 5223           >/dev/null 2>conftest.err &&
 5224         grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 5225         grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 5226         grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 5227         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 5228        # icc doesn't choke on unknown options, it will just issue warnings
 5229        # or remarks (even with -Werror).  So we grep stderr for any message
 5230        # that says an option was ignored or not supported.
 5231        # When given -MP, icc 7.0 and 7.1 complain thusly:
 5232        #   icc: Command line warning: ignoring option '-M'; no argument required
 5233        # The diagnosis changed in icc 8.0:
 5234        #   icc: Command line remark: option '-MP' not supported
 5235        if (grep 'ignoring option' conftest.err ||
 5236            grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 5237          am_cv_CCAS_dependencies_compiler_type=$depmode
 5238          break
 5239        fi
 5240      fi
 5241    done
 5242  
 5243    cd ..
 5244    rm -rf conftest.dir
 5245  else
 5246    am_cv_CCAS_dependencies_compiler_type=none
 5247  fi
 5248  
 5249  fi
 5250  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
 5251  printf "%s\n" "$am_cv_CCAS_dependencies_compiler_type" >&6; }
 5252  CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
 5253  
 5254   if
 5255    test "x$enable_dependency_tracking" != xno \
 5256    && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
 5257    am__fastdepCCAS_TRUE=
 5258    am__fastdepCCAS_FALSE='#'
 5259  else
 5260    am__fastdepCCAS_TRUE='#'
 5261    am__fastdepCCAS_FALSE=
 5262  fi
 5263  
 5264  
 5265  ac_ext=c
 5266  ac_cpp='$CPP $CPPFLAGS'
 5267  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5268  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5269  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 5270  if test -n "$ac_tool_prefix"; then
 5271    # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 5272  set dummy ${ac_tool_prefix}gcc; ac_word=$2
 5273  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5274  printf %s "checking for $ac_word... " >&6; }
 5275  if test ${ac_cv_prog_CC+y}
 5276  then :
 5277    printf %s "(cached) " >&6
 5278  else $as_nop
 5279    if test -n "$CC"; then
 5280    ac_cv_prog_CC="$CC" # Let the user override the test.
 5281  else
 5282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5283  for as_dir in $PATH
 5284  do
 5285    IFS=$as_save_IFS
 5286    case $as_dir in #(((
 5287      '') as_dir=./ ;;
 5288      */) ;;
 5289      *) as_dir=$as_dir/ ;;
 5290    esac
 5291      for ac_exec_ext in '' $ac_executable_extensions; do
 5292    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 5293      ac_cv_prog_CC="${ac_tool_prefix}gcc"
 5294      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 5295      break 2
 5296    fi
 5297  done
 5298    done
 5299  IFS=$as_save_IFS
 5300  
 5301  fi
 5302  fi
 5303  CC=$ac_cv_prog_CC
 5304  if test -n "$CC"; then
 5305    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 5306  printf "%s\n" "$CC" >&6; }
 5307  else
 5308    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5309  printf "%s\n" "no" >&6; }
 5310  fi
 5311  
 5312  
 5313  fi
 5314  if test -z "$ac_cv_prog_CC"; then
 5315    ac_ct_CC=$CC
 5316    # Extract the first word of "gcc", so it can be a program name with args.
 5317  set dummy gcc; ac_word=$2
 5318  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5319  printf %s "checking for $ac_word... " >&6; }
 5320  if test ${ac_cv_prog_ac_ct_CC+y}
 5321  then :
 5322    printf %s "(cached) " >&6
 5323  else $as_nop
 5324    if test -n "$ac_ct_CC"; then
 5325    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 5326  else
 5327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5328  for as_dir in $PATH
 5329  do
 5330    IFS=$as_save_IFS
 5331    case $as_dir in #(((
 5332      '') as_dir=./ ;;
 5333      */) ;;
 5334      *) as_dir=$as_dir/ ;;
 5335    esac
 5336      for ac_exec_ext in '' $ac_executable_extensions; do
 5337    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 5338      ac_cv_prog_ac_ct_CC="gcc"
 5339      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 5340      break 2
 5341    fi
 5342  done
 5343    done
 5344  IFS=$as_save_IFS
 5345  
 5346  fi
 5347  fi
 5348  ac_ct_CC=$ac_cv_prog_ac_ct_CC
 5349  if test -n "$ac_ct_CC"; then
 5350    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 5351  printf "%s\n" "$ac_ct_CC" >&6; }
 5352  else
 5353    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5354  printf "%s\n" "no" >&6; }
 5355  fi
 5356  
 5357    if test "x$ac_ct_CC" = x; then
 5358      CC=""
 5359    else
 5360      case $cross_compiling:$ac_tool_warned in
 5361  yes:)
 5362  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 5363  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 5364  ac_tool_warned=yes ;;
 5365  esac
 5366      CC=$ac_ct_CC
 5367    fi
 5368  else
 5369    CC="$ac_cv_prog_CC"
 5370  fi
 5371  
 5372  if test -z "$CC"; then
 5373            if test -n "$ac_tool_prefix"; then
 5374      # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 5375  set dummy ${ac_tool_prefix}cc; ac_word=$2
 5376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5377  printf %s "checking for $ac_word... " >&6; }
 5378  if test ${ac_cv_prog_CC+y}
 5379  then :
 5380    printf %s "(cached) " >&6
 5381  else $as_nop
 5382    if test -n "$CC"; then
 5383    ac_cv_prog_CC="$CC" # Let the user override the test.
 5384  else
 5385  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5386  for as_dir in $PATH
 5387  do
 5388    IFS=$as_save_IFS
 5389    case $as_dir in #(((
 5390      '') as_dir=./ ;;
 5391      */) ;;
 5392      *) as_dir=$as_dir/ ;;
 5393    esac
 5394      for ac_exec_ext in '' $ac_executable_extensions; do
 5395    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 5396      ac_cv_prog_CC="${ac_tool_prefix}cc"
 5397      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 5398      break 2
 5399    fi
 5400  done
 5401    done
 5402  IFS=$as_save_IFS
 5403  
 5404  fi
 5405  fi
 5406  CC=$ac_cv_prog_CC
 5407  if test -n "$CC"; then
 5408    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 5409  printf "%s\n" "$CC" >&6; }
 5410  else
 5411    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5412  printf "%s\n" "no" >&6; }
 5413  fi
 5414  
 5415  
 5416    fi
 5417  fi
 5418  if test -z "$CC"; then
 5419    # Extract the first word of "cc", so it can be a program name with args.
 5420  set dummy cc; ac_word=$2
 5421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5422  printf %s "checking for $ac_word... " >&6; }
 5423  if test ${ac_cv_prog_CC+y}
 5424  then :
 5425    printf %s "(cached) " >&6
 5426  else $as_nop
 5427    if test -n "$CC"; then
 5428    ac_cv_prog_CC="$CC" # Let the user override the test.
 5429  else
 5430    ac_prog_rejected=no
 5431  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5432  for as_dir in $PATH
 5433  do
 5434    IFS=$as_save_IFS
 5435    case $as_dir in #(((
 5436      '') as_dir=./ ;;
 5437      */) ;;
 5438      *) as_dir=$as_dir/ ;;
 5439    esac
 5440      for ac_exec_ext in '' $ac_executable_extensions; do
 5441    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 5442      if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 5443         ac_prog_rejected=yes
 5444         continue
 5445       fi
 5446      ac_cv_prog_CC="cc"
 5447      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 5448      break 2
 5449    fi
 5450  done
 5451    done
 5452  IFS=$as_save_IFS
 5453  
 5454  if test $ac_prog_rejected = yes; then
 5455    # We found a bogon in the path, so make sure we never use it.
 5456    set dummy $ac_cv_prog_CC
 5457    shift
 5458    if test $# != 0; then
 5459      # We chose a different compiler from the bogus one.
 5460      # However, it has the same basename, so the bogon will be chosen
 5461      # first if we set CC to just the basename; use the full file name.
 5462      shift
 5463      ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
 5464    fi
 5465  fi
 5466  fi
 5467  fi
 5468  CC=$ac_cv_prog_CC
 5469  if test -n "$CC"; then
 5470    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 5471  printf "%s\n" "$CC" >&6; }
 5472  else
 5473    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5474  printf "%s\n" "no" >&6; }
 5475  fi
 5476  
 5477  
 5478  fi
 5479  if test -z "$CC"; then
 5480    if test -n "$ac_tool_prefix"; then
 5481    for ac_prog in cl.exe
 5482    do
 5483      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 5484  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 5485  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5486  printf %s "checking for $ac_word... " >&6; }
 5487  if test ${ac_cv_prog_CC+y}
 5488  then :
 5489    printf %s "(cached) " >&6
 5490  else $as_nop
 5491    if test -n "$CC"; then
 5492    ac_cv_prog_CC="$CC" # Let the user override the test.
 5493  else
 5494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5495  for as_dir in $PATH
 5496  do
 5497    IFS=$as_save_IFS
 5498    case $as_dir in #(((
 5499      '') as_dir=./ ;;
 5500      */) ;;
 5501      *) as_dir=$as_dir/ ;;
 5502    esac
 5503      for ac_exec_ext in '' $ac_executable_extensions; do
 5504    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 5505      ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 5506      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 5507      break 2
 5508    fi
 5509  done
 5510    done
 5511  IFS=$as_save_IFS
 5512  
 5513  fi
 5514  fi
 5515  CC=$ac_cv_prog_CC
 5516  if test -n "$CC"; then
 5517    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 5518  printf "%s\n" "$CC" >&6; }
 5519  else
 5520    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5521  printf "%s\n" "no" >&6; }
 5522  fi
 5523  
 5524  
 5525      test -n "$CC" && break
 5526    done
 5527  fi
 5528  if test -z "$CC"; then
 5529    ac_ct_CC=$CC
 5530    for ac_prog in cl.exe
 5531  do
 5532    # Extract the first word of "$ac_prog", so it can be a program name with args.
 5533  set dummy $ac_prog; ac_word=$2
 5534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5535  printf %s "checking for $ac_word... " >&6; }
 5536  if test ${ac_cv_prog_ac_ct_CC+y}
 5537  then :
 5538    printf %s "(cached) " >&6
 5539  else $as_nop
 5540    if test -n "$ac_ct_CC"; then
 5541    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 5542  else
 5543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5544  for as_dir in $PATH
 5545  do
 5546    IFS=$as_save_IFS
 5547    case $as_dir in #(((
 5548      '') as_dir=./ ;;
 5549      */) ;;
 5550      *) as_dir=$as_dir/ ;;
 5551    esac
 5552      for ac_exec_ext in '' $ac_executable_extensions; do
 5553    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 5554      ac_cv_prog_ac_ct_CC="$ac_prog"
 5555      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 5556      break 2
 5557    fi
 5558  done
 5559    done
 5560  IFS=$as_save_IFS
 5561  
 5562  fi
 5563  fi
 5564  ac_ct_CC=$ac_cv_prog_ac_ct_CC
 5565  if test -n "$ac_ct_CC"; then
 5566    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 5567  printf "%s\n" "$ac_ct_CC" >&6; }
 5568  else
 5569    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5570  printf "%s\n" "no" >&6; }
 5571  fi
 5572  
 5573  
 5574    test -n "$ac_ct_CC" && break
 5575  done
 5576  
 5577    if test "x$ac_ct_CC" = x; then
 5578      CC=""
 5579    else
 5580      case $cross_compiling:$ac_tool_warned in
 5581  yes:)
 5582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 5583  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 5584  ac_tool_warned=yes ;;
 5585  esac
 5586      CC=$ac_ct_CC
 5587    fi
 5588  fi
 5589  
 5590  fi
 5591  if test -z "$CC"; then
 5592    if test -n "$ac_tool_prefix"; then
 5593    # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
 5594  set dummy ${ac_tool_prefix}clang; ac_word=$2
 5595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5596  printf %s "checking for $ac_word... " >&6; }
 5597  if test ${ac_cv_prog_CC+y}
 5598  then :
 5599    printf %s "(cached) " >&6
 5600  else $as_nop
 5601    if test -n "$CC"; then
 5602    ac_cv_prog_CC="$CC" # Let the user override the test.
 5603  else
 5604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5605  for as_dir in $PATH
 5606  do
 5607    IFS=$as_save_IFS
 5608    case $as_dir in #(((
 5609      '') as_dir=./ ;;
 5610      */) ;;
 5611      *) as_dir=$as_dir/ ;;
 5612    esac
 5613      for ac_exec_ext in '' $ac_executable_extensions; do
 5614    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 5615      ac_cv_prog_CC="${ac_tool_prefix}clang"
 5616      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 5617      break 2
 5618    fi
 5619  done
 5620    done
 5621  IFS=$as_save_IFS
 5622  
 5623  fi
 5624  fi
 5625  CC=$ac_cv_prog_CC
 5626  if test -n "$CC"; then
 5627    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
 5628  printf "%s\n" "$CC" >&6; }
 5629  else
 5630    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5631  printf "%s\n" "no" >&6; }
 5632  fi
 5633  
 5634  
 5635  fi
 5636  if test -z "$ac_cv_prog_CC"; then
 5637    ac_ct_CC=$CC
 5638    # Extract the first word of "clang", so it can be a program name with args.
 5639  set dummy clang; ac_word=$2
 5640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 5641  printf %s "checking for $ac_word... " >&6; }
 5642  if test ${ac_cv_prog_ac_ct_CC+y}
 5643  then :
 5644    printf %s "(cached) " >&6
 5645  else $as_nop
 5646    if test -n "$ac_ct_CC"; then
 5647    ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 5648  else
 5649  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5650  for as_dir in $PATH
 5651  do
 5652    IFS=$as_save_IFS
 5653    case $as_dir in #(((
 5654      '') as_dir=./ ;;
 5655      */) ;;
 5656      *) as_dir=$as_dir/ ;;
 5657    esac
 5658      for ac_exec_ext in '' $ac_executable_extensions; do
 5659    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 5660      ac_cv_prog_ac_ct_CC="clang"
 5661      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 5662      break 2
 5663    fi
 5664  done
 5665    done
 5666  IFS=$as_save_IFS
 5667  
 5668  fi
 5669  fi
 5670  ac_ct_CC=$ac_cv_prog_ac_ct_CC
 5671  if test -n "$ac_ct_CC"; then
 5672    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
 5673  printf "%s\n" "$ac_ct_CC" >&6; }
 5674  else
 5675    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 5676  printf "%s\n" "no" >&6; }
 5677  fi
 5678  
 5679    if test "x$ac_ct_CC" = x; then
 5680      CC=""
 5681    else
 5682      case $cross_compiling:$ac_tool_warned in
 5683  yes:)
 5684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 5685  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 5686  ac_tool_warned=yes ;;
 5687  esac
 5688      CC=$ac_ct_CC
 5689    fi
 5690  else
 5691    CC="$ac_cv_prog_CC"
 5692  fi
 5693  
 5694  fi
 5695  
 5696  
 5697  test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 5698  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 5699  as_fn_error $? "no acceptable C compiler found in \$PATH
 5700  See \`config.log' for more details" "$LINENO" 5; }
 5701  
 5702  # Provide some information about the compiler.
 5703  printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
 5704  set X $ac_compile
 5705  ac_compiler=$2
 5706  for ac_option in --version -v -V -qversion -version; do
 5707    { { ac_try="$ac_compiler $ac_option >&5"
 5708  case "(($ac_try" in
 5709    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 5710    *) ac_try_echo=$ac_try;;
 5711  esac
 5712  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 5713  printf "%s\n" "$ac_try_echo"; } >&5
 5714    (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 5715    ac_status=$?
 5716    if test -s conftest.err; then
 5717      sed '10a\
 5718  ... rest of stderr output deleted ...
 5719           10q' conftest.err >conftest.er1
 5720      cat conftest.er1 >&5
 5721    fi
 5722    rm -f conftest.er1 conftest.err
 5723    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 5724    test $ac_status = 0; }
 5725  done
 5726  
 5727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
 5728  printf %s "checking whether the compiler supports GNU C... " >&6; }
 5729  if test ${ac_cv_c_compiler_gnu+y}
 5730  then :
 5731    printf %s "(cached) " >&6
 5732  else $as_nop
 5733    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5734  /* end confdefs.h.  */
 5735  
 5736  int
 5737  main (void)
 5738  {
 5739  #ifndef __GNUC__
 5740         choke me
 5741  #endif
 5742  
 5743    ;
 5744    return 0;
 5745  }
 5746  _ACEOF
 5747  if ac_fn_c_try_compile "$LINENO"
 5748  then :
 5749    ac_compiler_gnu=yes
 5750  else $as_nop
 5751    ac_compiler_gnu=no
 5752  fi
 5753  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 5754  ac_cv_c_compiler_gnu=$ac_compiler_gnu
 5755  
 5756  fi
 5757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
 5758  printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
 5759  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 5760  
 5761  if test $ac_compiler_gnu = yes; then
 5762    GCC=yes
 5763  else
 5764    GCC=
 5765  fi
 5766  ac_test_CFLAGS=${CFLAGS+y}
 5767  ac_save_CFLAGS=$CFLAGS
 5768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
 5769  printf %s "checking whether $CC accepts -g... " >&6; }
 5770  if test ${ac_cv_prog_cc_g+y}
 5771  then :
 5772    printf %s "(cached) " >&6
 5773  else $as_nop
 5774    ac_save_c_werror_flag=$ac_c_werror_flag
 5775     ac_c_werror_flag=yes
 5776     ac_cv_prog_cc_g=no
 5777     CFLAGS="-g"
 5778     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5779  /* end confdefs.h.  */
 5780  
 5781  int
 5782  main (void)
 5783  {
 5784  
 5785    ;
 5786    return 0;
 5787  }
 5788  _ACEOF
 5789  if ac_fn_c_try_compile "$LINENO"
 5790  then :
 5791    ac_cv_prog_cc_g=yes
 5792  else $as_nop
 5793    CFLAGS=""
 5794        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5795  /* end confdefs.h.  */
 5796  
 5797  int
 5798  main (void)
 5799  {
 5800  
 5801    ;
 5802    return 0;
 5803  }
 5804  _ACEOF
 5805  if ac_fn_c_try_compile "$LINENO"
 5806  then :
 5807  
 5808  else $as_nop
 5809    ac_c_werror_flag=$ac_save_c_werror_flag
 5810  	 CFLAGS="-g"
 5811  	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5812  /* end confdefs.h.  */
 5813  
 5814  int
 5815  main (void)
 5816  {
 5817  
 5818    ;
 5819    return 0;
 5820  }
 5821  _ACEOF
 5822  if ac_fn_c_try_compile "$LINENO"
 5823  then :
 5824    ac_cv_prog_cc_g=yes
 5825  fi
 5826  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 5827  fi
 5828  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 5829  fi
 5830  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 5831     ac_c_werror_flag=$ac_save_c_werror_flag
 5832  fi
 5833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
 5834  printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
 5835  if test $ac_test_CFLAGS; then
 5836    CFLAGS=$ac_save_CFLAGS
 5837  elif test $ac_cv_prog_cc_g = yes; then
 5838    if test "$GCC" = yes; then
 5839      CFLAGS="-g -O2"
 5840    else
 5841      CFLAGS="-g"
 5842    fi
 5843  else
 5844    if test "$GCC" = yes; then
 5845      CFLAGS="-O2"
 5846    else
 5847      CFLAGS=
 5848    fi
 5849  fi
 5850  ac_prog_cc_stdc=no
 5851  if test x$ac_prog_cc_stdc = xno
 5852  then :
 5853    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
 5854  printf %s "checking for $CC option to enable C11 features... " >&6; }
 5855  if test ${ac_cv_prog_cc_c11+y}
 5856  then :
 5857    printf %s "(cached) " >&6
 5858  else $as_nop
 5859    ac_cv_prog_cc_c11=no
 5860  ac_save_CC=$CC
 5861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5862  /* end confdefs.h.  */
 5863  $ac_c_conftest_c11_program
 5864  _ACEOF
 5865  for ac_arg in '' -std=gnu11
 5866  do
 5867    CC="$ac_save_CC $ac_arg"
 5868    if ac_fn_c_try_compile "$LINENO"
 5869  then :
 5870    ac_cv_prog_cc_c11=$ac_arg
 5871  fi
 5872  rm -f core conftest.err conftest.$ac_objext conftest.beam
 5873    test "x$ac_cv_prog_cc_c11" != "xno" && break
 5874  done
 5875  rm -f conftest.$ac_ext
 5876  CC=$ac_save_CC
 5877  fi
 5878  
 5879  if test "x$ac_cv_prog_cc_c11" = xno
 5880  then :
 5881    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 5882  printf "%s\n" "unsupported" >&6; }
 5883  else $as_nop
 5884    if test "x$ac_cv_prog_cc_c11" = x
 5885  then :
 5886    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 5887  printf "%s\n" "none needed" >&6; }
 5888  else $as_nop
 5889    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
 5890  printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
 5891       CC="$CC $ac_cv_prog_cc_c11"
 5892  fi
 5893    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
 5894    ac_prog_cc_stdc=c11
 5895  fi
 5896  fi
 5897  if test x$ac_prog_cc_stdc = xno
 5898  then :
 5899    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
 5900  printf %s "checking for $CC option to enable C99 features... " >&6; }
 5901  if test ${ac_cv_prog_cc_c99+y}
 5902  then :
 5903    printf %s "(cached) " >&6
 5904  else $as_nop
 5905    ac_cv_prog_cc_c99=no
 5906  ac_save_CC=$CC
 5907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5908  /* end confdefs.h.  */
 5909  $ac_c_conftest_c99_program
 5910  _ACEOF
 5911  for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
 5912  do
 5913    CC="$ac_save_CC $ac_arg"
 5914    if ac_fn_c_try_compile "$LINENO"
 5915  then :
 5916    ac_cv_prog_cc_c99=$ac_arg
 5917  fi
 5918  rm -f core conftest.err conftest.$ac_objext conftest.beam
 5919    test "x$ac_cv_prog_cc_c99" != "xno" && break
 5920  done
 5921  rm -f conftest.$ac_ext
 5922  CC=$ac_save_CC
 5923  fi
 5924  
 5925  if test "x$ac_cv_prog_cc_c99" = xno
 5926  then :
 5927    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 5928  printf "%s\n" "unsupported" >&6; }
 5929  else $as_nop
 5930    if test "x$ac_cv_prog_cc_c99" = x
 5931  then :
 5932    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 5933  printf "%s\n" "none needed" >&6; }
 5934  else $as_nop
 5935    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
 5936  printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
 5937       CC="$CC $ac_cv_prog_cc_c99"
 5938  fi
 5939    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
 5940    ac_prog_cc_stdc=c99
 5941  fi
 5942  fi
 5943  if test x$ac_prog_cc_stdc = xno
 5944  then :
 5945    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
 5946  printf %s "checking for $CC option to enable C89 features... " >&6; }
 5947  if test ${ac_cv_prog_cc_c89+y}
 5948  then :
 5949    printf %s "(cached) " >&6
 5950  else $as_nop
 5951    ac_cv_prog_cc_c89=no
 5952  ac_save_CC=$CC
 5953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 5954  /* end confdefs.h.  */
 5955  $ac_c_conftest_c89_program
 5956  _ACEOF
 5957  for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 5958  do
 5959    CC="$ac_save_CC $ac_arg"
 5960    if ac_fn_c_try_compile "$LINENO"
 5961  then :
 5962    ac_cv_prog_cc_c89=$ac_arg
 5963  fi
 5964  rm -f core conftest.err conftest.$ac_objext conftest.beam
 5965    test "x$ac_cv_prog_cc_c89" != "xno" && break
 5966  done
 5967  rm -f conftest.$ac_ext
 5968  CC=$ac_save_CC
 5969  fi
 5970  
 5971  if test "x$ac_cv_prog_cc_c89" = xno
 5972  then :
 5973    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 5974  printf "%s\n" "unsupported" >&6; }
 5975  else $as_nop
 5976    if test "x$ac_cv_prog_cc_c89" = x
 5977  then :
 5978    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 5979  printf "%s\n" "none needed" >&6; }
 5980  else $as_nop
 5981    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
 5982  printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
 5983       CC="$CC $ac_cv_prog_cc_c89"
 5984  fi
 5985    ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
 5986    ac_prog_cc_stdc=c89
 5987  fi
 5988  fi
 5989  
 5990  ac_ext=c
 5991  ac_cpp='$CPP $CPPFLAGS'
 5992  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5993  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5994  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 5995  
 5996  
 5997    ac_ext=c
 5998  ac_cpp='$CPP $CPPFLAGS'
 5999  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 6000  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 6001  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 6002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
 6003  printf %s "checking whether $CC understands -c and -o together... " >&6; }
 6004  if test ${am_cv_prog_cc_c_o+y}
 6005  then :
 6006    printf %s "(cached) " >&6
 6007  else $as_nop
 6008    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6009  /* end confdefs.h.  */
 6010  
 6011  int
 6012  main (void)
 6013  {
 6014  
 6015    ;
 6016    return 0;
 6017  }
 6018  _ACEOF
 6019    # Make sure it works both with $CC and with simple cc.
 6020    # Following AC_PROG_CC_C_O, we do the test twice because some
 6021    # compilers refuse to overwrite an existing .o file with -o,
 6022    # though they will create one.
 6023    am_cv_prog_cc_c_o=yes
 6024    for am_i in 1 2; do
 6025      if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
 6026     ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
 6027     ac_status=$?
 6028     echo "$as_me:$LINENO: \$? = $ac_status" >&5
 6029     (exit $ac_status); } \
 6030           && test -f conftest2.$ac_objext; then
 6031        : OK
 6032      else
 6033        am_cv_prog_cc_c_o=no
 6034        break
 6035      fi
 6036    done
 6037    rm -f core conftest*
 6038    unset am_i
 6039  fi
 6040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
 6041  printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
 6042  if test "$am_cv_prog_cc_c_o" != yes; then
 6043     # Losing compiler, so override with the script.
 6044     # FIXME: It is wrong to rewrite CC.
 6045     # But if we don't then we get into trouble of one sort or another.
 6046     # A longer-term fix would be to have automake use am__CC in this case,
 6047     # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 6048     CC="$am_aux_dir/compile $CC"
 6049  fi
 6050  ac_ext=c
 6051  ac_cpp='$CPP $CPPFLAGS'
 6052  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 6053  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 6054  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 6055  
 6056  
 6057  depcc="$CC"   am_compiler_list=
 6058  
 6059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 6060  printf %s "checking dependency style of $depcc... " >&6; }
 6061  if test ${am_cv_CC_dependencies_compiler_type+y}
 6062  then :
 6063    printf %s "(cached) " >&6
 6064  else $as_nop
 6065    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 6066    # We make a subdir and do the tests there.  Otherwise we can end up
 6067    # making bogus files that we don't know about and never remove.  For
 6068    # instance it was reported that on HP-UX the gcc test will end up
 6069    # making a dummy file named 'D' -- because '-MD' means "put the output
 6070    # in D".
 6071    rm -rf conftest.dir
 6072    mkdir conftest.dir
 6073    # Copy depcomp to subdir because otherwise we won't find it if we're
 6074    # using a relative directory.
 6075    cp "$am_depcomp" conftest.dir
 6076    cd conftest.dir
 6077    # We will build objects and dependencies in a subdirectory because
 6078    # it helps to detect inapplicable dependency modes.  For instance
 6079    # both Tru64's cc and ICC support -MD to output dependencies as a
 6080    # side effect of compilation, but ICC will put the dependencies in
 6081    # the current directory while Tru64 will put them in the object
 6082    # directory.
 6083    mkdir sub
 6084  
 6085    am_cv_CC_dependencies_compiler_type=none
 6086    if test "$am_compiler_list" = ""; then
 6087       am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 6088    fi
 6089    am__universal=false
 6090    case " $depcc " in #(
 6091       *\ -arch\ *\ -arch\ *) am__universal=true ;;
 6092       esac
 6093  
 6094    for depmode in $am_compiler_list; do
 6095      # Setup a source with many dependencies, because some compilers
 6096      # like to wrap large dependency lists on column 80 (with \), and
 6097      # we should not choose a depcomp mode which is confused by this.
 6098      #
 6099      # We need to recreate these files for each test, as the compiler may
 6100      # overwrite some of them when testing with obscure command lines.
 6101      # This happens at least with the AIX C compiler.
 6102      : > sub/conftest.c
 6103      for i in 1 2 3 4 5 6; do
 6104        echo '#include "conftst'$i'.h"' >> sub/conftest.c
 6105        # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 6106        # Solaris 10 /bin/sh.
 6107        echo '/* dummy */' > sub/conftst$i.h
 6108      done
 6109      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 6110  
 6111      # We check with '-c' and '-o' for the sake of the "dashmstdout"
 6112      # mode.  It turns out that the SunPro C++ compiler does not properly
 6113      # handle '-M -o', and we need to detect this.  Also, some Intel
 6114      # versions had trouble with output in subdirs.
 6115      am__obj=sub/conftest.${OBJEXT-o}
 6116      am__minus_obj="-o $am__obj"
 6117      case $depmode in
 6118      gcc)
 6119        # This depmode causes a compiler race in universal mode.
 6120        test "$am__universal" = false || continue
 6121        ;;
 6122      nosideeffect)
 6123        # After this tag, mechanisms are not by side-effect, so they'll
 6124        # only be used when explicitly requested.
 6125        if test "x$enable_dependency_tracking" = xyes; then
 6126  	continue
 6127        else
 6128  	break
 6129        fi
 6130        ;;
 6131      msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 6132        # This compiler won't grok '-c -o', but also, the minuso test has
 6133        # not run yet.  These depmodes are late enough in the game, and
 6134        # so weak that their functioning should not be impacted.
 6135        am__obj=conftest.${OBJEXT-o}
 6136        am__minus_obj=
 6137        ;;
 6138      none) break ;;
 6139      esac
 6140      if depmode=$depmode \
 6141         source=sub/conftest.c object=$am__obj \
 6142         depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 6143         $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 6144           >/dev/null 2>conftest.err &&
 6145         grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 6146         grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 6147         grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 6148         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 6149        # icc doesn't choke on unknown options, it will just issue warnings
 6150        # or remarks (even with -Werror).  So we grep stderr for any message
 6151        # that says an option was ignored or not supported.
 6152        # When given -MP, icc 7.0 and 7.1 complain thusly:
 6153        #   icc: Command line warning: ignoring option '-M'; no argument required
 6154        # The diagnosis changed in icc 8.0:
 6155        #   icc: Command line remark: option '-MP' not supported
 6156        if (grep 'ignoring option' conftest.err ||
 6157            grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 6158          am_cv_CC_dependencies_compiler_type=$depmode
 6159          break
 6160        fi
 6161      fi
 6162    done
 6163  
 6164    cd ..
 6165    rm -rf conftest.dir
 6166  else
 6167    am_cv_CC_dependencies_compiler_type=none
 6168  fi
 6169  
 6170  fi
 6171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
 6172  printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
 6173  CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 6174  
 6175   if
 6176    test "x$enable_dependency_tracking" != xno \
 6177    && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 6178    am__fastdepCC_TRUE=
 6179    am__fastdepCC_FALSE='#'
 6180  else
 6181    am__fastdepCC_TRUE='#'
 6182    am__fastdepCC_FALSE=
 6183  fi
 6184  
 6185  
 6186  
 6187  ac_ext=c
 6188  ac_cpp='$CPP $CPPFLAGS'
 6189  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 6190  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 6191  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 6192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
 6193  printf %s "checking how to run the C preprocessor... " >&6; }
 6194  # On Suns, sometimes $CPP names a directory.
 6195  if test -n "$CPP" && test -d "$CPP"; then
 6196    CPP=
 6197  fi
 6198  if test -z "$CPP"; then
 6199    if test ${ac_cv_prog_CPP+y}
 6200  then :
 6201    printf %s "(cached) " >&6
 6202  else $as_nop
 6203        # Double quotes because $CC needs to be expanded
 6204      for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
 6205      do
 6206        ac_preproc_ok=false
 6207  for ac_c_preproc_warn_flag in '' yes
 6208  do
 6209    # Use a header file that comes with gcc, so configuring glibc
 6210    # with a fresh cross-compiler works.
 6211    # On the NeXT, cc -E runs the code through the compiler's parser,
 6212    # not just through cpp. "Syntax error" is here to catch this case.
 6213    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6214  /* end confdefs.h.  */
 6215  #include <limits.h>
 6216  		     Syntax error
 6217  _ACEOF
 6218  if ac_fn_c_try_cpp "$LINENO"
 6219  then :
 6220  
 6221  else $as_nop
 6222    # Broken: fails on valid input.
 6223  continue
 6224  fi
 6225  rm -f conftest.err conftest.i conftest.$ac_ext
 6226  
 6227    # OK, works on sane cases.  Now check whether nonexistent headers
 6228    # can be detected and how.
 6229    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6230  /* end confdefs.h.  */
 6231  #include <ac_nonexistent.h>
 6232  _ACEOF
 6233  if ac_fn_c_try_cpp "$LINENO"
 6234  then :
 6235    # Broken: success on invalid input.
 6236  continue
 6237  else $as_nop
 6238    # Passes both tests.
 6239  ac_preproc_ok=:
 6240  break
 6241  fi
 6242  rm -f conftest.err conftest.i conftest.$ac_ext
 6243  
 6244  done
 6245  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 6246  rm -f conftest.i conftest.err conftest.$ac_ext
 6247  if $ac_preproc_ok
 6248  then :
 6249    break
 6250  fi
 6251  
 6252      done
 6253      ac_cv_prog_CPP=$CPP
 6254  
 6255  fi
 6256    CPP=$ac_cv_prog_CPP
 6257  else
 6258    ac_cv_prog_CPP=$CPP
 6259  fi
 6260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
 6261  printf "%s\n" "$CPP" >&6; }
 6262  ac_preproc_ok=false
 6263  for ac_c_preproc_warn_flag in '' yes
 6264  do
 6265    # Use a header file that comes with gcc, so configuring glibc
 6266    # with a fresh cross-compiler works.
 6267    # On the NeXT, cc -E runs the code through the compiler's parser,
 6268    # not just through cpp. "Syntax error" is here to catch this case.
 6269    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6270  /* end confdefs.h.  */
 6271  #include <limits.h>
 6272  		     Syntax error
 6273  _ACEOF
 6274  if ac_fn_c_try_cpp "$LINENO"
 6275  then :
 6276  
 6277  else $as_nop
 6278    # Broken: fails on valid input.
 6279  continue
 6280  fi
 6281  rm -f conftest.err conftest.i conftest.$ac_ext
 6282  
 6283    # OK, works on sane cases.  Now check whether nonexistent headers
 6284    # can be detected and how.
 6285    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6286  /* end confdefs.h.  */
 6287  #include <ac_nonexistent.h>
 6288  _ACEOF
 6289  if ac_fn_c_try_cpp "$LINENO"
 6290  then :
 6291    # Broken: success on invalid input.
 6292  continue
 6293  else $as_nop
 6294    # Passes both tests.
 6295  ac_preproc_ok=:
 6296  break
 6297  fi
 6298  rm -f conftest.err conftest.i conftest.$ac_ext
 6299  
 6300  done
 6301  # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 6302  rm -f conftest.i conftest.err conftest.$ac_ext
 6303  if $ac_preproc_ok
 6304  then :
 6305  
 6306  else $as_nop
 6307    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 6308  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
 6309  as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
 6310  See \`config.log' for more details" "$LINENO" 5; }
 6311  fi
 6312  
 6313  ac_ext=c
 6314  ac_cpp='$CPP $CPPFLAGS'
 6315  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 6316  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 6317  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 6318  
 6319  
 6320  
 6321  
 6322  
 6323  
 6324  
 6325  ac_ext=cpp
 6326  ac_cpp='$CXXCPP $CPPFLAGS'
 6327  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 6328  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 6329  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 6330  if test -z "$CXX"; then
 6331    if test -n "$CCC"; then
 6332      CXX=$CCC
 6333    else
 6334      if test -n "$ac_tool_prefix"; then
 6335    for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
 6336    do
 6337      # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 6338  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 6339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 6340  printf %s "checking for $ac_word... " >&6; }
 6341  if test ${ac_cv_prog_CXX+y}
 6342  then :
 6343    printf %s "(cached) " >&6
 6344  else $as_nop
 6345    if test -n "$CXX"; then
 6346    ac_cv_prog_CXX="$CXX" # Let the user override the test.
 6347  else
 6348  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6349  for as_dir in $PATH
 6350  do
 6351    IFS=$as_save_IFS
 6352    case $as_dir in #(((
 6353      '') as_dir=./ ;;
 6354      */) ;;
 6355      *) as_dir=$as_dir/ ;;
 6356    esac
 6357      for ac_exec_ext in '' $ac_executable_extensions; do
 6358    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 6359      ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 6360      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 6361      break 2
 6362    fi
 6363  done
 6364    done
 6365  IFS=$as_save_IFS
 6366  
 6367  fi
 6368  fi
 6369  CXX=$ac_cv_prog_CXX
 6370  if test -n "$CXX"; then
 6371    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
 6372  printf "%s\n" "$CXX" >&6; }
 6373  else
 6374    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6375  printf "%s\n" "no" >&6; }
 6376  fi
 6377  
 6378  
 6379      test -n "$CXX" && break
 6380    done
 6381  fi
 6382  if test -z "$CXX"; then
 6383    ac_ct_CXX=$CXX
 6384    for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
 6385  do
 6386    # Extract the first word of "$ac_prog", so it can be a program name with args.
 6387  set dummy $ac_prog; ac_word=$2
 6388  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 6389  printf %s "checking for $ac_word... " >&6; }
 6390  if test ${ac_cv_prog_ac_ct_CXX+y}
 6391  then :
 6392    printf %s "(cached) " >&6
 6393  else $as_nop
 6394    if test -n "$ac_ct_CXX"; then
 6395    ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 6396  else
 6397  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6398  for as_dir in $PATH
 6399  do
 6400    IFS=$as_save_IFS
 6401    case $as_dir in #(((
 6402      '') as_dir=./ ;;
 6403      */) ;;
 6404      *) as_dir=$as_dir/ ;;
 6405    esac
 6406      for ac_exec_ext in '' $ac_executable_extensions; do
 6407    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 6408      ac_cv_prog_ac_ct_CXX="$ac_prog"
 6409      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 6410      break 2
 6411    fi
 6412  done
 6413    done
 6414  IFS=$as_save_IFS
 6415  
 6416  fi
 6417  fi
 6418  ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 6419  if test -n "$ac_ct_CXX"; then
 6420    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
 6421  printf "%s\n" "$ac_ct_CXX" >&6; }
 6422  else
 6423    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6424  printf "%s\n" "no" >&6; }
 6425  fi
 6426  
 6427  
 6428    test -n "$ac_ct_CXX" && break
 6429  done
 6430  
 6431    if test "x$ac_ct_CXX" = x; then
 6432      CXX="g++"
 6433    else
 6434      case $cross_compiling:$ac_tool_warned in
 6435  yes:)
 6436  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 6437  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 6438  ac_tool_warned=yes ;;
 6439  esac
 6440      CXX=$ac_ct_CXX
 6441    fi
 6442  fi
 6443  
 6444    fi
 6445  fi
 6446  # Provide some information about the compiler.
 6447  printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
 6448  set X $ac_compile
 6449  ac_compiler=$2
 6450  for ac_option in --version -v -V -qversion; do
 6451    { { ac_try="$ac_compiler $ac_option >&5"
 6452  case "(($ac_try" in
 6453    *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 6454    *) ac_try_echo=$ac_try;;
 6455  esac
 6456  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
 6457  printf "%s\n" "$ac_try_echo"; } >&5
 6458    (eval "$ac_compiler $ac_option >&5") 2>conftest.err
 6459    ac_status=$?
 6460    if test -s conftest.err; then
 6461      sed '10a\
 6462  ... rest of stderr output deleted ...
 6463           10q' conftest.err >conftest.er1
 6464      cat conftest.er1 >&5
 6465    fi
 6466    rm -f conftest.er1 conftest.err
 6467    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 6468    test $ac_status = 0; }
 6469  done
 6470  
 6471  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
 6472  printf %s "checking whether the compiler supports GNU C++... " >&6; }
 6473  if test ${ac_cv_cxx_compiler_gnu+y}
 6474  then :
 6475    printf %s "(cached) " >&6
 6476  else $as_nop
 6477    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6478  /* end confdefs.h.  */
 6479  
 6480  int
 6481  main (void)
 6482  {
 6483  #ifndef __GNUC__
 6484         choke me
 6485  #endif
 6486  
 6487    ;
 6488    return 0;
 6489  }
 6490  _ACEOF
 6491  if ac_fn_cxx_try_compile "$LINENO"
 6492  then :
 6493    ac_compiler_gnu=yes
 6494  else $as_nop
 6495    ac_compiler_gnu=no
 6496  fi
 6497  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 6498  ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 6499  
 6500  fi
 6501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
 6502  printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
 6503  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 6504  
 6505  if test $ac_compiler_gnu = yes; then
 6506    GXX=yes
 6507  else
 6508    GXX=
 6509  fi
 6510  ac_test_CXXFLAGS=${CXXFLAGS+y}
 6511  ac_save_CXXFLAGS=$CXXFLAGS
 6512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
 6513  printf %s "checking whether $CXX accepts -g... " >&6; }
 6514  if test ${ac_cv_prog_cxx_g+y}
 6515  then :
 6516    printf %s "(cached) " >&6
 6517  else $as_nop
 6518    ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 6519     ac_cxx_werror_flag=yes
 6520     ac_cv_prog_cxx_g=no
 6521     CXXFLAGS="-g"
 6522     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6523  /* end confdefs.h.  */
 6524  
 6525  int
 6526  main (void)
 6527  {
 6528  
 6529    ;
 6530    return 0;
 6531  }
 6532  _ACEOF
 6533  if ac_fn_cxx_try_compile "$LINENO"
 6534  then :
 6535    ac_cv_prog_cxx_g=yes
 6536  else $as_nop
 6537    CXXFLAGS=""
 6538        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6539  /* end confdefs.h.  */
 6540  
 6541  int
 6542  main (void)
 6543  {
 6544  
 6545    ;
 6546    return 0;
 6547  }
 6548  _ACEOF
 6549  if ac_fn_cxx_try_compile "$LINENO"
 6550  then :
 6551  
 6552  else $as_nop
 6553    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 6554  	 CXXFLAGS="-g"
 6555  	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6556  /* end confdefs.h.  */
 6557  
 6558  int
 6559  main (void)
 6560  {
 6561  
 6562    ;
 6563    return 0;
 6564  }
 6565  _ACEOF
 6566  if ac_fn_cxx_try_compile "$LINENO"
 6567  then :
 6568    ac_cv_prog_cxx_g=yes
 6569  fi
 6570  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 6571  fi
 6572  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 6573  fi
 6574  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 6575     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 6576  fi
 6577  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
 6578  printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
 6579  if test $ac_test_CXXFLAGS; then
 6580    CXXFLAGS=$ac_save_CXXFLAGS
 6581  elif test $ac_cv_prog_cxx_g = yes; then
 6582    if test "$GXX" = yes; then
 6583      CXXFLAGS="-g -O2"
 6584    else
 6585      CXXFLAGS="-g"
 6586    fi
 6587  else
 6588    if test "$GXX" = yes; then
 6589      CXXFLAGS="-O2"
 6590    else
 6591      CXXFLAGS=
 6592    fi
 6593  fi
 6594  ac_prog_cxx_stdcxx=no
 6595  if test x$ac_prog_cxx_stdcxx = xno
 6596  then :
 6597    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
 6598  printf %s "checking for $CXX option to enable C++11 features... " >&6; }
 6599  if test ${ac_cv_prog_cxx_cxx11+y}
 6600  then :
 6601    printf %s "(cached) " >&6
 6602  else $as_nop
 6603    ac_cv_prog_cxx_cxx11=no
 6604  ac_save_CXX=$CXX
 6605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6606  /* end confdefs.h.  */
 6607  $ac_cxx_conftest_cxx11_program
 6608  _ACEOF
 6609  for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
 6610  do
 6611    CXX="$ac_save_CXX $ac_arg"
 6612    if ac_fn_cxx_try_compile "$LINENO"
 6613  then :
 6614    ac_cv_prog_cxx_cxx11=$ac_arg
 6615  fi
 6616  rm -f core conftest.err conftest.$ac_objext conftest.beam
 6617    test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
 6618  done
 6619  rm -f conftest.$ac_ext
 6620  CXX=$ac_save_CXX
 6621  fi
 6622  
 6623  if test "x$ac_cv_prog_cxx_cxx11" = xno
 6624  then :
 6625    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 6626  printf "%s\n" "unsupported" >&6; }
 6627  else $as_nop
 6628    if test "x$ac_cv_prog_cxx_cxx11" = x
 6629  then :
 6630    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 6631  printf "%s\n" "none needed" >&6; }
 6632  else $as_nop
 6633    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
 6634  printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
 6635       CXX="$CXX $ac_cv_prog_cxx_cxx11"
 6636  fi
 6637    ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
 6638    ac_prog_cxx_stdcxx=cxx11
 6639  fi
 6640  fi
 6641  if test x$ac_prog_cxx_stdcxx = xno
 6642  then :
 6643    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
 6644  printf %s "checking for $CXX option to enable C++98 features... " >&6; }
 6645  if test ${ac_cv_prog_cxx_cxx98+y}
 6646  then :
 6647    printf %s "(cached) " >&6
 6648  else $as_nop
 6649    ac_cv_prog_cxx_cxx98=no
 6650  ac_save_CXX=$CXX
 6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6652  /* end confdefs.h.  */
 6653  $ac_cxx_conftest_cxx98_program
 6654  _ACEOF
 6655  for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
 6656  do
 6657    CXX="$ac_save_CXX $ac_arg"
 6658    if ac_fn_cxx_try_compile "$LINENO"
 6659  then :
 6660    ac_cv_prog_cxx_cxx98=$ac_arg
 6661  fi
 6662  rm -f core conftest.err conftest.$ac_objext conftest.beam
 6663    test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
 6664  done
 6665  rm -f conftest.$ac_ext
 6666  CXX=$ac_save_CXX
 6667  fi
 6668  
 6669  if test "x$ac_cv_prog_cxx_cxx98" = xno
 6670  then :
 6671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
 6672  printf "%s\n" "unsupported" >&6; }
 6673  else $as_nop
 6674    if test "x$ac_cv_prog_cxx_cxx98" = x
 6675  then :
 6676    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
 6677  printf "%s\n" "none needed" >&6; }
 6678  else $as_nop
 6679    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
 6680  printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
 6681       CXX="$CXX $ac_cv_prog_cxx_cxx98"
 6682  fi
 6683    ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
 6684    ac_prog_cxx_stdcxx=cxx98
 6685  fi
 6686  fi
 6687  
 6688  ac_ext=c
 6689  ac_cpp='$CPP $CPPFLAGS'
 6690  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 6691  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 6692  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 6693  
 6694  depcc="$CXX"  am_compiler_list=
 6695  
 6696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
 6697  printf %s "checking dependency style of $depcc... " >&6; }
 6698  if test ${am_cv_CXX_dependencies_compiler_type+y}
 6699  then :
 6700    printf %s "(cached) " >&6
 6701  else $as_nop
 6702    if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 6703    # We make a subdir and do the tests there.  Otherwise we can end up
 6704    # making bogus files that we don't know about and never remove.  For
 6705    # instance it was reported that on HP-UX the gcc test will end up
 6706    # making a dummy file named 'D' -- because '-MD' means "put the output
 6707    # in D".
 6708    rm -rf conftest.dir
 6709    mkdir conftest.dir
 6710    # Copy depcomp to subdir because otherwise we won't find it if we're
 6711    # using a relative directory.
 6712    cp "$am_depcomp" conftest.dir
 6713    cd conftest.dir
 6714    # We will build objects and dependencies in a subdirectory because
 6715    # it helps to detect inapplicable dependency modes.  For instance
 6716    # both Tru64's cc and ICC support -MD to output dependencies as a
 6717    # side effect of compilation, but ICC will put the dependencies in
 6718    # the current directory while Tru64 will put them in the object
 6719    # directory.
 6720    mkdir sub
 6721  
 6722    am_cv_CXX_dependencies_compiler_type=none
 6723    if test "$am_compiler_list" = ""; then
 6724       am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 6725    fi
 6726    am__universal=false
 6727    case " $depcc " in #(
 6728       *\ -arch\ *\ -arch\ *) am__universal=true ;;
 6729       esac
 6730  
 6731    for depmode in $am_compiler_list; do
 6732      # Setup a source with many dependencies, because some compilers
 6733      # like to wrap large dependency lists on column 80 (with \), and
 6734      # we should not choose a depcomp mode which is confused by this.
 6735      #
 6736      # We need to recreate these files for each test, as the compiler may
 6737      # overwrite some of them when testing with obscure command lines.
 6738      # This happens at least with the AIX C compiler.
 6739      : > sub/conftest.c
 6740      for i in 1 2 3 4 5 6; do
 6741        echo '#include "conftst'$i'.h"' >> sub/conftest.c
 6742        # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
 6743        # Solaris 10 /bin/sh.
 6744        echo '/* dummy */' > sub/conftst$i.h
 6745      done
 6746      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 6747  
 6748      # We check with '-c' and '-o' for the sake of the "dashmstdout"
 6749      # mode.  It turns out that the SunPro C++ compiler does not properly
 6750      # handle '-M -o', and we need to detect this.  Also, some Intel
 6751      # versions had trouble with output in subdirs.
 6752      am__obj=sub/conftest.${OBJEXT-o}
 6753      am__minus_obj="-o $am__obj"
 6754      case $depmode in
 6755      gcc)
 6756        # This depmode causes a compiler race in universal mode.
 6757        test "$am__universal" = false || continue
 6758        ;;
 6759      nosideeffect)
 6760        # After this tag, mechanisms are not by side-effect, so they'll
 6761        # only be used when explicitly requested.
 6762        if test "x$enable_dependency_tracking" = xyes; then
 6763  	continue
 6764        else
 6765  	break
 6766        fi
 6767        ;;
 6768      msvc7 | msvc7msys | msvisualcpp | msvcmsys)
 6769        # This compiler won't grok '-c -o', but also, the minuso test has
 6770        # not run yet.  These depmodes are late enough in the game, and
 6771        # so weak that their functioning should not be impacted.
 6772        am__obj=conftest.${OBJEXT-o}
 6773        am__minus_obj=
 6774        ;;
 6775      none) break ;;
 6776      esac
 6777      if depmode=$depmode \
 6778         source=sub/conftest.c object=$am__obj \
 6779         depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 6780         $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 6781           >/dev/null 2>conftest.err &&
 6782         grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 6783         grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 6784         grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 6785         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 6786        # icc doesn't choke on unknown options, it will just issue warnings
 6787        # or remarks (even with -Werror).  So we grep stderr for any message
 6788        # that says an option was ignored or not supported.
 6789        # When given -MP, icc 7.0 and 7.1 complain thusly:
 6790        #   icc: Command line warning: ignoring option '-M'; no argument required
 6791        # The diagnosis changed in icc 8.0:
 6792        #   icc: Command line remark: option '-MP' not supported
 6793        if (grep 'ignoring option' conftest.err ||
 6794            grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 6795          am_cv_CXX_dependencies_compiler_type=$depmode
 6796          break
 6797        fi
 6798      fi
 6799    done
 6800  
 6801    cd ..
 6802    rm -rf conftest.dir
 6803  else
 6804    am_cv_CXX_dependencies_compiler_type=none
 6805  fi
 6806  
 6807  fi
 6808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
 6809  printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
 6810  CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 6811  
 6812   if
 6813    test "x$enable_dependency_tracking" != xno \
 6814    && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 6815    am__fastdepCXX_TRUE=
 6816    am__fastdepCXX_FALSE='#'
 6817  else
 6818    am__fastdepCXX_TRUE='#'
 6819    am__fastdepCXX_FALSE=
 6820  fi
 6821  
 6822  
 6823  if test -n "$ac_tool_prefix"; then
 6824    # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 6825  set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 6826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 6827  printf %s "checking for $ac_word... " >&6; }
 6828  if test ${ac_cv_prog_RANLIB+y}
 6829  then :
 6830    printf %s "(cached) " >&6
 6831  else $as_nop
 6832    if test -n "$RANLIB"; then
 6833    ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 6834  else
 6835  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6836  for as_dir in $PATH
 6837  do
 6838    IFS=$as_save_IFS
 6839    case $as_dir in #(((
 6840      '') as_dir=./ ;;
 6841      */) ;;
 6842      *) as_dir=$as_dir/ ;;
 6843    esac
 6844      for ac_exec_ext in '' $ac_executable_extensions; do
 6845    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 6846      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 6847      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 6848      break 2
 6849    fi
 6850  done
 6851    done
 6852  IFS=$as_save_IFS
 6853  
 6854  fi
 6855  fi
 6856  RANLIB=$ac_cv_prog_RANLIB
 6857  if test -n "$RANLIB"; then
 6858    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
 6859  printf "%s\n" "$RANLIB" >&6; }
 6860  else
 6861    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6862  printf "%s\n" "no" >&6; }
 6863  fi
 6864  
 6865  
 6866  fi
 6867  if test -z "$ac_cv_prog_RANLIB"; then
 6868    ac_ct_RANLIB=$RANLIB
 6869    # Extract the first word of "ranlib", so it can be a program name with args.
 6870  set dummy ranlib; ac_word=$2
 6871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 6872  printf %s "checking for $ac_word... " >&6; }
 6873  if test ${ac_cv_prog_ac_ct_RANLIB+y}
 6874  then :
 6875    printf %s "(cached) " >&6
 6876  else $as_nop
 6877    if test -n "$ac_ct_RANLIB"; then
 6878    ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 6879  else
 6880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 6881  for as_dir in $PATH
 6882  do
 6883    IFS=$as_save_IFS
 6884    case $as_dir in #(((
 6885      '') as_dir=./ ;;
 6886      */) ;;
 6887      *) as_dir=$as_dir/ ;;
 6888    esac
 6889      for ac_exec_ext in '' $ac_executable_extensions; do
 6890    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 6891      ac_cv_prog_ac_ct_RANLIB="ranlib"
 6892      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 6893      break 2
 6894    fi
 6895  done
 6896    done
 6897  IFS=$as_save_IFS
 6898  
 6899  fi
 6900  fi
 6901  ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 6902  if test -n "$ac_ct_RANLIB"; then
 6903    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
 6904  printf "%s\n" "$ac_ct_RANLIB" >&6; }
 6905  else
 6906    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 6907  printf "%s\n" "no" >&6; }
 6908  fi
 6909  
 6910    if test "x$ac_ct_RANLIB" = x; then
 6911      RANLIB=":"
 6912    else
 6913      case $cross_compiling:$ac_tool_warned in
 6914  yes:)
 6915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
 6916  printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 6917  ac_tool_warned=yes ;;
 6918  esac
 6919      RANLIB=$ac_ct_RANLIB
 6920    fi
 6921  else
 6922    RANLIB="$ac_cv_prog_RANLIB"
 6923  fi
 6924  
 6925  
 6926  # Check whether --enable-m32 was given.
 6927  if test ${enable_m32+y}
 6928  then :
 6929    enableval=$enable_m32;
 6930  else $as_nop
 6931    enable_m32=no
 6932  fi
 6933  
 6934  if test "x$enable_m32" = xyes; then
 6935    CFLAGS="${CFLAGS} -m32"
 6936    CXXFLAGS="${CXXFLAGS} -m32"
 6937  fi
 6938  
 6939  # Check whether --enable-largefile was given.
 6940  if test ${enable_largefile+y}
 6941  then :
 6942    enableval=$enable_largefile;
 6943  fi
 6944  
 6945  if test "$enable_largefile" != no; then
 6946  
 6947    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
 6948  printf %s "checking for special C compiler options needed for large files... " >&6; }
 6949  if test ${ac_cv_sys_largefile_CC+y}
 6950  then :
 6951    printf %s "(cached) " >&6
 6952  else $as_nop
 6953    ac_cv_sys_largefile_CC=no
 6954       if test "$GCC" != yes; then
 6955         ac_save_CC=$CC
 6956         while :; do
 6957  	 # IRIX 6.2 and later do not support large files by default,
 6958  	 # so use the C compiler's -n32 option if that helps.
 6959  	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 6960  /* end confdefs.h.  */
 6961  #include <sys/types.h>
 6962   /* Check that off_t can represent 2**63 - 1 correctly.
 6963      We can't simply define LARGE_OFF_T to be 9223372036854775807,
 6964      since some C++ compilers masquerading as C compilers
 6965      incorrectly reject 9223372036854775807.  */
 6966  #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 6967    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 6968  		       && LARGE_OFF_T % 2147483647 == 1)
 6969  		      ? 1 : -1];
 6970  int
 6971  main (void)
 6972  {
 6973  
 6974    ;
 6975    return 0;
 6976  }
 6977  _ACEOF
 6978  	 if ac_fn_c_try_compile "$LINENO"
 6979  then :
 6980    break
 6981  fi
 6982  rm -f core conftest.err conftest.$ac_objext conftest.beam
 6983  	 CC="$CC -n32"
 6984  	 if ac_fn_c_try_compile "$LINENO"
 6985  then :
 6986    ac_cv_sys_largefile_CC=' -n32'; break
 6987  fi
 6988  rm -f core conftest.err conftest.$ac_objext conftest.beam
 6989  	 break
 6990         done
 6991         CC=$ac_save_CC
 6992         rm -f conftest.$ac_ext
 6993      fi
 6994  fi
 6995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
 6996  printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
 6997    if test "$ac_cv_sys_largefile_CC" != no; then
 6998      CC=$CC$ac_cv_sys_largefile_CC
 6999    fi
 7000  
 7001    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 7002  printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
 7003  if test ${ac_cv_sys_file_offset_bits+y}
 7004  then :
 7005    printf %s "(cached) " >&6
 7006  else $as_nop
 7007    while :; do
 7008    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7009  /* end confdefs.h.  */
 7010  #include <sys/types.h>
 7011   /* Check that off_t can represent 2**63 - 1 correctly.
 7012      We can't simply define LARGE_OFF_T to be 9223372036854775807,
 7013      since some C++ compilers masquerading as C compilers
 7014      incorrectly reject 9223372036854775807.  */
 7015  #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 7016    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 7017  		       && LARGE_OFF_T % 2147483647 == 1)
 7018  		      ? 1 : -1];
 7019  int
 7020  main (void)
 7021  {
 7022  
 7023    ;
 7024    return 0;
 7025  }
 7026  _ACEOF
 7027  if ac_fn_c_try_compile "$LINENO"
 7028  then :
 7029    ac_cv_sys_file_offset_bits=no; break
 7030  fi
 7031  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 7032    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7033  /* end confdefs.h.  */
 7034  #define _FILE_OFFSET_BITS 64
 7035  #include <sys/types.h>
 7036   /* Check that off_t can represent 2**63 - 1 correctly.
 7037      We can't simply define LARGE_OFF_T to be 9223372036854775807,
 7038      since some C++ compilers masquerading as C compilers
 7039      incorrectly reject 9223372036854775807.  */
 7040  #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 7041    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 7042  		       && LARGE_OFF_T % 2147483647 == 1)
 7043  		      ? 1 : -1];
 7044  int
 7045  main (void)
 7046  {
 7047  
 7048    ;
 7049    return 0;
 7050  }
 7051  _ACEOF
 7052  if ac_fn_c_try_compile "$LINENO"
 7053  then :
 7054    ac_cv_sys_file_offset_bits=64; break
 7055  fi
 7056  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 7057    ac_cv_sys_file_offset_bits=unknown
 7058    break
 7059  done
 7060  fi
 7061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
 7062  printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
 7063  case $ac_cv_sys_file_offset_bits in #(
 7064    no | unknown) ;;
 7065    *)
 7066  printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
 7067  ;;
 7068  esac
 7069  rm -rf conftest*
 7070    if test $ac_cv_sys_file_offset_bits = unknown; then
 7071      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
 7072  printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
 7073  if test ${ac_cv_sys_large_files+y}
 7074  then :
 7075    printf %s "(cached) " >&6
 7076  else $as_nop
 7077    while :; do
 7078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7079  /* end confdefs.h.  */
 7080  #include <sys/types.h>
 7081   /* Check that off_t can represent 2**63 - 1 correctly.
 7082      We can't simply define LARGE_OFF_T to be 9223372036854775807,
 7083      since some C++ compilers masquerading as C compilers
 7084      incorrectly reject 9223372036854775807.  */
 7085  #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 7086    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 7087  		       && LARGE_OFF_T % 2147483647 == 1)
 7088  		      ? 1 : -1];
 7089  int
 7090  main (void)
 7091  {
 7092  
 7093    ;
 7094    return 0;
 7095  }
 7096  _ACEOF
 7097  if ac_fn_c_try_compile "$LINENO"
 7098  then :
 7099    ac_cv_sys_large_files=no; break
 7100  fi
 7101  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 7102    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7103  /* end confdefs.h.  */
 7104  #define _LARGE_FILES 1
 7105  #include <sys/types.h>
 7106   /* Check that off_t can represent 2**63 - 1 correctly.
 7107      We can't simply define LARGE_OFF_T to be 9223372036854775807,
 7108      since some C++ compilers masquerading as C compilers
 7109      incorrectly reject 9223372036854775807.  */
 7110  #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
 7111    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 7112  		       && LARGE_OFF_T % 2147483647 == 1)
 7113  		      ? 1 : -1];
 7114  int
 7115  main (void)
 7116  {
 7117  
 7118    ;
 7119    return 0;
 7120  }
 7121  _ACEOF
 7122  if ac_fn_c_try_compile "$LINENO"
 7123  then :
 7124    ac_cv_sys_large_files=1; break
 7125  fi
 7126  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 7127    ac_cv_sys_large_files=unknown
 7128    break
 7129  done
 7130  fi
 7131  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
 7132  printf "%s\n" "$ac_cv_sys_large_files" >&6; }
 7133  case $ac_cv_sys_large_files in #(
 7134    no | unknown) ;;
 7135    *)
 7136  printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
 7137  ;;
 7138  esac
 7139  rm -rf conftest*
 7140    fi
 7141  fi
 7142  
 7143  
 7144  
 7145  
 7146  ac_ext=c
 7147  ac_cpp='$CPP $CPPFLAGS'
 7148  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 7149  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 7150  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 7151  
 7152  ax_pthread_ok=no
 7153  
 7154  # We used to check for pthread.h first, but this fails if pthread.h
 7155  # requires special compiler flags (e.g. on True64 or Sequent).
 7156  # It gets checked for in the link test anyway.
 7157  
 7158  # First of all, check if the user has set any of the PTHREAD_LIBS,
 7159  # etcetera environment variables, and if threads linking works using
 7160  # them:
 7161  if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
 7162          save_CFLAGS="$CFLAGS"
 7163          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 7164          save_LIBS="$LIBS"
 7165          LIBS="$PTHREAD_LIBS $LIBS"
 7166          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
 7167  printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
 7168          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7169  /* end confdefs.h.  */
 7170  
 7171  /* Override any GCC internal prototype to avoid an error.
 7172     Use char because int might match the return type of a GCC
 7173     builtin and then its argument prototype would still apply.  */
 7174  char pthread_join ();
 7175  int
 7176  main (void)
 7177  {
 7178  return pthread_join ();
 7179    ;
 7180    return 0;
 7181  }
 7182  _ACEOF
 7183  if ac_fn_c_try_link "$LINENO"
 7184  then :
 7185    ax_pthread_ok=yes
 7186  fi
 7187  rm -f core conftest.err conftest.$ac_objext conftest.beam \
 7188      conftest$ac_exeext conftest.$ac_ext
 7189          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
 7190  printf "%s\n" "$ax_pthread_ok" >&6; }
 7191          if test x"$ax_pthread_ok" = xno; then
 7192                  PTHREAD_LIBS=""
 7193                  PTHREAD_CFLAGS=""
 7194          fi
 7195          LIBS="$save_LIBS"
 7196          CFLAGS="$save_CFLAGS"
 7197  fi
 7198  
 7199  # We must check for the threads library under a number of different
 7200  # names; the ordering is very important because some systems
 7201  # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
 7202  # libraries is broken (non-POSIX).
 7203  
 7204  # Create a list of thread flags to try.  Items starting with a "-" are
 7205  # C compiler flags, and other items are library names, except for "none"
 7206  # which indicates that we try without any flags at all, and "pthread-config"
 7207  # which is a program returning the flags for the Pth emulation library.
 7208  
 7209  ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
 7210  
 7211  # The ordering *is* (sometimes) important.  Some notes on the
 7212  # individual items follow:
 7213  
 7214  # pthreads: AIX (must check this before -lpthread)
 7215  # none: in case threads are in libc; should be tried before -Kthread and
 7216  #       other compiler flags to prevent continual compiler warnings
 7217  # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
 7218  # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
 7219  # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
 7220  # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
 7221  # -pthreads: Solaris/gcc
 7222  # -mthreads: Mingw32/gcc, Lynx/gcc
 7223  # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
 7224  #      doesn't hurt to check since this sometimes defines pthreads too;
 7225  #      also defines -D_REENTRANT)
 7226  #      ... -mt is also the pthreads flag for HP/aCC
 7227  # pthread: Linux, etcetera
 7228  # --thread-safe: KAI C++
 7229  # pthread-config: use pthread-config program (for GNU Pth library)
 7230  
 7231  case "${host_cpu}-${host_os}" in
 7232          *solaris*)
 7233  
 7234          # On Solaris (at least, for some versions), libc contains stubbed
 7235          # (non-functional) versions of the pthreads routines, so link-based
 7236          # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
 7237          # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
 7238          # a function called by this macro, so we could check for that, but
 7239          # who knows whether they'll stub that too in a future libc.)  So,
 7240          # we'll just look for -pthreads and -lpthread first:
 7241  
 7242          ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
 7243          ;;
 7244  
 7245  	*-darwin*)
 7246  	acx_pthread_flags="-pthread $acx_pthread_flags"
 7247  	;;
 7248  esac
 7249  
 7250  if test x"$ax_pthread_ok" = xno; then
 7251  for flag in $ax_pthread_flags; do
 7252  
 7253          case $flag in
 7254                  none)
 7255                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
 7256  printf %s "checking whether pthreads work without any flags... " >&6; }
 7257                  ;;
 7258  
 7259                  -*)
 7260                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
 7261  printf %s "checking whether pthreads work with $flag... " >&6; }
 7262                  PTHREAD_CFLAGS="$flag"
 7263                  ;;
 7264  
 7265  		pthread-config)
 7266  		# Extract the first word of "pthread-config", so it can be a program name with args.
 7267  set dummy pthread-config; ac_word=$2
 7268  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7269  printf %s "checking for $ac_word... " >&6; }
 7270  if test ${ac_cv_prog_ax_pthread_config+y}
 7271  then :
 7272    printf %s "(cached) " >&6
 7273  else $as_nop
 7274    if test -n "$ax_pthread_config"; then
 7275    ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
 7276  else
 7277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7278  for as_dir in $PATH
 7279  do
 7280    IFS=$as_save_IFS
 7281    case $as_dir in #(((
 7282      '') as_dir=./ ;;
 7283      */) ;;
 7284      *) as_dir=$as_dir/ ;;
 7285    esac
 7286      for ac_exec_ext in '' $ac_executable_extensions; do
 7287    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 7288      ac_cv_prog_ax_pthread_config="yes"
 7289      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 7290      break 2
 7291    fi
 7292  done
 7293    done
 7294  IFS=$as_save_IFS
 7295  
 7296    test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
 7297  fi
 7298  fi
 7299  ax_pthread_config=$ac_cv_prog_ax_pthread_config
 7300  if test -n "$ax_pthread_config"; then
 7301    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
 7302  printf "%s\n" "$ax_pthread_config" >&6; }
 7303  else
 7304    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7305  printf "%s\n" "no" >&6; }
 7306  fi
 7307  
 7308  
 7309  		if test x"$ax_pthread_config" = xno; then continue; fi
 7310  		PTHREAD_CFLAGS="`pthread-config --cflags`"
 7311  		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
 7312  		;;
 7313  
 7314                  *)
 7315                  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
 7316  printf %s "checking for the pthreads library -l$flag... " >&6; }
 7317                  PTHREAD_LIBS="-l$flag"
 7318                  ;;
 7319          esac
 7320  
 7321          save_LIBS="$LIBS"
 7322          save_CFLAGS="$CFLAGS"
 7323          LIBS="$PTHREAD_LIBS $LIBS"
 7324          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 7325  
 7326          # Check for various functions.  We must include pthread.h,
 7327          # since some functions may be macros.  (On the Sequent, we
 7328          # need a special flag -Kthread to make this header compile.)
 7329          # We check for pthread_join because it is in -lpthread on IRIX
 7330          # while pthread_create is in libc.  We check for pthread_attr_init
 7331          # due to DEC craziness with -lpthreads.  We check for
 7332          # pthread_cleanup_push because it is one of the few pthread
 7333          # functions on Solaris that doesn't have a non-functional libc stub.
 7334          # We try pthread_create on general principles.
 7335          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7336  /* end confdefs.h.  */
 7337  #include <pthread.h>
 7338  	             static void routine(void* a) {a=0;}
 7339  	             static void* start_routine(void* a) {return a;}
 7340  int
 7341  main (void)
 7342  {
 7343  pthread_t th; pthread_attr_t attr;
 7344                       pthread_join(th, 0);
 7345                       pthread_attr_init(&attr);
 7346                       pthread_cleanup_push(routine, 0);
 7347                       pthread_create(&th,0,start_routine,0);
 7348                       pthread_cleanup_pop(0);
 7349    ;
 7350    return 0;
 7351  }
 7352  _ACEOF
 7353  if ac_fn_c_try_link "$LINENO"
 7354  then :
 7355    ax_pthread_ok=yes
 7356  fi
 7357  rm -f core conftest.err conftest.$ac_objext conftest.beam \
 7358      conftest$ac_exeext conftest.$ac_ext
 7359  
 7360          LIBS="$save_LIBS"
 7361          CFLAGS="$save_CFLAGS"
 7362  
 7363          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
 7364  printf "%s\n" "$ax_pthread_ok" >&6; }
 7365          if test "x$ax_pthread_ok" = xyes; then
 7366                  break;
 7367          fi
 7368  
 7369          PTHREAD_LIBS=""
 7370          PTHREAD_CFLAGS=""
 7371  done
 7372  fi
 7373  
 7374  # Various other checks:
 7375  if test "x$ax_pthread_ok" = xyes; then
 7376          save_LIBS="$LIBS"
 7377          LIBS="$PTHREAD_LIBS $LIBS"
 7378          save_CFLAGS="$CFLAGS"
 7379          CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
 7380  
 7381          # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
 7382  	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
 7383  printf %s "checking for joinable pthread attribute... " >&6; }
 7384  	attr_name=unknown
 7385  	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
 7386  	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7387  /* end confdefs.h.  */
 7388  #include <pthread.h>
 7389  int
 7390  main (void)
 7391  {
 7392  int attr=$attr; return attr;
 7393    ;
 7394    return 0;
 7395  }
 7396  _ACEOF
 7397  if ac_fn_c_try_link "$LINENO"
 7398  then :
 7399    attr_name=$attr; break
 7400  fi
 7401  rm -f core conftest.err conftest.$ac_objext conftest.beam \
 7402      conftest$ac_exeext conftest.$ac_ext
 7403  	done
 7404          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
 7405  printf "%s\n" "$attr_name" >&6; }
 7406          if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
 7407  
 7408  printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
 7409  
 7410          fi
 7411  
 7412          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
 7413  printf %s "checking if more special flags are required for pthreads... " >&6; }
 7414          flag=no
 7415          case "${host_cpu}-${host_os}" in
 7416              *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
 7417              *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
 7418          esac
 7419          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
 7420  printf "%s\n" "${flag}" >&6; }
 7421          if test "x$flag" != xno; then
 7422              PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
 7423          fi
 7424  
 7425          LIBS="$save_LIBS"
 7426          CFLAGS="$save_CFLAGS"
 7427  
 7428          # More AIX lossage: must compile with xlc_r or cc_r
 7429  	if test x"$GCC" != xyes; then
 7430            for ac_prog in xlc_r cc_r
 7431  do
 7432    # Extract the first word of "$ac_prog", so it can be a program name with args.
 7433  set dummy $ac_prog; ac_word=$2
 7434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 7435  printf %s "checking for $ac_word... " >&6; }
 7436  if test ${ac_cv_prog_PTHREAD_CC+y}
 7437  then :
 7438    printf %s "(cached) " >&6
 7439  else $as_nop
 7440    if test -n "$PTHREAD_CC"; then
 7441    ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
 7442  else
 7443  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 7444  for as_dir in $PATH
 7445  do
 7446    IFS=$as_save_IFS
 7447    case $as_dir in #(((
 7448      '') as_dir=./ ;;
 7449      */) ;;
 7450      *) as_dir=$as_dir/ ;;
 7451    esac
 7452      for ac_exec_ext in '' $ac_executable_extensions; do
 7453    if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
 7454      ac_cv_prog_PTHREAD_CC="$ac_prog"
 7455      printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
 7456      break 2
 7457    fi
 7458  done
 7459    done
 7460  IFS=$as_save_IFS
 7461  
 7462  fi
 7463  fi
 7464  PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
 7465  if test -n "$PTHREAD_CC"; then
 7466    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
 7467  printf "%s\n" "$PTHREAD_CC" >&6; }
 7468  else
 7469    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 7470  printf "%s\n" "no" >&6; }
 7471  fi
 7472  
 7473  
 7474    test -n "$PTHREAD_CC" && break
 7475  done
 7476  test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
 7477  
 7478          else
 7479            PTHREAD_CC=$CC
 7480  	fi
 7481  else
 7482          PTHREAD_CC="$CC"
 7483  fi
 7484  
 7485  
 7486  
 7487  
 7488  
 7489  # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
 7490  if test x"$ax_pthread_ok" = xyes; then
 7491  
 7492  printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
 7493  
 7494          :
 7495  else
 7496          ax_pthread_ok=no
 7497  
 7498  fi
 7499  ac_ext=c
 7500  ac_cpp='$CPP $CPPFLAGS'
 7501  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 7502  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 7503  ac_compiler_gnu=$ac_cv_c_compiler_gnu
 7504  
 7505  
 7506  ac_header= ac_cache=
 7507  for ac_item in $ac_header_c_list
 7508  do
 7509    if test $ac_cache; then
 7510      ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
 7511      if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
 7512        printf "%s\n" "#define $ac_item 1" >> confdefs.h
 7513      fi
 7514      ac_header= ac_cache=
 7515    elif test $ac_header; then
 7516      ac_cache=$ac_item
 7517    else
 7518      ac_header=$ac_item
 7519    fi
 7520  done
 7521  
 7522  
 7523  
 7524  
 7525  
 7526  
 7527  
 7528  
 7529  if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
 7530  then :
 7531  
 7532  printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
 7533  
 7534  fi
 7535  ac_fn_c_check_header_compile "$LINENO" "a.out.h" "ac_cv_header_a_out_h" "$ac_includes_default"
 7536  if test "x$ac_cv_header_a_out_h" = xyes
 7537  then :
 7538    printf "%s\n" "#define HAVE_A_OUT_H 1" >>confdefs.h
 7539  
 7540  fi
 7541  ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
 7542  if test "x$ac_cv_header_sys_mman_h" = xyes
 7543  then :
 7544    printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
 7545  
 7546  fi
 7547  ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
 7548  if test "x$ac_cv_header_sys_random_h" = xyes
 7549  then :
 7550    printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
 7551  
 7552  fi
 7553  
 7554  ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
 7555  if test "x$ac_cv_func_arc4random" = xyes
 7556  then :
 7557    printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
 7558  
 7559  fi
 7560  ac_fn_c_check_func "$LINENO" "getcontext" "ac_cv_func_getcontext"
 7561  if test "x$ac_cv_func_getcontext" = xyes
 7562  then :
 7563    printf "%s\n" "#define HAVE_GETCONTEXT 1" >>confdefs.h
 7564  
 7565  fi
 7566  ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
 7567  if test "x$ac_cv_func_getrandom" = xyes
 7568  then :
 7569    printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
 7570  
 7571  fi
 7572  ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create"
 7573  if test "x$ac_cv_func_memfd_create" = xyes
 7574  then :
 7575    printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
 7576  
 7577  fi
 7578  
 7579   if test "x$ac_cv_func_getcontext" = xyes; then
 7580    HAVE_GETCONTEXT_TRUE=
 7581    HAVE_GETCONTEXT_FALSE='#'
 7582  else
 7583    HAVE_GETCONTEXT_TRUE='#'
 7584    HAVE_GETCONTEXT_FALSE=
 7585  fi
 7586  
 7587   if test "x$ac_cv_func_memfd_create" = xyes; then
 7588    HAVE_MEMFD_CREATE_TRUE=
 7589    HAVE_MEMFD_CREATE_FALSE='#'
 7590  else
 7591    HAVE_MEMFD_CREATE_TRUE='#'
 7592    HAVE_MEMFD_CREATE_FALSE=
 7593  fi
 7594  
 7595  
 7596  
 7597    ax_cxx_compile_alternatives="17 1z"    ax_cxx_compile_cxx17_required=true
 7598    ac_ext=cpp
 7599  ac_cpp='$CXXCPP $CPPFLAGS'
 7600  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 7601  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 7602  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 7603    ac_success=no
 7604  
 7605        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features by default" >&5
 7606  printf %s "checking whether $CXX supports C++17 features by default... " >&6; }
 7607  if test ${ax_cv_cxx_compile_cxx17+y}
 7608  then :
 7609    printf %s "(cached) " >&6
 7610  else $as_nop
 7611    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 7612  /* end confdefs.h.  */
 7613  
 7614  
 7615  // If the compiler admits that it is not ready for C++11, why torture it?
 7616  // Hopefully, this will speed up the test.
 7617  
 7618  #ifndef __cplusplus
 7619  
 7620  #error "This is not a C++ compiler"
 7621  
 7622  // MSVC always sets __cplusplus to 199711L in older versions; newer versions
 7623  // only set it correctly if /Zc:__cplusplus is specified as well as a
 7624  // /std:c++NN switch:
 7625  // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
 7626  #elif __cplusplus < 201103L && !defined _MSC_VER
 7627  
 7628  #error "This is not a C++11 compiler"
 7629  
 7630  #else
 7631  
 7632  namespace cxx11
 7633  {
 7634  
 7635    namespace test_static_assert
 7636    {
 7637  
 7638      template <typename T>
 7639      struct check
 7640      {
 7641        static_assert(sizeof(int) <= sizeof(T), "not big enough");
 7642      };
 7643  
 7644    }
 7645  
 7646    namespace test_final_override
 7647    {
 7648  
 7649      struct Base
 7650      {
 7651        virtual ~Base() {}
 7652        virtual void f() {}
 7653      };
 7654  
 7655      struct Derived : public Base
 7656      {
 7657        virtual ~Derived() override {}
 7658        virtual void f() override {}
 7659      };
 7660  
 7661    }
 7662  
 7663    namespace test_double_right_angle_brackets
 7664    {
 7665  
 7666      template < typename T >
 7667      struct check {};
 7668  
 7669      typedef check<void> single_type;
 7670      typedef check<check<void>> double_type;
 7671      typedef check<check<check<void>>> triple_type;
 7672      typedef check<check<check<check<void>>>> quadruple_type;
 7673  
 7674    }
 7675  
 7676    namespace test_decltype
 7677    {
 7678  
 7679      int
 7680      f()
 7681      {
 7682        int a = 1;
 7683        decltype(a) b = 2;
 7684        return a + b;
 7685      }
 7686  
 7687    }
 7688  
 7689    namespace test_type_deduction
 7690    {
 7691  
 7692      template < typename T1, typename T2 >
 7693      struct is_same
 7694      {
 7695        static const bool value = false;
 7696      };
 7697  
 7698      template < typename T >
 7699      struct is_same<T, T>
 7700      {
 7701        static const bool value = true;
 7702      };
 7703  
 7704      template < typename T1, typename T2 >
 7705      auto
 7706      add(T1 a1, T2 a2) -> decltype(a1 + a2)
 7707      {
 7708        return a1 + a2;
 7709      }
 7710  
 7711      int
 7712      test(const int c, volatile int v)
 7713      {
 7714        static_assert(is_same<int, decltype(0)>::value == true, "");
 7715        static_assert(is_same<int, decltype(c)>::value == false, "");
 7716        static_assert(is_same<int, decltype(v)>::value == false, "");
 7717        auto ac = c;
 7718        auto av = v;
 7719        auto sumi = ac + av + 'x';
 7720        auto sumf = ac + av + 1.0;
 7721        static_assert(is_same<int, decltype(ac)>::value == true, "");
 7722        static_assert(is_same<int, decltype(av)>::value == true, "");
 7723        static_assert(is_same<int, decltype(sumi)>::value == true, "");
 7724        static_assert(is_same<int, decltype(sumf)>::value == false, "");
 7725        static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
 7726        return (sumf > 0.0) ? sumi : add(c, v);
 7727      }
 7728  
 7729    }
 7730  
 7731    namespace test_noexcept
 7732    {
 7733  
 7734      int f() { return 0; }
 7735      int g() noexcept { return 0; }
 7736  
 7737      static_assert(noexcept(f()) == false, "");
 7738      static_assert(noexcept(g()) == true, "");
 7739  
 7740    }
 7741  
 7742    namespace test_constexpr
 7743    {
 7744  
 7745      template < typename CharT >
 7746      unsigned long constexpr
 7747      strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
 7748      {
 7749        return *s ? strlen_c_r(s + 1, acc + 1) : acc;
 7750      }
 7751  
 7752      template < typename CharT >
 7753      unsigned long constexpr
 7754      strlen_c(const CharT *const s) noexcept
 7755      {
 7756        return strlen_c_r(s, 0UL);
 7757      }
 7758  
 7759      static_assert(strlen_c("") == 0UL, "");
 7760      static_assert(strlen_c("1") == 1UL, "");
 7761      static_assert(strlen_c("example") == 7UL, "");
 7762      static_assert(strlen_c("another\0example") == 7UL, "");
 7763  
 7764    }
 7765  
 7766    namespace test_rvalue_references
 7767    {
 7768  
 7769      template < int N >
 7770      struct answer
 7771      {
 7772        static constexpr int value = N;
 7773      };
 7774  
 7775      answer<1> f(int&)       { return answer<1>(); }
 7776      answer<2> f(const int&) { return answer<2>(); }
 7777      answer<3> f(int&&)      { return answer<3>(); }
 7778  
 7779      void
 7780      test()
 7781      {
 7782        int i = 0;
 7783        const int c = 0;
 7784        static_assert(decltype(f(i))::value == 1, "");
 7785        static_assert(decltype(f(c))::value == 2, "");
 7786        static_assert(decltype(f(0))::value == 3, "");
 7787      }
 7788  
 7789    }
 7790  
 7791    namespace test_uniform_initialization
 7792    {
 7793  
 7794      struct test
 7795      {
 7796        static const int zero {};
 7797        static const int one {1};
 7798      };
 7799  
 7800      static_assert(test::zero == 0, "");
 7801      static_assert(test::one == 1, "");
 7802  
 7803    }
 7804  
 7805    namespace test_lambdas
 7806    {
 7807  
 7808      void
 7809      test1()
 7810      {
 7811        auto lambda1 = [](){};
 7812        auto lambda2 = lambda1;
 7813        lambda1();
 7814        lambda2();
 7815      }
 7816  
 7817      int
 7818      test2()
 7819      {
 7820        auto a = [](int i, int j){ return i + j; }(1, 2);
 7821        auto b = []() -> int { return '0'; }();
 7822        auto c = [=](){ return a + b; }();
 7823        auto d = [&](){ return c; }();
 7824        auto e = [a, &b](int x) mutable {
 7825          const auto identity = [](int y){ return y; };
 7826          for (auto i = 0; i < a; ++i)
 7827            a += b--;
 7828          return x + identity(a + b);
 7829        }(0);
 7830        return a + b + c + d + e;
 7831      }
 7832  
 7833      int
 7834      test3()
 7835      {
 7836        const auto nullary = [](){ return 0; };
 7837        const auto unary = [](int x){ return x; };
 7838        using nullary_t = decltype(nullary);
 7839        using unary_t = decltype(unary);
 7840        const auto higher1st = [](nullary_t f){ return f(); };
 7841        const auto higher2nd = [unary](nullary_t f1){
 7842          return [unary, f1](unary_t f2){ return f2(unary(f1())); };
 7843        };
 7844        return higher1st(nullary) + higher2nd(nullary)(unary);
 7845      }
 7846  
 7847    }
 7848  
 7849    namespace test_variadic_templates
 7850    {
 7851  
 7852      template <int...>
 7853      struct sum;
 7854  
 7855      template <int N0, int... N1toN>
 7856      struct sum<N0, N1toN...>
 7857      {
 7858        static constexpr auto value = N0 + sum<N1toN...>::value;
 7859      };
 7860  
 7861      template <>
 7862      struct sum<>
 7863      {
 7864        static constexpr auto value = 0;
 7865      };
 7866  
 7867      static_assert(sum<>::value == 0, "");
 7868      static_assert(sum<1>::value == 1, "");
 7869      static_assert(sum<23>::value == 23, "");
 7870      static_assert(sum<1, 2>::value == 3, "");
 7871      static_assert(sum<5, 5, 11>::value == 21, "");
 7872      static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
 7873  
 7874    }
 7875  
 7876    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
 7877    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
 7878    // because of this.
 7879    namespace test_template_alias_sfinae
 7880    {
 7881  
 7882      struct foo {};
 7883  
 7884      template<typename T>
 7885      using member = typename T::member_type;
 7886  
 7887      template<typename T>
 7888      void func(...) {}
 7889  
 7890      template<typename T>
 7891      void func(member<T>*) {}
 7892  
 7893      void test();
 7894  
 7895      void test() { func<foo>(0); }
 7896  
 7897    }
 7898  
 7899  }  // namespace cxx11
 7900  
 7901  #endif  // __cplusplus >= 201103L
 7902  
 7903  
 7904  
 7905  
 7906  // If the compiler admits that it is not ready for C++14, why torture it?
 7907  // Hopefully, this will speed up the test.
 7908  
 7909  #ifndef __cplusplus
 7910  
 7911  #error "This is not a C++ compiler"
 7912  
 7913  #elif __cplusplus < 201402L && !defined _MSC_VER
 7914  
 7915  #error "This is not a C++14 compiler"
 7916  
 7917  #else
 7918  
 7919  namespace cxx14
 7920  {
 7921  
 7922    namespace test_polymorphic_lambdas
 7923    {
 7924  
 7925      int
 7926      test()
 7927      {
 7928        const auto lambda = [](auto&&... args){
 7929          const auto istiny = [](auto x){
 7930            return (sizeof(x) == 1UL) ? 1 : 0;
 7931          };
 7932          const int aretiny[] = { istiny(args)... };
 7933          return aretiny[0];
 7934        };
 7935        return lambda(1, 1L, 1.0f, '1');
 7936      }
 7937  
 7938    }
 7939  
 7940    namespace test_binary_literals
 7941    {
 7942  
 7943      constexpr auto ivii = 0b0000000000101010;
 7944      static_assert(ivii == 42, "wrong value");
 7945  
 7946    }
 7947  
 7948    namespace test_generalized_constexpr
 7949    {
 7950  
 7951      template < typename CharT >
 7952      constexpr unsigned long
 7953      strlen_c(const CharT *const s) noexcept
 7954      {
 7955        auto length = 0UL;
 7956        for (auto p = s; *p; ++p)
 7957          ++length;
 7958        return length;
 7959      }
 7960  
 7961      static_assert(strlen_c("") == 0UL, "");
 7962      static_assert(strlen_c("x") == 1UL, "");
 7963      static_assert(strlen_c("test") == 4UL, "");
 7964      static_assert(strlen_c("another\0test") == 7UL, "");
 7965  
 7966    }
 7967  
 7968    namespace test_lambda_init_capture
 7969    {
 7970  
 7971      int
 7972      test()
 7973      {
 7974        auto x = 0;
 7975        const auto lambda1 = [a = x](int b){ return a + b; };
 7976        const auto lambda2 = [a = lambda1(x)](){ return a; };
 7977        return lambda2();
 7978      }
 7979  
 7980    }
 7981  
 7982    namespace test_digit_separators
 7983    {
 7984  
 7985      constexpr auto ten_million = 100'000'000;
 7986      static_assert(ten_million == 100000000, "");
 7987  
 7988    }
 7989  
 7990    namespace test_return_type_deduction
 7991    {
 7992  
 7993      auto f(int& x) { return x; }
 7994      decltype(auto) g(int& x) { return x; }
 7995  
 7996      template < typename T1, typename T2 >
 7997      struct is_same
 7998      {
 7999        static constexpr auto value = false;
 8000      };
 8001  
 8002      template < typename T >
 8003      struct is_same<T, T>
 8004      {
 8005        static constexpr auto value = true;
 8006      };
 8007  
 8008      int
 8009      test()
 8010      {
 8011        auto x = 0;
 8012        static_assert(is_same<int, decltype(f(x))>::value, "");
 8013        static_assert(is_same<int&, decltype(g(x))>::value, "");
 8014        return x;
 8015      }
 8016  
 8017    }
 8018  
 8019  }  // namespace cxx14
 8020  
 8021  #endif  // __cplusplus >= 201402L
 8022  
 8023  
 8024  
 8025  
 8026  // If the compiler admits that it is not ready for C++17, why torture it?
 8027  // Hopefully, this will speed up the test.
 8028  
 8029  #ifndef __cplusplus
 8030  
 8031  #error "This is not a C++ compiler"
 8032  
 8033  #elif __cplusplus < 201703L && !defined _MSC_VER
 8034  
 8035  #error "This is not a C++17 compiler"
 8036  
 8037  #else
 8038  
 8039  #include <initializer_list>
 8040  #include <utility>
 8041  #include <type_traits>
 8042  
 8043  namespace cxx17
 8044  {
 8045  
 8046    namespace test_constexpr_lambdas
 8047    {
 8048  
 8049      constexpr int foo = [](){return 42;}();
 8050  
 8051    }
 8052  
 8053    namespace test::nested_namespace::definitions
 8054    {
 8055  
 8056    }
 8057  
 8058    namespace test_fold_expression
 8059    {
 8060  
 8061      template<typename... Args>
 8062      int multiply(Args... args)
 8063      {
 8064        return (args * ... * 1);
 8065      }
 8066  
 8067      template<typename... Args>
 8068      bool all(Args... args)
 8069      {
 8070        return (args && ...);
 8071      }
 8072  
 8073    }
 8074  
 8075    namespace test_extended_static_assert
 8076    {
 8077  
 8078      static_assert (true);
 8079  
 8080    }
 8081  
 8082    namespace test_auto_brace_init_list
 8083    {
 8084  
 8085      auto foo = {5};
 8086      auto bar {5};
 8087  
 8088      static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
 8089      static_assert(std::is_same<int, decltype(bar)>::value);
 8090    }
 8091  
 8092    namespace test_typename_in_template_template_parameter
 8093    {
 8094  
 8095      template<template<typename> typename X> struct D;
 8096  
 8097    }
 8098  
 8099    namespace test_fallthrough_nodiscard_maybe_unused_attributes
 8100    {
 8101  
 8102      int f1()
 8103      {
 8104        return 42;
 8105      }
 8106  
 8107      [[nodiscard]] int f2()
 8108      {
 8109        [[maybe_unused]] auto unused = f1();
 8110  
 8111        switch (f1())
 8112        {
 8113        case 17:
 8114          f1();
 8115          [[fallthrough]];
 8116        case 42:
 8117          f1();
 8118        }
 8119        return f1();
 8120      }
 8121  
 8122    }
 8123  
 8124    namespace test_extended_aggregate_initialization
 8125    {
 8126  
 8127      struct base1
 8128      {
 8129        int b1, b2 = 42;
 8130      };
 8131  
 8132      struct base2
 8133      {
 8134        base2() {
 8135          b3 = 42;
 8136        }
 8137        int b3;
 8138      };
 8139  
 8140      struct derived : base1, base2
 8141      {
 8142          int d;
 8143      };
 8144  
 8145      derived d1 {{1, 2}, {}, 4};  // full initialization
 8146      derived d2 {{}, {}, 4};      // value-initialized bases
 8147  
 8148    }
 8149  
 8150    namespace test_general_range_based_for_loop
 8151    {
 8152  
 8153      struct iter
 8154      {
 8155        int i;
 8156  
 8157        int& operator* ()
 8158        {
 8159          return i;
 8160        }
 8161  
 8162        const int& operator* () const
 8163        {
 8164          return i;
 8165        }
 8166  
 8167        iter& operator++()
 8168        {
 8169          ++i;
 8170          return *this;
 8171        }
 8172      };
 8173  
 8174      struct sentinel
 8175      {
 8176        int i;
 8177      };
 8178  
 8179      bool operator== (const iter& i, const sentinel& s)
 8180      {
 8181        return i.i == s.i;
 8182      }
 8183  
 8184      bool operator!= (const iter& i, const sentinel& s)
 8185      {
 8186        return !(i == s);
 8187      }
 8188  
 8189      struct range
 8190      {
 8191        iter begin() const
 8192        {
 8193          return {0};
 8194        }
 8195  
 8196        sentinel end() const
 8197        {
 8198          return {5};
 8199        }
 8200      };
 8201  
 8202      void f()
 8203      {
 8204        range r {};
 8205  
 8206        for (auto i : r)
 8207        {
 8208          [[maybe_unused]] auto v = i;
 8209        }
 8210      }
 8211  
 8212    }
 8213  
 8214    namespace test_lambda_capture_asterisk_this_by_value
 8215    {
 8216  
 8217      struct t
 8218      {
 8219        int i;
 8220        int foo()
 8221        {
 8222          return [*this]()
 8223          {
 8224            return i;
 8225          }();
 8226        }
 8227      };
 8228  
 8229    }
 8230  
 8231    namespace test_enum_class_construction
 8232    {
 8233  
 8234      enum class byte : unsigned char
 8235      {};
 8236  
 8237      byte foo {42};
 8238  
 8239    }
 8240  
 8241    namespace test_constexpr_if
 8242    {
 8243  
 8244      template <bool cond>
 8245      int f ()
 8246      {
 8247        if constexpr(cond)
 8248        {
 8249          return 13;
 8250        }
 8251        else
 8252        {
 8253          return 42;
 8254        }
 8255      }
 8256  
 8257    }
 8258  
 8259    namespace test_selection_statement_with_initializer
 8260    {
 8261  
 8262      int f()
 8263      {
 8264        return 13;
 8265      }
 8266  
 8267      int f2()
 8268      {
 8269        if (auto i = f(); i > 0)
 8270        {
 8271          return 3;
 8272        }
 8273  
 8274        switch (auto i = f(); i + 4)
 8275        {
 8276        case 17:
 8277          return 2;
 8278  
 8279        default:
 8280          return 1;
 8281        }
 8282      }
 8283  
 8284    }
 8285  
 8286    namespace test_template_argument_deduction_for_class_templates
 8287    {
 8288  
 8289      template <typename T1, typename T2>
 8290      struct pair
 8291      {
 8292        pair (T1 p1, T2 p2)
 8293          : m1 {p1},
 8294            m2 {p2}
 8295        {}
 8296  
 8297        T1 m1;
 8298        T2 m2;
 8299      };
 8300  
 8301      void f()
 8302      {
 8303        [[maybe_unused]] auto p = pair{13, 42u};
 8304      }
 8305  
 8306    }
 8307  
 8308    namespace test_non_type_auto_template_parameters
 8309    {
 8310  
 8311      template <auto n>
 8312      struct B
 8313      {};
 8314  
 8315      B<5> b1;
 8316      B<'a'> b2;
 8317  
 8318    }
 8319  
 8320    namespace test_structured_bindings
 8321    {
 8322  
 8323      int arr[2] = { 1, 2 };
 8324      std::pair<int, int> pr = { 1, 2 };
 8325  
 8326      auto f1() -> int(&)[2]
 8327      {
 8328        return arr;
 8329      }
 8330  
 8331      auto f2() -> std::pair<int, int>&
 8332      {
 8333        return pr;
 8334      }
 8335  
 8336      struct S
 8337      {
 8338        int x1 : 2;
 8339        volatile double y1;
 8340      };
 8341  
 8342      S f3()
 8343      {
 8344        return {};
 8345      }
 8346  
 8347      auto [ x1, y1 ] = f1();
 8348      auto& [ xr1, yr1 ] = f1();
 8349      auto [ x2, y2 ] = f2();
 8350      auto& [ xr2, yr2 ] = f2();
 8351      const auto [ x3, y3 ] = f3();
 8352  
 8353    }
 8354  
 8355    namespace test_exception_spec_type_system
 8356    {
 8357  
 8358      struct Good {};
 8359      struct Bad {};
 8360  
 8361      void g1() noexcept;
 8362      void g2();
 8363  
 8364      template<typename T>
 8365      Bad
 8366      f(T*, T*);
 8367  
 8368      template<typename T1, typename T2>
 8369      Good
 8370      f(T1*, T2*);
 8371  
 8372      static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
 8373  
 8374    }
 8375  
 8376    namespace test_inline_variables
 8377    {
 8378  
 8379      template<class T> void f(T)
 8380      {}
 8381  
 8382      template<class T> inline T g(T)
 8383      {
 8384        return T{};
 8385      }
 8386  
 8387      template<> inline void f<>(int)
 8388      {}
 8389  
 8390      template<> int g<>(int)
 8391      {
 8392        return 5;
 8393      }
 8394  
 8395    }
 8396  
 8397  }  // namespace cxx17
 8398  
 8399  #endif  // __cplusplus < 201703L && !defined _MSC_VER
 8400  
 8401  
 8402  
 8403  _ACEOF
 8404  if ac_fn_cxx_try_compile "$LINENO"
 8405  then :
 8406    ax_cv_cxx_compile_cxx17=yes
 8407  else $as_nop
 8408    ax_cv_cxx_compile_cxx17=no
 8409  fi
 8410  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 8411  fi
 8412  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx17" >&5
 8413  printf "%s\n" "$ax_cv_cxx_compile_cxx17" >&6; }
 8414      if test x$ax_cv_cxx_compile_cxx17 = xyes; then
 8415        ac_success=yes
 8416      fi
 8417  
 8418      if test x$ac_success = xno; then
 8419      for alternative in ${ax_cxx_compile_alternatives}; do
 8420        switch="-std=gnu++${alternative}"
 8421        cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
 8422        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
 8423  printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
 8424  if eval test \${$cachevar+y}
 8425  then :
 8426    printf %s "(cached) " >&6
 8427  else $as_nop
 8428    ac_save_CXX="$CXX"
 8429           CXX="$CXX $switch"
 8430           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 8431  /* end confdefs.h.  */
 8432  
 8433  
 8434  // If the compiler admits that it is not ready for C++11, why torture it?
 8435  // Hopefully, this will speed up the test.
 8436  
 8437  #ifndef __cplusplus
 8438  
 8439  #error "This is not a C++ compiler"
 8440  
 8441  // MSVC always sets __cplusplus to 199711L in older versions; newer versions
 8442  // only set it correctly if /Zc:__cplusplus is specified as well as a
 8443  // /std:c++NN switch:
 8444  // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
 8445  #elif __cplusplus < 201103L && !defined _MSC_VER
 8446  
 8447  #error "This is not a C++11 compiler"
 8448  
 8449  #else
 8450  
 8451  namespace cxx11
 8452  {
 8453  
 8454    namespace test_static_assert
 8455    {
 8456  
 8457      template <typename T>
 8458      struct check
 8459      {
 8460        static_assert(sizeof(int) <= sizeof(T), "not big enough");
 8461      };
 8462  
 8463    }
 8464  
 8465    namespace test_final_override
 8466    {
 8467  
 8468      struct Base
 8469      {
 8470        virtual ~Base() {}
 8471        virtual void f() {}
 8472      };
 8473  
 8474      struct Derived : public Base
 8475      {
 8476        virtual ~Derived() override {}
 8477        virtual void f() override {}
 8478      };
 8479  
 8480    }
 8481  
 8482    namespace test_double_right_angle_brackets
 8483    {
 8484  
 8485      template < typename T >
 8486      struct check {};
 8487  
 8488      typedef check<void> single_type;
 8489      typedef check<check<void>> double_type;
 8490      typedef check<check<check<void>>> triple_type;
 8491      typedef check<check<check<check<void>>>> quadruple_type;
 8492  
 8493    }
 8494  
 8495    namespace test_decltype
 8496    {
 8497  
 8498      int
 8499      f()
 8500      {
 8501        int a = 1;
 8502        decltype(a) b = 2;
 8503        return a + b;
 8504      }
 8505  
 8506    }
 8507  
 8508    namespace test_type_deduction
 8509    {
 8510  
 8511      template < typename T1, typename T2 >
 8512      struct is_same
 8513      {
 8514        static const bool value = false;
 8515      };
 8516  
 8517      template < typename T >
 8518      struct is_same<T, T>
 8519      {
 8520        static const bool value = true;
 8521      };
 8522  
 8523      template < typename T1, typename T2 >
 8524      auto
 8525      add(T1 a1, T2 a2) -> decltype(a1 + a2)
 8526      {
 8527        return a1 + a2;
 8528      }
 8529  
 8530      int
 8531      test(const int c, volatile int v)
 8532      {
 8533        static_assert(is_same<int, decltype(0)>::value == true, "");
 8534        static_assert(is_same<int, decltype(c)>::value == false, "");
 8535        static_assert(is_same<int, decltype(v)>::value == false, "");
 8536        auto ac = c;
 8537        auto av = v;
 8538        auto sumi = ac + av + 'x';
 8539        auto sumf = ac + av + 1.0;
 8540        static_assert(is_same<int, decltype(ac)>::value == true, "");
 8541        static_assert(is_same<int, decltype(av)>::value == true, "");
 8542        static_assert(is_same<int, decltype(sumi)>::value == true, "");
 8543        static_assert(is_same<int, decltype(sumf)>::value == false, "");
 8544        static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
 8545        return (sumf > 0.0) ? sumi : add(c, v);
 8546      }
 8547  
 8548    }
 8549  
 8550    namespace test_noexcept
 8551    {
 8552  
 8553      int f() { return 0; }
 8554      int g() noexcept { return 0; }
 8555  
 8556      static_assert(noexcept(f()) == false, "");
 8557      static_assert(noexcept(g()) == true, "");
 8558  
 8559    }
 8560  
 8561    namespace test_constexpr
 8562    {
 8563  
 8564      template < typename CharT >
 8565      unsigned long constexpr
 8566      strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
 8567      {
 8568        return *s ? strlen_c_r(s + 1, acc + 1) : acc;
 8569      }
 8570  
 8571      template < typename CharT >
 8572      unsigned long constexpr
 8573      strlen_c(const CharT *const s) noexcept
 8574      {
 8575        return strlen_c_r(s, 0UL);
 8576      }
 8577  
 8578      static_assert(strlen_c("") == 0UL, "");
 8579      static_assert(strlen_c("1") == 1UL, "");
 8580      static_assert(strlen_c("example") == 7UL, "");
 8581      static_assert(strlen_c("another\0example") == 7UL, "");
 8582  
 8583    }
 8584  
 8585    namespace test_rvalue_references
 8586    {
 8587  
 8588      template < int N >
 8589      struct answer
 8590      {
 8591        static constexpr int value = N;
 8592      };
 8593  
 8594      answer<1> f(int&)       { return answer<1>(); }
 8595      answer<2> f(const int&) { return answer<2>(); }
 8596      answer<3> f(int&&)      { return answer<3>(); }
 8597  
 8598      void
 8599      test()
 8600      {
 8601        int i = 0;
 8602        const int c = 0;
 8603        static_assert(decltype(f(i))::value == 1, "");
 8604        static_assert(decltype(f(c))::value == 2, "");
 8605        static_assert(decltype(f(0))::value == 3, "");
 8606      }
 8607  
 8608    }
 8609  
 8610    namespace test_uniform_initialization
 8611    {
 8612  
 8613      struct test
 8614      {
 8615        static const int zero {};
 8616        static const int one {1};
 8617      };
 8618  
 8619      static_assert(test::zero == 0, "");
 8620      static_assert(test::one == 1, "");
 8621  
 8622    }
 8623  
 8624    namespace test_lambdas
 8625    {
 8626  
 8627      void
 8628      test1()
 8629      {
 8630        auto lambda1 = [](){};
 8631        auto lambda2 = lambda1;
 8632        lambda1();
 8633        lambda2();
 8634      }
 8635  
 8636      int
 8637      test2()
 8638      {
 8639        auto a = [](int i, int j){ return i + j; }(1, 2);
 8640        auto b = []() -> int { return '0'; }();
 8641        auto c = [=](){ return a + b; }();
 8642        auto d = [&](){ return c; }();
 8643        auto e = [a, &b](int x) mutable {
 8644          const auto identity = [](int y){ return y; };
 8645          for (auto i = 0; i < a; ++i)
 8646            a += b--;
 8647          return x + identity(a + b);
 8648        }(0);
 8649        return a + b + c + d + e;
 8650      }
 8651  
 8652      int
 8653      test3()
 8654      {
 8655        const auto nullary = [](){ return 0; };
 8656        const auto unary = [](int x){ return x; };
 8657        using nullary_t = decltype(nullary);
 8658        using unary_t = decltype(unary);
 8659        const auto higher1st = [](nullary_t f){ return f(); };
 8660        const auto higher2nd = [unary](nullary_t f1){
 8661          return [unary, f1](unary_t f2){ return f2(unary(f1())); };
 8662        };
 8663        return higher1st(nullary) + higher2nd(nullary)(unary);
 8664      }
 8665  
 8666    }
 8667  
 8668    namespace test_variadic_templates
 8669    {
 8670  
 8671      template <int...>
 8672      struct sum;
 8673  
 8674      template <int N0, int... N1toN>
 8675      struct sum<N0, N1toN...>
 8676      {
 8677        static constexpr auto value = N0 + sum<N1toN...>::value;
 8678      };
 8679  
 8680      template <>
 8681      struct sum<>
 8682      {
 8683        static constexpr auto value = 0;
 8684      };
 8685  
 8686      static_assert(sum<>::value == 0, "");
 8687      static_assert(sum<1>::value == 1, "");
 8688      static_assert(sum<23>::value == 23, "");
 8689      static_assert(sum<1, 2>::value == 3, "");
 8690      static_assert(sum<5, 5, 11>::value == 21, "");
 8691      static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
 8692  
 8693    }
 8694  
 8695    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
 8696    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
 8697    // because of this.
 8698    namespace test_template_alias_sfinae
 8699    {
 8700  
 8701      struct foo {};
 8702  
 8703      template<typename T>
 8704      using member = typename T::member_type;
 8705  
 8706      template<typename T>
 8707      void func(...) {}
 8708  
 8709      template<typename T>
 8710      void func(member<T>*) {}
 8711  
 8712      void test();
 8713  
 8714      void test() { func<foo>(0); }
 8715  
 8716    }
 8717  
 8718  }  // namespace cxx11
 8719  
 8720  #endif  // __cplusplus >= 201103L
 8721  
 8722  
 8723  
 8724  
 8725  // If the compiler admits that it is not ready for C++14, why torture it?
 8726  // Hopefully, this will speed up the test.
 8727  
 8728  #ifndef __cplusplus
 8729  
 8730  #error "This is not a C++ compiler"
 8731  
 8732  #elif __cplusplus < 201402L && !defined _MSC_VER
 8733  
 8734  #error "This is not a C++14 compiler"
 8735  
 8736  #else
 8737  
 8738  namespace cxx14
 8739  {
 8740  
 8741    namespace test_polymorphic_lambdas
 8742    {
 8743  
 8744      int
 8745      test()
 8746      {
 8747        const auto lambda = [](auto&&... args){
 8748          const auto istiny = [](auto x){
 8749            return (sizeof(x) == 1UL) ? 1 : 0;
 8750          };
 8751          const int aretiny[] = { istiny(args)... };
 8752          return aretiny[0];
 8753        };
 8754        return lambda(1, 1L, 1.0f, '1');
 8755      }
 8756  
 8757    }
 8758  
 8759    namespace test_binary_literals
 8760    {
 8761  
 8762      constexpr auto ivii = 0b0000000000101010;
 8763      static_assert(ivii == 42, "wrong value");
 8764  
 8765    }
 8766  
 8767    namespace test_generalized_constexpr
 8768    {
 8769  
 8770      template < typename CharT >
 8771      constexpr unsigned long
 8772      strlen_c(const CharT *const s) noexcept
 8773      {
 8774        auto length = 0UL;
 8775        for (auto p = s; *p; ++p)
 8776          ++length;
 8777        return length;
 8778      }
 8779  
 8780      static_assert(strlen_c("") == 0UL, "");
 8781      static_assert(strlen_c("x") == 1UL, "");
 8782      static_assert(strlen_c("test") == 4UL, "");
 8783      static_assert(strlen_c("another\0test") == 7UL, "");
 8784  
 8785    }
 8786  
 8787    namespace test_lambda_init_capture
 8788    {
 8789  
 8790      int
 8791      test()
 8792      {
 8793        auto x = 0;
 8794        const auto lambda1 = [a = x](int b){ return a + b; };
 8795        const auto lambda2 = [a = lambda1(x)](){ return a; };
 8796        return lambda2();
 8797      }
 8798  
 8799    }
 8800  
 8801    namespace test_digit_separators
 8802    {
 8803  
 8804      constexpr auto ten_million = 100'000'000;
 8805      static_assert(ten_million == 100000000, "");
 8806  
 8807    }
 8808  
 8809    namespace test_return_type_deduction
 8810    {
 8811  
 8812      auto f(int& x) { return x; }
 8813      decltype(auto) g(int& x) { return x; }
 8814  
 8815      template < typename T1, typename T2 >
 8816      struct is_same
 8817      {
 8818        static constexpr auto value = false;
 8819      };
 8820  
 8821      template < typename T >
 8822      struct is_same<T, T>
 8823      {
 8824        static constexpr auto value = true;
 8825      };
 8826  
 8827      int
 8828      test()
 8829      {
 8830        auto x = 0;
 8831        static_assert(is_same<int, decltype(f(x))>::value, "");
 8832        static_assert(is_same<int&, decltype(g(x))>::value, "");
 8833        return x;
 8834      }
 8835  
 8836    }
 8837  
 8838  }  // namespace cxx14
 8839  
 8840  #endif  // __cplusplus >= 201402L
 8841  
 8842  
 8843  
 8844  
 8845  // If the compiler admits that it is not ready for C++17, why torture it?
 8846  // Hopefully, this will speed up the test.
 8847  
 8848  #ifndef __cplusplus
 8849  
 8850  #error "This is not a C++ compiler"
 8851  
 8852  #elif __cplusplus < 201703L && !defined _MSC_VER
 8853  
 8854  #error "This is not a C++17 compiler"
 8855  
 8856  #else
 8857  
 8858  #include <initializer_list>
 8859  #include <utility>
 8860  #include <type_traits>
 8861  
 8862  namespace cxx17
 8863  {
 8864  
 8865    namespace test_constexpr_lambdas
 8866    {
 8867  
 8868      constexpr int foo = [](){return 42;}();
 8869  
 8870    }
 8871  
 8872    namespace test::nested_namespace::definitions
 8873    {
 8874  
 8875    }
 8876  
 8877    namespace test_fold_expression
 8878    {
 8879  
 8880      template<typename... Args>
 8881      int multiply(Args... args)
 8882      {
 8883        return (args * ... * 1);
 8884      }
 8885  
 8886      template<typename... Args>
 8887      bool all(Args... args)
 8888      {
 8889        return (args && ...);
 8890      }
 8891  
 8892    }
 8893  
 8894    namespace test_extended_static_assert
 8895    {
 8896  
 8897      static_assert (true);
 8898  
 8899    }
 8900  
 8901    namespace test_auto_brace_init_list
 8902    {
 8903  
 8904      auto foo = {5};
 8905      auto bar {5};
 8906  
 8907      static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
 8908      static_assert(std::is_same<int, decltype(bar)>::value);
 8909    }
 8910  
 8911    namespace test_typename_in_template_template_parameter
 8912    {
 8913  
 8914      template<template<typename> typename X> struct D;
 8915  
 8916    }
 8917  
 8918    namespace test_fallthrough_nodiscard_maybe_unused_attributes
 8919    {
 8920  
 8921      int f1()
 8922      {
 8923        return 42;
 8924      }
 8925  
 8926      [[nodiscard]] int f2()
 8927      {
 8928        [[maybe_unused]] auto unused = f1();
 8929  
 8930        switch (f1())
 8931        {
 8932        case 17:
 8933          f1();
 8934          [[fallthrough]];
 8935        case 42:
 8936          f1();
 8937        }
 8938        return f1();
 8939      }
 8940  
 8941    }
 8942  
 8943    namespace test_extended_aggregate_initialization
 8944    {
 8945  
 8946      struct base1
 8947      {
 8948        int b1, b2 = 42;
 8949      };
 8950  
 8951      struct base2
 8952      {
 8953        base2() {
 8954          b3 = 42;
 8955        }
 8956        int b3;
 8957      };
 8958  
 8959      struct derived : base1, base2
 8960      {
 8961          int d;
 8962      };
 8963  
 8964      derived d1 {{1, 2}, {}, 4};  // full initialization
 8965      derived d2 {{}, {}, 4};      // value-initialized bases
 8966  
 8967    }
 8968  
 8969    namespace test_general_range_based_for_loop
 8970    {
 8971  
 8972      struct iter
 8973      {
 8974        int i;
 8975  
 8976        int& operator* ()
 8977        {
 8978          return i;
 8979        }
 8980  
 8981        const int& operator* () const
 8982        {
 8983          return i;
 8984        }
 8985  
 8986        iter& operator++()
 8987        {
 8988          ++i;
 8989          return *this;
 8990        }
 8991      };
 8992  
 8993      struct sentinel
 8994      {
 8995        int i;
 8996      };
 8997  
 8998      bool operator== (const iter& i, const sentinel& s)
 8999      {
 9000        return i.i == s.i;
 9001      }
 9002  
 9003      bool operator!= (const iter& i, const sentinel& s)
 9004      {
 9005        return !(i == s);
 9006      }
 9007  
 9008      struct range
 9009      {
 9010        iter begin() const
 9011        {
 9012          return {0};
 9013        }
 9014  
 9015        sentinel end() const
 9016        {
 9017          return {5};
 9018        }
 9019      };
 9020  
 9021      void f()
 9022      {
 9023        range r {};
 9024  
 9025        for (auto i : r)
 9026        {
 9027          [[maybe_unused]] auto v = i;
 9028        }
 9029      }
 9030  
 9031    }
 9032  
 9033    namespace test_lambda_capture_asterisk_this_by_value
 9034    {
 9035  
 9036      struct t
 9037      {
 9038        int i;
 9039        int foo()
 9040        {
 9041          return [*this]()
 9042          {
 9043            return i;
 9044          }();
 9045        }
 9046      };
 9047  
 9048    }
 9049  
 9050    namespace test_enum_class_construction
 9051    {
 9052  
 9053      enum class byte : unsigned char
 9054      {};
 9055  
 9056      byte foo {42};
 9057  
 9058    }
 9059  
 9060    namespace test_constexpr_if
 9061    {
 9062  
 9063      template <bool cond>
 9064      int f ()
 9065      {
 9066        if constexpr(cond)
 9067        {
 9068          return 13;
 9069        }
 9070        else
 9071        {
 9072          return 42;
 9073        }
 9074      }
 9075  
 9076    }
 9077  
 9078    namespace test_selection_statement_with_initializer
 9079    {
 9080  
 9081      int f()
 9082      {
 9083        return 13;
 9084      }
 9085  
 9086      int f2()
 9087      {
 9088        if (auto i = f(); i > 0)
 9089        {
 9090          return 3;
 9091        }
 9092  
 9093        switch (auto i = f(); i + 4)
 9094        {
 9095        case 17:
 9096          return 2;
 9097  
 9098        default:
 9099          return 1;
 9100        }
 9101      }
 9102  
 9103    }
 9104  
 9105    namespace test_template_argument_deduction_for_class_templates
 9106    {
 9107  
 9108      template <typename T1, typename T2>
 9109      struct pair
 9110      {
 9111        pair (T1 p1, T2 p2)
 9112          : m1 {p1},
 9113            m2 {p2}
 9114        {}
 9115  
 9116        T1 m1;
 9117        T2 m2;
 9118      };
 9119  
 9120      void f()
 9121      {
 9122        [[maybe_unused]] auto p = pair{13, 42u};
 9123      }
 9124  
 9125    }
 9126  
 9127    namespace test_non_type_auto_template_parameters
 9128    {
 9129  
 9130      template <auto n>
 9131      struct B
 9132      {};
 9133  
 9134      B<5> b1;
 9135      B<'a'> b2;
 9136  
 9137    }
 9138  
 9139    namespace test_structured_bindings
 9140    {
 9141  
 9142      int arr[2] = { 1, 2 };
 9143      std::pair<int, int> pr = { 1, 2 };
 9144  
 9145      auto f1() -> int(&)[2]
 9146      {
 9147        return arr;
 9148      }
 9149  
 9150      auto f2() -> std::pair<int, int>&
 9151      {
 9152        return pr;
 9153      }
 9154  
 9155      struct S
 9156      {
 9157        int x1 : 2;
 9158        volatile double y1;
 9159      };
 9160  
 9161      S f3()
 9162      {
 9163        return {};
 9164      }
 9165  
 9166      auto [ x1, y1 ] = f1();
 9167      auto& [ xr1, yr1 ] = f1();
 9168      auto [ x2, y2 ] = f2();
 9169      auto& [ xr2, yr2 ] = f2();
 9170      const auto [ x3, y3 ] = f3();
 9171  
 9172    }
 9173  
 9174    namespace test_exception_spec_type_system
 9175    {
 9176  
 9177      struct Good {};
 9178      struct Bad {};
 9179  
 9180      void g1() noexcept;
 9181      void g2();
 9182  
 9183      template<typename T>
 9184      Bad
 9185      f(T*, T*);
 9186  
 9187      template<typename T1, typename T2>
 9188      Good
 9189      f(T1*, T2*);
 9190  
 9191      static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
 9192  
 9193    }
 9194  
 9195    namespace test_inline_variables
 9196    {
 9197  
 9198      template<class T> void f(T)
 9199      {}
 9200  
 9201      template<class T> inline T g(T)
 9202      {
 9203        return T{};
 9204      }
 9205  
 9206      template<> inline void f<>(int)
 9207      {}
 9208  
 9209      template<> int g<>(int)
 9210      {
 9211        return 5;
 9212      }
 9213  
 9214    }
 9215  
 9216  }  // namespace cxx17
 9217  
 9218  #endif  // __cplusplus < 201703L && !defined _MSC_VER
 9219  
 9220  
 9221  
 9222  _ACEOF
 9223  if ac_fn_cxx_try_compile "$LINENO"
 9224  then :
 9225    eval $cachevar=yes
 9226  else $as_nop
 9227    eval $cachevar=no
 9228  fi
 9229  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
 9230           CXX="$ac_save_CXX"
 9231  fi
 9232  eval ac_res=\$$cachevar
 9233  	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
 9234  printf "%s\n" "$ac_res" >&6; }
 9235        if eval test x\$$cachevar = xyes; then
 9236          CXX="$CXX $switch"
 9237          if test -n "$CXXCPP" ; then
 9238            CXXCPP="$CXXCPP $switch"
 9239          fi
 9240          ac_success=yes
 9241          break
 9242        fi
 9243      done
 9244    fi
 9245  
 9246      if test x$ac_success = xno; then
 9247                  for alternative in ${ax_cxx_compile_alternatives}; do
 9248        for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
 9249          cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx17_$switch" | $as_tr_sh`
 9250          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++17 features with $switch" >&5
 9251  printf %s "checking whether $CXX supports C++17 features with $switch... " >&6; }
 9252  if eval test \${$cachevar+y}
 9253  then :
 9254    printf %s "(cached) " >&6
 9255  else $as_nop
 9256    ac_save_CXX="$CXX"
 9257             CXX="$CXX $switch"
 9258             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 9259  /* end confdefs.h.  */
 9260  
 9261  
 9262  // If the compiler admits that it is not ready for C++11, why torture it?
 9263  // Hopefully, this will speed up the test.
 9264  
 9265  #ifndef __cplusplus
 9266  
 9267  #error "This is not a C++ compiler"
 9268  
 9269  // MSVC always sets __cplusplus to 199711L in older versions; newer versions
 9270  // only set it correctly if /Zc:__cplusplus is specified as well as a
 9271  // /std:c++NN switch:
 9272  // https://devblogs.microsoft.com/cppblog/msvc-now-correctly-reports-__cplusplus/
 9273  #elif __cplusplus < 201103L && !defined _MSC_VER
 9274  
 9275  #error "This is not a C++11 compiler"
 9276  
 9277  #else
 9278  
 9279  namespace cxx11
 9280  {
 9281  
 9282    namespace test_static_assert
 9283    {
 9284  
 9285      template <typename T>
 9286      struct check
 9287      {
 9288        static_assert(sizeof(int) <= sizeof(T), "not big enough");
 9289      };
 9290  
 9291    }
 9292  
 9293    namespace test_final_override
 9294    {
 9295  
 9296      struct Base
 9297      {
 9298        virtual ~Base() {}
 9299        virtual void f() {}
 9300      };
 9301  
 9302      struct Derived : public Base
 9303      {
 9304        virtual ~Derived() override {}
 9305        virtual void f() override {}
 9306      };
 9307  
 9308    }
 9309  
 9310    namespace test_double_right_angle_brackets
 9311    {
 9312  
 9313      template < typename T >
 9314      struct check {};
 9315  
 9316      typedef check<void> single_type;
 9317      typedef check<check<void>> double_type;
 9318      typedef check<check<check<void>>> triple_type;
 9319      typedef check<check<check<check<void>>>> quadruple_type;
 9320  
 9321    }
 9322  
 9323    namespace test_decltype
 9324    {
 9325  
 9326      int
 9327      f()
 9328      {
 9329        int a = 1;
 9330        decltype(a) b = 2;
 9331        return a + b;
 9332      }
 9333  
 9334    }
 9335  
 9336    namespace test_type_deduction
 9337    {
 9338  
 9339      template < typename T1, typename T2 >
 9340      struct is_same
 9341      {
 9342        static const bool value = false;
 9343      };
 9344  
 9345      template < typename T >
 9346      struct is_same<T, T>
 9347      {
 9348        static const bool value = true;
 9349      };
 9350  
 9351      template < typename T1, typename T2 >
 9352      auto
 9353      add(T1 a1, T2 a2) -> decltype(a1 + a2)
 9354      {
 9355        return a1 + a2;
 9356      }
 9357  
 9358      int
 9359      test(const int c, volatile int v)
 9360      {
 9361        static_assert(is_same<int, decltype(0)>::value == true, "");
 9362        static_assert(is_same<int, decltype(c)>::value == false, "");
 9363        static_assert(is_same<int, decltype(v)>::value == false, "");
 9364        auto ac = c;
 9365        auto av = v;
 9366        auto sumi = ac + av + 'x';
 9367        auto sumf = ac + av + 1.0;
 9368        static_assert(is_same<int, decltype(ac)>::value == true, "");
 9369        static_assert(is_same<int, decltype(av)>::value == true, "");
 9370        static_assert(is_same<int, decltype(sumi)>::value == true, "");
 9371        static_assert(is_same<int, decltype(sumf)>::value == false, "");
 9372        static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
 9373        return (sumf > 0.0) ? sumi : add(c, v);
 9374      }
 9375  
 9376    }
 9377  
 9378    namespace test_noexcept
 9379    {
 9380  
 9381      int f() { return 0; }
 9382      int g() noexcept { return 0; }
 9383  
 9384      static_assert(noexcept(f()) == false, "");
 9385      static_assert(noexcept(g()) == true, "");
 9386  
 9387    }
 9388  
 9389    namespace test_constexpr
 9390    {
 9391  
 9392      template < typename CharT >
 9393      unsigned long constexpr
 9394      strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
 9395      {
 9396        return *s ? strlen_c_r(s + 1, acc + 1) : acc;
 9397      }
 9398  
 9399      template < typename CharT >
 9400      unsigned long constexpr
 9401      strlen_c(const CharT *const s) noexcept
 9402      {
 9403        return strlen_c_r(s, 0UL);
 9404      }
 9405  
 9406      static_assert(strlen_c("") == 0UL, "");
 9407      static_assert(strlen_c("1") == 1UL, "");
 9408      static_assert(strlen_c("example") == 7UL, "");
 9409      static_assert(strlen_c("another\0example") == 7UL, "");
 9410  
 9411    }
 9412  
 9413    namespace test_rvalue_references
 9414    {
 9415  
 9416      template < int N >
 9417      struct answer
 9418      {
 9419        static constexpr int value = N;
 9420      };
 9421  
 9422      answer<1> f(int&)       { return answer<1>(); }
 9423      answer<2> f(const int&) { return answer<2>(); }
 9424      answer<3> f(int&&)      { return answer<3>(); }
 9425  
 9426      void
 9427      test()
 9428      {
 9429        int i = 0;
 9430        const int c = 0;
 9431        static_assert(decltype(f(i))::value == 1, "");
 9432        static_assert(decltype(f(c))::value == 2, "");
 9433        static_assert(decltype(f(0))::value == 3, "");
 9434      }
 9435  
 9436    }
 9437  
 9438    namespace test_uniform_initialization
 9439    {
 9440  
 9441      struct test
 9442      {
 9443        static const int zero {};
 9444        static const int one {1};
 9445      };
 9446  
 9447      static_assert(test::zero == 0, "");
 9448      static_assert(test::one == 1, "");
 9449  
 9450    }
 9451  
 9452    namespace test_lambdas
 9453    {
 9454  
 9455      void
 9456      test1()
 9457      {
 9458        auto lambda1 = [](){};
 9459        auto lambda2 = lambda1;
 9460        lambda1();
 9461        lambda2();
 9462      }
 9463  
 9464      int
 9465      test2()
 9466      {
 9467        auto a = [](int i, int j){ return i + j; }(1, 2);
 9468        auto b = []() -> int { return '0'; }();
 9469        auto c = [=](){ return a + b; }();
 9470        auto d = [&](){ return c; }();
 9471        auto e = [a, &b](int x) mutable {
 9472          const auto identity = [](int y){ return y; };
 9473          for (auto i = 0; i < a; ++i)
 9474            a += b--;
 9475          return x + identity(a + b);
 9476        }(0);
 9477        return a + b + c + d + e;
 9478      }
 9479  
 9480      int
 9481      test3()
 9482      {
 9483        const auto nullary = [](){ return 0; };
 9484        const auto unary = [](int x){ return x; };
 9485        using nullary_t = decltype(nullary);
 9486        using unary_t = decltype(unary);
 9487        const auto higher1st = [](nullary_t f){ return f(); };
 9488        const auto higher2nd = [unary](nullary_t f1){
 9489          return [unary, f1](unary_t f2){ return f2(unary(f1())); };
 9490        };
 9491        return higher1st(nullary) + higher2nd(nullary)(unary);
 9492      }
 9493  
 9494    }
 9495  
 9496    namespace test_variadic_templates
 9497    {
 9498  
 9499      template <int...>
 9500      struct sum;
 9501  
 9502      template <int N0, int... N1toN>
 9503      struct sum<N0, N1toN...>
 9504      {
 9505        static constexpr auto value = N0 + sum<N1toN...>::value;
 9506      };
 9507  
 9508      template <>
 9509      struct sum<>
 9510      {
 9511        static constexpr auto value = 0;
 9512      };
 9513  
 9514      static_assert(sum<>::value == 0, "");
 9515      static_assert(sum<1>::value == 1, "");
 9516      static_assert(sum<23>::value == 23, "");
 9517      static_assert(sum<1, 2>::value == 3, "");
 9518      static_assert(sum<5, 5, 11>::value == 21, "");
 9519      static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
 9520  
 9521    }
 9522  
 9523    // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
 9524    // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
 9525    // because of this.
 9526    namespace test_template_alias_sfinae
 9527    {
 9528  
 9529      struct foo {};
 9530  
 9531      template<typename T>
 9532      using member = typename T::member_type;
 9533  
 9534      template<typename T>
 9535      void func(...) {}
 9536  
 9537      template<typename T>
 9538      void func(member<T>*) {}
 9539  
 9540      void test();
 9541  
 9542      void test() { func<foo>(0); }
 9543  
 9544    }
 9545  
 9546  }  // namespace cxx11
 9547  
 9548  #endif  // __cplusplus >= 201103L
 9549  
 9550  
 9551  
 9552  
 9553  // If the compiler admits that it is not ready for C++14, why torture it?
 9554  // Hopefully, this will speed up the test.
 9555  
 9556  #ifndef __cplusplus
 9557  
 9558  #error "This is not a C++ compiler"
 9559  
 9560  #elif __cplusplus < 201402L && !defined _MSC_VER
 9561  
 9562  #error "This is not a C++14 compiler"
 9563  
 9564  #else
 9565  
 9566  namespace cxx14
 9567  {
 9568  
 9569    namespace test_polymorphic_lambdas
 9570    {
 9571  
 9572      int
 9573      test()
 9574      {
 9575        const auto lambda = [](auto&&... args){
 9576          const auto istiny = [](auto x){
 9577            return (sizeof(x) == 1UL) ? 1 : 0;
 9578          };
 9579          const int aretiny[] = { istiny(args)... };
 9580          return aretiny[0];
 9581        };
 9582        return lambda(1, 1L, 1.0f, '1');
 9583      }
 9584  
 9585    }
 9586  
 9587    namespace test_binary_literals
 9588    {
 9589  
 9590      constexpr auto ivii = 0b0000000000101010;
 9591      static_assert(ivii == 42, "wrong value");
 9592  
 9593    }
 9594  
 9595    namespace test_generalized_constexpr
 9596    {
 9597  
 9598      template < typename CharT >
 9599      constexpr unsigned long
 9600      strlen_c(const CharT *const s) noexcept
 9601      {
 9602        auto length = 0UL;
 9603        for (auto p = s; *p; ++p)
 9604          ++length;
 9605        return length;
 9606      }
 9607  
 9608      static_assert(strlen_c("") == 0UL, "");
 9609      static_assert(strlen_c("x") == 1UL, "");
 9610      static_assert(strlen_c("test") == 4UL, "");
 9611      static_assert(strlen_c("another\0test") == 7UL, "");
 9612  
 9613    }
 9614  
 9615    namespace test_lambda_init_capture
 9616    {
 9617  
 9618      int
 9619      test()
 9620      {
 9621        auto x = 0;
 9622        const auto lambda1 = [a = x](int b){ return a + b; };
 9623        const auto lambda2 = [a = lambda1(x)](){ return a; };
 9624        return lambda2();
 9625      }
 9626  
 9627    }
 9628  
 9629    namespace test_digit_separators
 9630    {
 9631  
 9632      constexpr auto ten_million = 100'000'000;
 9633      static_assert(ten_million == 100000000, "");
 9634  
 9635    }
 9636  
 9637    namespace test_return_type_deduction
 9638    {
 9639  
 9640      auto f(int& x) { return x; }
 9641      decltype(auto) g(int& x) { return x; }
 9642  
 9643      template < typename T1, typename T2 >
 9644      struct is_same
 9645      {
 9646        static constexpr auto value = false;
 9647      };
 9648  
 9649      template < typename T >
 9650      struct is_same<T, T>
 9651      {
 9652        static constexpr auto value = true;
 9653      };
 9654  
 9655      int
 9656      test()
 9657      {
 9658        auto x = 0;
 9659        static_assert(is_same<int, decltype(f(x))>::value, "");
 9660        static_assert(is_same<int&, decltype(g(x))>::value, "");
 9661        return x;
 9662      }
 9663  
 9664    }
 9665  
 9666  }  // namespace cxx14
 9667  
 9668  #endif  // __cplusplus >= 201402L
 9669  
 9670  
 9671  
 9672  
 9673  // If the compiler admits that it is not ready for C++17, why torture it?
 9674  // Hopefully, this will speed up the test.
 9675  
 9676  #ifndef __cplusplus
 9677  
 9678  #error "This is not a C++ compiler"
 9679  
 9680  #elif __cplusplus < 201703L && !defined _MSC_VER
 9681  
 9682  #error "This is not a C++17 compiler"
 9683  
 9684  #else
 9685  
 9686  #include <initializer_list>
 9687  #include <utility>
 9688  #include <type_traits>
 9689  
 9690  namespace cxx17
 9691  {
 9692  
 9693    namespace test_constexpr_lambdas
 9694    {
 9695  
 9696      constexpr int foo = [](){return 42;}();
 9697  
 9698    }
 9699  
 9700    namespace test::nested_namespace::definitions
 9701    {
 9702  
 9703    }
 9704  
 9705    namespace test_fold_expression
 9706    {
 9707  
 9708      template<typename... Args>
 9709      int multiply(Args... args)
 9710      {
 9711        return (args * ... * 1);
 9712      }
 9713  
 9714      template<typename... Args>
 9715      bool all(Args... args)
 9716      {
 9717        return (args && ...);
 9718      }
 9719  
 9720    }
 9721  
 9722    namespace test_extended_static_assert
 9723    {
 9724  
 9725      static_assert (true);
 9726  
 9727    }
 9728  
 9729    namespace test_auto_brace_init_list
 9730    {
 9731  
 9732      auto foo = {5};
 9733      auto bar {5};
 9734  
 9735      static_assert(std::is_same<std::initializer_list<int>, decltype(foo)>::value);
 9736      static_assert(std::is_same<int, decltype(bar)>::value);
 9737    }
 9738  
 9739    namespace test_typename_in_template_template_parameter
 9740    {
 9741  
 9742      template<template<typename> typename X> struct D;
 9743  
 9744    }
 9745  
 9746    namespace test_fallthrough_nodiscard_maybe_unused_attributes
 9747    {
 9748  
 9749      int f1()
 9750      {
 9751        return 42;
 9752      }
 9753  
 9754      [[nodiscard]] int f2()
 9755      {
 9756        [[maybe_unused]] auto unused = f1();
 9757  
 9758        switch (f1())
 9759        {
 9760        case 17:
 9761          f1();
 9762          [[fallthrough]];
 9763        case 42:
 9764          f1();
 9765        }
 9766        return f1();
 9767      }
 9768  
 9769    }
 9770  
 9771    namespace test_extended_aggregate_initialization
 9772    {
 9773  
 9774      struct base1
 9775      {
 9776        int b1, b2 = 42;
 9777      };
 9778  
 9779      struct base2
 9780      {
 9781        base2() {
 9782          b3 = 42;
 9783        }
 9784        int b3;
 9785      };
 9786  
 9787      struct derived : base1, base2
 9788      {
 9789          int d;
 9790      };
 9791  
 9792      derived d1 {{1, 2}, {}, 4};  // full initialization
 9793      derived d2 {{}, {}, 4};      // value-initialized bases
 9794  
 9795    }
 9796  
 9797    namespace test_general_range_based_for_loop
 9798    {
 9799  
 9800      struct iter
 9801      {
 9802        int i;
 9803  
 9804        int& operator* ()
 9805        {
 9806          return i;
 9807        }
 9808  
 9809        const int& operator* () const
 9810        {
 9811          return i;
 9812        }
 9813  
 9814        iter& operator++()
 9815        {
 9816          ++i;
 9817          return *this;
 9818        }
 9819      };
 9820  
 9821      struct sentinel
 9822      {
 9823        int i;
 9824      };
 9825  
 9826      bool operator== (const iter& i, const sentinel& s)
 9827      {
 9828        return i.i == s.i;
 9829      }
 9830  
 9831      bool operator!= (const iter& i, const sentinel& s)
 9832      {
 9833        return !(i == s);
 9834      }
 9835  
 9836      struct range
 9837      {
 9838        iter begin() const
 9839        {
 9840          return {0};
 9841        }
 9842  
 9843        sentinel end() const
 9844        {
 9845          return {5};
 9846        }
 9847      };
 9848  
 9849      void f()
 9850      {
 9851        range r {};
 9852  
 9853        for (auto i : r)
 9854        {
 9855          [[maybe_unused]] auto v = i;
 9856        }
 9857      }
 9858  
 9859    }
 9860  
 9861    namespace test_lambda_capture_asterisk_this_by_value
 9862    {
 9863  
 9864      struct t
 9865      {
 9866        int i;
 9867        int foo()
 9868        {
 9869          return [*this]()
 9870          {
 9871            return i;
 9872          }();
 9873        }
 9874      };
 9875  
 9876    }
 9877  
 9878    namespace test_enum_class_construction
 9879    {
 9880  
 9881      enum class byte : unsigned char
 9882      {};
 9883  
 9884      byte foo {42};
 9885  
 9886    }
 9887  
 9888    namespace test_constexpr_if
 9889    {
 9890  
 9891      template <bool cond>
 9892      int f ()
 9893      {
 9894        if constexpr(cond)
 9895        {
 9896          return 13;
 9897        }
 9898        else
 9899        {
 9900          return 42;
 9901        }
 9902      }
 9903  
 9904    }
 9905  
 9906    namespace test_selection_statement_with_initializer
 9907    {
 9908  
 9909      int f()
 9910      {
 9911        return 13;
 9912      }
 9913  
 9914      int f2()
 9915      {
 9916        if (auto i = f(); i > 0)
 9917        {
 9918          return 3;
 9919        }
 9920  
 9921        switch (auto i = f(); i + 4)
 9922        {
 9923        case 17:
 9924          return 2;
 9925  
 9926        default:
 9927          return 1;
 9928        }
 9929      }
 9930  
 9931    }
 9932  
 9933    namespace test_template_argument_deduction_for_class_templates
 9934    {
 9935  
 9936      template <typename T1, typename T2>
 9937      struct pair
 9938      {
 9939        pair (T1 p1, T2 p2)
 9940          : m1 {p1},
 9941            m2 {p2}
 9942        {}
 9943  
 9944        T1 m1;
 9945        T2 m2;
 9946      };
 9947  
 9948      void f()
 9949      {
 9950        [[maybe_unused]] auto p = pair{13, 42u};
 9951      }
 9952  
 9953    }
 9954  
 9955    namespace test_non_type_auto_template_parameters
 9956    {
 9957  
 9958      template <auto n>
 9959      struct B
 9960      {};
 9961  
 9962      B<5> b1;
 9963      B<'a'> b2;
 9964  
 9965    }
 9966  
 9967    namespace test_structured_bindings
 9968    {
 9969  
 9970      int arr[2] = { 1, 2 };
 9971      std::pair<int, int> pr = { 1, 2 };
 9972  
 9973      auto f1() -> int(&)[2]
 9974      {
 9975        return arr;
 9976      }
 9977  
 9978      auto f2() -> std::pair<int, int>&
 9979      {
 9980        return pr;
 9981      }
 9982  
 9983      struct S
 9984      {
 9985        int x1 : 2;
 9986        volatile double y1;
 9987      };
 9988  
 9989      S f3()
 9990      {
 9991        return {};
 9992      }
 9993  
 9994      auto [ x1, y1 ] = f1();
 9995      auto& [ xr1, yr1 ] = f1();
 9996      auto [ x2, y2 ] = f2();
 9997      auto& [ xr2, yr2 ] = f2();
 9998      const auto [ x3, y3 ] = f3();
 9999  
10000    }
10001  
10002    namespace test_exception_spec_type_system
10003    {
10004  
10005      struct Good {};
10006      struct Bad {};
10007  
10008      void g1() noexcept;
10009      void g2();
10010  
10011      template<typename T>
10012      Bad
10013      f(T*, T*);
10014  
10015      template<typename T1, typename T2>
10016      Good
10017      f(T1*, T2*);
10018  
10019      static_assert (std::is_same_v<Good, decltype(f(g1, g2))>);
10020  
10021    }
10022  
10023    namespace test_inline_variables
10024    {
10025  
10026      template<class T> void f(T)
10027      {}
10028  
10029      template<class T> inline T g(T)
10030      {
10031        return T{};
10032      }
10033  
10034      template<> inline void f<>(int)
10035      {}
10036  
10037      template<> int g<>(int)
10038      {
10039        return 5;
10040      }
10041  
10042    }
10043  
10044  }  // namespace cxx17
10045  
10046  #endif  // __cplusplus < 201703L && !defined _MSC_VER
10047  
10048  
10049  
10050  _ACEOF
10051  if ac_fn_cxx_try_compile "$LINENO"
10052  then :
10053    eval $cachevar=yes
10054  else $as_nop
10055    eval $cachevar=no
10056  fi
10057  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10058             CXX="$ac_save_CXX"
10059  fi
10060  eval ac_res=\$$cachevar
10061  	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10062  printf "%s\n" "$ac_res" >&6; }
10063          if eval test x\$$cachevar = xyes; then
10064            CXX="$CXX $switch"
10065            if test -n "$CXXCPP" ; then
10066              CXXCPP="$CXXCPP $switch"
10067            fi
10068            ac_success=yes
10069            break
10070          fi
10071        done
10072        if test x$ac_success = xyes; then
10073          break
10074        fi
10075      done
10076    fi
10077    ac_ext=c
10078  ac_cpp='$CPP $CPPFLAGS'
10079  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10080  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10081  ac_compiler_gnu=$ac_cv_c_compiler_gnu
10082  
10083    if test x$ax_cxx_compile_cxx17_required = xtrue; then
10084      if test x$ac_success = xno; then
10085        as_fn_error $? "*** A compiler with support for C++17 language features is required." "$LINENO" 5
10086      fi
10087    fi
10088    if test x$ac_success = xno; then
10089      HAVE_CXX17=0
10090      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++17 support was found" >&5
10091  printf "%s\n" "$as_me: No compiler with C++17 support was found" >&6;}
10092    else
10093      HAVE_CXX17=1
10094  
10095  printf "%s\n" "#define HAVE_CXX17 1" >>confdefs.h
10096  
10097    fi
10098  
10099  
10100  
10101  WARN_CXXFLAGS=
10102  ac_ext=cpp
10103  ac_cpp='$CXXCPP $CPPFLAGS'
10104  ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10105  ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10106  ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10107  
10108  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5
10109  printf %s "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; }
10110  if test ${ax_cv_check_cxxflags___Werror_unknown_warning_option+y}
10111  then :
10112    printf %s "(cached) " >&6
10113  else $as_nop
10114  
10115    ax_check_save_flags=$CXXFLAGS
10116    CXXFLAGS="$CXXFLAGS  -Werror=unknown-warning-option"
10117    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118  /* end confdefs.h.  */
10119  
10120  int
10121  main (void)
10122  {
10123  
10124    ;
10125    return 0;
10126  }
10127  _ACEOF
10128  if ac_fn_cxx_try_compile "$LINENO"
10129  then :
10130    ax_cv_check_cxxflags___Werror_unknown_warning_option=yes
10131  else $as_nop
10132    ax_cv_check_cxxflags___Werror_unknown_warning_option=no
10133  fi
10134  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10135    CXXFLAGS=$ax_check_save_flags
10136  fi
10137  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5
10138  printf "%s\n" "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; }
10139  if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes
10140  then :
10141  
10142    ax_compiler_flags_test="-Werror=unknown-warning-option"
10143  
10144  else $as_nop
10145  
10146    ax_compiler_flags_test=""
10147  
10148  fi
10149  
10150  
10151  
10152  
10153  
10154  for flag in    -Wmissing-braces   -Wnon-virtual-dtor   -Woverloaded-virtual   -Wreorder   -Wsign-compare   -Wunused-local-typedefs   -Wunused-variable   -Wvla ; do
10155    as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags_${ax_compiler_flags_test}_$flag" | $as_tr_sh`
10156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
10157  printf %s "checking whether C++ compiler accepts $flag... " >&6; }
10158  if eval test \${$as_CACHEVAR+y}
10159  then :
10160    printf %s "(cached) " >&6
10161  else $as_nop
10162  
10163    ax_check_save_flags=$CXXFLAGS
10164    CXXFLAGS="$CXXFLAGS ${ax_compiler_flags_test} $flag"
10165    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166  /* end confdefs.h.  */
10167  
10168  int
10169  main (void)
10170  {
10171  
10172    ;
10173    return 0;
10174  }
10175  _ACEOF
10176  if ac_fn_cxx_try_compile "$LINENO"
10177  then :
10178    eval "$as_CACHEVAR=yes"
10179  else $as_nop
10180    eval "$as_CACHEVAR=no"
10181  fi
10182  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10183    CXXFLAGS=$ax_check_save_flags
10184  fi
10185  eval ac_res=\$$as_CACHEVAR
10186  	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10187  printf "%s\n" "$ac_res" >&6; }
10188  if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
10189  then :
10190  
10191  if test ${WARN_CXXFLAGS+y}
10192  then :
10193  
10194    case " $WARN_CXXFLAGS " in #(
10195    *" $flag "*) :
10196      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
10197    (: WARN_CXXFLAGS already contains $flag) 2>&5
10198    ac_status=$?
10199    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200    test $ac_status = 0; } ;; #(
10201    *) :
10202  
10203       as_fn_append WARN_CXXFLAGS " $flag"
10204       { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10205    (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10206    ac_status=$?
10207    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10208    test $ac_status = 0; }
10209       ;;
10210  esac
10211  
10212  else $as_nop
10213  
10214    WARN_CXXFLAGS=$flag
10215    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10216    (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10217    ac_status=$?
10218    printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10219    test $ac_status = 0; }
10220  
10221  fi
10222  
10223  else $as_nop
10224    :
10225  fi
10226  
10227  done
10228  
10229  as_fn_append WARN_CXXFLAGS " -Werror"
10230  ac_ext=c
10231  ac_cpp='$CPP $CPPFLAGS'
10232  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234  ac_compiler_gnu=$ac_cv_c_compiler_gnu
10235  
10236  
10237  
10238  
10239  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC defined in fcntl.h" >&5
10240  printf %s "checking for O_CLOEXEC defined in fcntl.h... " >&6; }
10241  if test ${ac_cv_defined_O_CLOEXEC_fcntl_h+y}
10242  then :
10243    printf %s "(cached) " >&6
10244  else $as_nop
10245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246  /* end confdefs.h.  */
10247  #include <fcntl.h>
10248  int
10249  main (void)
10250  {
10251  
10252    #ifdef O_CLOEXEC
10253    int ok;
10254    #else
10255    choke me
10256    #endif
10257  
10258    ;
10259    return 0;
10260  }
10261  _ACEOF
10262  if ac_fn_c_try_compile "$LINENO"
10263  then :
10264    ac_cv_defined_O_CLOEXEC_fcntl_h=yes
10265  else $as_nop
10266    ac_cv_defined_O_CLOEXEC_fcntl_h=no
10267  fi
10268  rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10269  fi
10270  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_O_CLOEXEC_fcntl_h" >&5
10271  printf "%s\n" "$ac_cv_defined_O_CLOEXEC_fcntl_h" >&6; }
10272  if test $ac_cv_defined_O_CLOEXEC_fcntl_h != "no"
10273  then :
10274  
10275  else $as_nop
10276  
10277  printf "%s\n" "#define O_CLOEXEC 0" >>confdefs.h
10278  
10279  fi
10280  
10281  # Only build Linux client libs when compiling for Linux
10282  case $host in
10283    *-*-linux* | *-android* )
10284      LINUX_HOST=true
10285      ;;
10286  esac
10287   if test x$LINUX_HOST = xtrue; then
10288    LINUX_HOST_TRUE=
10289    LINUX_HOST_FALSE='#'
10290  else
10291    LINUX_HOST_TRUE='#'
10292    LINUX_HOST_FALSE=
10293  fi
10294  
10295  
10296  # Only use Android support headers when compiling for Android
10297  case $host in
10298    *-android*)
10299      ANDROID_HOST=true
10300      ;;
10301  esac
10302   if test x$ANDROID_HOST = xtrue; then
10303    ANDROID_HOST_TRUE=
10304    ANDROID_HOST_FALSE='#'
10305  else
10306    ANDROID_HOST_TRUE='#'
10307    ANDROID_HOST_FALSE=
10308  fi
10309  
10310  
10311  # Some tools (like mac ones) only support x86 currently.
10312  case $host_cpu in
10313    i?86|x86_64)
10314      X86_HOST=true
10315      ;;
10316  esac
10317   if test x$X86_HOST = xtrue; then
10318    X86_HOST_TRUE=
10319    X86_HOST_FALSE='#'
10320  else
10321    X86_HOST_TRUE='#'
10322    X86_HOST_FALSE=
10323  fi
10324  
10325  
10326  # Check whether --enable-processor was given.
10327  if test ${enable_processor+y}
10328  then :
10329    enableval=$enable_processor;
10330  else $as_nop
10331    enable_processor=yes
10332  fi
10333  
10334   if test "x$enable_processor" != xyes; then
10335    DISABLE_PROCESSOR_TRUE=
10336    DISABLE_PROCESSOR_FALSE='#'
10337  else
10338    DISABLE_PROCESSOR_TRUE='#'
10339    DISABLE_PROCESSOR_FALSE=
10340  fi
10341  
10342  
10343  # Check whether --enable-tools was given.
10344  if test ${enable_tools+y}
10345  then :
10346    enableval=$enable_tools;
10347  else $as_nop
10348    enable_tools=yes
10349  fi
10350  
10351   if test "x$enable_tools" != xyes; then
10352    DISABLE_TOOLS_TRUE=
10353    DISABLE_TOOLS_FALSE='#'
10354  else
10355    DISABLE_TOOLS_TRUE='#'
10356    DISABLE_TOOLS_FALSE=
10357  fi
10358  
10359  
10360  if test x$LINUX_HOST = xfalse -a "x$enable_processor" != xyes -a "x$enable_tools" != xyes; then
10361    as_fn_error $? "--disable-processor and --disable-tools were specified, and not building for Linux. Nothing to build!" "$LINENO" 5
10362  fi
10363  
10364  # Check whether --enable-system-test-libs was given.
10365  if test ${enable_system_test_libs+y}
10366  then :
10367    enableval=$enable_system_test_libs;
10368  else $as_nop
10369    enable_system_test_libs=no
10370  fi
10371  
10372   if test "x$enable_system_test_libs" = xyes; then
10373    SYSTEM_TEST_LIBS_TRUE=
10374    SYSTEM_TEST_LIBS_FALSE='#'
10375  else
10376    SYSTEM_TEST_LIBS_TRUE='#'
10377    SYSTEM_TEST_LIBS_FALSE=
10378  fi
10379  
10380  
10381  
10382  
10383  
10384  
10385  if test "x$enable_system_test_libs" = xyes; then
10386    : "${GMOCK_CFLAGS:=-pthread}"
10387    : "${GMOCK_LIBS:=-lgmock -lgtest -pthread -lpthread}"
10388    : "${GTEST_CFLAGS:=-pthread}"
10389    : "${GTEST_LIBS:=-lgtest -pthread -lpthread}"
10390  fi
10391  
10392  # Check whether --enable-selftest was given.
10393  if test ${enable_selftest+y}
10394  then :
10395    enableval=$enable_selftest;
10396  else $as_nop
10397    enable_selftest=no
10398  fi
10399  
10400   if test "x$enable_selftest" = xyes; then
10401    SELFTEST_TRUE=
10402    SELFTEST_FALSE='#'
10403  else
10404    SELFTEST_TRUE='#'
10405    SELFTEST_FALSE=
10406  fi
10407  
10408  
10409  
10410  # Check whether --with-rustc-demangle was given.
10411  if test ${with_rustc_demangle+y}
10412  then :
10413    withval=$with_rustc_demangle;
10414  else $as_nop
10415    with_rustc_demangle=no
10416  fi
10417  
10418  
10419  RUSTC_DEMANGLE_BASE_CFLAGS="-DHAVE_RUSTC_DEMANGLE"
10420  RUSTC_DEMANGLE_BASE_LIBS="-lrustc_demangle -lpthread -ldl"
10421  
10422  if test "x${with_rustc_demangle}" != xno; then
10423    if ! test -f "${with_rustc_demangle}/Cargo.toml"; then
10424      as_fn_error $? "You must pass the path to the rustc-demangle crate for --with-rustc-demangle" "$LINENO" 5
10425    fi
10426    RUSTC_DEMANGLE_CFLAGS="-I${with_rustc_demangle}/crates/capi/include ${RUSTC_DEMANGLE_BASE_CFLAGS}"
10427    RUSTC_DEMANGLE_LIBS="-L${with_rustc_demangle}/target/release ${RUSTC_DEMANGLE_BASE_LIBS}"
10428  fi
10429  
10430  # Check whether --enable-system-rustc-demangle was given.
10431  if test ${enable_system_rustc_demangle+y}
10432  then :
10433    enableval=$enable_system_rustc_demangle;
10434  else $as_nop
10435    enable_system_rustc_demangle=no
10436  fi
10437  
10438  
10439  if test "x${enable_system_rustc_demangle}" != xno; then
10440    if test "x${with_rustc_demangle}" != xno; then
10441      as_fn_error $? "--enable-system-rustc-demangle and --with-rustc-demangle are mutually exclusive." "$LINENO" 5
10442    fi
10443  
10444    RUSTC_DEMANGLE_CFLAGS="${RUSTC_DEMANGLE_BASE_CFLAGS}"
10445    RUSTC_DEMANGLE_LIBS="${RUSTC_DEMANGLE_BASE_LIBS}"
10446  
10447    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustc_demangle in -lrustc_demangle" >&5
10448  printf %s "checking for rustc_demangle in -lrustc_demangle... " >&6; }
10449  if test ${ac_cv_lib_rustc_demangle_rustc_demangle+y}
10450  then :
10451    printf %s "(cached) " >&6
10452  else $as_nop
10453    ac_check_lib_save_LIBS=$LIBS
10454  LIBS="-lrustc_demangle $RUSTC_DEMANGLE_LIBS $LIBS"
10455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456  /* end confdefs.h.  */
10457  
10458  /* Override any GCC internal prototype to avoid an error.
10459     Use char because int might match the return type of a GCC
10460     builtin and then its argument prototype would still apply.  */
10461  char rustc_demangle ();
10462  int
10463  main (void)
10464  {
10465  return rustc_demangle ();
10466    ;
10467    return 0;
10468  }
10469  _ACEOF
10470  if ac_fn_c_try_link "$LINENO"
10471  then :
10472    ac_cv_lib_rustc_demangle_rustc_demangle=yes
10473  else $as_nop
10474    ac_cv_lib_rustc_demangle_rustc_demangle=no
10475  fi
10476  rm -f core conftest.err conftest.$ac_objext conftest.beam \
10477      conftest$ac_exeext conftest.$ac_ext
10478  LIBS=$ac_check_lib_save_LIBS
10479  fi
10480  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustc_demangle_rustc_demangle" >&5
10481  printf "%s\n" "$ac_cv_lib_rustc_demangle_rustc_demangle" >&6; }
10482  if test "x$ac_cv_lib_rustc_demangle_rustc_demangle" = xyes
10483  then :
10484    printf "%s\n" "#define HAVE_LIBRUSTC_DEMANGLE 1" >>confdefs.h
10485  
10486    LIBS="-lrustc_demangle $LIBS"
10487  
10488  else $as_nop
10489    as_fn_error $? "librustc_demangle.a must be present when --enable-system-rustc-demangle is specified" "$LINENO" 5
10490  fi
10491  
10492           for ac_header in rustc_demangle.h
10493  do :
10494    ac_fn_c_check_header_compile "$LINENO" "rustc_demangle.h" "ac_cv_header_rustc_demangle_h" "$ac_includes_default"
10495  if test "x$ac_cv_header_rustc_demangle_h" = xyes
10496  then :
10497    printf "%s\n" "#define HAVE_RUSTC_DEMANGLE_H 1" >>confdefs.h
10498  
10499  else $as_nop
10500    as_fn_error $? "rustc_demangle.h must be present when --enable-system-rustc-demangle is specified" "$LINENO" 5
10501  fi
10502  
10503  done
10504  fi
10505  
10506  
10507  
10508  
10509  # Check whether --enable-zstd was given.
10510  if test ${enable_zstd+y}
10511  then :
10512    enableval=$enable_zstd;
10513  else $as_nop
10514    enable_zstd=no
10515  fi
10516  
10517  if test "x${enable_zstd}" != xno; then
10518    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_decompress in -lzstd" >&5
10519  printf %s "checking for ZSTD_decompress in -lzstd... " >&6; }
10520  if test ${ac_cv_lib_zstd_ZSTD_decompress+y}
10521  then :
10522    printf %s "(cached) " >&6
10523  else $as_nop
10524    ac_check_lib_save_LIBS=$LIBS
10525  LIBS="-lzstd  $LIBS"
10526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527  /* end confdefs.h.  */
10528  
10529  /* Override any GCC internal prototype to avoid an error.
10530     Use char because int might match the return type of a GCC
10531     builtin and then its argument prototype would still apply.  */
10532  char ZSTD_decompress ();
10533  int
10534  main (void)
10535  {
10536  return ZSTD_decompress ();
10537    ;
10538    return 0;
10539  }
10540  _ACEOF
10541  if ac_fn_c_try_link "$LINENO"
10542  then :
10543    ac_cv_lib_zstd_ZSTD_decompress=yes
10544  else $as_nop
10545    ac_cv_lib_zstd_ZSTD_decompress=no
10546  fi
10547  rm -f core conftest.err conftest.$ac_objext conftest.beam \
10548      conftest$ac_exeext conftest.$ac_ext
10549  LIBS=$ac_check_lib_save_LIBS
10550  fi
10551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_decompress" >&5
10552  printf "%s\n" "$ac_cv_lib_zstd_ZSTD_decompress" >&6; }
10553  if test "x$ac_cv_lib_zstd_ZSTD_decompress" = xyes
10554  then :
10555    printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
10556  
10557    LIBS="-lzstd $LIBS"
10558  
10559  else $as_nop
10560    as_fn_error $? "zstd library not found." "$LINENO" 5
10561  fi
10562  
10563    ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
10564  if test "x$ac_cv_header_zstd_h" = xyes
10565  then :
10566  
10567  else $as_nop
10568    as_fn_error $? "zstd header not found." "$LINENO" 5
10569  fi
10570  
10571  fi
10572  
10573  
10574  # Check whether --with-tests-as-root was given.
10575  if test ${with_tests_as_root+y}
10576  then :
10577    withval=$with_tests_as_root;
10578  else $as_nop
10579    with_tests_as_root=no
10580  fi
10581  
10582   if test "x$with_tests_as_root" = xyes; then
10583    TESTS_AS_ROOT_TRUE=
10584    TESTS_AS_ROOT_FALSE='#'
10585  else
10586    TESTS_AS_ROOT_TRUE='#'
10587    TESTS_AS_ROOT_FALSE=
10588  fi
10589  
10590  
10591  ac_config_files="$ac_config_files breakpad.pc breakpad-client.pc Makefile"
10592  
10593  
10594  cat >confcache <<\_ACEOF
10595  # This file is a shell script that caches the results of configure
10596  # tests run on this system so they can be shared between configure
10597  # scripts and configure runs, see configure's option --config-cache.
10598  # It is not useful on other systems.  If it contains results you don't
10599  # want to keep, you may remove or edit it.
10600  #
10601  # config.status only pays attention to the cache file if you give it
10602  # the --recheck option to rerun configure.
10603  #
10604  # `ac_cv_env_foo' variables (set or unset) will be overridden when
10605  # loading this file, other *unset* `ac_cv_foo' will be assigned the
10606  # following values.
10607  
10608  _ACEOF
10609  
10610  # The following way of writing the cache mishandles newlines in values,
10611  # but we know of no workaround that is simple, portable, and efficient.
10612  # So, we kill variables containing newlines.
10613  # Ultrix sh set writes to stderr and can't be redirected directly,
10614  # and sets the high bit in the cache file unless we assign to the vars.
10615  (
10616    for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10617      eval ac_val=\$$ac_var
10618      case $ac_val in #(
10619      *${as_nl}*)
10620        case $ac_var in #(
10621        *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10622  printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10623        esac
10624        case $ac_var in #(
10625        _ | IFS | as_nl) ;; #(
10626        BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10627        *) { eval $ac_var=; unset $ac_var;} ;;
10628        esac ;;
10629      esac
10630    done
10631  
10632    (set) 2>&1 |
10633      case $as_nl`(ac_space=' '; set) 2>&1` in #(
10634      *${as_nl}ac_space=\ *)
10635        # `set' does not quote correctly, so add quotes: double-quote
10636        # substitution turns \\\\ into \\, and sed turns \\ into \.
10637        sed -n \
10638  	"s/'/'\\\\''/g;
10639  	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10640        ;; #(
10641      *)
10642        # `set' quotes correctly as required by POSIX, so do not add quotes.
10643        sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10644        ;;
10645      esac |
10646      sort
10647  ) |
10648    sed '
10649       /^ac_cv_env_/b end
10650       t clear
10651       :clear
10652       s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
10653       t end
10654       s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10655       :end' >>confcache
10656  if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10657    if test -w "$cache_file"; then
10658      if test "x$cache_file" != "x/dev/null"; then
10659        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10660  printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
10661        if test ! -f "$cache_file" || test -h "$cache_file"; then
10662  	cat confcache >"$cache_file"
10663        else
10664          case $cache_file in #(
10665          */* | ?:*)
10666  	  mv -f confcache "$cache_file"$$ &&
10667  	  mv -f "$cache_file"$$ "$cache_file" ;; #(
10668          *)
10669  	  mv -f confcache "$cache_file" ;;
10670  	esac
10671        fi
10672      fi
10673    else
10674      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10675  printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
10676    fi
10677  fi
10678  rm -f confcache
10679  
10680  test "x$prefix" = xNONE && prefix=$ac_default_prefix
10681  # Let make expand exec_prefix.
10682  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10683  
10684  DEFS=-DHAVE_CONFIG_H
10685  
10686  ac_libobjs=
10687  ac_ltlibobjs=
10688  U=
10689  for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10690    # 1. Remove the extension, and $U if already installed.
10691    ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10692    ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
10693    # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10694    #    will be set to the directory where LIBOBJS objects are built.
10695    as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10696    as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10697  done
10698  LIBOBJS=$ac_libobjs
10699  
10700  LTLIBOBJS=$ac_ltlibobjs
10701  
10702  
10703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10704  printf %s "checking that generated files are newer than configure... " >&6; }
10705     if test -n "$am_sleep_pid"; then
10706       # Hide warnings about reused PIDs.
10707       wait $am_sleep_pid 2>/dev/null
10708     fi
10709     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
10710  printf "%s\n" "done" >&6; }
10711   if test -n "$EXEEXT"; then
10712    am__EXEEXT_TRUE=
10713    am__EXEEXT_FALSE='#'
10714  else
10715    am__EXEEXT_TRUE='#'
10716    am__EXEEXT_FALSE=
10717  fi
10718  
10719  if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10720    as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10721  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10722  fi
10723  if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10724    as_fn_error $? "conditional \"AMDEP\" was never defined.
10725  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10726  fi
10727  if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10728    as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10729  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10730  fi
10731  if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
10732    as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
10733  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10734  fi
10735  if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10736    as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10737  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10738  fi
10739  if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10740    as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
10741  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10742  fi
10743  if test -z "${HAVE_GETCONTEXT_TRUE}" && test -z "${HAVE_GETCONTEXT_FALSE}"; then
10744    as_fn_error $? "conditional \"HAVE_GETCONTEXT\" was never defined.
10745  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10746  fi
10747  if test -z "${HAVE_MEMFD_CREATE_TRUE}" && test -z "${HAVE_MEMFD_CREATE_FALSE}"; then
10748    as_fn_error $? "conditional \"HAVE_MEMFD_CREATE\" was never defined.
10749  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10750  fi
10751  if test -z "${LINUX_HOST_TRUE}" && test -z "${LINUX_HOST_FALSE}"; then
10752    as_fn_error $? "conditional \"LINUX_HOST\" was never defined.
10753  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10754  fi
10755  if test -z "${ANDROID_HOST_TRUE}" && test -z "${ANDROID_HOST_FALSE}"; then
10756    as_fn_error $? "conditional \"ANDROID_HOST\" was never defined.
10757  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10758  fi
10759  if test -z "${X86_HOST_TRUE}" && test -z "${X86_HOST_FALSE}"; then
10760    as_fn_error $? "conditional \"X86_HOST\" was never defined.
10761  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10762  fi
10763  if test -z "${DISABLE_PROCESSOR_TRUE}" && test -z "${DISABLE_PROCESSOR_FALSE}"; then
10764    as_fn_error $? "conditional \"DISABLE_PROCESSOR\" was never defined.
10765  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10766  fi
10767  if test -z "${DISABLE_TOOLS_TRUE}" && test -z "${DISABLE_TOOLS_FALSE}"; then
10768    as_fn_error $? "conditional \"DISABLE_TOOLS\" was never defined.
10769  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10770  fi
10771  if test -z "${SYSTEM_TEST_LIBS_TRUE}" && test -z "${SYSTEM_TEST_LIBS_FALSE}"; then
10772    as_fn_error $? "conditional \"SYSTEM_TEST_LIBS\" was never defined.
10773  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10774  fi
10775  if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then
10776    as_fn_error $? "conditional \"SELFTEST\" was never defined.
10777  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10778  fi
10779  if test -z "${TESTS_AS_ROOT_TRUE}" && test -z "${TESTS_AS_ROOT_FALSE}"; then
10780    as_fn_error $? "conditional \"TESTS_AS_ROOT\" was never defined.
10781  Usually this means the macro was only invoked conditionally." "$LINENO" 5
10782  fi
10783  
10784  : "${CONFIG_STATUS=./config.status}"
10785  ac_write_fail=0
10786  ac_clean_files_save=$ac_clean_files
10787  ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10789  printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
10790  as_write_fail=0
10791  cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10792  #! $SHELL
10793  # Generated by $as_me.
10794  # Run this file to recreate the current configuration.
10795  # Compiler output produced by configure, useful for debugging
10796  # configure, is in config.log if it exists.
10797  
10798  debug=false
10799  ac_cs_recheck=false
10800  ac_cs_silent=false
10801  
10802  SHELL=\${CONFIG_SHELL-$SHELL}
10803  export SHELL
10804  _ASEOF
10805  cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10806  ## -------------------- ##
10807  ## M4sh Initialization. ##
10808  ## -------------------- ##
10809  
10810  # Be more Bourne compatible
10811  DUALCASE=1; export DUALCASE # for MKS sh
10812  as_nop=:
10813  if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
10814  then :
10815    emulate sh
10816    NULLCMD=:
10817    # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10818    # is contrary to our usage.  Disable this feature.
10819    alias -g '${1+"$@"}'='"$@"'
10820    setopt NO_GLOB_SUBST
10821  else $as_nop
10822    case `(set -o) 2>/dev/null` in #(
10823    *posix*) :
10824      set -o posix ;; #(
10825    *) :
10826       ;;
10827  esac
10828  fi
10829  
10830  
10831  
10832  # Reset variables that may have inherited troublesome values from
10833  # the environment.
10834  
10835  # IFS needs to be set, to space, tab, and newline, in precisely that order.
10836  # (If _AS_PATH_WALK were called with IFS unset, it would have the
10837  # side effect of setting IFS to empty, thus disabling word splitting.)
10838  # Quoting is to prevent editors from complaining about space-tab.
10839  as_nl='
10840  '
10841  export as_nl
10842  IFS=" ""	$as_nl"
10843  
10844  PS1='$ '
10845  PS2='> '
10846  PS4='+ '
10847  
10848  # Ensure predictable behavior from utilities with locale-dependent output.
10849  LC_ALL=C
10850  export LC_ALL
10851  LANGUAGE=C
10852  export LANGUAGE
10853  
10854  # We cannot yet rely on "unset" to work, but we need these variables
10855  # to be unset--not just set to an empty or harmless value--now, to
10856  # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
10857  # also avoids known problems related to "unset" and subshell syntax
10858  # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
10859  for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
10860  do eval test \${$as_var+y} \
10861    && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10862  done
10863  
10864  # Ensure that fds 0, 1, and 2 are open.
10865  if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
10866  if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
10867  if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
10868  
10869  # The user is always right.
10870  if ${PATH_SEPARATOR+false} :; then
10871    PATH_SEPARATOR=:
10872    (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10873      (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10874        PATH_SEPARATOR=';'
10875    }
10876  fi
10877  
10878  
10879  # Find who we are.  Look in the path if we contain no directory separator.
10880  as_myself=
10881  case $0 in #((
10882    *[\\/]* ) as_myself=$0 ;;
10883    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884  for as_dir in $PATH
10885  do
10886    IFS=$as_save_IFS
10887    case $as_dir in #(((
10888      '') as_dir=./ ;;
10889      */) ;;
10890      *) as_dir=$as_dir/ ;;
10891    esac
10892      test -r "$as_dir$0" && as_myself=$as_dir$0 && break
10893    done
10894  IFS=$as_save_IFS
10895  
10896       ;;
10897  esac
10898  # We did not find ourselves, most probably we were run as `sh COMMAND'
10899  # in which case we are not to be found in the path.
10900  if test "x$as_myself" = x; then
10901    as_myself=$0
10902  fi
10903  if test ! -f "$as_myself"; then
10904    printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10905    exit 1
10906  fi
10907  
10908  
10909  
10910  # as_fn_error STATUS ERROR [LINENO LOG_FD]
10911  # ----------------------------------------
10912  # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10913  # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10914  # script with STATUS, using 1 if that was 0.
10915  as_fn_error ()
10916  {
10917    as_status=$1; test $as_status -eq 0 && as_status=1
10918    if test "$4"; then
10919      as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10920      printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10921    fi
10922    printf "%s\n" "$as_me: error: $2" >&2
10923    as_fn_exit $as_status
10924  } # as_fn_error
10925  
10926  
10927  
10928  # as_fn_set_status STATUS
10929  # -----------------------
10930  # Set $? to STATUS, without forking.
10931  as_fn_set_status ()
10932  {
10933    return $1
10934  } # as_fn_set_status
10935  
10936  # as_fn_exit STATUS
10937  # -----------------
10938  # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10939  as_fn_exit ()
10940  {
10941    set +e
10942    as_fn_set_status $1
10943    exit $1
10944  } # as_fn_exit
10945  
10946  # as_fn_unset VAR
10947  # ---------------
10948  # Portably unset VAR.
10949  as_fn_unset ()
10950  {
10951    { eval $1=; unset $1;}
10952  }
10953  as_unset=as_fn_unset
10954  
10955  # as_fn_append VAR VALUE
10956  # ----------------------
10957  # Append the text in VALUE to the end of the definition contained in VAR. Take
10958  # advantage of any shell optimizations that allow amortized linear growth over
10959  # repeated appends, instead of the typical quadratic growth present in naive
10960  # implementations.
10961  if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
10962  then :
10963    eval 'as_fn_append ()
10964    {
10965      eval $1+=\$2
10966    }'
10967  else $as_nop
10968    as_fn_append ()
10969    {
10970      eval $1=\$$1\$2
10971    }
10972  fi # as_fn_append
10973  
10974  # as_fn_arith ARG...
10975  # ------------------
10976  # Perform arithmetic evaluation on the ARGs, and store the result in the
10977  # global $as_val. Take advantage of shells that can avoid forks. The arguments
10978  # must be portable across $(()) and expr.
10979  if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
10980  then :
10981    eval 'as_fn_arith ()
10982    {
10983      as_val=$(( $* ))
10984    }'
10985  else $as_nop
10986    as_fn_arith ()
10987    {
10988      as_val=`expr "$@" || test $? -eq 1`
10989    }
10990  fi # as_fn_arith
10991  
10992  
10993  if expr a : '\(a\)' >/dev/null 2>&1 &&
10994     test "X`expr 00001 : '.*\(...\)'`" = X001; then
10995    as_expr=expr
10996  else
10997    as_expr=false
10998  fi
10999  
11000  if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11001    as_basename=basename
11002  else
11003    as_basename=false
11004  fi
11005  
11006  if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11007    as_dirname=dirname
11008  else
11009    as_dirname=false
11010  fi
11011  
11012  as_me=`$as_basename -- "$0" ||
11013  $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11014  	 X"$0" : 'X\(//\)$' \| \
11015  	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11016  printf "%s\n" X/"$0" |
11017      sed '/^.*\/\([^/][^/]*\)\/*$/{
11018  	    s//\1/
11019  	    q
11020  	  }
11021  	  /^X\/\(\/\/\)$/{
11022  	    s//\1/
11023  	    q
11024  	  }
11025  	  /^X\/\(\/\).*/{
11026  	    s//\1/
11027  	    q
11028  	  }
11029  	  s/.*/./; q'`
11030  
11031  # Avoid depending upon Character Ranges.
11032  as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11033  as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11034  as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11035  as_cr_digits='0123456789'
11036  as_cr_alnum=$as_cr_Letters$as_cr_digits
11037  
11038  
11039  # Determine whether it's possible to make 'echo' print without a newline.
11040  # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11041  # for compatibility with existing Makefiles.
11042  ECHO_C= ECHO_N= ECHO_T=
11043  case `echo -n x` in #(((((
11044  -n*)
11045    case `echo 'xy\c'` in
11046    *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11047    xy)  ECHO_C='\c';;
11048    *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11049         ECHO_T='	';;
11050    esac;;
11051  *)
11052    ECHO_N='-n';;
11053  esac
11054  
11055  # For backward compatibility with old third-party macros, we provide
11056  # the shell variables $as_echo and $as_echo_n.  New code should use
11057  # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11058  as_echo='printf %s\n'
11059  as_echo_n='printf %s'
11060  
11061  rm -f conf$$ conf$$.exe conf$$.file
11062  if test -d conf$$.dir; then
11063    rm -f conf$$.dir/conf$$.file
11064  else
11065    rm -f conf$$.dir
11066    mkdir conf$$.dir 2>/dev/null
11067  fi
11068  if (echo >conf$$.file) 2>/dev/null; then
11069    if ln -s conf$$.file conf$$ 2>/dev/null; then
11070      as_ln_s='ln -s'
11071      # ... but there are two gotchas:
11072      # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11073      # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11074      # In both cases, we have to default to `cp -pR'.
11075      ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11076        as_ln_s='cp -pR'
11077    elif ln conf$$.file conf$$ 2>/dev/null; then
11078      as_ln_s=ln
11079    else
11080      as_ln_s='cp -pR'
11081    fi
11082  else
11083    as_ln_s='cp -pR'
11084  fi
11085  rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11086  rmdir conf$$.dir 2>/dev/null
11087  
11088  
11089  # as_fn_mkdir_p
11090  # -------------
11091  # Create "$as_dir" as a directory, including parents if necessary.
11092  as_fn_mkdir_p ()
11093  {
11094  
11095    case $as_dir in #(
11096    -*) as_dir=./$as_dir;;
11097    esac
11098    test -d "$as_dir" || eval $as_mkdir_p || {
11099      as_dirs=
11100      while :; do
11101        case $as_dir in #(
11102        *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11103        *) as_qdir=$as_dir;;
11104        esac
11105        as_dirs="'$as_qdir' $as_dirs"
11106        as_dir=`$as_dirname -- "$as_dir" ||
11107  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11108  	 X"$as_dir" : 'X\(//\)[^/]' \| \
11109  	 X"$as_dir" : 'X\(//\)$' \| \
11110  	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11111  printf "%s\n" X"$as_dir" |
11112      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11113  	    s//\1/
11114  	    q
11115  	  }
11116  	  /^X\(\/\/\)[^/].*/{
11117  	    s//\1/
11118  	    q
11119  	  }
11120  	  /^X\(\/\/\)$/{
11121  	    s//\1/
11122  	    q
11123  	  }
11124  	  /^X\(\/\).*/{
11125  	    s//\1/
11126  	    q
11127  	  }
11128  	  s/.*/./; q'`
11129        test -d "$as_dir" && break
11130      done
11131      test -z "$as_dirs" || eval "mkdir $as_dirs"
11132    } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11133  
11134  
11135  } # as_fn_mkdir_p
11136  if mkdir -p . 2>/dev/null; then
11137    as_mkdir_p='mkdir -p "$as_dir"'
11138  else
11139    test -d ./-p && rmdir ./-p
11140    as_mkdir_p=false
11141  fi
11142  
11143  
11144  # as_fn_executable_p FILE
11145  # -----------------------
11146  # Test if FILE is an executable regular file.
11147  as_fn_executable_p ()
11148  {
11149    test -f "$1" && test -x "$1"
11150  } # as_fn_executable_p
11151  as_test_x='test -x'
11152  as_executable_p=as_fn_executable_p
11153  
11154  # Sed expression to map a string onto a valid CPP name.
11155  as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11156  
11157  # Sed expression to map a string onto a valid variable name.
11158  as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11159  
11160  
11161  exec 6>&1
11162  ## ----------------------------------- ##
11163  ## Main body of $CONFIG_STATUS script. ##
11164  ## ----------------------------------- ##
11165  _ASEOF
11166  test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11167  
11168  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11169  # Save the log message, to keep $0 and so on meaningful, and to
11170  # report actual input values of CONFIG_FILES etc. instead of their
11171  # values after options handling.
11172  ac_log="
11173  This file was extended by breakpad $as_me 0.1, which was
11174  generated by GNU Autoconf 2.71.  Invocation command line was
11175  
11176    CONFIG_FILES    = $CONFIG_FILES
11177    CONFIG_HEADERS  = $CONFIG_HEADERS
11178    CONFIG_LINKS    = $CONFIG_LINKS
11179    CONFIG_COMMANDS = $CONFIG_COMMANDS
11180    $ $0 $@
11181  
11182  on `(hostname || uname -n) 2>/dev/null | sed 1q`
11183  "
11184  
11185  _ACEOF
11186  
11187  case $ac_config_files in *"
11188  "*) set x $ac_config_files; shift; ac_config_files=$*;;
11189  esac
11190  
11191  case $ac_config_headers in *"
11192  "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11193  esac
11194  
11195  
11196  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11197  # Files that config.status was made for.
11198  config_files="$ac_config_files"
11199  config_headers="$ac_config_headers"
11200  config_commands="$ac_config_commands"
11201  
11202  _ACEOF
11203  
11204  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11205  ac_cs_usage="\
11206  \`$as_me' instantiates files and other configuration actions
11207  from templates according to the current configuration.  Unless the files
11208  and actions are specified as TAGs, all are instantiated by default.
11209  
11210  Usage: $0 [OPTION]... [TAG]...
11211  
11212    -h, --help       print this help, then exit
11213    -V, --version    print version number and configuration settings, then exit
11214        --config     print configuration, then exit
11215    -q, --quiet, --silent
11216                     do not print progress messages
11217    -d, --debug      don't remove temporary files
11218        --recheck    update $as_me by reconfiguring in the same conditions
11219        --file=FILE[:TEMPLATE]
11220                     instantiate the configuration file FILE
11221        --header=FILE[:TEMPLATE]
11222                     instantiate the configuration header FILE
11223  
11224  Configuration files:
11225  $config_files
11226  
11227  Configuration headers:
11228  $config_headers
11229  
11230  Configuration commands:
11231  $config_commands
11232  
11233  Report bugs to <google-breakpad-dev@googlegroups.com>."
11234  
11235  _ACEOF
11236  ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11237  ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11238  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11239  ac_cs_config='$ac_cs_config_escaped'
11240  ac_cs_version="\\
11241  breakpad config.status 0.1
11242  configured by $0, generated by GNU Autoconf 2.71,
11243    with options \\"\$ac_cs_config\\"
11244  
11245  Copyright (C) 2021 Free Software Foundation, Inc.
11246  This config.status script is free software; the Free Software Foundation
11247  gives unlimited permission to copy, distribute and modify it."
11248  
11249  ac_pwd='$ac_pwd'
11250  srcdir='$srcdir'
11251  INSTALL='$INSTALL'
11252  MKDIR_P='$MKDIR_P'
11253  AWK='$AWK'
11254  test -n "\$AWK" || AWK=awk
11255  _ACEOF
11256  
11257  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11258  # The default lists apply if the user does not specify any file.
11259  ac_need_defaults=:
11260  while test $# != 0
11261  do
11262    case $1 in
11263    --*=?*)
11264      ac_option=`expr "X$1" : 'X\([^=]*\)='`
11265      ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11266      ac_shift=:
11267      ;;
11268    --*=)
11269      ac_option=`expr "X$1" : 'X\([^=]*\)='`
11270      ac_optarg=
11271      ac_shift=:
11272      ;;
11273    *)
11274      ac_option=$1
11275      ac_optarg=$2
11276      ac_shift=shift
11277      ;;
11278    esac
11279  
11280    case $ac_option in
11281    # Handling of the options.
11282    -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11283      ac_cs_recheck=: ;;
11284    --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11285      printf "%s\n" "$ac_cs_version"; exit ;;
11286    --config | --confi | --conf | --con | --co | --c )
11287      printf "%s\n" "$ac_cs_config"; exit ;;
11288    --debug | --debu | --deb | --de | --d | -d )
11289      debug=: ;;
11290    --file | --fil | --fi | --f )
11291      $ac_shift
11292      case $ac_optarg in
11293      *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11294      '') as_fn_error $? "missing file argument" ;;
11295      esac
11296      as_fn_append CONFIG_FILES " '$ac_optarg'"
11297      ac_need_defaults=false;;
11298    --header | --heade | --head | --hea )
11299      $ac_shift
11300      case $ac_optarg in
11301      *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11302      esac
11303      as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11304      ac_need_defaults=false;;
11305    --he | --h)
11306      # Conflict between --help and --header
11307      as_fn_error $? "ambiguous option: \`$1'
11308  Try \`$0 --help' for more information.";;
11309    --help | --hel | -h )
11310      printf "%s\n" "$ac_cs_usage"; exit ;;
11311    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11312    | -silent | --silent | --silen | --sile | --sil | --si | --s)
11313      ac_cs_silent=: ;;
11314  
11315    # This is an error.
11316    -*) as_fn_error $? "unrecognized option: \`$1'
11317  Try \`$0 --help' for more information." ;;
11318  
11319    *) as_fn_append ac_config_targets " $1"
11320       ac_need_defaults=false ;;
11321  
11322    esac
11323    shift
11324  done
11325  
11326  ac_configure_extra_args=
11327  
11328  if $ac_cs_silent; then
11329    exec 6>/dev/null
11330    ac_configure_extra_args="$ac_configure_extra_args --silent"
11331  fi
11332  
11333  _ACEOF
11334  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11335  if \$ac_cs_recheck; then
11336    set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11337    shift
11338    \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11339    CONFIG_SHELL='$SHELL'
11340    export CONFIG_SHELL
11341    exec "\$@"
11342  fi
11343  
11344  _ACEOF
11345  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11346  exec 5>>config.log
11347  {
11348    echo
11349    sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11350  ## Running $as_me. ##
11351  _ASBOX
11352    printf "%s\n" "$ac_log"
11353  } >&5
11354  
11355  _ACEOF
11356  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11357  #
11358  # INIT-COMMANDS
11359  #
11360  AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
11361  
11362  _ACEOF
11363  
11364  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11365  
11366  # Handling of arguments.
11367  for ac_config_target in $ac_config_targets
11368  do
11369    case $ac_config_target in
11370      "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
11371      "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11372      "breakpad.pc") CONFIG_FILES="$CONFIG_FILES breakpad.pc" ;;
11373      "breakpad-client.pc") CONFIG_FILES="$CONFIG_FILES breakpad-client.pc" ;;
11374      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11375  
11376    *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11377    esac
11378  done
11379  
11380  
11381  # If the user did not use the arguments to specify the items to instantiate,
11382  # then the envvar interface is used.  Set only those that are not.
11383  # We use the long form for the default assignment because of an extremely
11384  # bizarre bug on SunOS 4.1.3.
11385  if $ac_need_defaults; then
11386    test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
11387    test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
11388    test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
11389  fi
11390  
11391  # Have a temporary directory for convenience.  Make it in the build tree
11392  # simply because there is no reason against having it here, and in addition,
11393  # creating and moving files from /tmp can sometimes cause problems.
11394  # Hook for its removal unless debugging.
11395  # Note that there is a small window in which the directory will not be cleaned:
11396  # after its creation but before its name has been assigned to `$tmp'.
11397  $debug ||
11398  {
11399    tmp= ac_tmp=
11400    trap 'exit_status=$?
11401    : "${ac_tmp:=$tmp}"
11402    { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11403  ' 0
11404    trap 'as_fn_exit 1' 1 2 13 15
11405  }
11406  # Create a (secure) tmp directory for tmp files.
11407  
11408  {
11409    tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11410    test -d "$tmp"
11411  }  ||
11412  {
11413    tmp=./conf$$-$RANDOM
11414    (umask 077 && mkdir "$tmp")
11415  } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11416  ac_tmp=$tmp
11417  
11418  # Set up the scripts for CONFIG_FILES section.
11419  # No need to generate them if there are no CONFIG_FILES.
11420  # This happens for instance with `./config.status config.h'.
11421  if test -n "$CONFIG_FILES"; then
11422  
11423  
11424  ac_cr=`echo X | tr X '\015'`
11425  # On cygwin, bash can eat \r inside `` if the user requested igncr.
11426  # But we know of no other shell where ac_cr would be empty at this
11427  # point, so we can use a bashism as a fallback.
11428  if test "x$ac_cr" = x; then
11429    eval ac_cr=\$\'\\r\'
11430  fi
11431  ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11432  if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11433    ac_cs_awk_cr='\\r'
11434  else
11435    ac_cs_awk_cr=$ac_cr
11436  fi
11437  
11438  echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11439  _ACEOF
11440  
11441  
11442  {
11443    echo "cat >conf$$subs.awk <<_ACEOF" &&
11444    echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11445    echo "_ACEOF"
11446  } >conf$$subs.sh ||
11447    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11448  ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11449  ac_delim='%!_!# '
11450  for ac_last_try in false false false false false :; do
11451    . ./conf$$subs.sh ||
11452      as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11453  
11454    ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11455    if test $ac_delim_n = $ac_delim_num; then
11456      break
11457    elif $ac_last_try; then
11458      as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11459    else
11460      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11461    fi
11462  done
11463  rm -f conf$$subs.sh
11464  
11465  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11466  cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11467  _ACEOF
11468  sed -n '
11469  h
11470  s/^/S["/; s/!.*/"]=/
11471  p
11472  g
11473  s/^[^!]*!//
11474  :repl
11475  t repl
11476  s/'"$ac_delim"'$//
11477  t delim
11478  :nl
11479  h
11480  s/\(.\{148\}\)..*/\1/
11481  t more1
11482  s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11483  p
11484  n
11485  b repl
11486  :more1
11487  s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11488  p
11489  g
11490  s/.\{148\}//
11491  t nl
11492  :delim
11493  h
11494  s/\(.\{148\}\)..*/\1/
11495  t more2
11496  s/["\\]/\\&/g; s/^/"/; s/$/"/
11497  p
11498  b
11499  :more2
11500  s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11501  p
11502  g
11503  s/.\{148\}//
11504  t delim
11505  ' <conf$$subs.awk | sed '
11506  /^[^""]/{
11507    N
11508    s/\n//
11509  }
11510  ' >>$CONFIG_STATUS || ac_write_fail=1
11511  rm -f conf$$subs.awk
11512  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11513  _ACAWK
11514  cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11515    for (key in S) S_is_set[key] = 1
11516    FS = ""
11517  
11518  }
11519  {
11520    line = $ 0
11521    nfields = split(line, field, "@")
11522    substed = 0
11523    len = length(field[1])
11524    for (i = 2; i < nfields; i++) {
11525      key = field[i]
11526      keylen = length(key)
11527      if (S_is_set[key]) {
11528        value = S[key]
11529        line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11530        len += length(value) + length(field[++i])
11531        substed = 1
11532      } else
11533        len += 1 + keylen
11534    }
11535  
11536    print line
11537  }
11538  
11539  _ACAWK
11540  _ACEOF
11541  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11542  if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11543    sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11544  else
11545    cat
11546  fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11547    || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11548  _ACEOF
11549  
11550  # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11551  # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11552  # trailing colons and then remove the whole line if VPATH becomes empty
11553  # (actually we leave an empty line to preserve line numbers).
11554  if test "x$srcdir" = x.; then
11555    ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
11556  h
11557  s///
11558  s/^/:/
11559  s/[	 ]*$/:/
11560  s/:\$(srcdir):/:/g
11561  s/:\${srcdir}:/:/g
11562  s/:@srcdir@:/:/g
11563  s/^:*//
11564  s/:*$//
11565  x
11566  s/\(=[	 ]*\).*/\1/
11567  G
11568  s/\n//
11569  s/^[^=]*=[	 ]*$//
11570  }'
11571  fi
11572  
11573  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11574  fi # test -n "$CONFIG_FILES"
11575  
11576  # Set up the scripts for CONFIG_HEADERS section.
11577  # No need to generate them if there are no CONFIG_HEADERS.
11578  # This happens for instance with `./config.status Makefile'.
11579  if test -n "$CONFIG_HEADERS"; then
11580  cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11581  BEGIN {
11582  _ACEOF
11583  
11584  # Transform confdefs.h into an awk script `defines.awk', embedded as
11585  # here-document in config.status, that substitutes the proper values into
11586  # config.h.in to produce config.h.
11587  
11588  # Create a delimiter string that does not exist in confdefs.h, to ease
11589  # handling of long lines.
11590  ac_delim='%!_!# '
11591  for ac_last_try in false false :; do
11592    ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11593    if test -z "$ac_tt"; then
11594      break
11595    elif $ac_last_try; then
11596      as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11597    else
11598      ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11599    fi
11600  done
11601  
11602  # For the awk script, D is an array of macro values keyed by name,
11603  # likewise P contains macro parameters if any.  Preserve backslash
11604  # newline sequences.
11605  
11606  ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11607  sed -n '
11608  s/.\{148\}/&'"$ac_delim"'/g
11609  t rset
11610  :rset
11611  s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
11612  t def
11613  d
11614  :def
11615  s/\\$//
11616  t bsnl
11617  s/["\\]/\\&/g
11618  s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11619  D["\1"]=" \3"/p
11620  s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
11621  d
11622  :bsnl
11623  s/["\\]/\\&/g
11624  s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
11625  D["\1"]=" \3\\\\\\n"\\/p
11626  t cont
11627  s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11628  t cont
11629  d
11630  :cont
11631  n
11632  s/.\{148\}/&'"$ac_delim"'/g
11633  t clear
11634  :clear
11635  s/\\$//
11636  t bsnlc
11637  s/["\\]/\\&/g; s/^/"/; s/$/"/p
11638  d
11639  :bsnlc
11640  s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11641  b cont
11642  ' <confdefs.h | sed '
11643  s/'"$ac_delim"'/"\\\
11644  "/g' >>$CONFIG_STATUS || ac_write_fail=1
11645  
11646  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11647    for (key in D) D_is_set[key] = 1
11648    FS = ""
11649  }
11650  /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11651    line = \$ 0
11652    split(line, arg, " ")
11653    if (arg[1] == "#") {
11654      defundef = arg[2]
11655      mac1 = arg[3]
11656    } else {
11657      defundef = substr(arg[1], 2)
11658      mac1 = arg[2]
11659    }
11660    split(mac1, mac2, "(") #)
11661    macro = mac2[1]
11662    prefix = substr(line, 1, index(line, defundef) - 1)
11663    if (D_is_set[macro]) {
11664      # Preserve the white space surrounding the "#".
11665      print prefix "define", macro P[macro] D[macro]
11666      next
11667    } else {
11668      # Replace #undef with comments.  This is necessary, for example,
11669      # in the case of _POSIX_SOURCE, which is predefined and required
11670      # on some systems where configure will not decide to define it.
11671      if (defundef == "undef") {
11672        print "/*", prefix defundef, macro, "*/"
11673        next
11674      }
11675    }
11676  }
11677  { print }
11678  _ACAWK
11679  _ACEOF
11680  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11681    as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11682  fi # test -n "$CONFIG_HEADERS"
11683  
11684  
11685  eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
11686  shift
11687  for ac_tag
11688  do
11689    case $ac_tag in
11690    :[FHLC]) ac_mode=$ac_tag; continue;;
11691    esac
11692    case $ac_mode$ac_tag in
11693    :[FHL]*:*);;
11694    :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11695    :[FH]-) ac_tag=-:-;;
11696    :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11697    esac
11698    ac_save_IFS=$IFS
11699    IFS=:
11700    set x $ac_tag
11701    IFS=$ac_save_IFS
11702    shift
11703    ac_file=$1
11704    shift
11705  
11706    case $ac_mode in
11707    :L) ac_source=$1;;
11708    :[FH])
11709      ac_file_inputs=
11710      for ac_f
11711      do
11712        case $ac_f in
11713        -) ac_f="$ac_tmp/stdin";;
11714        *) # Look for the file first in the build tree, then in the source tree
11715  	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11716  	 # because $ac_f cannot contain `:'.
11717  	 test -f "$ac_f" ||
11718  	   case $ac_f in
11719  	   [\\/$]*) false;;
11720  	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11721  	   esac ||
11722  	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11723        esac
11724        case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11725        as_fn_append ac_file_inputs " '$ac_f'"
11726      done
11727  
11728      # Let's still pretend it is `configure' which instantiates (i.e., don't
11729      # use $as_me), people would be surprised to read:
11730      #    /* config.h.  Generated by config.status.  */
11731      configure_input='Generated from '`
11732  	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11733  	`' by configure.'
11734      if test x"$ac_file" != x-; then
11735        configure_input="$ac_file.  $configure_input"
11736        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11737  printf "%s\n" "$as_me: creating $ac_file" >&6;}
11738      fi
11739      # Neutralize special characters interpreted by sed in replacement strings.
11740      case $configure_input in #(
11741      *\&* | *\|* | *\\* )
11742         ac_sed_conf_input=`printf "%s\n" "$configure_input" |
11743         sed 's/[\\\\&|]/\\\\&/g'`;; #(
11744      *) ac_sed_conf_input=$configure_input;;
11745      esac
11746  
11747      case $ac_tag in
11748      *:-:* | *:-) cat >"$ac_tmp/stdin" \
11749        || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11750      esac
11751      ;;
11752    esac
11753  
11754    ac_dir=`$as_dirname -- "$ac_file" ||
11755  $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11756  	 X"$ac_file" : 'X\(//\)[^/]' \| \
11757  	 X"$ac_file" : 'X\(//\)$' \| \
11758  	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11759  printf "%s\n" X"$ac_file" |
11760      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11761  	    s//\1/
11762  	    q
11763  	  }
11764  	  /^X\(\/\/\)[^/].*/{
11765  	    s//\1/
11766  	    q
11767  	  }
11768  	  /^X\(\/\/\)$/{
11769  	    s//\1/
11770  	    q
11771  	  }
11772  	  /^X\(\/\).*/{
11773  	    s//\1/
11774  	    q
11775  	  }
11776  	  s/.*/./; q'`
11777    as_dir="$ac_dir"; as_fn_mkdir_p
11778    ac_builddir=.
11779  
11780  case "$ac_dir" in
11781  .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11782  *)
11783    ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
11784    # A ".." for each directory in $ac_dir_suffix.
11785    ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11786    case $ac_top_builddir_sub in
11787    "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11788    *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11789    esac ;;
11790  esac
11791  ac_abs_top_builddir=$ac_pwd
11792  ac_abs_builddir=$ac_pwd$ac_dir_suffix
11793  # for backward compatibility:
11794  ac_top_builddir=$ac_top_build_prefix
11795  
11796  case $srcdir in
11797    .)  # We are building in place.
11798      ac_srcdir=.
11799      ac_top_srcdir=$ac_top_builddir_sub
11800      ac_abs_top_srcdir=$ac_pwd ;;
11801    [\\/]* | ?:[\\/]* )  # Absolute name.
11802      ac_srcdir=$srcdir$ac_dir_suffix;
11803      ac_top_srcdir=$srcdir
11804      ac_abs_top_srcdir=$srcdir ;;
11805    *) # Relative name.
11806      ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11807      ac_top_srcdir=$ac_top_build_prefix$srcdir
11808      ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11809  esac
11810  ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11811  
11812  
11813    case $ac_mode in
11814    :F)
11815    #
11816    # CONFIG_FILE
11817    #
11818  
11819    case $INSTALL in
11820    [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11821    *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11822    esac
11823    ac_MKDIR_P=$MKDIR_P
11824    case $MKDIR_P in
11825    [\\/$]* | ?:[\\/]* ) ;;
11826    */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11827    esac
11828  _ACEOF
11829  
11830  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11831  # If the template does not know about datarootdir, expand it.
11832  # FIXME: This hack should be removed a few years after 2.60.
11833  ac_datarootdir_hack=; ac_datarootdir_seen=
11834  ac_sed_dataroot='
11835  /datarootdir/ {
11836    p
11837    q
11838  }
11839  /@datadir@/p
11840  /@docdir@/p
11841  /@infodir@/p
11842  /@localedir@/p
11843  /@mandir@/p'
11844  case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11845  *datarootdir*) ac_datarootdir_seen=yes;;
11846  *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11847    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11848  printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11849  _ACEOF
11850  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11851    ac_datarootdir_hack='
11852    s&@datadir@&$datadir&g
11853    s&@docdir@&$docdir&g
11854    s&@infodir@&$infodir&g
11855    s&@localedir@&$localedir&g
11856    s&@mandir@&$mandir&g
11857    s&\\\${datarootdir}&$datarootdir&g' ;;
11858  esac
11859  _ACEOF
11860  
11861  # Neutralize VPATH when `$srcdir' = `.'.
11862  # Shell code in configure.ac might set extrasub.
11863  # FIXME: do we really want to maintain this feature?
11864  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11865  ac_sed_extra="$ac_vpsub
11866  $extrasub
11867  _ACEOF
11868  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11869  :t
11870  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11871  s|@configure_input@|$ac_sed_conf_input|;t t
11872  s&@top_builddir@&$ac_top_builddir_sub&;t t
11873  s&@top_build_prefix@&$ac_top_build_prefix&;t t
11874  s&@srcdir@&$ac_srcdir&;t t
11875  s&@abs_srcdir@&$ac_abs_srcdir&;t t
11876  s&@top_srcdir@&$ac_top_srcdir&;t t
11877  s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11878  s&@builddir@&$ac_builddir&;t t
11879  s&@abs_builddir@&$ac_abs_builddir&;t t
11880  s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11881  s&@INSTALL@&$ac_INSTALL&;t t
11882  s&@MKDIR_P@&$ac_MKDIR_P&;t t
11883  $ac_datarootdir_hack
11884  "
11885  eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11886    >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11887  
11888  test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11889    { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11890    { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
11891        "$ac_tmp/out"`; test -z "$ac_out"; } &&
11892    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11893  which seems to be undefined.  Please make sure it is defined" >&5
11894  printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11895  which seems to be undefined.  Please make sure it is defined" >&2;}
11896  
11897    rm -f "$ac_tmp/stdin"
11898    case $ac_file in
11899    -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11900    *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11901    esac \
11902    || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11903   ;;
11904    :H)
11905    #
11906    # CONFIG_HEADER
11907    #
11908    if test x"$ac_file" != x-; then
11909      {
11910        printf "%s\n" "/* $configure_input  */" >&1 \
11911        && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11912      } >"$ac_tmp/config.h" \
11913        || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11914      if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11915        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11916  printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
11917      else
11918        rm -f "$ac_file"
11919        mv "$ac_tmp/config.h" "$ac_file" \
11920  	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
11921      fi
11922    else
11923      printf "%s\n" "/* $configure_input  */" >&1 \
11924        && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11925        || as_fn_error $? "could not create -" "$LINENO" 5
11926    fi
11927  # Compute "$ac_file"'s index in $config_headers.
11928  _am_arg="$ac_file"
11929  _am_stamp_count=1
11930  for _am_header in $config_headers :; do
11931    case $_am_header in
11932      $_am_arg | $_am_arg:* )
11933        break ;;
11934      * )
11935        _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11936    esac
11937  done
11938  echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11939  $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11940  	 X"$_am_arg" : 'X\(//\)[^/]' \| \
11941  	 X"$_am_arg" : 'X\(//\)$' \| \
11942  	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11943  printf "%s\n" X"$_am_arg" |
11944      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11945  	    s//\1/
11946  	    q
11947  	  }
11948  	  /^X\(\/\/\)[^/].*/{
11949  	    s//\1/
11950  	    q
11951  	  }
11952  	  /^X\(\/\/\)$/{
11953  	    s//\1/
11954  	    q
11955  	  }
11956  	  /^X\(\/\).*/{
11957  	    s//\1/
11958  	    q
11959  	  }
11960  	  s/.*/./; q'`/stamp-h$_am_stamp_count
11961   ;;
11962  
11963    :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11964  printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
11965   ;;
11966    esac
11967  
11968  
11969    case $ac_file$ac_mode in
11970      "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11971    # Older Autoconf quotes --file arguments for eval, but not when files
11972    # are listed without --file.  Let's play safe and only enable the eval
11973    # if we detect the quoting.
11974    # TODO: see whether this extra hack can be removed once we start
11975    # requiring Autoconf 2.70 or later.
11976    case $CONFIG_FILES in #(
11977    *\'*) :
11978      eval set x "$CONFIG_FILES" ;; #(
11979    *) :
11980      set x $CONFIG_FILES ;; #(
11981    *) :
11982       ;;
11983  esac
11984    shift
11985    # Used to flag and report bootstrapping failures.
11986    am_rc=0
11987    for am_mf
11988    do
11989      # Strip MF so we end up with the name of the file.
11990      am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
11991      # Check whether this is an Automake generated Makefile which includes
11992      # dependency-tracking related rules and includes.
11993      # Grep'ing the whole file directly is not great: AIX grep has a line
11994      # limit of 2048, but all sed's we know have understand at least 4000.
11995      sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
11996        || continue
11997      am_dirpart=`$as_dirname -- "$am_mf" ||
11998  $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11999  	 X"$am_mf" : 'X\(//\)[^/]' \| \
12000  	 X"$am_mf" : 'X\(//\)$' \| \
12001  	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12002  printf "%s\n" X"$am_mf" |
12003      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12004  	    s//\1/
12005  	    q
12006  	  }
12007  	  /^X\(\/\/\)[^/].*/{
12008  	    s//\1/
12009  	    q
12010  	  }
12011  	  /^X\(\/\/\)$/{
12012  	    s//\1/
12013  	    q
12014  	  }
12015  	  /^X\(\/\).*/{
12016  	    s//\1/
12017  	    q
12018  	  }
12019  	  s/.*/./; q'`
12020      am_filepart=`$as_basename -- "$am_mf" ||
12021  $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12022  	 X"$am_mf" : 'X\(//\)$' \| \
12023  	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12024  printf "%s\n" X/"$am_mf" |
12025      sed '/^.*\/\([^/][^/]*\)\/*$/{
12026  	    s//\1/
12027  	    q
12028  	  }
12029  	  /^X\/\(\/\/\)$/{
12030  	    s//\1/
12031  	    q
12032  	  }
12033  	  /^X\/\(\/\).*/{
12034  	    s//\1/
12035  	    q
12036  	  }
12037  	  s/.*/./; q'`
12038      { echo "$as_me:$LINENO: cd "$am_dirpart" \
12039        && sed -e '/# am--include-marker/d' "$am_filepart" \
12040          | $MAKE -f - am--depfiles" >&5
12041     (cd "$am_dirpart" \
12042        && sed -e '/# am--include-marker/d' "$am_filepart" \
12043          | $MAKE -f - am--depfiles) >&5 2>&5
12044     ac_status=$?
12045     echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046     (exit $ac_status); } || am_rc=$?
12047    done
12048    if test $am_rc -ne 0; then
12049      { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12050  printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12051  as_fn_error $? "Something went wrong bootstrapping makefile fragments
12052      for automatic dependency tracking.  If GNU make was not used, consider
12053      re-running the configure script with MAKE=\"gmake\" (or whatever is
12054      necessary).  You can also try re-running configure with the
12055      '--disable-dependency-tracking' option to at least be able to build
12056      the package (albeit without support for automatic dependency tracking).
12057  See \`config.log' for more details" "$LINENO" 5; }
12058    fi
12059    { am_dirpart=; unset am_dirpart;}
12060    { am_filepart=; unset am_filepart;}
12061    { am_mf=; unset am_mf;}
12062    { am_rc=; unset am_rc;}
12063    rm -f conftest-deps.mk
12064  }
12065   ;;
12066  
12067    esac
12068  done # for ac_tag
12069  
12070  
12071  as_fn_exit 0
12072  _ACEOF
12073  ac_clean_files=$ac_clean_files_save
12074  
12075  test $ac_write_fail = 0 ||
12076    as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12077  
12078  
12079  # configure is writing to config.log, and then calls config.status.
12080  # config.status does its own redirection, appending to config.log.
12081  # Unfortunately, on DOS this fails, as config.log is still kept open
12082  # by configure, so config.status won't be able to write to it; its
12083  # output is simply discarded.  So we exec the FD to /dev/null,
12084  # effectively closing config.log, so it can be properly (re)opened and
12085  # appended to by config.status.  When coming back to configure, we
12086  # need to make the FD available again.
12087  if test "$no_create" != yes; then
12088    ac_cs_success=:
12089    ac_config_status_args=
12090    test "$silent" = yes &&
12091      ac_config_status_args="$ac_config_status_args --quiet"
12092    exec 5>/dev/null
12093    $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12094    exec 5>>config.log
12095    # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12096    # would make configure fail if this is the last instruction.
12097    $ac_cs_success || as_fn_exit 1
12098  fi
12099  if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12100    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12101  printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12102  fi
12103  
12104